@enadhq/enad-react-sdk 1.0.0 → 1.1.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 +305 -0
- package/dist/client/_virtual/_rolldown/runtime.mjs +6 -0
- package/dist/client/adapters/index.d.ts +3 -0
- package/dist/client/adapters/index.mjs +3 -0
- package/dist/client/adapters/next-cookie-adapter.d.ts +18 -0
- package/dist/client/adapters/next-cookie-adapter.d.ts.map +1 -0
- package/dist/client/adapters/next-cookie-adapter.mjs +25 -0
- package/dist/client/adapters/next-cookie-adapter.mjs.map +1 -0
- package/dist/client/adapters/next-navigation-adapter.d.ts +9 -0
- package/dist/client/adapters/next-navigation-adapter.d.ts.map +1 -0
- package/dist/client/adapters/next-navigation-adapter.mjs +12 -0
- package/dist/client/adapters/next-navigation-adapter.mjs.map +1 -0
- package/dist/client/cart/adapters/brink.d.ts +33 -0
- package/dist/client/cart/adapters/brink.d.ts.map +1 -0
- package/dist/client/cart/adapters/brink.mjs +171 -0
- package/dist/client/cart/adapters/brink.mjs.map +1 -0
- package/dist/client/cart/adapters/index.d.ts +2 -0
- package/dist/client/cart/adapters/index.mjs +2 -0
- package/dist/client/cart/adapters/mock.d.ts +24 -0
- package/dist/client/cart/adapters/mock.d.ts.map +1 -0
- package/dist/client/cart/adapters/mock.mjs +92 -0
- package/dist/client/cart/adapters/mock.mjs.map +1 -0
- package/dist/client/cart/components/cart-drawer.d.ts +27 -0
- package/dist/client/cart/components/cart-drawer.d.ts.map +1 -0
- package/dist/client/cart/components/cart-drawer.mjs +277 -0
- package/dist/client/cart/components/cart-drawer.mjs.map +1 -0
- package/dist/client/cart/components/cart-trigger.d.ts +20 -0
- package/dist/client/cart/components/cart-trigger.d.ts.map +1 -0
- package/dist/client/cart/components/cart-trigger.mjs +27 -0
- package/dist/client/cart/components/cart-trigger.mjs.map +1 -0
- package/dist/client/cart/components/promo-code-input.d.ts +29 -0
- package/dist/client/cart/components/promo-code-input.d.ts.map +1 -0
- package/dist/client/cart/components/promo-code-input.mjs +81 -0
- package/dist/client/cart/components/promo-code-input.mjs.map +1 -0
- package/dist/client/cart/constants/session.d.ts +5 -0
- package/dist/client/cart/constants/session.d.ts.map +1 -0
- package/dist/client/cart/constants/session.mjs +6 -0
- package/dist/client/cart/constants/session.mjs.map +1 -0
- package/dist/client/cart/contexts/cart.d.ts +44 -0
- package/dist/client/cart/contexts/cart.d.ts.map +1 -0
- package/dist/client/cart/contexts/cart.mjs +37 -0
- package/dist/client/cart/contexts/cart.mjs.map +1 -0
- package/dist/client/cart/hooks/useCart.d.ts +32 -0
- package/dist/client/cart/hooks/useCart.d.ts.map +1 -0
- package/dist/client/cart/hooks/useCart.mjs +31 -0
- package/dist/client/cart/hooks/useCart.mjs.map +1 -0
- package/dist/client/cart/hooks/useCartActions.d.ts +30 -0
- package/dist/client/cart/hooks/useCartActions.d.ts.map +1 -0
- package/dist/client/cart/hooks/useCartActions.mjs +50 -0
- package/dist/client/cart/hooks/useCartActions.mjs.map +1 -0
- package/dist/client/cart/index.d.ts +8 -0
- package/dist/client/cart/index.mjs +7 -0
- package/dist/client/cart/queries/addToCartQueryFn.d.ts +14 -0
- package/dist/client/cart/queries/addToCartQueryFn.d.ts.map +1 -0
- package/dist/client/cart/queries/addToCartQueryFn.mjs +28 -0
- package/dist/client/cart/queries/addToCartQueryFn.mjs.map +1 -0
- package/dist/client/cart/queries/getCartQueryFn.d.ts +8 -0
- package/dist/client/cart/queries/getCartQueryFn.d.ts.map +1 -0
- package/dist/client/cart/queries/getCartQueryFn.mjs +37 -0
- package/dist/client/cart/queries/getCartQueryFn.mjs.map +1 -0
- package/dist/client/cart/queries/removeCartItemQueryFn.d.ts +12 -0
- package/dist/client/cart/queries/removeCartItemQueryFn.d.ts.map +1 -0
- package/dist/client/cart/queries/removeCartItemQueryFn.mjs +23 -0
- package/dist/client/cart/queries/removeCartItemQueryFn.mjs.map +1 -0
- package/dist/client/cart/queries/updateCartItemQueryFn.d.ts +14 -0
- package/dist/client/cart/queries/updateCartItemQueryFn.d.ts.map +1 -0
- package/dist/client/cart/queries/updateCartItemQueryFn.mjs +25 -0
- package/dist/client/cart/queries/updateCartItemQueryFn.mjs.map +1 -0
- package/dist/client/cart/types/adapter.d.ts +113 -0
- package/dist/client/cart/types/adapter.d.ts.map +1 -0
- package/dist/client/cart/types/adapter.mjs +13 -0
- package/dist/client/cart/types/adapter.mjs.map +1 -0
- package/dist/client/cart/types/cart.d.ts +55 -0
- package/dist/client/cart/types/cart.d.ts.map +1 -0
- package/dist/client/cart/types/cart.mjs +1 -0
- package/dist/client/cart/utils/session.d.ts +8 -0
- package/dist/client/cart/utils/session.d.ts.map +1 -0
- package/dist/client/cart/utils/session.mjs +19 -0
- package/dist/client/cart/utils/session.mjs.map +1 -0
- package/dist/client/cms/storyblok/preview/registerStoryblokBridge.d.ts +12 -0
- package/dist/client/cms/storyblok/preview/registerStoryblokBridge.d.ts.map +1 -0
- package/dist/client/cms/storyblok/preview/registerStoryblokBridge.mjs +18 -0
- package/dist/client/cms/storyblok/preview/registerStoryblokBridge.mjs.map +1 -0
- package/dist/client/cms/storyblok/preview/storyblok-preview-syncer.d.ts +32 -0
- package/dist/client/cms/storyblok/preview/storyblok-preview-syncer.d.ts.map +1 -0
- package/dist/client/cms/storyblok/preview/storyblok-preview-syncer.mjs +70 -0
- package/dist/client/cms/storyblok/preview/storyblok-preview-syncer.mjs.map +1 -0
- package/dist/client/global/auth/cookie-adapter.d.ts +33 -0
- package/dist/client/global/auth/cookie-adapter.d.ts.map +1 -0
- package/dist/client/global/auth/cookie-adapter.mjs +28 -0
- package/dist/client/global/auth/cookie-adapter.mjs.map +1 -0
- package/dist/client/global/auth/cookie-context.d.ts +21 -0
- package/dist/client/global/auth/cookie-context.d.ts.map +1 -0
- package/dist/client/global/auth/cookie-context.mjs +24 -0
- package/dist/client/global/auth/cookie-context.mjs.map +1 -0
- package/dist/client/global/auth/navigation-adapter.d.ts +9 -0
- package/dist/client/global/auth/navigation-adapter.d.ts.map +1 -0
- package/dist/client/global/auth/navigation-adapter.mjs +13 -0
- package/dist/client/global/auth/navigation-adapter.mjs.map +1 -0
- package/dist/client/global/auth/withAuth.d.ts +8 -0
- package/dist/client/global/auth/withAuth.d.ts.map +1 -0
- package/dist/client/global/auth/withAuth.mjs +29 -0
- package/dist/client/global/auth/withAuth.mjs.map +1 -0
- package/dist/client/global/components/error-boundary.d.ts +23 -0
- package/dist/client/global/components/error-boundary.d.ts.map +1 -0
- package/dist/client/global/components/error-boundary.mjs +40 -0
- package/dist/client/global/components/error-boundary.mjs.map +1 -0
- package/dist/client/global/config/index.d.ts +19 -0
- package/dist/client/global/config/index.d.ts.map +1 -0
- package/dist/client/global/config/index.mjs +15 -0
- package/dist/client/global/config/index.mjs.map +1 -0
- package/dist/client/global/constants/tags.d.ts +18 -0
- package/dist/client/global/constants/tags.d.ts.map +1 -0
- package/dist/client/global/constants/tags.mjs +19 -0
- package/dist/client/global/constants/tags.mjs.map +1 -0
- package/dist/client/global/contexts/locale.d.ts +14 -0
- package/dist/client/global/contexts/locale.d.ts.map +1 -0
- package/dist/client/global/contexts/locale.mjs +24 -0
- package/dist/client/global/contexts/locale.mjs.map +1 -0
- package/dist/client/global/index.d.ts +8 -0
- package/dist/client/global/index.mjs +7 -0
- package/dist/client/global/providers/enad-provider.d.ts +93 -0
- package/dist/client/global/providers/enad-provider.d.ts.map +1 -0
- package/dist/client/global/providers/enad-provider.mjs +74 -0
- package/dist/client/global/providers/enad-provider.mjs.map +1 -0
- package/dist/client/icons/adapters/carbon.d.ts +12 -0
- package/dist/client/icons/adapters/carbon.d.ts.map +1 -0
- package/dist/client/icons/adapters/carbon.mjs +62 -0
- package/dist/client/icons/adapters/carbon.mjs.map +1 -0
- package/dist/client/icons/adapters/hugeicons.d.ts +13 -0
- package/dist/client/icons/adapters/hugeicons.d.ts.map +1 -0
- package/dist/client/icons/adapters/hugeicons.mjs +66 -0
- package/dist/client/icons/adapters/hugeicons.mjs.map +1 -0
- package/dist/client/icons/adapters/lucide.d.ts +12 -0
- package/dist/client/icons/adapters/lucide.d.ts.map +1 -0
- package/dist/client/icons/adapters/lucide.mjs +62 -0
- package/dist/client/icons/adapters/lucide.mjs.map +1 -0
- package/dist/client/icons/adapters/phosphor.d.ts +14 -0
- package/dist/client/icons/adapters/phosphor.d.ts.map +1 -0
- package/dist/client/icons/adapters/phosphor.mjs +107 -0
- package/dist/client/icons/adapters/phosphor.mjs.map +1 -0
- package/dist/client/icons/icon-context.d.ts +24 -0
- package/dist/client/icons/icon-context.d.ts.map +1 -0
- package/dist/client/icons/icon-context.mjs +23 -0
- package/dist/client/icons/icon-context.mjs.map +1 -0
- package/dist/client/icons/index.d.ts +7 -0
- package/dist/client/icons/index.mjs +6 -0
- package/dist/client/icons/types.d.ts +63 -0
- package/dist/client/icons/types.d.ts.map +1 -0
- package/dist/client/icons/types.mjs +1 -0
- package/dist/client/motion/config.d.ts +33 -0
- package/dist/client/motion/config.d.ts.map +1 -0
- package/dist/client/motion/config.mjs +40 -0
- package/dist/client/motion/config.mjs.map +1 -0
- package/dist/client/motion/hover.d.ts +34 -0
- package/dist/client/motion/hover.d.ts.map +1 -0
- package/dist/client/motion/hover.mjs +45 -0
- package/dist/client/motion/hover.mjs.map +1 -0
- package/dist/client/motion/index.d.ts +4 -0
- package/dist/client/motion/index.mjs +4 -0
- package/dist/client/motion/stagger.d.ts +34 -0
- package/dist/client/motion/stagger.d.ts.map +1 -0
- package/dist/client/motion/stagger.mjs +43 -0
- package/dist/client/motion/stagger.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/@swc_helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_default.mjs +13 -0
- package/dist/client/node_modules/.pnpm/@swc_helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_default.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/@swc_helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_wildcard.mjs +34 -0
- package/dist/client/node_modules/.pnpm/@swc_helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_wildcard.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/app-router-headers.mjs +105 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/app-router-headers.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/forbidden.mjs +48 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/forbidden.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/hooks-server-context.mjs +39 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/hooks-server-context.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.mjs +62 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/is-next-router-error.mjs +28 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/is-next-router-error.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/navigation.mjs +156 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/navigation.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/navigation.react-server.mjs +71 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/navigation.react-server.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/not-found.mjs +45 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/not-found.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/readonly-url-search-params.mjs +44 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/readonly-url-search-params.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/redirect-error.mjs +49 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/redirect-error.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/redirect-status-code.mjs +27 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/redirect-status-code.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/redirect.mjs +83 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/redirect.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/static-generation-bailout.mjs +39 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/static-generation-bailout.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/unauthorized.mjs +49 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/unauthorized.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/unrecognized-action-error.mjs +38 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/unrecognized-action-error.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/unstable-rethrow.browser.mjs +29 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/unstable-rethrow.browser.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/unstable-rethrow.mjs +30 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/unstable-rethrow.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/unstable-rethrow.server.mjs +37 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/client/components/unstable-rethrow.server.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/@edge-runtime/cookies/index.mjs +310 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/compiled/@edge-runtime/cookies/index.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/lib/framework/boundary-constants.mjs +34 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/lib/framework/boundary-constants.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/lib/scheduler.mjs +47 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/lib/scheduler.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/action-async-storage-instance.mjs +18 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/action-async-storage-instance.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/action-async-storage.external.mjs +18 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/action-async-storage.external.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/after-task-async-storage-instance.mjs +18 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/after-task-async-storage-instance.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/after-task-async-storage.external.mjs +18 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/after-task-async-storage.external.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/async-local-storage.mjs +65 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/async-local-storage.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/dynamic-rendering.mjs +506 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/dynamic-rendering.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/staged-rendering.mjs +86 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/staged-rendering.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/work-async-storage-instance.mjs +18 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/work-async-storage-instance.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/work-async-storage.external.mjs +18 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/work-async-storage.external.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.mjs +18 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/work-unit-async-storage.external.mjs +186 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/app-render/work-unit-async-storage.external.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.mjs +66 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/create-deduped-by-callsite-server-error-logger.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/dynamic-rendering-utils.mjs +66 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/dynamic-rendering-utils.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/lib/router-utils/is-postpone.mjs +20 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/lib/router-utils/is-postpone.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/request/cookies.mjs +185 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/request/cookies.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/request/draft-mode.mjs +169 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/request/draft-mode.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/request/headers.mjs +184 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/request/headers.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/request/utils.mjs +52 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/request/utils.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/web/spec-extension/adapters/headers.mjs +138 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/web/spec-extension/adapters/headers.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/web/spec-extension/adapters/reflect.mjs +32 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/web/spec-extension/adapters/reflect.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.mjs +165 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/web/spec-extension/cookies.mjs +29 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/server/web/spec-extension/cookies.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.mjs +47 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.mjs +52 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/invariant-error.mjs +22 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/invariant-error.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.mjs +34 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/promise-with-resolvers.mjs +29 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/promise-with-resolvers.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/segment.mjs +79 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/segment.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.mjs +32 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/headers.mjs +15 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/headers.mjs.map +1 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/navigation.mjs +11 -0
- package/dist/client/node_modules/.pnpm/next@16.0.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next/navigation.mjs.map +1 -0
- package/dist/client/search/actions/searchAction.d.ts +7 -0
- package/dist/client/search/actions/searchAction.d.ts.map +1 -0
- package/dist/client/search/actions/searchAction.mjs +17 -0
- package/dist/client/search/actions/searchAction.mjs.map +1 -0
- package/dist/client/search/components/search-bar.d.ts +16 -0
- package/dist/client/search/components/search-bar.d.ts.map +1 -0
- package/dist/client/search/components/search-bar.mjs +33 -0
- package/dist/client/search/components/search-bar.mjs.map +1 -0
- package/dist/client/search/hooks/useSearch.d.ts +20 -0
- package/dist/client/search/hooks/useSearch.d.ts.map +1 -0
- package/dist/client/search/hooks/useSearch.mjs +47 -0
- package/dist/client/search/hooks/useSearch.mjs.map +1 -0
- package/dist/client/search/index.d.ts +2 -0
- package/dist/client/search/index.mjs +2 -0
- package/dist/client/storefront/blocks/accordion-block.d.ts +12 -0
- package/dist/client/storefront/blocks/accordion-block.d.ts.map +1 -0
- package/dist/client/storefront/blocks/accordion-block.mjs +37 -0
- package/dist/client/storefront/blocks/accordion-block.mjs.map +1 -0
- package/dist/client/storefront/blocks/card-image-with-caption.d.ts +13 -0
- package/dist/client/storefront/blocks/card-image-with-caption.d.ts.map +1 -0
- package/dist/client/storefront/blocks/card-image-with-caption.mjs +30 -0
- package/dist/client/storefront/blocks/card-image-with-caption.mjs.map +1 -0
- package/dist/client/storefront/blocks/card-video.d.ts +15 -0
- package/dist/client/storefront/blocks/card-video.d.ts.map +1 -0
- package/dist/client/storefront/blocks/card-video.mjs +51 -0
- package/dist/client/storefront/blocks/card-video.mjs.map +1 -0
- package/dist/client/storefront/blocks/content-with-gallery.d.ts +17 -0
- package/dist/client/storefront/blocks/content-with-gallery.d.ts.map +1 -0
- package/dist/client/storefront/blocks/content-with-gallery.mjs +71 -0
- package/dist/client/storefront/blocks/content-with-gallery.mjs.map +1 -0
- package/dist/client/storefront/blocks/content-with-image-product-data.d.ts +18 -0
- package/dist/client/storefront/blocks/content-with-image-product-data.d.ts.map +1 -0
- package/dist/client/storefront/blocks/content-with-image-product-data.mjs +69 -0
- package/dist/client/storefront/blocks/content-with-image-product-data.mjs.map +1 -0
- package/dist/client/storefront/blocks/gallery-with-caption.d.ts +14 -0
- package/dist/client/storefront/blocks/gallery-with-caption.d.ts.map +1 -0
- package/dist/client/storefront/blocks/gallery-with-caption.mjs +29 -0
- package/dist/client/storefront/blocks/gallery-with-caption.mjs.map +1 -0
- package/dist/client/storefront/blocks/gallery-with-link-blocks.d.ts +12 -0
- package/dist/client/storefront/blocks/gallery-with-link-blocks.d.ts.map +1 -0
- package/dist/client/storefront/blocks/gallery-with-link-blocks.mjs +31 -0
- package/dist/client/storefront/blocks/gallery-with-link-blocks.mjs.map +1 -0
- package/dist/client/storefront/blocks/gallery.d.ts +13 -0
- package/dist/client/storefront/blocks/gallery.d.ts.map +1 -0
- package/dist/client/storefront/blocks/gallery.mjs +54 -0
- package/dist/client/storefront/blocks/gallery.mjs.map +1 -0
- package/dist/client/storefront/blocks/hero.d.ts +8 -0
- package/dist/client/storefront/blocks/hero.d.ts.map +1 -0
- package/dist/client/storefront/blocks/hero.mjs +265 -0
- package/dist/client/storefront/blocks/hero.mjs.map +1 -0
- package/dist/client/storefront/blocks/image-block.d.ts +13 -0
- package/dist/client/storefront/blocks/image-block.d.ts.map +1 -0
- package/dist/client/storefront/blocks/image-block.mjs +29 -0
- package/dist/client/storefront/blocks/image-block.mjs.map +1 -0
- package/dist/client/storefront/blocks/index.d.ts +22 -0
- package/dist/client/storefront/blocks/index.mjs +21 -0
- package/dist/client/storefront/blocks/link-block-small.d.ts +13 -0
- package/dist/client/storefront/blocks/link-block-small.d.ts.map +1 -0
- package/dist/client/storefront/blocks/link-block-small.mjs +34 -0
- package/dist/client/storefront/blocks/link-block-small.mjs.map +1 -0
- package/dist/client/storefront/blocks/link-block.d.ts +8 -0
- package/dist/client/storefront/blocks/link-block.d.ts.map +1 -0
- package/dist/client/storefront/blocks/link-block.mjs +139 -0
- package/dist/client/storefront/blocks/link-block.mjs.map +1 -0
- package/dist/client/storefront/blocks/product-card-parts.d.ts +77 -0
- package/dist/client/storefront/blocks/product-card-parts.d.ts.map +1 -0
- package/dist/client/storefront/blocks/product-card-parts.mjs +112 -0
- package/dist/client/storefront/blocks/product-card-parts.mjs.map +1 -0
- package/dist/client/storefront/blocks/product-card.d.ts +8 -0
- package/dist/client/storefront/blocks/product-card.d.ts.map +1 -0
- package/dist/client/storefront/blocks/product-card.mjs +228 -0
- package/dist/client/storefront/blocks/product-card.mjs.map +1 -0
- package/dist/client/storefront/blocks/product-image.d.ts +16 -0
- package/dist/client/storefront/blocks/product-image.d.ts.map +1 -0
- package/dist/client/storefront/blocks/product-image.mjs +81 -0
- package/dist/client/storefront/blocks/product-image.mjs.map +1 -0
- package/dist/client/storefront/blocks/spacer.d.ts +10 -0
- package/dist/client/storefront/blocks/spacer.d.ts.map +1 -0
- package/dist/client/storefront/blocks/spacer.mjs +19 -0
- package/dist/client/storefront/blocks/spacer.mjs.map +1 -0
- package/dist/client/storefront/blocks/text-content-with-image.d.ts +8 -0
- package/dist/client/storefront/blocks/text-content-with-image.d.ts.map +1 -0
- package/dist/client/storefront/blocks/text-content-with-image.mjs +218 -0
- package/dist/client/storefront/blocks/text-content-with-image.mjs.map +1 -0
- package/dist/client/storefront/blocks/text-content.d.ts +8 -0
- package/dist/client/storefront/blocks/text-content.d.ts.map +1 -0
- package/dist/client/storefront/blocks/text-content.mjs +165 -0
- package/dist/client/storefront/blocks/text-content.mjs.map +1 -0
- package/dist/client/storefront/blocks/truncated-text.d.ts +13 -0
- package/dist/client/storefront/blocks/truncated-text.d.ts.map +1 -0
- package/dist/client/storefront/blocks/truncated-text.mjs +42 -0
- package/dist/client/storefront/blocks/truncated-text.mjs.map +1 -0
- package/dist/client/storefront/blocks/variable-text-content.d.ts +11 -0
- package/dist/client/storefront/blocks/variable-text-content.d.ts.map +1 -0
- package/dist/client/storefront/blocks/variable-text-content.mjs +17 -0
- package/dist/client/storefront/blocks/variable-text-content.mjs.map +1 -0
- package/dist/client/storefront/carousel/index.d.ts +2 -0
- package/dist/client/storefront/carousel/index.mjs +2 -0
- package/dist/client/storefront/carousel/swipeable-carousel.d.ts +26 -0
- package/dist/client/storefront/carousel/swipeable-carousel.d.ts.map +1 -0
- package/dist/client/storefront/carousel/swipeable-carousel.mjs +50 -0
- package/dist/client/storefront/carousel/swipeable-carousel.mjs.map +1 -0
- package/dist/client/storefront/checkout/address-form.d.ts +48 -0
- package/dist/client/storefront/checkout/address-form.d.ts.map +1 -0
- package/dist/client/storefront/checkout/address-form.mjs +114 -0
- package/dist/client/storefront/checkout/address-form.mjs.map +1 -0
- package/dist/client/storefront/checkout/cart-summary.d.ts +61 -0
- package/dist/client/storefront/checkout/cart-summary.d.ts.map +1 -0
- package/dist/client/storefront/checkout/cart-summary.mjs +160 -0
- package/dist/client/storefront/checkout/cart-summary.mjs.map +1 -0
- package/dist/client/storefront/checkout/checkout-stepper.d.ts +22 -0
- package/dist/client/storefront/checkout/checkout-stepper.d.ts.map +1 -0
- package/dist/client/storefront/checkout/checkout-stepper.mjs +43 -0
- package/dist/client/storefront/checkout/checkout-stepper.mjs.map +1 -0
- package/dist/client/storefront/checkout/index.d.ts +8 -0
- package/dist/client/storefront/checkout/index.mjs +8 -0
- package/dist/client/storefront/checkout/order-confirmation.d.ts +21 -0
- package/dist/client/storefront/checkout/order-confirmation.d.ts.map +1 -0
- package/dist/client/storefront/checkout/order-confirmation.mjs +35 -0
- package/dist/client/storefront/checkout/order-confirmation.mjs.map +1 -0
- package/dist/client/storefront/checkout/order-summary.d.ts +48 -0
- package/dist/client/storefront/checkout/order-summary.d.ts.map +1 -0
- package/dist/client/storefront/checkout/order-summary.mjs +143 -0
- package/dist/client/storefront/checkout/order-summary.mjs.map +1 -0
- package/dist/client/storefront/checkout/payment-method-selector.d.ts +29 -0
- package/dist/client/storefront/checkout/payment-method-selector.d.ts.map +1 -0
- package/dist/client/storefront/checkout/payment-method-selector.mjs +49 -0
- package/dist/client/storefront/checkout/payment-method-selector.mjs.map +1 -0
- package/dist/client/storefront/checkout/shipping-method-selector.d.ts +37 -0
- package/dist/client/storefront/checkout/shipping-method-selector.d.ts.map +1 -0
- package/dist/client/storefront/checkout/shipping-method-selector.mjs +59 -0
- package/dist/client/storefront/checkout/shipping-method-selector.mjs.map +1 -0
- package/dist/client/storefront/components/address-field-group.d.ts +45 -0
- package/dist/client/storefront/components/address-field-group.d.ts.map +1 -0
- package/dist/client/storefront/components/address-field-group.mjs +64 -0
- package/dist/client/storefront/components/address-field-group.mjs.map +1 -0
- package/dist/client/storefront/components/badge.d.ts +17 -0
- package/dist/client/storefront/components/badge.d.ts.map +1 -0
- package/dist/client/storefront/components/badge.mjs +22 -0
- package/dist/client/storefront/components/badge.mjs.map +1 -0
- package/dist/client/storefront/components/country-redirect.d.ts +41 -0
- package/dist/client/storefront/components/country-redirect.d.ts.map +1 -0
- package/dist/client/storefront/components/country-redirect.mjs +97 -0
- package/dist/client/storefront/components/country-redirect.mjs.map +1 -0
- package/dist/client/storefront/components/empty-state.d.ts +49 -0
- package/dist/client/storefront/components/empty-state.d.ts.map +1 -0
- package/dist/client/storefront/components/empty-state.mjs +56 -0
- package/dist/client/storefront/components/empty-state.mjs.map +1 -0
- package/dist/client/storefront/components/image-lightbox.d.ts +25 -0
- package/dist/client/storefront/components/image-lightbox.d.ts.map +1 -0
- package/dist/client/storefront/components/image-lightbox.mjs +256 -0
- package/dist/client/storefront/components/image-lightbox.mjs.map +1 -0
- package/dist/client/storefront/components/infinite-scroll.d.ts +59 -0
- package/dist/client/storefront/components/infinite-scroll.d.ts.map +1 -0
- package/dist/client/storefront/components/infinite-scroll.mjs +81 -0
- package/dist/client/storefront/components/infinite-scroll.mjs.map +1 -0
- package/dist/client/storefront/components/language-selector.d.ts +16 -0
- package/dist/client/storefront/components/language-selector.d.ts.map +1 -0
- package/dist/client/storefront/components/language-selector.mjs +55 -0
- package/dist/client/storefront/components/language-selector.mjs.map +1 -0
- package/dist/client/storefront/components/newsletter-signup.d.ts +27 -0
- package/dist/client/storefront/components/newsletter-signup.d.ts.map +1 -0
- package/dist/client/storefront/components/newsletter-signup.mjs +87 -0
- package/dist/client/storefront/components/newsletter-signup.mjs.map +1 -0
- package/dist/client/storefront/components/price.d.ts +28 -0
- package/dist/client/storefront/components/price.d.ts.map +1 -0
- package/dist/client/storefront/components/price.mjs +47 -0
- package/dist/client/storefront/components/price.mjs.map +1 -0
- package/dist/client/storefront/components/product-recommendations.d.ts +31 -0
- package/dist/client/storefront/components/product-recommendations.d.ts.map +1 -0
- package/dist/client/storefront/components/product-recommendations.mjs +88 -0
- package/dist/client/storefront/components/product-recommendations.mjs.map +1 -0
- package/dist/client/storefront/components/product-tabs.d.ts +21 -0
- package/dist/client/storefront/components/product-tabs.d.ts.map +1 -0
- package/dist/client/storefront/components/product-tabs.mjs +56 -0
- package/dist/client/storefront/components/product-tabs.mjs.map +1 -0
- package/dist/client/storefront/components/quick-view.d.ts +39 -0
- package/dist/client/storefront/components/quick-view.d.ts.map +1 -0
- package/dist/client/storefront/components/quick-view.mjs +155 -0
- package/dist/client/storefront/components/quick-view.mjs.map +1 -0
- package/dist/client/storefront/components/review-summary.d.ts +28 -0
- package/dist/client/storefront/components/review-summary.d.ts.map +1 -0
- package/dist/client/storefront/components/review-summary.mjs +79 -0
- package/dist/client/storefront/components/review-summary.mjs.map +1 -0
- package/dist/client/storefront/components/search-autocomplete.d.ts +41 -0
- package/dist/client/storefront/components/search-autocomplete.d.ts.map +1 -0
- package/dist/client/storefront/components/search-autocomplete.mjs +167 -0
- package/dist/client/storefront/components/search-autocomplete.mjs.map +1 -0
- package/dist/client/storefront/components/section-nav.d.ts +30 -0
- package/dist/client/storefront/components/section-nav.d.ts.map +1 -0
- package/dist/client/storefront/components/section-nav.mjs +128 -0
- package/dist/client/storefront/components/section-nav.mjs.map +1 -0
- package/dist/client/storefront/components/share-button.d.ts +34 -0
- package/dist/client/storefront/components/share-button.d.ts.map +1 -0
- package/dist/client/storefront/components/share-button.mjs +77 -0
- package/dist/client/storefront/components/share-button.mjs.map +1 -0
- package/dist/client/storefront/components/skeleton.d.ts +30 -0
- package/dist/client/storefront/components/skeleton.d.ts.map +1 -0
- package/dist/client/storefront/components/skeleton.mjs +88 -0
- package/dist/client/storefront/components/skeleton.mjs.map +1 -0
- package/dist/client/storefront/components/star-rating.d.ts +28 -0
- package/dist/client/storefront/components/star-rating.d.ts.map +1 -0
- package/dist/client/storefront/components/star-rating.mjs +167 -0
- package/dist/client/storefront/components/star-rating.mjs.map +1 -0
- package/dist/client/storefront/components/testimonial.d.ts +38 -0
- package/dist/client/storefront/components/testimonial.d.ts.map +1 -0
- package/dist/client/storefront/components/testimonial.mjs +64 -0
- package/dist/client/storefront/components/testimonial.mjs.map +1 -0
- package/dist/client/storefront/components/trust-badges.d.ts +23 -0
- package/dist/client/storefront/components/trust-badges.d.ts.map +1 -0
- package/dist/client/storefront/components/trust-badges.mjs +30 -0
- package/dist/client/storefront/components/trust-badges.mjs.map +1 -0
- package/dist/client/storefront/components/variant-selector.d.ts +32 -0
- package/dist/client/storefront/components/variant-selector.d.ts.map +1 -0
- package/dist/client/storefront/components/variant-selector.mjs +43 -0
- package/dist/client/storefront/components/variant-selector.mjs.map +1 -0
- package/dist/client/storefront/components/wishlist-toggle.d.ts +25 -0
- package/dist/client/storefront/components/wishlist-toggle.d.ts.map +1 -0
- package/dist/client/storefront/components/wishlist-toggle.mjs +32 -0
- package/dist/client/storefront/components/wishlist-toggle.mjs.map +1 -0
- package/dist/client/storefront/filters/filter-chip.d.ts +20 -0
- package/dist/client/storefront/filters/filter-chip.d.ts.map +1 -0
- package/dist/client/storefront/filters/filter-chip.mjs +22 -0
- package/dist/client/storefront/filters/filter-chip.mjs.map +1 -0
- package/dist/client/storefront/filters/filter-group.d.ts +35 -0
- package/dist/client/storefront/filters/filter-group.d.ts.map +1 -0
- package/dist/client/storefront/filters/filter-group.mjs +93 -0
- package/dist/client/storefront/filters/filter-group.mjs.map +1 -0
- package/dist/client/storefront/filters/filter-panel.d.ts +38 -0
- package/dist/client/storefront/filters/filter-panel.d.ts.map +1 -0
- package/dist/client/storefront/filters/filter-panel.mjs +109 -0
- package/dist/client/storefront/filters/filter-panel.mjs.map +1 -0
- package/dist/client/storefront/filters/index.d.ts +6 -0
- package/dist/client/storefront/filters/index.mjs +6 -0
- package/dist/client/storefront/filters/sort-select.d.ts +23 -0
- package/dist/client/storefront/filters/sort-select.d.ts.map +1 -0
- package/dist/client/storefront/filters/sort-select.mjs +41 -0
- package/dist/client/storefront/filters/sort-select.mjs.map +1 -0
- package/dist/client/storefront/filters/toggle-list-view.d.ts +16 -0
- package/dist/client/storefront/filters/toggle-list-view.d.ts.map +1 -0
- package/dist/client/storefront/filters/toggle-list-view.mjs +36 -0
- package/dist/client/storefront/filters/toggle-list-view.mjs.map +1 -0
- package/dist/client/storefront/hooks/use-section-observer.d.ts +10 -0
- package/dist/client/storefront/hooks/use-section-observer.d.ts.map +1 -0
- package/dist/client/storefront/hooks/use-section-observer.mjs +55 -0
- package/dist/client/storefront/hooks/use-section-observer.mjs.map +1 -0
- package/dist/client/storefront/index.d.ts +19 -0
- package/dist/client/storefront/index.mjs +18 -0
- package/dist/client/storefront/layout/footer.d.ts +16 -0
- package/dist/client/storefront/layout/footer.d.ts.map +1 -0
- package/dist/client/storefront/layout/footer.mjs +64 -0
- package/dist/client/storefront/layout/footer.mjs.map +1 -0
- package/dist/client/storefront/layout/header.d.ts +20 -0
- package/dist/client/storefront/layout/header.d.ts.map +1 -0
- package/dist/client/storefront/layout/header.mjs +326 -0
- package/dist/client/storefront/layout/header.mjs.map +1 -0
- package/dist/client/storefront/layout/index.d.ts +6 -0
- package/dist/client/storefront/layout/index.mjs +5 -0
- package/dist/client/storefront/layout/mobile-menu-drawer.d.ts +14 -0
- package/dist/client/storefront/layout/mobile-menu-drawer.d.ts.map +1 -0
- package/dist/client/storefront/layout/mobile-menu-drawer.mjs +83 -0
- package/dist/client/storefront/layout/mobile-menu-drawer.mjs.map +1 -0
- package/dist/client/storefront/layout/promotion-bar.d.ts +13 -0
- package/dist/client/storefront/layout/promotion-bar.d.ts.map +1 -0
- package/dist/client/storefront/layout/promotion-bar.mjs +63 -0
- package/dist/client/storefront/layout/promotion-bar.mjs.map +1 -0
- package/dist/client/storefront/primitives/breadcrumbs.d.ts +20 -0
- package/dist/client/storefront/primitives/breadcrumbs.d.ts.map +1 -0
- package/dist/client/storefront/primitives/breadcrumbs.mjs +36 -0
- package/dist/client/storefront/primitives/breadcrumbs.mjs.map +1 -0
- package/dist/client/storefront/primitives/button.d.ts +25 -0
- package/dist/client/storefront/primitives/button.d.ts.map +1 -0
- package/dist/client/storefront/primitives/button.mjs +42 -0
- package/dist/client/storefront/primitives/button.mjs.map +1 -0
- package/dist/client/storefront/primitives/checkbox.d.ts +25 -0
- package/dist/client/storefront/primitives/checkbox.d.ts.map +1 -0
- package/dist/client/storefront/primitives/checkbox.mjs +39 -0
- package/dist/client/storefront/primitives/checkbox.mjs.map +1 -0
- package/dist/client/storefront/primitives/country-select.d.ts +15 -0
- package/dist/client/storefront/primitives/country-select.d.ts.map +1 -0
- package/dist/client/storefront/primitives/country-select.mjs +33 -0
- package/dist/client/storefront/primitives/country-select.mjs.map +1 -0
- package/dist/client/storefront/primitives/download-item.d.ts +18 -0
- package/dist/client/storefront/primitives/download-item.d.ts.map +1 -0
- package/dist/client/storefront/primitives/download-item.mjs +27 -0
- package/dist/client/storefront/primitives/download-item.mjs.map +1 -0
- package/dist/client/storefront/primitives/index.d.ts +11 -0
- package/dist/client/storefront/primitives/index.mjs +11 -0
- package/dist/client/storefront/primitives/input.d.ts +39 -0
- package/dist/client/storefront/primitives/input.d.ts.map +1 -0
- package/dist/client/storefront/primitives/input.mjs +87 -0
- package/dist/client/storefront/primitives/input.mjs.map +1 -0
- package/dist/client/storefront/primitives/pagination.d.ts +18 -0
- package/dist/client/storefront/primitives/pagination.d.ts.map +1 -0
- package/dist/client/storefront/primitives/pagination.mjs +59 -0
- package/dist/client/storefront/primitives/pagination.mjs.map +1 -0
- package/dist/client/storefront/primitives/password-input.d.ts +16 -0
- package/dist/client/storefront/primitives/password-input.d.ts.map +1 -0
- package/dist/client/storefront/primitives/password-input.mjs +21 -0
- package/dist/client/storefront/primitives/password-input.mjs.map +1 -0
- package/dist/client/storefront/primitives/quick-links.d.ts +18 -0
- package/dist/client/storefront/primitives/quick-links.d.ts.map +1 -0
- package/dist/client/storefront/primitives/quick-links.mjs +22 -0
- package/dist/client/storefront/primitives/quick-links.mjs.map +1 -0
- package/dist/client/storefront/primitives/select.d.ts +32 -0
- package/dist/client/storefront/primitives/select.d.ts.map +1 -0
- package/dist/client/storefront/primitives/select.mjs +49 -0
- package/dist/client/storefront/primitives/select.mjs.map +1 -0
- package/dist/client/storefront/primitives/text-link.d.ts +16 -0
- package/dist/client/storefront/primitives/text-link.d.ts.map +1 -0
- package/dist/client/storefront/primitives/text-link.mjs +20 -0
- package/dist/client/storefront/primitives/text-link.mjs.map +1 -0
- package/dist/client/storefront/product/color-swatch.d.ts +20 -0
- package/dist/client/storefront/product/color-swatch.d.ts.map +1 -0
- package/dist/client/storefront/product/color-swatch.mjs +23 -0
- package/dist/client/storefront/product/color-swatch.mjs.map +1 -0
- package/dist/client/storefront/product/index.d.ts +5 -0
- package/dist/client/storefront/product/index.mjs +5 -0
- package/dist/client/storefront/product/material-selector.d.ts +24 -0
- package/dist/client/storefront/product/material-selector.d.ts.map +1 -0
- package/dist/client/storefront/product/material-selector.mjs +35 -0
- package/dist/client/storefront/product/material-selector.mjs.map +1 -0
- package/dist/client/storefront/product/product-usp.d.ts +14 -0
- package/dist/client/storefront/product/product-usp.d.ts.map +1 -0
- package/dist/client/storefront/product/product-usp.mjs +19 -0
- package/dist/client/storefront/product/product-usp.mjs.map +1 -0
- package/dist/client/storefront/product/quantity-picker.d.ts +22 -0
- package/dist/client/storefront/product/quantity-picker.d.ts.map +1 -0
- package/dist/client/storefront/product/quantity-picker.mjs +47 -0
- package/dist/client/storefront/product/quantity-picker.mjs.map +1 -0
- package/dist/client/storefront/types.d.ts +287 -0
- package/dist/client/storefront/types.d.ts.map +1 -0
- package/dist/client/storefront/types.mjs +20 -0
- package/dist/client/storefront/types.mjs.map +1 -0
- package/dist/client/theme/apply.d.ts +21 -0
- package/dist/client/theme/apply.d.ts.map +1 -0
- package/dist/client/theme/apply.mjs +163 -0
- package/dist/client/theme/apply.mjs.map +1 -0
- package/dist/client/theme/cli.mjs +472 -0
- package/dist/client/theme/cli.mjs.map +1 -0
- package/dist/client/theme/codec.d.ts +31 -0
- package/dist/client/theme/codec.d.ts.map +1 -0
- package/dist/client/theme/codec.mjs +92 -0
- package/dist/client/theme/codec.mjs.map +1 -0
- package/dist/client/theme/defaults.d.ts +49 -0
- package/dist/client/theme/defaults.d.ts.map +1 -0
- package/dist/client/theme/defaults.mjs +94 -0
- package/dist/client/theme/defaults.mjs.map +1 -0
- package/dist/client/theme/index.d.ts +5 -0
- package/dist/client/theme/index.mjs +5 -0
- package/dist/client/theme/scan.d.ts +19 -0
- package/dist/client/theme/scan.d.ts.map +1 -0
- package/dist/client/theme/scan.mjs +28 -0
- package/dist/client/theme/scan.mjs.map +1 -0
- package/dist/client/ui/accordion.d.ts +29 -0
- package/dist/client/ui/accordion.d.ts.map +1 -0
- package/dist/client/ui/accordion.mjs +53 -0
- package/dist/client/ui/accordion.mjs.map +1 -0
- package/dist/client/ui/alert.d.ts +25 -0
- package/dist/client/ui/alert.d.ts.map +1 -0
- package/dist/client/ui/alert.mjs +39 -0
- package/dist/client/ui/alert.mjs.map +1 -0
- package/dist/client/ui/avatar.d.ts +20 -0
- package/dist/client/ui/avatar.d.ts.map +1 -0
- package/dist/client/ui/avatar.mjs +31 -0
- package/dist/client/ui/avatar.mjs.map +1 -0
- package/dist/client/ui/breadcrumb.d.ts +38 -0
- package/dist/client/ui/breadcrumb.d.ts.map +1 -0
- package/dist/client/ui/breadcrumb.mjs +70 -0
- package/dist/client/ui/breadcrumb.mjs.map +1 -0
- package/dist/client/ui/button.d.ts +22 -0
- package/dist/client/ui/button.d.ts.map +1 -0
- package/dist/client/ui/button.mjs +51 -0
- package/dist/client/ui/button.mjs.map +1 -0
- package/dist/client/ui/card.d.ts +35 -0
- package/dist/client/ui/card.d.ts.map +1 -0
- package/dist/client/ui/card.mjs +57 -0
- package/dist/client/ui/card.mjs.map +1 -0
- package/dist/client/ui/carousel.d.ts +48 -0
- package/dist/client/ui/carousel.d.ts.map +1 -0
- package/dist/client/ui/carousel.mjs +136 -0
- package/dist/client/ui/carousel.mjs.map +1 -0
- package/dist/client/ui/checkbox.d.ts +12 -0
- package/dist/client/ui/checkbox.d.ts.map +1 -0
- package/dist/client/ui/checkbox.mjs +24 -0
- package/dist/client/ui/checkbox.mjs.map +1 -0
- package/dist/client/ui/collapsible.d.ts +16 -0
- package/dist/client/ui/collapsible.d.ts.map +1 -0
- package/dist/client/ui/collapsible.mjs +26 -0
- package/dist/client/ui/collapsible.mjs.map +1 -0
- package/dist/client/ui/dialog.d.ts +45 -0
- package/dist/client/ui/dialog.d.ts.map +1 -0
- package/dist/client/ui/dialog.mjs +77 -0
- package/dist/client/ui/dialog.mjs.map +1 -0
- package/dist/client/ui/hover-card.d.ts +20 -0
- package/dist/client/ui/hover-card.d.ts.map +1 -0
- package/dist/client/ui/hover-card.mjs +31 -0
- package/dist/client/ui/hover-card.mjs.map +1 -0
- package/dist/client/ui/input.d.ts +18 -0
- package/dist/client/ui/input.d.ts.map +1 -0
- package/dist/client/ui/input.mjs +28 -0
- package/dist/client/ui/input.mjs.map +1 -0
- package/dist/client/ui/label.d.ts +12 -0
- package/dist/client/ui/label.d.ts.map +1 -0
- package/dist/client/ui/label.mjs +16 -0
- package/dist/client/ui/label.mjs.map +1 -0
- package/dist/client/ui/mid-truncate.d.ts +38 -0
- package/dist/client/ui/mid-truncate.d.ts.map +1 -0
- package/dist/client/ui/mid-truncate.mjs +52 -0
- package/dist/client/ui/mid-truncate.mjs.map +1 -0
- package/dist/client/ui/navigation-menu.d.ts +47 -0
- package/dist/client/ui/navigation-menu.d.ts.map +1 -0
- package/dist/client/ui/navigation-menu.mjs +83 -0
- package/dist/client/ui/navigation-menu.mjs.map +1 -0
- package/dist/client/ui/pagination.d.ts +41 -0
- package/dist/client/ui/pagination.d.ts.map +1 -0
- package/dist/client/ui/pagination.mjs +83 -0
- package/dist/client/ui/pagination.mjs.map +1 -0
- package/dist/client/ui/popover.d.ts +35 -0
- package/dist/client/ui/popover.d.ts.map +1 -0
- package/dist/client/ui/popover.mjs +58 -0
- package/dist/client/ui/popover.mjs.map +1 -0
- package/dist/client/ui/progress.d.ts +13 -0
- package/dist/client/ui/progress.d.ts.map +1 -0
- package/dist/client/ui/progress.mjs +23 -0
- package/dist/client/ui/progress.mjs.map +1 -0
- package/dist/client/ui/select.d.ts +53 -0
- package/dist/client/ui/select.d.ts.map +1 -0
- package/dist/client/ui/select.mjs +103 -0
- package/dist/client/ui/select.mjs.map +1 -0
- package/dist/client/ui/separator.d.ts +14 -0
- package/dist/client/ui/separator.d.ts.map +1 -0
- package/dist/client/ui/separator.mjs +18 -0
- package/dist/client/ui/separator.mjs.map +1 -0
- package/dist/client/ui/sheet.d.ts +45 -0
- package/dist/client/ui/sheet.d.ts.map +1 -0
- package/dist/client/ui/sheet.mjs +86 -0
- package/dist/client/ui/sheet.mjs.map +1 -0
- package/dist/client/ui/simple-select.d.ts +32 -0
- package/dist/client/ui/simple-select.d.ts.map +1 -0
- package/dist/client/ui/simple-select.mjs +128 -0
- package/dist/client/ui/simple-select.mjs.map +1 -0
- package/dist/client/ui/stepper.d.ts +38 -0
- package/dist/client/ui/stepper.d.ts.map +1 -0
- package/dist/client/ui/stepper.mjs +90 -0
- package/dist/client/ui/stepper.mjs.map +1 -0
- package/dist/client/ui/tabs.d.ts +24 -0
- package/dist/client/ui/tabs.d.ts.map +1 -0
- package/dist/client/ui/tabs.mjs +38 -0
- package/dist/client/ui/tabs.mjs.map +1 -0
- package/dist/client/ui/toggle-group.d.ts +27 -0
- package/dist/client/ui/toggle-group.d.ts.map +1 -0
- package/dist/client/ui/toggle-group.mjs +49 -0
- package/dist/client/ui/toggle-group.mjs.map +1 -0
- package/dist/client/ui/toggle.d.ts +20 -0
- package/dist/client/ui/toggle.d.ts.map +1 -0
- package/dist/client/ui/toggle.mjs +38 -0
- package/dist/client/ui/toggle.mjs.map +1 -0
- package/dist/client/ui/tooltip.d.ts +24 -0
- package/dist/client/ui/tooltip.d.ts.map +1 -0
- package/dist/client/ui/tooltip.mjs +38 -0
- package/dist/client/ui/tooltip.mjs.map +1 -0
- package/dist/client/ui/utils.d.ts +7 -0
- package/dist/client/ui/utils.d.ts.map +1 -0
- package/dist/client/ui/utils.mjs +10 -0
- package/dist/client/ui/utils.mjs.map +1 -0
- package/dist/client/ui-resolver/accordion.d.ts +15 -0
- package/dist/client/ui-resolver/accordion.d.ts.map +1 -0
- package/dist/client/ui-resolver/accordion.mjs +19 -0
- package/dist/client/ui-resolver/accordion.mjs.map +1 -0
- package/dist/client/ui-resolver/alert.d.ts +13 -0
- package/dist/client/ui-resolver/alert.d.ts.map +1 -0
- package/dist/client/ui-resolver/alert.mjs +17 -0
- package/dist/client/ui-resolver/alert.mjs.map +1 -0
- package/dist/client/ui-resolver/avatar.d.ts +13 -0
- package/dist/client/ui-resolver/avatar.d.ts.map +1 -0
- package/dist/client/ui-resolver/avatar.mjs +17 -0
- package/dist/client/ui-resolver/avatar.mjs.map +1 -0
- package/dist/client/ui-resolver/breadcrumb.d.ts +17 -0
- package/dist/client/ui-resolver/breadcrumb.d.ts.map +1 -0
- package/dist/client/ui-resolver/breadcrumb.mjs +21 -0
- package/dist/client/ui-resolver/breadcrumb.mjs.map +1 -0
- package/dist/client/ui-resolver/button.d.ts +11 -0
- package/dist/client/ui-resolver/button.d.ts.map +1 -0
- package/dist/client/ui-resolver/button.mjs +15 -0
- package/dist/client/ui-resolver/button.mjs.map +1 -0
- package/dist/client/ui-resolver/card.d.ts +17 -0
- package/dist/client/ui-resolver/card.d.ts.map +1 -0
- package/dist/client/ui-resolver/card.mjs +21 -0
- package/dist/client/ui-resolver/card.mjs.map +1 -0
- package/dist/client/ui-resolver/carousel.d.ts +16 -0
- package/dist/client/ui-resolver/carousel.d.ts.map +1 -0
- package/dist/client/ui-resolver/carousel.mjs +19 -0
- package/dist/client/ui-resolver/carousel.mjs.map +1 -0
- package/dist/client/ui-resolver/checkbox.d.ts +11 -0
- package/dist/client/ui-resolver/checkbox.d.ts.map +1 -0
- package/dist/client/ui-resolver/checkbox.mjs +15 -0
- package/dist/client/ui-resolver/checkbox.mjs.map +1 -0
- package/dist/client/ui-resolver/collapsible.d.ts +13 -0
- package/dist/client/ui-resolver/collapsible.d.ts.map +1 -0
- package/dist/client/ui-resolver/collapsible.mjs +17 -0
- package/dist/client/ui-resolver/collapsible.mjs.map +1 -0
- package/dist/client/ui-resolver/context.d.ts +38 -0
- package/dist/client/ui-resolver/context.d.ts.map +1 -0
- package/dist/client/ui-resolver/context.mjs +62 -0
- package/dist/client/ui-resolver/context.mjs.map +1 -0
- package/dist/client/ui-resolver/dialog.d.ts +20 -0
- package/dist/client/ui-resolver/dialog.d.ts.map +1 -0
- package/dist/client/ui-resolver/dialog.mjs +24 -0
- package/dist/client/ui-resolver/dialog.mjs.map +1 -0
- package/dist/client/ui-resolver/hover-card.d.ts +13 -0
- package/dist/client/ui-resolver/hover-card.d.ts.map +1 -0
- package/dist/client/ui-resolver/hover-card.mjs +17 -0
- package/dist/client/ui-resolver/hover-card.mjs.map +1 -0
- package/dist/client/ui-resolver/index.d.ts +29 -0
- package/dist/client/ui-resolver/index.mjs +29 -0
- package/dist/client/ui-resolver/input.d.ts +11 -0
- package/dist/client/ui-resolver/input.d.ts.map +1 -0
- package/dist/client/ui-resolver/input.mjs +15 -0
- package/dist/client/ui-resolver/input.mjs.map +1 -0
- package/dist/client/ui-resolver/label.d.ts +11 -0
- package/dist/client/ui-resolver/label.d.ts.map +1 -0
- package/dist/client/ui-resolver/label.mjs +15 -0
- package/dist/client/ui-resolver/label.mjs.map +1 -0
- package/dist/client/ui-resolver/navigation-menu.d.ts +20 -0
- package/dist/client/ui-resolver/navigation-menu.d.ts.map +1 -0
- package/dist/client/ui-resolver/navigation-menu.mjs +23 -0
- package/dist/client/ui-resolver/navigation-menu.mjs.map +1 -0
- package/dist/client/ui-resolver/pagination.d.ts +17 -0
- package/dist/client/ui-resolver/pagination.d.ts.map +1 -0
- package/dist/client/ui-resolver/pagination.mjs +21 -0
- package/dist/client/ui-resolver/pagination.mjs.map +1 -0
- package/dist/client/ui-resolver/popover.d.ts +14 -0
- package/dist/client/ui-resolver/popover.d.ts.map +1 -0
- package/dist/client/ui-resolver/popover.mjs +18 -0
- package/dist/client/ui-resolver/popover.mjs.map +1 -0
- package/dist/client/ui-resolver/progress.d.ts +11 -0
- package/dist/client/ui-resolver/progress.d.ts.map +1 -0
- package/dist/client/ui-resolver/progress.mjs +15 -0
- package/dist/client/ui-resolver/progress.mjs.map +1 -0
- package/dist/client/ui-resolver/select.d.ts +18 -0
- package/dist/client/ui-resolver/select.d.ts.map +1 -0
- package/dist/client/ui-resolver/select.mjs +22 -0
- package/dist/client/ui-resolver/select.mjs.map +1 -0
- package/dist/client/ui-resolver/separator.d.ts +11 -0
- package/dist/client/ui-resolver/separator.d.ts.map +1 -0
- package/dist/client/ui-resolver/separator.mjs +15 -0
- package/dist/client/ui-resolver/separator.mjs.map +1 -0
- package/dist/client/ui-resolver/sheet.d.ts +18 -0
- package/dist/client/ui-resolver/sheet.d.ts.map +1 -0
- package/dist/client/ui-resolver/sheet.mjs +22 -0
- package/dist/client/ui-resolver/sheet.mjs.map +1 -0
- package/dist/client/ui-resolver/stepper.d.ts +15 -0
- package/dist/client/ui-resolver/stepper.d.ts.map +1 -0
- package/dist/client/ui-resolver/stepper.mjs +19 -0
- package/dist/client/ui-resolver/stepper.mjs.map +1 -0
- package/dist/client/ui-resolver/tabs.d.ts +14 -0
- package/dist/client/ui-resolver/tabs.d.ts.map +1 -0
- package/dist/client/ui-resolver/tabs.mjs +18 -0
- package/dist/client/ui-resolver/tabs.mjs.map +1 -0
- package/dist/client/ui-resolver/toggle-group.d.ts +12 -0
- package/dist/client/ui-resolver/toggle-group.d.ts.map +1 -0
- package/dist/client/ui-resolver/toggle-group.mjs +16 -0
- package/dist/client/ui-resolver/toggle-group.mjs.map +1 -0
- package/dist/client/ui-resolver/toggle.d.ts +11 -0
- package/dist/client/ui-resolver/toggle.d.ts.map +1 -0
- package/dist/client/ui-resolver/toggle.mjs +15 -0
- package/dist/client/ui-resolver/toggle.mjs.map +1 -0
- package/dist/client/ui-resolver/tooltip.d.ts +14 -0
- package/dist/client/ui-resolver/tooltip.d.ts.map +1 -0
- package/dist/client/ui-resolver/tooltip.mjs +18 -0
- package/dist/client/ui-resolver/tooltip.mjs.map +1 -0
- package/dist/client/user/actions/createResetPasswordLinkAction.d.ts +16 -0
- package/dist/client/user/actions/createResetPasswordLinkAction.d.ts.map +1 -0
- package/dist/client/user/actions/createResetPasswordLinkAction.mjs +23 -0
- package/dist/client/user/actions/createResetPasswordLinkAction.mjs.map +1 -0
- package/dist/client/user/actions/getUserAction.d.ts +7 -0
- package/dist/client/user/actions/getUserAction.d.ts.map +1 -0
- package/dist/client/user/actions/getUserAction.mjs +21 -0
- package/dist/client/user/actions/getUserAction.mjs.map +1 -0
- package/dist/client/user/actions/logInUserAction.d.ts +17 -0
- package/dist/client/user/actions/logInUserAction.d.ts.map +1 -0
- package/dist/client/user/actions/logInUserAction.mjs +32 -0
- package/dist/client/user/actions/logInUserAction.mjs.map +1 -0
- package/dist/client/user/actions/logoutUserAction.d.ts +5 -0
- package/dist/client/user/actions/logoutUserAction.d.ts.map +1 -0
- package/dist/client/user/actions/logoutUserAction.mjs +10 -0
- package/dist/client/user/actions/logoutUserAction.mjs.map +1 -0
- package/dist/client/user/actions/registerOrganisationAction.d.ts +14 -0
- package/dist/client/user/actions/registerOrganisationAction.d.ts.map +1 -0
- package/dist/client/user/actions/registerOrganisationAction.mjs +14 -0
- package/dist/client/user/actions/registerOrganisationAction.mjs.map +1 -0
- package/dist/client/user/actions/registerUserAction.d.ts +20 -0
- package/dist/client/user/actions/registerUserAction.d.ts.map +1 -0
- package/dist/client/user/actions/registerUserAction.mjs +44 -0
- package/dist/client/user/actions/registerUserAction.mjs.map +1 -0
- package/dist/client/user/actions/registerUserWithoutRedirectAction.d.ts +46 -0
- package/dist/client/user/actions/registerUserWithoutRedirectAction.d.ts.map +1 -0
- package/dist/client/user/actions/registerUserWithoutRedirectAction.mjs +62 -0
- package/dist/client/user/actions/registerUserWithoutRedirectAction.mjs.map +1 -0
- package/dist/client/user/actions/updatePasswordAction.d.ts +23 -0
- package/dist/client/user/actions/updatePasswordAction.d.ts.map +1 -0
- package/dist/client/user/actions/updatePasswordAction.mjs +33 -0
- package/dist/client/user/actions/updatePasswordAction.mjs.map +1 -0
- package/dist/client/user/api/userRoute.d.ts +5 -0
- package/dist/client/user/api/userRoute.d.ts.map +1 -0
- package/dist/client/user/api/userRoute.mjs +65 -0
- package/dist/client/user/api/userRoute.mjs.map +1 -0
- package/dist/client/user/clients/enad.d.ts +8 -0
- package/dist/client/user/clients/enad.d.ts.map +1 -0
- package/dist/client/user/clients/enad.mjs +19 -0
- package/dist/client/user/clients/enad.mjs.map +1 -0
- package/dist/client/user/components/login-form.d.ts +26 -0
- package/dist/client/user/components/login-form.d.ts.map +1 -0
- package/dist/client/user/components/login-form.mjs +124 -0
- package/dist/client/user/components/login-form.mjs.map +1 -0
- package/dist/client/user/components/reset-password-form.d.ts +23 -0
- package/dist/client/user/components/reset-password-form.d.ts.map +1 -0
- package/dist/client/user/components/reset-password-form.mjs +96 -0
- package/dist/client/user/components/reset-password-form.mjs.map +1 -0
- package/dist/client/user/components/sign-out.d.ts +14 -0
- package/dist/client/user/components/sign-out.d.ts.map +1 -0
- package/dist/client/user/components/sign-out.mjs +21 -0
- package/dist/client/user/components/sign-out.mjs.map +1 -0
- package/dist/client/user/components/signup-form.d.ts +30 -0
- package/dist/client/user/components/signup-form.d.ts.map +1 -0
- package/dist/client/user/components/signup-form.mjs +173 -0
- package/dist/client/user/components/signup-form.mjs.map +1 -0
- package/dist/client/user/components/signup-organisation-form.d.ts +59 -0
- package/dist/client/user/components/signup-organisation-form.d.ts.map +1 -0
- package/dist/client/user/components/signup-organisation-form.mjs +659 -0
- package/dist/client/user/components/signup-organisation-form.mjs.map +1 -0
- package/dist/client/user/components/update-password-form.d.ts +20 -0
- package/dist/client/user/components/update-password-form.d.ts.map +1 -0
- package/dist/client/user/components/update-password-form.mjs +73 -0
- package/dist/client/user/components/update-password-form.mjs.map +1 -0
- package/dist/client/user/hooks/index.d.ts +2 -0
- package/dist/client/user/hooks/index.mjs +2 -0
- package/dist/client/user/hooks/useUser.d.ts +18 -0
- package/dist/client/user/hooks/useUser.d.ts.map +1 -0
- package/dist/client/user/hooks/useUser.mjs +35 -0
- package/dist/client/user/hooks/useUser.mjs.map +1 -0
- package/dist/client/user/index.d.ts +9 -0
- package/dist/client/user/index.mjs +8 -0
- package/dist/client/user/types/user.d.ts +204 -0
- package/dist/client/user/types/user.d.ts.map +1 -0
- package/dist/client/user/types/user.mjs +1 -0
- package/dist/client/user/utils/userCookieService.d.ts +16 -0
- package/dist/client/user/utils/userCookieService.d.ts.map +1 -0
- package/dist/client/user/utils/userCookieService.mjs +42 -0
- package/dist/client/user/utils/userCookieService.mjs.map +1 -0
- package/dist/client/wishlist/actions/addItemsToWishlistAction.d.ts +9 -0
- package/dist/client/wishlist/actions/addItemsToWishlistAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/addItemsToWishlistAction.mjs +15 -0
- package/dist/client/wishlist/actions/addItemsToWishlistAction.mjs.map +1 -0
- package/dist/client/wishlist/actions/createOrGetShareTokenAction.d.ts +8 -0
- package/dist/client/wishlist/actions/createOrGetShareTokenAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/createOrGetShareTokenAction.mjs +15 -0
- package/dist/client/wishlist/actions/createOrGetShareTokenAction.mjs.map +1 -0
- package/dist/client/wishlist/actions/createWishlistAction.d.ts +8 -0
- package/dist/client/wishlist/actions/createWishlistAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/createWishlistAction.mjs +15 -0
- package/dist/client/wishlist/actions/createWishlistAction.mjs.map +1 -0
- package/dist/client/wishlist/actions/deleteItemsFromWishlistAction.d.ts +9 -0
- package/dist/client/wishlist/actions/deleteItemsFromWishlistAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/deleteItemsFromWishlistAction.mjs +15 -0
- package/dist/client/wishlist/actions/deleteItemsFromWishlistAction.mjs.map +1 -0
- package/dist/client/wishlist/actions/deleteWishlistAction.d.ts +7 -0
- package/dist/client/wishlist/actions/deleteWishlistAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/deleteWishlistAction.mjs +15 -0
- package/dist/client/wishlist/actions/deleteWishlistAction.mjs.map +1 -0
- package/dist/client/wishlist/actions/getSharedWishlistAction.d.ts +8 -0
- package/dist/client/wishlist/actions/getSharedWishlistAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/getSharedWishlistAction.mjs +15 -0
- package/dist/client/wishlist/actions/getSharedWishlistAction.mjs.map +1 -0
- package/dist/client/wishlist/actions/getSpecificWishlistAction.d.ts +8 -0
- package/dist/client/wishlist/actions/getSpecificWishlistAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/getSpecificWishlistAction.mjs +15 -0
- package/dist/client/wishlist/actions/getSpecificWishlistAction.mjs.map +1 -0
- package/dist/client/wishlist/actions/getUserWishlists.d.ts +9 -0
- package/dist/client/wishlist/actions/getUserWishlists.d.ts.map +1 -0
- package/dist/client/wishlist/actions/getUserWishlists.mjs +23 -0
- package/dist/client/wishlist/actions/getUserWishlists.mjs.map +1 -0
- package/dist/client/wishlist/actions/revokeShareTokenAction.d.ts +7 -0
- package/dist/client/wishlist/actions/revokeShareTokenAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/revokeShareTokenAction.mjs +15 -0
- package/dist/client/wishlist/actions/revokeShareTokenAction.mjs.map +1 -0
- package/dist/client/wishlist/actions/updateWishlistAction.d.ts +8 -0
- package/dist/client/wishlist/actions/updateWishlistAction.d.ts.map +1 -0
- package/dist/client/wishlist/actions/updateWishlistAction.mjs +15 -0
- package/dist/client/wishlist/actions/updateWishlistAction.mjs.map +1 -0
- package/dist/client/wishlist/hooks/index.d.ts +2 -0
- package/dist/client/wishlist/hooks/index.mjs +2 -0
- package/dist/client/wishlist/hooks/useWishlist.d.ts +100 -0
- package/dist/client/wishlist/hooks/useWishlist.d.ts.map +1 -0
- package/dist/client/wishlist/hooks/useWishlist.mjs +100 -0
- package/dist/client/wishlist/hooks/useWishlist.mjs.map +1 -0
- package/dist/client/wishlist/hooks/useWishlistActions.d.ts +50 -0
- package/dist/client/wishlist/hooks/useWishlistActions.d.ts.map +1 -0
- package/dist/client/wishlist/hooks/useWishlistActions.mjs +93 -0
- package/dist/client/wishlist/hooks/useWishlistActions.mjs.map +1 -0
- package/dist/client/wishlist/index.d.ts +4 -0
- package/dist/client/wishlist/index.mjs +4 -0
- package/dist/client/wishlist/wishlist-drawer.d.ts +29 -0
- package/dist/client/wishlist/wishlist-drawer.d.ts.map +1 -0
- package/dist/client/wishlist/wishlist-drawer.mjs +187 -0
- package/dist/client/wishlist/wishlist-drawer.mjs.map +1 -0
- package/dist/styles.css +2 -0
- package/package.json +65 -34
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userRoute.d.ts","names":[],"sources":["../../../../src/client/user/api/userRoute.ts"],"mappings":";iBAyCsB,mBAAA,CAAoB,GAAA,EAAK,OAAA,GAAO,OAAA,CAAA,QAAA"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
//#region src/client/user/api/userRoute.ts
|
|
2
|
+
const APP_ID = "8bd950c5-551b-4603-bfe6-f33cdcae1a69";
|
|
3
|
+
function serializeCookie(name, value, options) {
|
|
4
|
+
let cookie = `${name}=${encodeURIComponent(value)}`;
|
|
5
|
+
if (options.path) cookie += `; Path=${options.path}`;
|
|
6
|
+
if (options.maxAge != null) cookie += `; Max-Age=${options.maxAge}`;
|
|
7
|
+
if (options.httpOnly) cookie += "; HttpOnly";
|
|
8
|
+
if (options.secure) cookie += "; Secure";
|
|
9
|
+
cookie += "; SameSite=Lax";
|
|
10
|
+
return cookie;
|
|
11
|
+
}
|
|
12
|
+
async function refreshAccessToken(refreshToken) {
|
|
13
|
+
const response = await fetch(`https://customers.enad.io/api/v1/${APP_ID}/auth/refresh`, {
|
|
14
|
+
method: "POST",
|
|
15
|
+
headers: {
|
|
16
|
+
"Content-Type": "application/json",
|
|
17
|
+
"api-key": "MaCtW4PYVqDl8n4fpplMBqJ3-0De4DP1cPLT76oJuHE8lyR61oHne_iK-yX5"
|
|
18
|
+
},
|
|
19
|
+
body: JSON.stringify({ refresh_token: refreshToken })
|
|
20
|
+
});
|
|
21
|
+
if (!response.ok) throw new Error("Failed to refresh token");
|
|
22
|
+
return response.json();
|
|
23
|
+
}
|
|
24
|
+
async function getUser(accessToken) {
|
|
25
|
+
const response = await fetch(`https://customers.enad.io/api/v1/${APP_ID}/user`, { headers: { Authorization: `Bearer ${accessToken}` } });
|
|
26
|
+
if (!response.ok) throw new Error("Failed to fetch user");
|
|
27
|
+
return response.json();
|
|
28
|
+
}
|
|
29
|
+
async function userRouteGETHandler(req) {
|
|
30
|
+
try {
|
|
31
|
+
const cookies = req.headers.get("cookie") || "";
|
|
32
|
+
let accessToken = cookies.split("; ").find((c) => c.startsWith("access_token="))?.split("=")[1];
|
|
33
|
+
const refreshToken = cookies.split("; ").find((c) => c.startsWith("refresh_token="))?.split("=")[1];
|
|
34
|
+
if (!accessToken && !refreshToken) return Response.json({ error: "Not authenticated" }, { status: 401 });
|
|
35
|
+
try {
|
|
36
|
+
const user = await getUser(accessToken);
|
|
37
|
+
return Response.json({ user });
|
|
38
|
+
} catch (err) {
|
|
39
|
+
if (!refreshToken) throw err;
|
|
40
|
+
const refreshData = await refreshAccessToken(refreshToken);
|
|
41
|
+
accessToken = refreshData.access_token;
|
|
42
|
+
const headers = new Headers();
|
|
43
|
+
headers.append("Set-Cookie", serializeCookie("access_token", refreshData.access_token, {
|
|
44
|
+
httpOnly: true,
|
|
45
|
+
secure: process.env.NODE_ENV === "production",
|
|
46
|
+
path: "/",
|
|
47
|
+
maxAge: refreshData.expires_in
|
|
48
|
+
}));
|
|
49
|
+
if (refreshData.refresh_token) headers.append("Set-Cookie", serializeCookie("refresh_token", refreshData.refresh_token, {
|
|
50
|
+
httpOnly: true,
|
|
51
|
+
secure: process.env.NODE_ENV === "production",
|
|
52
|
+
path: "/",
|
|
53
|
+
maxAge: 10080 * 60
|
|
54
|
+
}));
|
|
55
|
+
return Response.json({ user: await getUser(accessToken) }, { headers });
|
|
56
|
+
}
|
|
57
|
+
} catch (error) {
|
|
58
|
+
console.error(error);
|
|
59
|
+
return Response.json({ error: "Unable to fetch user" }, { status: 500 });
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
//#endregion
|
|
63
|
+
export { userRouteGETHandler };
|
|
64
|
+
|
|
65
|
+
//# sourceMappingURL=userRoute.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userRoute.mjs","names":[],"sources":["../../../../src/client/user/api/userRoute.ts"],"sourcesContent":["const APP_ID = \"8bd950c5-551b-4603-bfe6-f33cdcae1a69\";\n\nfunction serializeCookie(\n name: string,\n value: string,\n options: { httpOnly?: boolean; secure?: boolean; path?: string; maxAge?: number },\n): string {\n let cookie = `${name}=${encodeURIComponent(value)}`;\n if (options.path) cookie += `; Path=${options.path}`;\n if (options.maxAge != null) cookie += `; Max-Age=${options.maxAge}`;\n if (options.httpOnly) cookie += \"; HttpOnly\";\n if (options.secure) cookie += \"; Secure\";\n cookie += \"; SameSite=Lax\";\n return cookie;\n}\n\nasync function refreshAccessToken(refreshToken: string) {\n const response = await fetch(`https://customers.enad.io/api/v1/${APP_ID}/auth/refresh`, {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"api-key\": \"MaCtW4PYVqDl8n4fpplMBqJ3-0De4DP1cPLT76oJuHE8lyR61oHne_iK-yX5\",\n },\n body: JSON.stringify({ refresh_token: refreshToken }),\n });\n\n if (!response.ok) throw new Error(\"Failed to refresh token\");\n\n return response.json(); // { access_token, refresh_token? }\n}\n\nasync function getUser(accessToken: string) {\n const response = await fetch(`https://customers.enad.io/api/v1/${APP_ID}/user`, {\n headers: { Authorization: `Bearer ${accessToken}` },\n });\n\n if (!response.ok) throw new Error(\"Failed to fetch user\");\n\n return response.json();\n}\n\nexport async function userRouteGETHandler(req: Request) {\n try {\n // Read access token from cookie\n const cookies = req.headers.get(\"cookie\") || \"\";\n let accessToken = cookies\n .split(\"; \")\n .find((c) => c.startsWith(\"access_token=\"))\n ?.split(\"=\")[1];\n const refreshToken = cookies\n .split(\"; \")\n .find((c) => c.startsWith(\"refresh_token=\"))\n ?.split(\"=\")[1];\n\n if (!accessToken && !refreshToken) {\n return Response.json({ error: \"Not authenticated\" }, { status: 401 });\n }\n\n try {\n // Try fetching user with current access token\n const user = await getUser(accessToken!);\n return Response.json({ user });\n } catch (err) {\n // If token expired, refresh it\n if (!refreshToken) throw err;\n\n const refreshData = await refreshAccessToken(refreshToken);\n accessToken = refreshData.access_token;\n\n // Update cookies with new access token and refresh token if returned\n const headers = new Headers();\n headers.append(\n \"Set-Cookie\",\n serializeCookie(\"access_token\", refreshData.access_token, {\n httpOnly: true,\n secure: process.env.NODE_ENV === \"production\",\n path: \"/\",\n maxAge: refreshData.expires_in,\n }),\n );\n\n if (refreshData.refresh_token) {\n headers.append(\n \"Set-Cookie\",\n serializeCookie(\"refresh_token\", refreshData.refresh_token, {\n httpOnly: true,\n secure: process.env.NODE_ENV === \"production\",\n path: \"/\",\n maxAge: 7 * 24 * 60 * 60, // 7 days\n }),\n );\n }\n\n return Response.json({ user: await getUser(accessToken!) }, { headers });\n }\n } catch (error) {\n console.error(error);\n return Response.json({ error: \"Unable to fetch user\" }, { status: 500 });\n }\n}\n"],"mappings":";AAAA,MAAM,SAAS;AAEf,SAAS,gBACP,MACA,OACA,SACQ;CACR,IAAI,SAAS,GAAG,KAAK,GAAG,mBAAmB,MAAM;AACjD,KAAI,QAAQ,KAAM,WAAU,UAAU,QAAQ;AAC9C,KAAI,QAAQ,UAAU,KAAM,WAAU,aAAa,QAAQ;AAC3D,KAAI,QAAQ,SAAU,WAAU;AAChC,KAAI,QAAQ,OAAQ,WAAU;AAC9B,WAAU;AACV,QAAO;;AAGT,eAAe,mBAAmB,cAAsB;CACtD,MAAM,WAAW,MAAM,MAAM,oCAAoC,OAAO,gBAAgB;EACtF,QAAQ;EACR,SAAS;GACP,gBAAgB;GAChB,WAAW;GACZ;EACD,MAAM,KAAK,UAAU,EAAE,eAAe,cAAc,CAAC;EACtD,CAAC;AAEF,KAAI,CAAC,SAAS,GAAI,OAAM,IAAI,MAAM,0BAA0B;AAE5D,QAAO,SAAS,MAAM;;AAGxB,eAAe,QAAQ,aAAqB;CAC1C,MAAM,WAAW,MAAM,MAAM,oCAAoC,OAAO,QAAQ,EAC9E,SAAS,EAAE,eAAe,UAAU,eAAe,EACpD,CAAC;AAEF,KAAI,CAAC,SAAS,GAAI,OAAM,IAAI,MAAM,uBAAuB;AAEzD,QAAO,SAAS,MAAM;;AAGxB,eAAsB,oBAAoB,KAAc;AACtD,KAAI;EAEF,MAAM,UAAU,IAAI,QAAQ,IAAI,SAAS,IAAI;EAC7C,IAAI,cAAc,QACf,MAAM,KAAK,CACX,MAAM,MAAM,EAAE,WAAW,gBAAgB,CAAC,EACzC,MAAM,IAAI,CAAC;EACf,MAAM,eAAe,QAClB,MAAM,KAAK,CACX,MAAM,MAAM,EAAE,WAAW,iBAAiB,CAAC,EAC1C,MAAM,IAAI,CAAC;AAEf,MAAI,CAAC,eAAe,CAAC,aACnB,QAAO,SAAS,KAAK,EAAE,OAAO,qBAAqB,EAAE,EAAE,QAAQ,KAAK,CAAC;AAGvE,MAAI;GAEF,MAAM,OAAO,MAAM,QAAQ,YAAa;AACxC,UAAO,SAAS,KAAK,EAAE,MAAM,CAAC;WACvB,KAAK;AAEZ,OAAI,CAAC,aAAc,OAAM;GAEzB,MAAM,cAAc,MAAM,mBAAmB,aAAa;AAC1D,iBAAc,YAAY;GAG1B,MAAM,UAAU,IAAI,SAAS;AAC7B,WAAQ,OACN,cACA,gBAAgB,gBAAgB,YAAY,cAAc;IACxD,UAAU;IACV,QAAQ,QAAQ,IAAI,aAAa;IACjC,MAAM;IACN,QAAQ,YAAY;IACrB,CAAC,CACH;AAED,OAAI,YAAY,cACd,SAAQ,OACN,cACA,gBAAgB,iBAAiB,YAAY,eAAe;IAC1D,UAAU;IACV,QAAQ,QAAQ,IAAI,aAAa;IACjC,MAAM;IACN,QAAQ,QAAc;IACvB,CAAC,CACH;AAGH,UAAO,SAAS,KAAK,EAAE,MAAM,MAAM,QAAQ,YAAa,EAAE,EAAE,EAAE,SAAS,CAAC;;UAEnE,OAAO;AACd,UAAQ,MAAM,MAAM;AACpB,SAAO,SAAS,KAAK,EAAE,OAAO,wBAAwB,EAAE,EAAE,QAAQ,KAAK,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CustomerClient, ShopperClient } from "@enadhq/enad-ts-sdk";
|
|
2
|
+
|
|
3
|
+
//#region src/client/user/clients/enad.d.ts
|
|
4
|
+
declare const customerClient: CustomerClient;
|
|
5
|
+
declare const shopperClient: ShopperClient;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { customerClient, shopperClient };
|
|
8
|
+
//# sourceMappingURL=enad.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enad.d.ts","names":[],"sources":["../../../../src/client/user/clients/enad.ts"],"mappings":";;;cAGa,cAAA,EAAc,cAAA;AAAA,cAMd,aAAA,EAAa,aAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { enadConfig } from "../../global/config/index.mjs";
|
|
2
|
+
import { CustomerClient, ShopperClient } from "@enadhq/enad-ts-sdk";
|
|
3
|
+
//#region src/client/user/clients/enad.ts
|
|
4
|
+
const customerClient = new CustomerClient({
|
|
5
|
+
apiKey: enadConfig.server.userApiKey,
|
|
6
|
+
appId: enadConfig.client.appId,
|
|
7
|
+
groupId: enadConfig.client.groupId
|
|
8
|
+
});
|
|
9
|
+
const shopperClient = new ShopperClient({
|
|
10
|
+
apiKey: enadConfig.client.apiKey,
|
|
11
|
+
appId: enadConfig.client.appId,
|
|
12
|
+
groupId: enadConfig.client.groupId,
|
|
13
|
+
defaultLocale: enadConfig.client.defaultLocale,
|
|
14
|
+
defaultMarket: enadConfig.client.defaultMarket
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { customerClient, shopperClient };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=enad.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enad.mjs","names":[],"sources":["../../../../src/client/user/clients/enad.ts"],"sourcesContent":["import { CustomerClient, ShopperClient } from \"@enadhq/enad-ts-sdk\"\nimport { enadConfig } from \"../../../client/global/config\"\n\nexport const customerClient = new CustomerClient({\n apiKey: enadConfig.server.userApiKey,\n appId: enadConfig.client.appId,\n groupId: enadConfig.client.groupId,\n})\n\nexport const shopperClient = new ShopperClient({\n apiKey: enadConfig.client.apiKey,\n appId: enadConfig.client.appId,\n groupId: enadConfig.client.groupId,\n defaultLocale: enadConfig.client.defaultLocale,\n defaultMarket: enadConfig.client.defaultMarket,\n})\n"],"mappings":";;;AAGA,MAAa,iBAAiB,IAAI,eAAe;CAC/C,QAAQ,WAAW,OAAO;CAC1B,OAAO,WAAW,OAAO;CACzB,SAAS,WAAW,OAAO;CAC5B,CAAC;AAEF,MAAa,gBAAgB,IAAI,cAAc;CAC7C,QAAQ,WAAW,OAAO;CAC1B,OAAO,WAAW,OAAO;CACzB,SAAS,WAAW,OAAO;CAC3B,eAAe,WAAW,OAAO;CACjC,eAAe,WAAW,OAAO;CAClC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/client/user/components/login-form.d.ts
|
|
4
|
+
interface LoginFormProps {
|
|
5
|
+
labels?: {
|
|
6
|
+
title?: string;
|
|
7
|
+
subtitle?: string;
|
|
8
|
+
email?: string;
|
|
9
|
+
emailPlaceholder?: string;
|
|
10
|
+
password?: string;
|
|
11
|
+
passwordPlaceholder?: string;
|
|
12
|
+
forgotPassword?: string;
|
|
13
|
+
submit?: string;
|
|
14
|
+
signingIn?: string;
|
|
15
|
+
};
|
|
16
|
+
forgotPasswordLink?: string;
|
|
17
|
+
signup?: {
|
|
18
|
+
href: string;
|
|
19
|
+
label: string;
|
|
20
|
+
};
|
|
21
|
+
successRedirect?: string;
|
|
22
|
+
}
|
|
23
|
+
declare const LoginForm: React.FC<LoginFormProps>;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { LoginForm };
|
|
26
|
+
//# sourceMappingURL=login-form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"login-form.d.ts","names":[],"sources":["../../../../src/client/user/components/login-form.tsx"],"mappings":";;;UAOU,cAAA;EACR,MAAA;IACE,KAAA;IACA,QAAA;IACA,KAAA;IACA,gBAAA;IACA,QAAA;IACA,mBAAA;IACA,cAAA;IACA,MAAA;IACA,SAAA;EAAA;EAEF,kBAAA;EACA,MAAA;IACE,IAAA;IACA,KAAA;EAAA;EAEF,eAAA;AAAA;AAAA,cAwEW,SAAA,EAAW,KAAA,CAAM,EAAA,CAAG,cAAA"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { StorefrontButton } from "../../storefront/primitives/button.mjs";
|
|
3
|
+
import { StorefrontInput } from "../../storefront/primitives/input.mjs";
|
|
4
|
+
import { logInUserAction } from "../actions/logInUserAction.mjs";
|
|
5
|
+
import { useState } from "react";
|
|
6
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
//#region src/client/user/components/login-form.tsx
|
|
8
|
+
const DEFAULT_LOGIN_LABELS = {
|
|
9
|
+
title: "Welcome back",
|
|
10
|
+
subtitle: "Sign in to access your account",
|
|
11
|
+
email: "Email address",
|
|
12
|
+
emailPlaceholder: "you@example.com",
|
|
13
|
+
password: "Password",
|
|
14
|
+
passwordPlaceholder: "••••••••",
|
|
15
|
+
forgotPassword: "Forgot password?",
|
|
16
|
+
submit: "Sign In",
|
|
17
|
+
signingIn: "Signing in..."
|
|
18
|
+
};
|
|
19
|
+
function LoginFormFields({ emailLabel, emailPlaceholder, passwordLabel, passwordPlaceholder, forgotPassword, forgotPasswordLink, errors }) {
|
|
20
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
21
|
+
/* @__PURE__ */ jsx(StorefrontInput, {
|
|
22
|
+
type: "email",
|
|
23
|
+
id: "email",
|
|
24
|
+
name: "email",
|
|
25
|
+
required: true,
|
|
26
|
+
label: emailLabel,
|
|
27
|
+
placeholder: emailPlaceholder,
|
|
28
|
+
error: errors.email?.join(", ")
|
|
29
|
+
}),
|
|
30
|
+
/* @__PURE__ */ jsx(StorefrontInput, {
|
|
31
|
+
type: "password",
|
|
32
|
+
id: "password",
|
|
33
|
+
name: "password",
|
|
34
|
+
required: true,
|
|
35
|
+
label: passwordLabel,
|
|
36
|
+
placeholder: passwordPlaceholder,
|
|
37
|
+
error: errors.password?.join(", ")
|
|
38
|
+
}),
|
|
39
|
+
/* @__PURE__ */ jsx("div", {
|
|
40
|
+
className: "flex justify-start text-sm",
|
|
41
|
+
children: /* @__PURE__ */ jsx("a", {
|
|
42
|
+
href: forgotPasswordLink,
|
|
43
|
+
className: "text-(--enad-link-color) hover:text-(--enad-link-hover-color) transition",
|
|
44
|
+
children: forgotPassword
|
|
45
|
+
})
|
|
46
|
+
})
|
|
47
|
+
] });
|
|
48
|
+
}
|
|
49
|
+
const LoginForm = ({ labels = {}, forgotPasswordLink = "/reset-password/start", signup = {
|
|
50
|
+
href: "/signup",
|
|
51
|
+
label: "Sign up"
|
|
52
|
+
}, successRedirect = "/" }) => {
|
|
53
|
+
const resolved = {
|
|
54
|
+
...DEFAULT_LOGIN_LABELS,
|
|
55
|
+
...labels
|
|
56
|
+
};
|
|
57
|
+
const { title, subtitle, emailPlaceholder, passwordPlaceholder, forgotPassword, submit, signingIn } = resolved;
|
|
58
|
+
const emailLabel = resolved.email;
|
|
59
|
+
const passwordLabel = resolved.password;
|
|
60
|
+
const [errors, setErrors] = useState({});
|
|
61
|
+
const [isPending, setIsPending] = useState(false);
|
|
62
|
+
const handleSubmit = async (e) => {
|
|
63
|
+
e.preventDefault();
|
|
64
|
+
setIsPending(true);
|
|
65
|
+
setErrors({});
|
|
66
|
+
const res = await logInUserAction(new FormData(e.currentTarget), { redirectPath: successRedirect });
|
|
67
|
+
if (res?.errors) setErrors(res.errors);
|
|
68
|
+
setIsPending(false);
|
|
69
|
+
};
|
|
70
|
+
return /* @__PURE__ */ jsx("main", {
|
|
71
|
+
className: "flex items-center justify-center px-4 font-enad",
|
|
72
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
73
|
+
className: "w-full max-w-md bg-(--enad-surface) border border-(--enad-border-color) shadow-lg rounded-(--enad-card-radius) p-8",
|
|
74
|
+
children: [
|
|
75
|
+
/* @__PURE__ */ jsx("h2", {
|
|
76
|
+
className: "text-2xl font-semibold text-(--enad-text-primary-color) mb-2 text-center",
|
|
77
|
+
children: title
|
|
78
|
+
}),
|
|
79
|
+
/* @__PURE__ */ jsx("p", {
|
|
80
|
+
className: "text-(--enad-text-muted-color) text-sm text-center mb-8",
|
|
81
|
+
children: subtitle
|
|
82
|
+
}),
|
|
83
|
+
/* @__PURE__ */ jsxs("form", {
|
|
84
|
+
onSubmit: handleSubmit,
|
|
85
|
+
className: "space-y-5",
|
|
86
|
+
children: [
|
|
87
|
+
/* @__PURE__ */ jsx(LoginFormFields, {
|
|
88
|
+
emailLabel,
|
|
89
|
+
emailPlaceholder,
|
|
90
|
+
passwordLabel,
|
|
91
|
+
passwordPlaceholder,
|
|
92
|
+
forgotPassword,
|
|
93
|
+
forgotPasswordLink,
|
|
94
|
+
errors
|
|
95
|
+
}),
|
|
96
|
+
/* @__PURE__ */ jsx(StorefrontButton, {
|
|
97
|
+
type: "submit",
|
|
98
|
+
disabled: isPending,
|
|
99
|
+
className: "w-full",
|
|
100
|
+
children: isPending ? signingIn : submit
|
|
101
|
+
}),
|
|
102
|
+
errors.general && /* @__PURE__ */ jsx("p", {
|
|
103
|
+
role: "alert",
|
|
104
|
+
className: "text-(--enad-error-color) text-sm mt-2 text-center",
|
|
105
|
+
children: errors.general.join(", ")
|
|
106
|
+
})
|
|
107
|
+
]
|
|
108
|
+
}),
|
|
109
|
+
signup && /* @__PURE__ */ jsx("p", {
|
|
110
|
+
className: "text-sm text-(--enad-text-muted-color) text-center mt-2",
|
|
111
|
+
children: /* @__PURE__ */ jsx("a", {
|
|
112
|
+
href: signup.href,
|
|
113
|
+
className: "text-(--enad-link-color) hover:text-(--enad-link-hover-color) font-medium",
|
|
114
|
+
children: signup.label
|
|
115
|
+
})
|
|
116
|
+
})
|
|
117
|
+
]
|
|
118
|
+
})
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
//#endregion
|
|
122
|
+
export { LoginForm };
|
|
123
|
+
|
|
124
|
+
//# sourceMappingURL=login-form.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"login-form.mjs","names":[],"sources":["../../../../src/client/user/components/login-form.tsx"],"sourcesContent":["\"use client\"\n\nimport React, { useState, type FormEvent } from \"react\"\nimport { logInUserAction } from \"../actions/logInUserAction\"\nimport { StorefrontInput } from \"../../storefront/primitives/input\"\nimport { StorefrontButton } from \"../../storefront/primitives/button\"\n\ninterface LoginFormProps {\n labels?: {\n title?: string\n subtitle?: string\n email?: string\n emailPlaceholder?: string\n password?: string\n passwordPlaceholder?: string\n forgotPassword?: string\n submit?: string\n signingIn?: string\n }\n forgotPasswordLink?: string\n signup?: {\n href: string\n label: string\n }\n successRedirect?: string\n}\n\ninterface FormErrors {\n email?: string[]\n password?: string[]\n general?: string[]\n}\n\nconst DEFAULT_LOGIN_LABELS = {\n title: \"Welcome back\",\n subtitle: \"Sign in to access your account\",\n email: \"Email address\",\n emailPlaceholder: \"you@example.com\",\n password: \"Password\",\n passwordPlaceholder: \"••••••••\",\n forgotPassword: \"Forgot password?\",\n submit: \"Sign In\",\n signingIn: \"Signing in...\",\n} as const\n\nfunction LoginFormFields({\n emailLabel,\n emailPlaceholder,\n passwordLabel,\n passwordPlaceholder,\n forgotPassword,\n forgotPasswordLink,\n errors,\n}: {\n emailLabel: string\n emailPlaceholder: string\n passwordLabel: string\n passwordPlaceholder: string\n forgotPassword: string\n forgotPasswordLink: string\n errors: FormErrors\n}) {\n return (\n <>\n <StorefrontInput\n type=\"email\"\n id=\"email\"\n name=\"email\"\n required\n label={emailLabel}\n placeholder={emailPlaceholder}\n error={errors.email?.join(\", \")}\n />\n\n <StorefrontInput\n type=\"password\"\n id=\"password\"\n name=\"password\"\n required\n label={passwordLabel}\n placeholder={passwordPlaceholder}\n error={errors.password?.join(\", \")}\n />\n\n <div className=\"flex justify-start text-sm\">\n <a\n href={forgotPasswordLink}\n className=\"text-(--enad-link-color) hover:text-(--enad-link-hover-color) transition\"\n >\n {forgotPassword}\n </a>\n </div>\n </>\n )\n}\n\nexport const LoginForm: React.FC<LoginFormProps> = ({\n labels = {},\n forgotPasswordLink = \"/reset-password/start\",\n signup = { href: \"/signup\", label: \"Sign up\" },\n successRedirect = \"/\",\n}) => {\n const resolved = { ...DEFAULT_LOGIN_LABELS, ...labels }\n const { title, subtitle, emailPlaceholder, passwordPlaceholder, forgotPassword, submit, signingIn } = resolved\n const emailLabel = resolved.email\n const passwordLabel = resolved.password\n\n const [errors, setErrors] = useState<FormErrors>({})\n const [isPending, setIsPending] = useState(false)\n\n const handleSubmit = async (e: FormEvent<HTMLFormElement>) => {\n e.preventDefault()\n setIsPending(true)\n setErrors({})\n\n const formData = new FormData(e.currentTarget)\n const res = await logInUserAction(formData, { redirectPath: successRedirect })\n\n if (res?.errors) {\n setErrors(res.errors)\n }\n\n setIsPending(false)\n }\n\n return (\n <main className=\"flex items-center justify-center px-4 font-enad\">\n <div className=\"w-full max-w-md bg-(--enad-surface) border border-(--enad-border-color) shadow-lg rounded-(--enad-card-radius) p-8\">\n <h2 className=\"text-2xl font-semibold text-(--enad-text-primary-color) mb-2 text-center\">\n {title}\n </h2>\n <p className=\"text-(--enad-text-muted-color) text-sm text-center mb-8\">{subtitle}</p>\n\n <form onSubmit={handleSubmit} className=\"space-y-5\">\n <LoginFormFields\n emailLabel={emailLabel}\n emailPlaceholder={emailPlaceholder}\n passwordLabel={passwordLabel}\n passwordPlaceholder={passwordPlaceholder}\n forgotPassword={forgotPassword}\n forgotPasswordLink={forgotPasswordLink}\n errors={errors}\n />\n\n <StorefrontButton type=\"submit\" disabled={isPending} className=\"w-full\">\n {isPending ? signingIn : submit}\n </StorefrontButton>\n\n {errors.general && (\n <p role=\"alert\" className=\"text-(--enad-error-color) text-sm mt-2 text-center\">\n {errors.general.join(\", \")}\n </p>\n )}\n </form>\n\n {signup && (\n <p className=\"text-sm text-(--enad-text-muted-color) text-center mt-2\">\n <a\n href={signup.href}\n className=\"text-(--enad-link-color) hover:text-(--enad-link-hover-color) font-medium\"\n >\n {signup.label}\n </a>\n </p>\n )}\n </div>\n </main>\n )\n}\n"],"mappings":";;;;;;;AAiCA,MAAM,uBAAuB;CAC3B,OAAO;CACP,UAAU;CACV,OAAO;CACP,kBAAkB;CAClB,UAAU;CACV,qBAAqB;CACrB,gBAAgB;CAChB,QAAQ;CACR,WAAW;CACZ;AAED,SAAS,gBAAgB,EACvB,YACA,kBACA,eACA,qBACA,gBACA,oBACA,UASC;AACD,QACE,qBAAA,UAAA,EAAA,UAAA;EACE,oBAAC,iBAAD;GACE,MAAK;GACL,IAAG;GACH,MAAK;GACL,UAAA;GACA,OAAO;GACP,aAAa;GACb,OAAO,OAAO,OAAO,KAAK,KAAK;GAC/B,CAAA;EAEF,oBAAC,iBAAD;GACE,MAAK;GACL,IAAG;GACH,MAAK;GACL,UAAA;GACA,OAAO;GACP,aAAa;GACb,OAAO,OAAO,UAAU,KAAK,KAAK;GAClC,CAAA;EAEF,oBAAC,OAAD;GAAK,WAAU;aACb,oBAAC,KAAD;IACE,MAAM;IACN,WAAU;cAET;IACC,CAAA;GACA,CAAA;EACL,EAAA,CAAA;;AAIP,MAAa,aAAuC,EAClD,SAAS,EAAE,EACX,qBAAqB,yBACrB,SAAS;CAAE,MAAM;CAAW,OAAO;CAAW,EAC9C,kBAAkB,UACd;CACJ,MAAM,WAAW;EAAE,GAAG;EAAsB,GAAG;EAAQ;CACvD,MAAM,EAAE,OAAO,UAAU,kBAAkB,qBAAqB,gBAAgB,QAAQ,cAAc;CACtG,MAAM,aAAa,SAAS;CAC5B,MAAM,gBAAgB,SAAS;CAE/B,MAAM,CAAC,QAAQ,aAAa,SAAqB,EAAE,CAAC;CACpD,MAAM,CAAC,WAAW,gBAAgB,SAAS,MAAM;CAEjD,MAAM,eAAe,OAAO,MAAkC;AAC5D,IAAE,gBAAgB;AAClB,eAAa,KAAK;AAClB,YAAU,EAAE,CAAC;EAGb,MAAM,MAAM,MAAM,gBADD,IAAI,SAAS,EAAE,cAAc,EACF,EAAE,cAAc,iBAAiB,CAAC;AAE9E,MAAI,KAAK,OACP,WAAU,IAAI,OAAO;AAGvB,eAAa,MAAM;;AAGrB,QACE,oBAAC,QAAD;EAAM,WAAU;YACd,qBAAC,OAAD;GAAK,WAAU;aAAf;IACE,oBAAC,MAAD;KAAI,WAAU;eACX;KACE,CAAA;IACL,oBAAC,KAAD;KAAG,WAAU;eAA2D;KAAa,CAAA;IAErF,qBAAC,QAAD;KAAM,UAAU;KAAc,WAAU;eAAxC;MACE,oBAAC,iBAAD;OACc;OACM;OACH;OACM;OACL;OACI;OACZ;OACR,CAAA;MAEF,oBAAC,kBAAD;OAAkB,MAAK;OAAS,UAAU;OAAW,WAAU;iBAC5D,YAAY,YAAY;OACR,CAAA;MAElB,OAAO,WACN,oBAAC,KAAD;OAAG,MAAK;OAAQ,WAAU;iBACvB,OAAO,QAAQ,KAAK,KAAK;OACxB,CAAA;MAED;;IAEN,UACC,oBAAC,KAAD;KAAG,WAAU;eACX,oBAAC,KAAD;MACE,MAAM,OAAO;MACb,WAAU;gBAET,OAAO;MACN,CAAA;KACF,CAAA;IAEF;;EACD,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/client/user/components/reset-password-form.d.ts
|
|
4
|
+
interface ResetPasswordFormProps {
|
|
5
|
+
labels?: {
|
|
6
|
+
title?: string;
|
|
7
|
+
subtitle?: string;
|
|
8
|
+
email?: string;
|
|
9
|
+
emailPlaceholder?: string;
|
|
10
|
+
submit?: string;
|
|
11
|
+
sending?: string;
|
|
12
|
+
successMessage?: string;
|
|
13
|
+
};
|
|
14
|
+
extraLink?: {
|
|
15
|
+
href: string;
|
|
16
|
+
text: string;
|
|
17
|
+
};
|
|
18
|
+
successRedirect?: string;
|
|
19
|
+
}
|
|
20
|
+
declare const ResetPasswordForm: React.FC<ResetPasswordFormProps>;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { ResetPasswordForm };
|
|
23
|
+
//# sourceMappingURL=reset-password-form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reset-password-form.d.ts","names":[],"sources":["../../../../src/client/user/components/reset-password-form.tsx"],"mappings":";;;UAOU,sBAAA;EACR,MAAA;IACE,KAAA;IACA,QAAA;IACA,KAAA;IACA,gBAAA;IACA,MAAA;IACA,OAAA;IACA,cAAA;EAAA;EAEF,SAAA;IACE,IAAA;IACA,IAAA;EAAA;EAEF,eAAA;AAAA;AAAA,cAwDW,iBAAA,EAAmB,KAAA,CAAM,EAAA,CAAG,sBAAA"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { StorefrontButton } from "../../storefront/primitives/button.mjs";
|
|
3
|
+
import { StorefrontInput } from "../../storefront/primitives/input.mjs";
|
|
4
|
+
import { createPasswordResetLinkAction } from "../actions/createResetPasswordLinkAction.mjs";
|
|
5
|
+
import { useState } from "react";
|
|
6
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
//#region src/client/user/components/reset-password-form.tsx
|
|
8
|
+
function ResetPasswordFormBody({ emailLabel, emailPlaceholder, submit, sending, errors, isPending, successMessage }) {
|
|
9
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
10
|
+
/* @__PURE__ */ jsx(StorefrontInput, {
|
|
11
|
+
type: "email",
|
|
12
|
+
id: "email",
|
|
13
|
+
name: "email",
|
|
14
|
+
required: true,
|
|
15
|
+
label: emailLabel,
|
|
16
|
+
placeholder: emailPlaceholder,
|
|
17
|
+
error: errors.email?.join(", ")
|
|
18
|
+
}),
|
|
19
|
+
/* @__PURE__ */ jsx(StorefrontButton, {
|
|
20
|
+
type: "submit",
|
|
21
|
+
disabled: isPending,
|
|
22
|
+
className: "w-full",
|
|
23
|
+
children: isPending ? sending : submit
|
|
24
|
+
}),
|
|
25
|
+
errors.general && /* @__PURE__ */ jsx("p", {
|
|
26
|
+
role: "alert",
|
|
27
|
+
className: "text-(--enad-error-color) text-sm mt-1 text-center",
|
|
28
|
+
children: errors.general.join(", ")
|
|
29
|
+
}),
|
|
30
|
+
successMessage && /* @__PURE__ */ jsx("p", {
|
|
31
|
+
role: "status",
|
|
32
|
+
className: "text-(--enad-success-color) text-sm mt-2 text-center",
|
|
33
|
+
children: successMessage
|
|
34
|
+
})
|
|
35
|
+
] });
|
|
36
|
+
}
|
|
37
|
+
const ResetPasswordForm = ({ labels = {}, extraLink = {
|
|
38
|
+
href: "/login",
|
|
39
|
+
text: "Back to sign in"
|
|
40
|
+
}, successRedirect = "/login" }) => {
|
|
41
|
+
const { title = "Reset your password", subtitle = "Enter your email to receive reset instructions", email: emailLabel = "Email", emailPlaceholder = "you@example.com", submit = "Send Reset Link", sending = "Sending...", successMessage: successMessageText = "Check your email for reset instructions." } = labels;
|
|
42
|
+
const [errors, setErrors] = useState({});
|
|
43
|
+
const [isPending, setIsPending] = useState(false);
|
|
44
|
+
const [successMessage, setSuccessMessage] = useState("");
|
|
45
|
+
const handleSubmit = async (e) => {
|
|
46
|
+
e.preventDefault();
|
|
47
|
+
setIsPending(true);
|
|
48
|
+
setErrors({});
|
|
49
|
+
setSuccessMessage("");
|
|
50
|
+
const res = await createPasswordResetLinkAction(new FormData(e.currentTarget), { redirectPath: successRedirect });
|
|
51
|
+
if (res?.errors) setErrors(res.errors);
|
|
52
|
+
else setSuccessMessage(successMessageText);
|
|
53
|
+
setIsPending(false);
|
|
54
|
+
};
|
|
55
|
+
return /* @__PURE__ */ jsx("main", {
|
|
56
|
+
className: "flex items-center justify-center px-4 font-enad",
|
|
57
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
58
|
+
className: "w-full max-w-md bg-(--enad-surface) shadow-lg p-8 border border-(--enad-border-color) rounded-(--enad-card-radius)",
|
|
59
|
+
children: [
|
|
60
|
+
/* @__PURE__ */ jsx("h2", {
|
|
61
|
+
className: "text-2xl font-semibold text-(--enad-text-primary-color) mb-2 text-center",
|
|
62
|
+
children: title
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ jsx("p", {
|
|
65
|
+
className: "text-sm text-(--enad-text-muted-color) mb-8 text-center",
|
|
66
|
+
children: subtitle
|
|
67
|
+
}),
|
|
68
|
+
/* @__PURE__ */ jsx("form", {
|
|
69
|
+
onSubmit: handleSubmit,
|
|
70
|
+
className: "space-y-5",
|
|
71
|
+
children: /* @__PURE__ */ jsx(ResetPasswordFormBody, {
|
|
72
|
+
emailLabel,
|
|
73
|
+
emailPlaceholder,
|
|
74
|
+
submit,
|
|
75
|
+
sending,
|
|
76
|
+
errors,
|
|
77
|
+
isPending,
|
|
78
|
+
successMessage
|
|
79
|
+
})
|
|
80
|
+
}),
|
|
81
|
+
extraLink && /* @__PURE__ */ jsx("p", {
|
|
82
|
+
className: "text-sm text-(--enad-text-muted-color) text-center mt-4",
|
|
83
|
+
children: /* @__PURE__ */ jsx("a", {
|
|
84
|
+
href: extraLink.href,
|
|
85
|
+
className: "text-(--enad-link-color) hover:text-(--enad-link-hover-color) font-medium",
|
|
86
|
+
children: extraLink.text
|
|
87
|
+
})
|
|
88
|
+
})
|
|
89
|
+
]
|
|
90
|
+
})
|
|
91
|
+
});
|
|
92
|
+
};
|
|
93
|
+
//#endregion
|
|
94
|
+
export { ResetPasswordForm };
|
|
95
|
+
|
|
96
|
+
//# sourceMappingURL=reset-password-form.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reset-password-form.mjs","names":[],"sources":["../../../../src/client/user/components/reset-password-form.tsx"],"sourcesContent":["\"use client\"\n\nimport React, { useState, type FormEvent } from \"react\"\nimport { createPasswordResetLinkAction } from \"../actions/createResetPasswordLinkAction\"\nimport { StorefrontInput } from \"../../storefront/primitives/input\"\nimport { StorefrontButton } from \"../../storefront/primitives/button\"\n\ninterface ResetPasswordFormProps {\n labels?: {\n title?: string\n subtitle?: string\n email?: string\n emailPlaceholder?: string\n submit?: string\n sending?: string\n successMessage?: string\n }\n extraLink?: {\n href: string\n text: string\n }\n successRedirect?: string\n}\n\ninterface FormErrors {\n email?: string[]\n general?: string[]\n}\n\nfunction ResetPasswordFormBody({\n emailLabel,\n emailPlaceholder,\n submit,\n sending,\n errors,\n isPending,\n successMessage,\n}: {\n emailLabel: string\n emailPlaceholder: string\n submit: string\n sending: string\n errors: FormErrors\n isPending: boolean\n successMessage: string\n}) {\n return (\n <>\n <StorefrontInput\n type=\"email\"\n id=\"email\"\n name=\"email\"\n required\n label={emailLabel}\n placeholder={emailPlaceholder}\n error={errors.email?.join(\", \")}\n />\n\n <StorefrontButton type=\"submit\" disabled={isPending} className=\"w-full\">\n {isPending ? sending : submit}\n </StorefrontButton>\n\n {errors.general && (\n <p role=\"alert\" className=\"text-(--enad-error-color) text-sm mt-1 text-center\">\n {errors.general.join(\", \")}\n </p>\n )}\n\n {successMessage && (\n <p role=\"status\" className=\"text-(--enad-success-color) text-sm mt-2 text-center\">\n {successMessage}\n </p>\n )}\n </>\n )\n}\n\nexport const ResetPasswordForm: React.FC<ResetPasswordFormProps> = ({\n labels = {},\n extraLink = { href: \"/login\", text: \"Back to sign in\" },\n successRedirect = \"/login\",\n}) => {\n const {\n title = \"Reset your password\",\n subtitle = \"Enter your email to receive reset instructions\",\n email: emailLabel = \"Email\",\n emailPlaceholder = \"you@example.com\",\n submit = \"Send Reset Link\",\n sending = \"Sending...\",\n successMessage: successMessageText = \"Check your email for reset instructions.\",\n } = labels\n\n const [errors, setErrors] = useState<FormErrors>({})\n const [isPending, setIsPending] = useState(false)\n const [successMessage, setSuccessMessage] = useState(\"\")\n\n const handleSubmit = async (e: FormEvent<HTMLFormElement>) => {\n e.preventDefault()\n setIsPending(true)\n setErrors({})\n setSuccessMessage(\"\")\n\n const formData = new FormData(e.currentTarget)\n const res = await createPasswordResetLinkAction(formData, { redirectPath: successRedirect })\n\n if (res?.errors) {\n setErrors(res.errors)\n } else {\n setSuccessMessage(successMessageText)\n }\n\n setIsPending(false)\n }\n\n return (\n <main className=\"flex items-center justify-center px-4 font-enad\">\n <div className=\"w-full max-w-md bg-(--enad-surface) shadow-lg p-8 border border-(--enad-border-color) rounded-(--enad-card-radius)\">\n <h2 className=\"text-2xl font-semibold text-(--enad-text-primary-color) mb-2 text-center\">\n {title}\n </h2>\n <p className=\"text-sm text-(--enad-text-muted-color) mb-8 text-center\">{subtitle}</p>\n\n <form onSubmit={handleSubmit} className=\"space-y-5\">\n <ResetPasswordFormBody\n emailLabel={emailLabel}\n emailPlaceholder={emailPlaceholder}\n submit={submit}\n sending={sending}\n errors={errors}\n isPending={isPending}\n successMessage={successMessage}\n />\n </form>\n\n {extraLink && (\n <p className=\"text-sm text-(--enad-text-muted-color) text-center mt-4\">\n <a\n href={extraLink.href}\n className=\"text-(--enad-link-color) hover:text-(--enad-link-hover-color) font-medium\"\n >\n {extraLink.text}\n </a>\n </p>\n )}\n </div>\n </main>\n )\n}\n"],"mappings":";;;;;;;AA6BA,SAAS,sBAAsB,EAC7B,YACA,kBACA,QACA,SACA,QACA,WACA,kBASC;AACD,QACE,qBAAA,UAAA,EAAA,UAAA;EACE,oBAAC,iBAAD;GACE,MAAK;GACL,IAAG;GACH,MAAK;GACL,UAAA;GACA,OAAO;GACP,aAAa;GACb,OAAO,OAAO,OAAO,KAAK,KAAK;GAC/B,CAAA;EAEF,oBAAC,kBAAD;GAAkB,MAAK;GAAS,UAAU;GAAW,WAAU;aAC5D,YAAY,UAAU;GACN,CAAA;EAElB,OAAO,WACN,oBAAC,KAAD;GAAG,MAAK;GAAQ,WAAU;aACvB,OAAO,QAAQ,KAAK,KAAK;GACxB,CAAA;EAGL,kBACC,oBAAC,KAAD;GAAG,MAAK;GAAS,WAAU;aACxB;GACC,CAAA;EAEL,EAAA,CAAA;;AAIP,MAAa,qBAAuD,EAClE,SAAS,EAAE,EACX,YAAY;CAAE,MAAM;CAAU,MAAM;CAAmB,EACvD,kBAAkB,eACd;CACJ,MAAM,EACJ,QAAQ,uBACR,WAAW,kDACX,OAAO,aAAa,SACpB,mBAAmB,mBACnB,SAAS,mBACT,UAAU,cACV,gBAAgB,qBAAqB,+CACnC;CAEJ,MAAM,CAAC,QAAQ,aAAa,SAAqB,EAAE,CAAC;CACpD,MAAM,CAAC,WAAW,gBAAgB,SAAS,MAAM;CACjD,MAAM,CAAC,gBAAgB,qBAAqB,SAAS,GAAG;CAExD,MAAM,eAAe,OAAO,MAAkC;AAC5D,IAAE,gBAAgB;AAClB,eAAa,KAAK;AAClB,YAAU,EAAE,CAAC;AACb,oBAAkB,GAAG;EAGrB,MAAM,MAAM,MAAM,8BADD,IAAI,SAAS,EAAE,cAAc,EACY,EAAE,cAAc,iBAAiB,CAAC;AAE5F,MAAI,KAAK,OACP,WAAU,IAAI,OAAO;MAErB,mBAAkB,mBAAmB;AAGvC,eAAa,MAAM;;AAGrB,QACE,oBAAC,QAAD;EAAM,WAAU;YACd,qBAAC,OAAD;GAAK,WAAU;aAAf;IACE,oBAAC,MAAD;KAAI,WAAU;eACX;KACE,CAAA;IACL,oBAAC,KAAD;KAAG,WAAU;eAA2D;KAAa,CAAA;IAErF,oBAAC,QAAD;KAAM,UAAU;KAAc,WAAU;eACtC,oBAAC,uBAAD;MACc;MACM;MACV;MACC;MACD;MACG;MACK;MAChB,CAAA;KACG,CAAA;IAEN,aACC,oBAAC,KAAD;KAAG,WAAU;eACX,oBAAC,KAAD;MACE,MAAM,UAAU;MAChB,WAAU;gBAET,UAAU;MACT,CAAA;KACF,CAAA;IAEF;;EACD,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/client/user/components/sign-out.d.ts
|
|
4
|
+
interface SignOutProps {
|
|
5
|
+
labels?: {
|
|
6
|
+
button?: string;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
declare const SignOut: ({
|
|
10
|
+
labels
|
|
11
|
+
}: SignOutProps) => react_jsx_runtime0.JSX.Element;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { SignOut };
|
|
14
|
+
//# sourceMappingURL=sign-out.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sign-out.d.ts","names":[],"sources":["../../../../src/client/user/components/sign-out.tsx"],"mappings":";;;UAMU,YAAA;EACR,MAAA;IACE,MAAA;EAAA;AAAA;AAAA,cAIS,OAAA;EAAW;AAAA,GAAiB,YAAA,KAAY,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { StorefrontButton } from "../../storefront/primitives/button.mjs";
|
|
3
|
+
import { logOutUserAction } from "../actions/logoutUserAction.mjs";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { useQueryClient } from "@tanstack/react-query";
|
|
6
|
+
//#region src/client/user/components/sign-out.tsx
|
|
7
|
+
const SignOut = ({ labels = {} }) => {
|
|
8
|
+
const { button = "Sign out" } = labels;
|
|
9
|
+
const queryClient = useQueryClient();
|
|
10
|
+
return /* @__PURE__ */ jsx(StorefrontButton, {
|
|
11
|
+
variant: "ghost",
|
|
12
|
+
onClick: async () => {
|
|
13
|
+
if (await logOutUserAction()) queryClient.setQueryData(["user"], null);
|
|
14
|
+
},
|
|
15
|
+
children: button
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { SignOut };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=sign-out.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sign-out.mjs","names":[],"sources":["../../../../src/client/user/components/sign-out.tsx"],"sourcesContent":["\"use client\"\n\nimport { useQueryClient } from \"@tanstack/react-query\"\nimport { logOutUserAction } from \"../actions/logoutUserAction\"\nimport { StorefrontButton } from \"../../storefront/primitives/button\"\n\ninterface SignOutProps {\n labels?: {\n button?: string\n }\n}\n\nexport const SignOut = ({ labels = {} }: SignOutProps) => {\n const { button = \"Sign out\" } = labels\n const queryClient = useQueryClient()\n\n return (\n <StorefrontButton\n variant=\"ghost\"\n onClick={async () => {\n const success = await logOutUserAction()\n\n if (success) {\n queryClient.setQueryData([\"user\"], null)\n }\n }}\n >\n {button}\n </StorefrontButton>\n )\n}\n"],"mappings":";;;;;;AAYA,MAAa,WAAW,EAAE,SAAS,EAAE,OAAqB;CACxD,MAAM,EAAE,SAAS,eAAe;CAChC,MAAM,cAAc,gBAAgB;AAEpC,QACE,oBAAC,kBAAD;EACE,SAAQ;EACR,SAAS,YAAY;AAGnB,OAFgB,MAAM,kBAAkB,CAGtC,aAAY,aAAa,CAAC,OAAO,EAAE,KAAK;;YAI3C;EACgB,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/client/user/components/signup-form.d.ts
|
|
4
|
+
interface SignupFormProps {
|
|
5
|
+
labels?: {
|
|
6
|
+
title?: string;
|
|
7
|
+
subtitle?: string;
|
|
8
|
+
firstName?: string;
|
|
9
|
+
firstNamePlaceholder?: string;
|
|
10
|
+
lastName?: string;
|
|
11
|
+
lastNamePlaceholder?: string;
|
|
12
|
+
email?: string;
|
|
13
|
+
emailPlaceholder?: string;
|
|
14
|
+
password?: string;
|
|
15
|
+
passwordPlaceholder?: string;
|
|
16
|
+
acceptTerms?: string;
|
|
17
|
+
termsLinkText?: string;
|
|
18
|
+
submit?: string;
|
|
19
|
+
signingUp?: string;
|
|
20
|
+
};
|
|
21
|
+
extraLink?: {
|
|
22
|
+
href: string;
|
|
23
|
+
text: string;
|
|
24
|
+
};
|
|
25
|
+
successRedirect: string;
|
|
26
|
+
}
|
|
27
|
+
declare const SignupForm: React.FC<SignupFormProps>;
|
|
28
|
+
//#endregion
|
|
29
|
+
export { SignupForm };
|
|
30
|
+
//# sourceMappingURL=signup-form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signup-form.d.ts","names":[],"sources":["../../../../src/client/user/components/signup-form.tsx"],"mappings":";;;UAQU,eAAA;EACR,MAAA;IACE,KAAA;IACA,QAAA;IACA,SAAA;IACA,oBAAA;IACA,QAAA;IACA,mBAAA;IACA,KAAA;IACA,gBAAA;IACA,QAAA;IACA,mBAAA;IACA,WAAA;IACA,aAAA;IACA,MAAA;IACA,SAAA;EAAA;EAEF,SAAA;IACE,IAAA;IACA,IAAA;EAAA;EAEF,eAAA;AAAA;AAAA,cAqIW,UAAA,EAAY,KAAA,CAAM,EAAA,CAAG,eAAA"}
|