Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[phase 2]: refactor the code & add payment draft flow #3174

Open
wants to merge 4 commits into
base: pix-biometrics-main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
322 changes: 161 additions & 161 deletions packages/lib/package.json
Original file line number Diff line number Diff line change
@@ -1,164 +1,164 @@
{
"name": "@adyen/adyen-web",
"version": "6.8.0",
"license": "MIT",
"homepage": "https://docs.adyen.com/checkout",
"type": "module",
"sideEffects": [
"*.css",
"./auto/auto.js",
"./auto/auto.cjs"
],
"main": "dist/cjs/index.cjs",
"module": "dist/es-legacy/index.js",
"types": "dist/es/index.d.ts",
"style": "dist/es/adyen.css",
"exports": {
".": {
"import": {
"types": "./dist/es/index.d.ts",
"default": "./dist/es/index.js"
},
"require": {
"types": "./dist/cjs/index.d.cts",
"default": "./dist/cjs/index.cjs"
}
"name": "@adyen/adyen-web",
"version": "6.8.0",
"license": "MIT",
"homepage": "https://docs.adyen.com/checkout",
"type": "module",
"sideEffects": [
"*.css",
"./auto/auto.js",
"./auto/auto.cjs"
],
"main": "dist/cjs/index.cjs",
"module": "dist/es-legacy/index.js",
"types": "dist/es/index.d.ts",
"style": "dist/es/adyen.css",
"exports": {
".": {
"import": {
"types": "./dist/es/index.d.ts",
"default": "./dist/es/index.js"
},
"require": {
"types": "./dist/cjs/index.d.cts",
"default": "./dist/cjs/index.cjs"
}
},
"./auto": {
"import": {
"types": "./auto/auto.d.ts",
"default": "./auto/auto.js"
},
"require": {
"types": "./auto/auto.d.cts",
"default": "./auto/auto.cjs"
}
},
"./styles/adyen.css": "./dist/es/adyen.css"
},
"./auto": {
"import": {
"types": "./auto/auto.d.ts",
"default": "./auto/auto.js"
},
"require": {
"types": "./auto/auto.d.cts",
"default": "./auto/auto.cjs"
}
"keywords": [
"adyen",
"adyen-web",
"checkout",
"payment",
"payments",
"components"
],
"repository": "github:Adyen/adyen-web",
"bugs": {
"url": "https://support.adyen.com/"
},
"./styles/adyen.css": "./dist/es/adyen.css"
},
"keywords": [
"adyen",
"adyen-web",
"checkout",
"payment",
"payments",
"components"
],
"repository": "github:Adyen/adyen-web",
"bugs": {
"url": "https://support.adyen.com/"
},
"files": [
"auto/**",
"dist/cjs/**",
"dist/es/**",
"dist/es-legacy/**",
"styles/**",
"LICENSE",
"README"
],
"scripts": {
"start": "npm run dev-server",
"story": "storybook dev --port 3020 --disable-telemetry",
"dev-server": "rollup --watch --config config/rollup.dev.js",
"build": "rm -rf dist/ && npm run lint && npm run lint-styles && npm run type-check && npm run types:generate && rollup --config config/rollup.prod.js && rm -rf dist/temp-types",
"docs:generate": "typedoc --out docs src --exclude \"**/*+(index|.test).ts\"",
"start:storybook": "node .storybook/run.cjs",
"build:storybook": "storybook build --disable-telemetry",
"test": "jest --config config/jest.config.cjs",
"test:watch": "npm run test -- --watchAll",
"test:coverage": "npm run test -- --coverage",
"type-check": "tsc --noEmit",
"types:generate": "tsc --emitDeclarationOnly",
"format": "npm run lint:fix && npm run prettier:fix && npm run styles:fix",
"lint": "eslint .",
"lint-styles": "stylelint \"**/*.scss\"",
"styles:fix": "npm run lint-styles -- --fix",
"lint:fix": "npm run lint -- --fix",
"prettier:fix": "prettier \"src/**/*.{js,ts,tsx}\" \"package.json\" --write --loglevel silent",
"prepublishOnly": "npm run build && rm -rf ./styles && mkdir ./styles && cp ./dist/es/adyen.css ./styles/adyen.css",
"prepare": "cd ../.. && husky packages/lib/.husky",
"size": "npm run build && size-limit"
},
"devDependencies": {
"@adyen/bento-design-tokens": "1.10.0",
"@eslint/compat": "1.2.5",
"@eslint/js": "9.17.0",
"@preact/preset-vite": "2.9.3",
"@rollup/plugin-commonjs": "28.0.2",
"@rollup/plugin-eslint": "9.0.5",
"@rollup/plugin-json": "6.1.0",
"@rollup/plugin-node-resolve": "15.3.1",
"@rollup/plugin-replace": "5.0.7",
"@rollup/plugin-terser": "0.4.4",
"@size-limit/preset-big-lib": "11.1.6",
"@storybook/addon-a11y": "^8.3.4",
"@storybook/addon-essentials": "^8.3.4",
"@storybook/manager-api": "^8.3.4",
"@storybook/preact": "^8.3.4",
"@storybook/preact-vite": "^8.3.4",
"@swc/core": "1.10.17",
"@testing-library/jest-dom": "6.6.3",
"@testing-library/preact": "3.2.4",
"@testing-library/preact-hooks": "1.1.0",
"@testing-library/user-event": "14.6.1",
"@types/eslint__js": "8.42.3",
"@types/jest": "29.5.14",
"autoprefixer": "10.4.20",
"cross-env": "7.0.3",
"cssnano": "7.0.6",
"dotenv": "16.4.7",
"enzyme": "3.11.0",
"enzyme-adapter-preact-pure": "4.1.0",
"eslint": "9.17.0",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-jsx-a11y": "6.10.2",
"eslint-plugin-react": "7.37.4",
"eslint-plugin-storybook": "0.11.1",
"eslint-plugin-testing-library": "6.5.0",
"globals": "15.14.0",
"husky": "9.1.7",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"jest-fixed-jsdom": "^0.0.9",
"jest-mock-extended": "3.0.7",
"lint-staged": "15.3.0",
"msw": "2.7.1",
"msw-storybook-addon": "2.0.4",
"postcss": "8.4.49",
"rollup": "4.29.1",
"rollup-plugin-dts": "6.1.1",
"rollup-plugin-postcss": "4.0.2",
"rollup-plugin-stylelint": "1.0.0",
"rollup-plugin-swc3": "0.12.1",
"sass": "1.77.8",
"size-limit": "11.1.6",
"storybook": "^8.3.4",
"stylelint": "16.12.0",
"stylelint-config-standard-scss": "13.1.0",
"ts-jest": "29.2.5",
"tslib": "2.8.1",
"typescript": "5.5.3",
"typescript-eslint": "7.18.0",
"vite": "5.4.14",
"vite-plugin-static-copy": "1.0.6",
"vite-plugin-stylelint": "5.3.1",
"whatwg-fetch": "3.6.20"
},
"dependencies": {
"@types/applepayjs": "14.0.8",
"@types/googlepay": "0.7.6",
"classnames": "2.5.1",
"preact": "10.22.1"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": "eslint",
"*.{scss,css}": "stylelint",
"*.{js,jsx,ts,tsx,html,md}": "prettier --write"
},
"msw": {
"workerDirectory": [
"storybook/public"
]
}
}
"files": [
"auto/**",
"dist/cjs/**",
"dist/es/**",
"dist/es-legacy/**",
"styles/**",
"LICENSE",
"README"
],
"scripts": {
"start": "npm run dev-server",
"story": "storybook dev --port 3020 --disable-telemetry",
"dev-server": "rollup --watch --config config/rollup.dev.js",
"build": "rm -rf dist/ && npm run lint && npm run lint-styles && npm run type-check && npm run types:generate && rollup --config config/rollup.prod.js && rm -rf dist/temp-types",
"docs:generate": "typedoc --out docs src --exclude \"**/*+(index|.test).ts\"",
"start:storybook": "node .storybook/run.cjs",
"build:storybook": "storybook build --disable-telemetry",
"test": "jest --config config/jest.config.cjs",
"test:watch": "npm run test -- --watchAll",
"test:coverage": "npm run test -- --coverage",
"type-check": "tsc --noEmit",
"types:generate": "tsc --emitDeclarationOnly",
"format": "npm run lint:fix && npm run prettier:fix && npm run styles:fix",
"lint": "eslint .",
"lint-styles": "stylelint \"**/*.scss\"",
"styles:fix": "npm run lint-styles -- --fix",
"lint:fix": "npm run lint -- --fix",
"prettier:fix": "prettier \"src/**/*.{js,ts,tsx}\" \"package.json\" --write --loglevel silent",
"prepublishOnly": "npm run build && rm -rf ./styles && mkdir ./styles && cp ./dist/es/adyen.css ./styles/adyen.css",
"prepare": "cd ../.. && husky packages/lib/.husky",
"size": "npm run build && size-limit"
},
"devDependencies": {
"@adyen/bento-design-tokens": "1.10.0",
"@eslint/compat": "1.2.5",
"@eslint/js": "9.17.0",
"@preact/preset-vite": "2.9.3",
"@rollup/plugin-commonjs": "28.0.2",
"@rollup/plugin-eslint": "9.0.5",
"@rollup/plugin-json": "6.1.0",
"@rollup/plugin-node-resolve": "15.3.1",
"@rollup/plugin-replace": "5.0.7",
"@rollup/plugin-terser": "0.4.4",
"@size-limit/preset-big-lib": "11.1.6",
"@storybook/addon-a11y": "^8.3.4",
"@storybook/addon-essentials": "^8.3.4",
"@storybook/manager-api": "^8.3.4",
"@storybook/preact": "^8.3.4",
"@storybook/preact-vite": "^8.3.4",
"@swc/core": "1.10.17",
"@testing-library/jest-dom": "6.6.3",
"@testing-library/preact": "3.2.4",
"@testing-library/preact-hooks": "1.1.0",
"@testing-library/user-event": "14.6.1",
"@types/eslint__js": "8.42.3",
"@types/jest": "29.5.14",
"autoprefixer": "10.4.20",
"cross-env": "7.0.3",
"cssnano": "7.0.6",
"dotenv": "16.4.7",
"enzyme": "3.11.0",
"enzyme-adapter-preact-pure": "4.1.0",
"eslint": "9.17.0",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-jsx-a11y": "6.10.2",
"eslint-plugin-react": "7.37.4",
"eslint-plugin-storybook": "0.11.1",
"eslint-plugin-testing-library": "6.5.0",
"globals": "15.14.0",
"husky": "9.1.7",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"jest-fixed-jsdom": "^0.0.9",
"jest-mock-extended": "3.0.7",
"lint-staged": "15.3.0",
"msw": "2.7.1",
"msw-storybook-addon": "2.0.4",
"postcss": "8.4.49",
"rollup": "4.29.1",
"rollup-plugin-dts": "6.1.1",
"rollup-plugin-postcss": "4.0.2",
"rollup-plugin-stylelint": "1.0.0",
"rollup-plugin-swc3": "0.12.1",
"sass": "1.77.8",
"size-limit": "11.1.6",
"storybook": "^8.3.4",
"stylelint": "16.12.0",
"stylelint-config-standard-scss": "13.1.0",
"ts-jest": "29.2.5",
"tslib": "2.8.1",
"typescript": "5.5.3",
"typescript-eslint": "7.18.0",
"vite": "5.4.14",
"vite-plugin-static-copy": "1.0.6",
"vite-plugin-stylelint": "5.3.1",
"whatwg-fetch": "3.6.20"
},
"dependencies": {
"@types/applepayjs": "14.0.8",
"@types/googlepay": "0.7.6",
"classnames": "2.5.1",
"preact": "10.22.1"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": "eslint",
"*.{scss,css}": "stylelint",
"*.{js,jsx,ts,tsx,html,md}": "prettier --write"
},
"msw": {
"workerDirectory": [
"storybook/public"
]
}
}
2 changes: 1 addition & 1 deletion packages/lib/src/components/Dropin/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Order, OrderStatus, PaymentActionsType, PaymentAmount } from '../../types/global-types';
import { Order, OrderStatus, PaymentActionsType, PaymentAmount } from '../../types/global-types';
import type { UIElementProps, UIElementStatus } from '../internal/UIElement/types';
import type { NewableComponent } from '../../core/core.registry';
import type { ICore } from '../../core/types';
Loading
Oops, something went wrong.
Loading
Oops, something went wrong.