@lookiero/checkout 0.2.11 → 0.2.13

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.
Files changed (73) hide show
  1. package/dist/domain/checkout/command/startCheckout.d.ts +2 -1
  2. package/dist/domain/checkout/model/checkout.d.ts +2 -1
  3. package/dist/domain/checkout/model/checkouts.d.ts +1 -1
  4. package/dist/domain/checkoutBooking/command/bookSizeReplaceableProductVariantsForCheckoutItem.d.ts +2 -1
  5. package/dist/domain/checkoutBooking/command/bookSizeReplaceableProductVariantsForCheckoutItem.js +1 -1
  6. package/dist/domain/checkoutBooking/model/checkoutBooking.d.ts +2 -1
  7. package/dist/domain/checkoutBooking/model/checkoutBookingBooked.d.ts +2 -1
  8. package/dist/domain/checkoutBooking/model/checkoutBookings.d.ts +1 -1
  9. package/dist/domain/checkoutItem/command/keepCheckoutItem.d.ts +13 -0
  10. package/dist/domain/checkoutItem/command/keepCheckoutItem.js +4 -0
  11. package/dist/domain/checkoutItem/model/checkoutItem.d.ts +15 -0
  12. package/dist/domain/checkoutItem/model/checkoutItem.js +20 -0
  13. package/dist/domain/checkoutItem/model/checkoutItemKept.d.ts +13 -0
  14. package/dist/domain/checkoutItem/model/checkoutItemKept.js +4 -0
  15. package/dist/domain/checkoutItem/model/checkoutItems.d.ts +7 -0
  16. package/dist/domain/checkoutItem/model/checkoutItems.js +1 -0
  17. package/dist/domain/uiSetting/command/updateUiSetting.d.ts +2 -1
  18. package/dist/domain/uiSetting/model/uiSetting.d.ts +2 -1
  19. package/dist/domain/uiSetting/model/uiSettingUpdated.d.ts +2 -1
  20. package/dist/domain/uiSetting/model/uiSettings.d.ts +1 -1
  21. package/dist/infrastructure/delivery/baseBootstrap.d.ts +11 -2
  22. package/dist/infrastructure/delivery/baseBootstrap.js +11 -4
  23. package/dist/infrastructure/delivery/bootstrap.js +6 -0
  24. package/dist/infrastructure/delivery/bootstrap.mock.js +20 -38
  25. package/dist/infrastructure/delivery/http/httpClient.d.ts +1 -1
  26. package/dist/infrastructure/delivery/mock/checkoutDataSource.d.ts +17 -0
  27. package/dist/infrastructure/delivery/mock/checkoutDataSource.js +18 -0
  28. package/dist/infrastructure/delivery/mock/dataSourceCheckoutItems.d.ts +14 -0
  29. package/dist/infrastructure/delivery/mock/dataSourceCheckoutItems.js +21 -0
  30. package/dist/infrastructure/delivery/mock/dataSourceCheckouts.d.ts +11 -0
  31. package/dist/infrastructure/delivery/mock/dataSourceCheckouts.js +27 -0
  32. package/dist/infrastructure/domain/checkout/model/httpCheckoutsStart.js +1 -2
  33. package/dist/infrastructure/domain/checkoutItem/model/httpCheckoutItems.d.ts +16 -0
  34. package/dist/infrastructure/domain/checkoutItem/model/httpCheckoutItems.js +17 -0
  35. package/dist/infrastructure/domain/checkoutItem/model/httpCheckoutItemsKeep.d.ts +5 -0
  36. package/dist/infrastructure/domain/checkoutItem/model/httpCheckoutItemsKeep.js +13 -0
  37. package/dist/infrastructure/domain/checkoutItem/react/useKeepCheckoutItem.d.ts +13 -0
  38. package/dist/infrastructure/domain/checkoutItem/react/useKeepCheckoutItem.js +12 -0
  39. package/dist/infrastructure/persistence/storage.d.ts +1 -1
  40. package/dist/infrastructure/persistence/uiSettingData.d.ts +1 -1
  41. package/dist/infrastructure/projection/bookedSizeReplaceableProductVariants/httpBookedSizeReplaceableProductVariantsForCheckoutItemView.d.ts +2 -1
  42. package/dist/infrastructure/projection/bookedSizeReplaceableProductVariants/httpBookedSizeReplaceableProductVariantsForCheckoutItemView.js +1 -1
  43. package/dist/infrastructure/projection/checkout/checkout.d.ts +3 -38
  44. package/dist/infrastructure/projection/checkout/checkout.mock.d.ts +2 -1
  45. package/dist/infrastructure/projection/checkout/checkout.mock.js +1 -33
  46. package/dist/infrastructure/projection/checkoutItem/checkoutItem.d.ts +44 -0
  47. package/dist/infrastructure/projection/checkoutItem/checkoutItem.js +39 -0
  48. package/dist/infrastructure/projection/checkoutItem/checkoutItem.mock.d.ts +18 -0
  49. package/dist/infrastructure/projection/checkoutItem/checkoutItem.mock.js +37 -0
  50. package/dist/infrastructure/projection/checkoutItem/httpCheckoutItemByIdView.d.ts +12 -0
  51. package/dist/infrastructure/projection/checkoutItem/httpCheckoutItemByIdView.js +12 -0
  52. package/dist/infrastructure/ui/Root.d.ts +2 -1
  53. package/dist/infrastructure/ui/components/atoms/price/Price.d.ts +1 -1
  54. package/dist/infrastructure/ui/routing/CheckoutMiddleware.js +1 -1
  55. package/dist/infrastructure/ui/views/item/Item.js +1 -3
  56. package/dist/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.d.ts +1 -1
  57. package/dist/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.js +1 -1
  58. package/dist/infrastructure/ui/views/item/components/productVariantActions/ProductVariantActions.d.ts +1 -1
  59. package/dist/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.d.ts +1 -1
  60. package/dist/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.d.ts +1 -1
  61. package/dist/projection/bookedSizeReplaceableProductVariants/viewBookedSizeReplaceableProductVariantsForCheckoutItem.d.ts +2 -1
  62. package/dist/projection/checkout/checkout.d.ts +2 -68
  63. package/dist/projection/checkout/checkout.js +1 -29
  64. package/dist/projection/checkout/viewFiveItemsDiscountByCustomerId.d.ts +2 -1
  65. package/dist/projection/checkout/viewIsCheckoutAccessibleByCustomerId.d.ts +2 -1
  66. package/dist/projection/checkout/viewIsCheckoutEnabledByCustomerId.d.ts +2 -1
  67. package/dist/projection/checkoutItem/checkoutItem.d.ts +62 -0
  68. package/dist/projection/checkoutItem/checkoutItem.js +21 -0
  69. package/dist/projection/checkoutItem/viewCheckoutItemById.d.ts +25 -0
  70. package/dist/projection/checkoutItem/viewCheckoutItemById.js +8 -0
  71. package/dist/projection/uiSetting/viewUiSettingByKey.d.ts +2 -1
  72. package/dist/projection/uiSetting/viewUiSettingByKey.js +1 -1
  73. package/package.json +9 -10
