@atomsolution/sdk-merchant 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +93 -0
- package/dist/App.d.ts +3 -0
- package/dist/assets/locales/en/common.json.d.ts +18 -0
- package/dist/assets/locales/en/digistore-id.json.d.ts +32 -0
- package/dist/assets/locales/en/download-sample.json.d.ts +59 -0
- package/dist/assets/locales/en/file.json.d.ts +48 -0
- package/dist/assets/locales/en/form.json.d.ts +85 -0
- package/dist/assets/locales/en/merchant-batch-create-form.json.d.ts +92 -0
- package/dist/assets/locales/en/table.json.d.ts +36 -0
- package/dist/assets/locales/vi/common.json.d.ts +18 -0
- package/dist/assets/locales/vi/digistore-id.json.d.ts +32 -0
- package/dist/assets/locales/vi/download-sample.json.d.ts +59 -0
- package/dist/assets/locales/vi/file.json.d.ts +48 -0
- package/dist/assets/locales/vi/form.json.d.ts +85 -0
- package/dist/assets/locales/vi/merchant-batch-create-form.json.d.ts +92 -0
- package/dist/assets/locales/vi/table.json.d.ts +35 -0
- package/dist/bvbLogo.png +0 -0
- package/dist/components/MerchantBatchCreateForm/DownloadSampleFile.d.ts +1 -0
- package/dist/components/MerchantBatchCreateForm/FileUpload/fileUploadButton.d.ts +6 -0
- package/dist/components/MerchantBatchCreateForm/FileUpload/sheetDropDown.d.ts +7 -0
- package/dist/components/MerchantBatchCreateForm/Layout/Layout.d.ts +12 -0
- package/dist/components/MerchantBatchCreateForm/ProductInfoPreview/ProductPreviewTable/CategoryCell.d.ts +8 -0
- package/dist/components/MerchantBatchCreateForm/ProductInfoPreview/ProductPreviewTable/UploadImageCell.d.ts +9 -0
- package/dist/components/MerchantBatchCreateForm/ProductInfoPreview/ProductPreviewTable/index.d.ts +8 -0
- package/dist/components/MerchantBatchCreateForm/ProductInfoPreview/index.d.ts +2 -0
- package/dist/components/MerchantBatchCreateForm/fieldMappingPopup.d.ts +8 -0
- package/dist/components/MerchantBatchCreateForm/fileUploadTab.d.ts +1 -0
- package/dist/components/MerchantBatchCreateForm/hook/useFileValidator.d.ts +8 -0
- package/dist/components/MerchantBatchCreateForm/index.d.ts +1 -0
- package/dist/components/MerchantBatchCreateForm/mergeAndCheckData.d.ts +1 -0
- package/dist/components/MerchantBatchCreateForm/modals/CreateProductConfirmModal.d.ts +10 -0
- package/dist/components/MerchantBatchCreateForm/modals/CreateProductSuccessModal.d.ts +12 -0
- package/dist/components/MerchantBatchCreateForm/modals/DeleteImageConfirmModal.d.ts +8 -0
- package/dist/components/MerchantBatchCreateForm/modals/UpdateProductModal/CategoriesInput/index.d.ts +9 -0
- package/dist/components/MerchantBatchCreateForm/modals/UpdateProductModal/UnitSelect/UnitSelectUI/DropdownContent/ActionButtons.d.ts +7 -0
- package/dist/components/MerchantBatchCreateForm/modals/UpdateProductModal/UnitSelect/UnitSelectUI/DropdownContent/AddOptionComponent.d.ts +13 -0
- package/dist/components/MerchantBatchCreateForm/modals/UpdateProductModal/UnitSelect/UnitSelectUI/DropdownContent/OptionItem/EditOptionComponent.d.ts +14 -0
- package/dist/components/MerchantBatchCreateForm/modals/UpdateProductModal/UnitSelect/UnitSelectUI/DropdownContent/OptionItem/index.d.ts +18 -0
- package/dist/components/MerchantBatchCreateForm/modals/UpdateProductModal/UnitSelect/UnitSelectUI/DropdownContent/SelectButton.d.ts +11 -0
- package/dist/components/MerchantBatchCreateForm/modals/UpdateProductModal/UnitSelect/UnitSelectUI/DropdownContent/index.d.ts +22 -0
- package/dist/components/MerchantBatchCreateForm/modals/UpdateProductModal/UnitSelect/UnitSelectUI/index.d.ts +4 -0
- package/dist/components/MerchantBatchCreateForm/modals/UpdateProductModal/UnitSelect/UnitSelectUI/utils/LocalStorage.d.ts +6 -0
- package/dist/components/MerchantBatchCreateForm/modals/UpdateProductModal/UnitSelect/UnitSelectUI/utils/validation.d.ts +7 -0
- package/dist/components/MerchantBatchCreateForm/modals/UpdateProductModal/UnitSelect/index.d.ts +10 -0
- package/dist/components/MerchantBatchCreateForm/modals/UpdateProductModal/UploadImage.d.ts +12 -0
- package/dist/components/MerchantBatchCreateForm/modals/UpdateProductModal/index.d.ts +16 -0
- package/dist/components/MerchantBatchCreateForm/store/useMappingStore.d.ts +9 -0
- package/dist/components/MerchantBatchCreateForm/store/useUploadStore.d.ts +27 -0
- package/dist/components/MerchantBatchCreateForm/utils/download.d.ts +4 -0
- package/dist/components/MerchantBatchCreateForm/utils/upload.d.ts +5 -0
- package/dist/components/MerchantEdit/AddressFields.d.ts +16 -0
- package/dist/components/MerchantEdit/FileUpload.d.ts +13 -0
- package/dist/components/MerchantEdit/Header.d.ts +9 -0
- package/dist/components/MerchantEdit/UserTypeForm.d.ts +22 -0
- package/dist/components/MerchantEdit/index.d.ts +10 -0
- package/dist/components/MerchantRegistrationForm/AddressFields.d.ts +16 -0
- package/dist/components/MerchantRegistrationForm/FileUpload.d.ts +12 -0
- package/dist/components/MerchantRegistrationForm/Header.d.ts +9 -0
- package/dist/components/MerchantRegistrationForm/IndustrySelect.d.ts +8 -0
- package/dist/components/MerchantRegistrationForm/MerchantRegistrationForm.d.ts +37 -0
- package/dist/components/MerchantRegistrationForm/UserTypeForm.d.ts +21 -0
- package/dist/components/MerchantTable/index.d.ts +11 -0
- package/dist/components/MerchantTable/merchantTableAction.d.ts +8 -0
- package/dist/components/MerchantTable/merchantTableFilter.d.ts +16 -0
- package/dist/components/MerchantTable/merchantTableHeader.d.ts +6 -0
- package/dist/components/MerchantView/AddressFields.d.ts +16 -0
- package/dist/components/MerchantView/FileUpload.d.ts +13 -0
- package/dist/components/MerchantView/Header.d.ts +9 -0
- package/dist/components/MerchantView/UserTypeForm.d.ts +22 -0
- package/dist/components/MerchantView/index.d.ts +10 -0
- package/dist/components/NewAccountCreate/FormHeader.d.ts +8 -0
- package/dist/components/NewAccountCreate/Icon.d.ts +6 -0
- package/dist/components/NewAccountCreate/InputField.d.ts +21 -0
- package/dist/components/NewAccountCreate/PasswordRequirements.d.ts +6 -0
- package/dist/components/NewAccountCreate/RequirementItem.d.ts +6 -0
- package/dist/components/NewAccountCreate/SubmitButton.d.ts +11 -0
- package/dist/components/NewAccountCreate/index.d.ts +8 -0
- package/dist/components/NewAccountCreate/types.d.ts +7 -0
- package/dist/components/common/button.d.ts +11 -0
- package/dist/components/common/custom-toast/index.d.ts +6 -0
- package/dist/components/common/dataTable/dataTable.d.ts +25 -0
- package/dist/components/common/dataTable/pagination.d.ts +14 -0
- package/dist/components/common/dataTable/statusBadge.d.ts +9 -0
- package/dist/components/common/dataTable/tableBody.d.ts +8 -0
- package/dist/components/common/dataTable/tableHeader.d.ts +6 -0
- package/dist/components/common/dataTable/tableSkeleton.d.ts +7 -0
- package/dist/components/common/datePicker.d.ts +10 -0
- package/dist/components/common/dropdownMenu.d.ts +27 -0
- package/dist/components/common/dropdownMenuAbsolute.d.ts +4 -0
- package/dist/components/common/form/error-message.d.ts +14 -0
- package/dist/components/common/input.d.ts +3 -0
- package/dist/components/common/label.d.ts +6 -0
- package/dist/components/common/modals/ConfirmModal.d.ts +13 -0
- package/dist/components/common/modals/ExitConfirmGuard.d.ts +11 -0
- package/dist/components/common/modals/WrapModal.d.ts +9 -0
- package/dist/components/common/number-input.d.ts +5 -0
- package/dist/components/ui/button.d.ts +12 -0
- package/dist/components/ui/confirmModal.d.ts +10 -0
- package/dist/components/ui/error-modal.d.ts +8 -0
- package/dist/components/ui/input.d.ts +18 -0
- package/dist/components/ui/success-modal.d.ts +8 -0
- package/dist/configs/portalAxiosClient.d.ts +2 -0
- package/dist/configs/wesapAxiosClient.d.ts +2 -0
- package/dist/constants/merchant-batch-create-form.constant.d.ts +4 -0
- package/dist/fonts/inter/Inter_18pt-Bold.ttf +0 -0
- package/dist/fonts/inter/Inter_18pt-Medium.ttf +0 -0
- package/dist/fonts/inter/Inter_18pt-Regular.ttf +0 -0
- package/dist/fonts/inter/Inter_18pt-SemiBold.ttf +0 -0
- package/dist/hooks/use-address.d.ts +9 -0
- package/dist/hooks/use-create-merchant.d.ts +20 -0
- package/dist/hooks/use-edit-merchant.d.ts +20 -0
- package/dist/hooks/use-media-query.d.ts +1 -0
- package/dist/hooks/use-merchant-table.d.ts +13 -0
- package/dist/hooks/use-translation.d.ts +10 -0
- package/dist/hooks/useClickOutside.d.ts +3 -0
- package/dist/hooks/useDebounce.d.ts +1 -0
- package/dist/hooks/useMCCList.d.ts +6 -0
- package/dist/hooks/useMerchantDetail.d.ts +8 -0
- package/dist/hooks/usePasswordValidation.d.ts +9 -0
- package/dist/index.cjs +73887 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.esm.js +73871 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/main.d.ts +0 -0
- package/dist/provider/index.d.ts +5 -0
- package/dist/provider/toast-provider.d.ts +2 -0
- package/dist/services/MCCList.d.ts +2 -0
- package/dist/services/addressService.d.ts +10 -0
- package/dist/services/create-products.service.d.ts +6 -0
- package/dist/services/createDigistoreAccountService.d.ts +7 -0
- package/dist/services/editFormService.d.ts +5 -0
- package/dist/services/merchantFormService.d.ts +5 -0
- package/dist/services/merchantService.d.ts +3 -0
- package/dist/store/use-external-config.store.d.ts +10 -0
- package/dist/store/use-portal-api-config.store.d.ts +8 -0
- package/dist/store/use-unsaved-changes.store.d.ts +11 -0
- package/dist/store/use-wesap-api-config.store.d.ts +10 -0
- package/dist/style.css +2971 -0
- package/dist/types/MCCList.d.ts +5 -0
- package/dist/types/addressType.d.ts +17 -0
- package/dist/types/formData.d.ts +58 -0
- package/dist/types/global.d.ts +3 -0
- package/dist/types/merchant-batch-create-form/product-info-preview.d.ts +45 -0
- package/dist/types/merchant-batch-create-form/sheet-product-validation.d.ts +10 -0
- package/dist/types/merchant-batch-create-form/table.d.ts +1 -0
- package/dist/types/merchant-batch-create-form/unit-select.d.ts +14 -0
- package/dist/types/merchantDetail.d.ts +30 -0
- package/dist/types/merchantTableData.d.ts +16 -0
- package/dist/types/user.d.ts +23 -0
- package/dist/utils/commonFunctions.d.ts +2 -0
- package/dist/utils/datetime.d.ts +8 -0
- package/dist/utils/form.d.ts +1 -0
- package/dist/utils/mapLicenseData.d.ts +25 -0
- package/dist/utils/merchantTableData.d.ts +3 -0
- package/dist/utils/tokenManager.d.ts +2 -0
- package/dist/utils/translations.d.ts +685 -0
- package/dist/vite.svg +1 -0
- package/package.json +90 -0
package/package.json
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atomsolution/sdk-merchant",
|
|
3
|
+
"publishConfig": {
|
|
4
|
+
"access": "public"
|
|
5
|
+
},
|
|
6
|
+
"version": "1.0.0",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "dist/index.cjs",
|
|
9
|
+
"module": "dist/index.esm.js",
|
|
10
|
+
"types": "dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
"./dist/style.css": {
|
|
13
|
+
"default": "./dist/style.css"
|
|
14
|
+
},
|
|
15
|
+
".": {
|
|
16
|
+
"import": "./dist/index.esm.js",
|
|
17
|
+
"require": "./dist/index.cjs",
|
|
18
|
+
"types": "./dist/index.d.ts"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist",
|
|
23
|
+
"assets"
|
|
24
|
+
],
|
|
25
|
+
"scripts": {
|
|
26
|
+
"dev": "vite",
|
|
27
|
+
"build": "vite build",
|
|
28
|
+
"preview": "vite preview",
|
|
29
|
+
"link-local": "yarn build && yarn pack"
|
|
30
|
+
},
|
|
31
|
+
"peerDependencies": {
|
|
32
|
+
"react": ">=16.14.0",
|
|
33
|
+
"react-dom": ">=16.14.0",
|
|
34
|
+
"react-router-dom": "^5.2.0",
|
|
35
|
+
"react-toastify": "^8.0.0"
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"axios": "^1.10.0",
|
|
39
|
+
"idb-keyval": "^6.2.2",
|
|
40
|
+
"ocr-upload-reader": "^2.0.8",
|
|
41
|
+
"process": "^0.11.10",
|
|
42
|
+
"react-datepicker": "^8.4.0",
|
|
43
|
+
"react-toastify": "^8.0.0",
|
|
44
|
+
"xlsx": "^0.18.5",
|
|
45
|
+
"zustand": "^3.7.2"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@eslint/js": "^9.25.0",
|
|
49
|
+
"@hookform/error-message": "^2.0.1",
|
|
50
|
+
"@hookform/resolvers": "^5.2.1",
|
|
51
|
+
"@radix-ui/react-dialog": "^1.1.15",
|
|
52
|
+
"@radix-ui/react-label": "^2.1.7",
|
|
53
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
54
|
+
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
55
|
+
"@semantic-release/git": "^10.0.1",
|
|
56
|
+
"@semantic-release/gitlab": "^13.2.8",
|
|
57
|
+
"@semantic-release/npm": "^12.0.2",
|
|
58
|
+
"@semantic-release/release-notes-generator": "^14.1.0",
|
|
59
|
+
"@swc/core": "^1.12.6",
|
|
60
|
+
"@types/axios": "^0.14.4",
|
|
61
|
+
"@types/node": "^24.0.3",
|
|
62
|
+
"@types/react": "^18.3.23",
|
|
63
|
+
"@types/react-dom": "^18.3.7",
|
|
64
|
+
"@types/react-router-dom": "^5.3.3",
|
|
65
|
+
"@vitejs/plugin-react": "^4",
|
|
66
|
+
"autoprefixer": "^10.4.21",
|
|
67
|
+
"eslint": "^9.25.0",
|
|
68
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
69
|
+
"eslint-plugin-react-refresh": "^0.4.19",
|
|
70
|
+
"exceljs": "^4.4.0",
|
|
71
|
+
"postcss": "^8.5.6",
|
|
72
|
+
"react": "^18.3.1",
|
|
73
|
+
"react-dom": "^18.3.1",
|
|
74
|
+
"react-hook-form": "^7.62.0",
|
|
75
|
+
"react-router-dom": "^5.2.0",
|
|
76
|
+
"semantic-release": "^24.2.6",
|
|
77
|
+
"tailwind-merge": "^3.3.1",
|
|
78
|
+
"tailwindcss": "^3.4.17",
|
|
79
|
+
"vite": "^5",
|
|
80
|
+
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
81
|
+
"vite-plugin-dts": "^4.5.4",
|
|
82
|
+
"vite-plugin-externalize-deps": "^0.9.0",
|
|
83
|
+
"vite-plugin-node-polyfills": "^0.23.0",
|
|
84
|
+
"zod": "^4.1.5"
|
|
85
|
+
},
|
|
86
|
+
"engines": {
|
|
87
|
+
"node": ">=14"
|
|
88
|
+
},
|
|
89
|
+
"license": "MIT"
|
|
90
|
+
}
|