@@ -25,4 +25,5 @@ interface ViewUiSettingByKeyHandlerFunctionArgs extends QueryHandlerFunctionArgs
25
25
  readonly view: UiSettingByKeyView;
26
26
  }
27
27
  declare const viewUiSettingByKeyHandler: QueryHandlerFunction<ViewUiSettingByKey, ViewUiSettingByKeyResult, ViewUiSettingByKeyHandlerFunctionArgs>;
28
- export { UiSettingProjection, VIEW_UI_SETTING_BY_KEY, UiSettingByKeyView, viewUiSettingByKey, viewUiSettingByKeyHandler, };
28
+ export type { UiSettingProjection, UiSettingByKeyView };
29
+ export { VIEW_UI_SETTING_BY_KEY, viewUiSettingByKey, viewUiSettingByKeyHandler };
@@ -5,4 +5,4 @@ const viewUiSettingByKey = (payload) => ({
5
5
  ...payload,
6
6
  });
7
7
  const viewUiSettingByKeyHandler = ({ view }) => async ({ key }) => view({ key });
8
- export { VIEW_UI_SETTING_BY_KEY, viewUiSettingByKey, viewUiSettingByKeyHandler, };
8
+ export { VIEW_UI_SETTING_BY_KEY, viewUiSettingByKey, viewUiSettingByKeyHandler };
package/package.json CHANGED
@@ -1,26 +1,25 @@
1
1
  {
2
2
  "name": "@lookiero/checkout",
3
- "version": "0.2.11",
3
+ "version": "0.2.13",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
7
7
  "dist"
8
8
  ],
9
9
  "engines": {
10
- "node": "^14.20.0 | ^18.9.0"
10
+ "node": ">=14.20.0 <15 >=18.9.0"
11
11
  },
12
12
  "scripts": {
13
- "type-check": "tsc --project ./tsconfig.json --noemit --incremental",
14
13
  "start": "expo start",
15
14
  "android": "expo start --android",
16
15
  "ios": "expo start --ios",
17
16
  "web": "expo start --web",
18
17
  "export-analyze-web": "BUNDLE_ANALYZE=true NODE_ENV=production expo export:web",
19
18
  "build": "tsc -b tsconfig.build.json",
20
- "build:app": "npm run type-check && ENTRY_POINT='./src/Expo.tsx' NODE_ENV=production expo export:web --clear",
19
+ "build:app": "tsc -p ./tsconfig.build-app.json --noemit && ENTRY_POINT='./src/Expo.tsx' NODE_ENV=production expo export:web --clear",
21
20
  "lint": "eslint --fix --cache --cache-location ./node_modules/.cache/.eslintcache --ext ts,tsx .",
22
21
  "format": "prettier --write \"**/*.+(json|css|ts|tsx|md)\"",
23
- "test": "jest",
22
+ "test": "tsc -p ./tsconfig.test.json --noemit && jest",
24
23
  "test:coverage": "jest --coverage --coverageReporters=text --detectOpenHandles --forceExit --silent"
25
24
  },
26
25
  "dependencies": {
@@ -39,10 +38,10 @@
39
38
  "react": "^18.0.0",
40
39
  "react-dom": "^18.0.0",
41
40
  "react-native": "^0.69.4",
42
- "react-native-web": "^0.18.7"
41
+ "react-native-web": "^0.18.9"
43
42
  },
44
43
  "devDependencies": {
45
- "@babel/core": "^7.12.9",
44
+ "@babel/core": "^7.19.1",
46
45
  "@expo/webpack-config": "^0.17.2",
47
46
  "@lookiero/aurora-fonts": "^1.0.6",
48
47
  "@lookiero/aurora-iconfont": "^2.0.37",
@@ -56,14 +55,14 @@
56
55
  "@types/react-dom": "~18.0.0",
57
56
  "@types/react-native": "~0.69.1",
58
57
  "@types/uuid": "^8.3.4",
59
- "eslint": "^8.22.0",
58
+ "eslint": "^8.24.0",
60
59
  "eslint-config-prettier": "^8.5.0",
61
60
  "eslint-config-react-app": "^7.0.1",
62
61
  "eslint-plugin-flowtype": "^8.0.3",
63
62
  "eslint-plugin-import": "^2.26.0",
64
63
  "eslint-plugin-jsx-a11y": "^6.6.1",
65
64
  "eslint-plugin-prettier": "^4.2.1",
66
- "eslint-plugin-react": "^7.30.1",
65
+ "eslint-plugin-react": "^7.31.8",
67
66
  "eslint-plugin-react-hooks": "^4.6.0",
68
67
  "expo": "~46.0.8",
69
68
  "expo-status-bar": "~1.4.0",
@@ -76,7 +75,7 @@
76
75
  "react": "^18.0.0",
77
76
  "react-dom": "^18.0.0",
78
77
  "react-native": "^0.69.4",
79
- "react-native-web": "^0.18.7",
78
+ "react-native-web": "^0.18.9",
80
79
  "react-test-renderer": "^18.0.0",
81
80
  "typescript": "^4.6.3",
82
81
  "webpack-bundle-analyzer": "^4.6.1"