@mohasinac/appkit 4.55.0-next.0 → 4.56.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.
Files changed (86) hide show
  1. package/dist/.build-stamp.json +4 -4
  2. package/dist/_internal/server/features/checkout/actions.d.ts +22 -0
  3. package/dist/_internal/server/features/checkout/actions.js +100 -5
  4. package/dist/_internal/server/features/shipping/reconcile.d.ts +28 -0
  5. package/dist/_internal/server/features/shipping/reconcile.js +93 -0
  6. package/dist/_internal/shared/config/schema.d.ts +6 -0
  7. package/dist/_internal/shared/features/checkout/config.d.ts +1 -1
  8. package/dist/_internal/shared/features/checkout/config.js +1 -1
  9. package/dist/_internal/shared/features/site-settings/fees.d.ts +1 -1
  10. package/dist/_internal/shared/features/site-settings/fees.js +1 -1
  11. package/dist/_internal/shared/fees/calculator.d.ts +35 -3
  12. package/dist/_internal/shared/fees/calculator.js +34 -4
  13. package/dist/_internal/shared/listing-types/route-gating.d.ts +56 -0
  14. package/dist/_internal/shared/listing-types/route-gating.js +114 -0
  15. package/dist/_internal/shared/shipping/quote.d.ts +153 -0
  16. package/dist/_internal/shared/shipping/quote.js +124 -0
  17. package/dist/client.d.ts +1 -0
  18. package/dist/client.js +8 -0
  19. package/dist/errors/error-codes.d.ts +15 -0
  20. package/dist/errors/error-codes.js +15 -0
  21. package/dist/errors/index.d.ts +1 -1
  22. package/dist/errors/index.js +1 -1
  23. package/dist/features/account/components/UserBidsView.js +4 -2
  24. package/dist/features/admin/components/AdminSiteSettingsView.js +18 -2
  25. package/dist/features/admin/schemas/firestore.d.ts +37 -2
  26. package/dist/features/admin/schemas/firestore.js +12 -1
  27. package/dist/features/auctions/components/AuctionDetailPageView.js +2 -1
  28. package/dist/features/auth/schemas/firestore.d.ts +15 -0
  29. package/dist/features/cart/components/CartPriceBreakdown.js +1 -1
  30. package/dist/features/checkout/schemas/firestore.d.ts +12 -1
  31. package/dist/features/digital-codes/components/DigitalCodeDetailPageView.js +2 -1
  32. package/dist/features/homepage/components/HeroCarousel.js +4 -2
  33. package/dist/features/homepage/components/MarketplaceHomepageView.js +16 -1
  34. package/dist/features/homepage/components/WelcomeSection.d.ts +16 -3
  35. package/dist/features/homepage/components/WelcomeSection.js +3 -3
  36. package/dist/features/homepage/lib/section-renderer.d.ts +9 -0
  37. package/dist/features/homepage/lib/section-renderer.js +22 -5
  38. package/dist/features/homepage/lib/slide-gating.d.ts +52 -0
  39. package/dist/features/homepage/lib/slide-gating.js +98 -0
  40. package/dist/features/layout/NavbarLayout.js +139 -32
  41. package/dist/features/live/components/LiveItemDetailPageView.js +2 -1
  42. package/dist/features/media/MediaAvatar.js +1 -1
  43. package/dist/features/media/MediaImage.d.ts +18 -1
  44. package/dist/features/media/MediaImage.js +1 -1
  45. package/dist/features/media/messages/en.json +67 -67
  46. package/dist/features/orders/schemas/firestore.d.ts +39 -1
  47. package/dist/features/points/repository/points.repository.d.ts +81 -0
  48. package/dist/features/points/repository/points.repository.js +155 -0
  49. package/dist/features/points/schemas/firestore.d.ts +102 -0
  50. package/dist/features/points/schemas/firestore.js +99 -0
  51. package/dist/features/pre-orders/components/PreOrderDetailPageView.js +2 -1
  52. package/dist/features/products/components/PrizeDrawDetailPageView.js +2 -1
  53. package/dist/features/products/components/ProductDetailPageView.js +5 -26
  54. package/dist/features/products/components/ProductOwnerQuickActions.d.ts +11 -0
  55. package/dist/features/products/components/ProductOwnerQuickActions.js +120 -0
  56. package/dist/features/products/components/ProductsIndexListing.js +35 -5
  57. package/dist/features/products/components/ProductsIndexPageView.js +40 -7
  58. package/dist/features/seller/actions/seller-actions.d.ts +17 -0
  59. package/dist/features/seller/actions/seller-actions.js +33 -0
  60. package/dist/index.d.ts +1 -0
  61. package/dist/index.js +8 -0
  62. package/dist/providers/shipping-shiprocket/index.d.ts +13 -4
  63. package/dist/providers/shipping-shiprocket/index.js +34 -10
  64. package/dist/security/csp.d.ts +1 -16
  65. package/dist/security/csp.js +3 -5
  66. package/dist/seed/carousel-slides-seed-data.js +48 -7
  67. package/dist/seed/faq-seed-data.js +1 -1
  68. package/dist/seed/site-settings-seed-data.js +1 -1
  69. package/dist/seo/json-ld.d.ts +8 -1
  70. package/dist/seo/json-ld.js +39 -2
  71. package/dist/styles.css +419 -542
  72. package/dist/tailwind-utilities.css +1 -1
  73. package/dist/tokens/themes/index.d.ts +1 -3
  74. package/dist/tokens/themes/index.js +1 -11
  75. package/dist/tokens/tokens.css +0 -155
  76. package/dist/ui/components/GatedPrice.style.css +43 -43
  77. package/dist/ui/components/ImageMosaic.d.ts +17 -1
  78. package/dist/ui/components/ImageMosaic.js +28 -5
  79. package/dist/ui/components/ImageMosaic.style.css +37 -5
  80. package/dist/ui/components/QuickCreateModal.style.css +78 -78
  81. package/dist/ui/forms/FormShell.style.css +260 -260
  82. package/package.json +1 -1
  83. package/dist/tokens/themes/technical-dark.d.ts +0 -30
  84. package/dist/tokens/themes/technical-dark.js +0 -103
  85. package/dist/tokens/themes/technical-light.d.ts +0 -22
  86. package/dist/tokens/themes/technical-light.js +0 -89
@@ -1,22 +0,0 @@
1
- import type { ThemeRecord } from "./types";
2
- /**
3
- * Theme template — Technical Light.
4
- *
5
- * A true counterpart to `technical-dark`, not an afterthought: same geometry,
6
- * same mono-forward type stack, same syntax-derived accent *roles* — but every
7
- * accent is re-darkened for a paper-white ground rather than reused from the
8
- * dark preset. Reusing them would have been the easy mistake: #7c8cff on
9
- * #fbfbfa measures 2.88:1, which fails AA outright, so primary drops to
10
- * #4b5bd6 (5.38:1) and each status hue is darkened to match.
11
- *
12
- * Not a built-in (`builtIn: false`). Only overrides the tokens the matching CSS
13
- * block overrides; everything else falls back to `DEFAULT_LIGHT_THEME`.
14
- *
15
- * Contrast against `appkit-color-bg` (#fbfbfa), measured not estimated:
16
- * text 17.15:1, muted 5.84:1, faint 4.67:1, primary 5.38:1, white-on-primary
17
- * 5.58:1, and every status colour ≥ 4.5:1 (lowest: success 4.80:1).
18
- *
19
- * Mirrors the `[data-theme="technical-light"]` block in
20
- * `appkit/src/tokens/tokens.css`; the two must stay byte-identical.
21
- */
22
- export declare const TECHNICAL_LIGHT_THEME: ThemeRecord;
@@ -1,89 +0,0 @@
1
- import { DEFAULT_LIGHT_THEME } from "./default-light.js";
2
- /**
3
- * Theme template — Technical Light.
4
- *
5
- * A true counterpart to `technical-dark`, not an afterthought: same geometry,
6
- * same mono-forward type stack, same syntax-derived accent *roles* — but every
7
- * accent is re-darkened for a paper-white ground rather than reused from the
8
- * dark preset. Reusing them would have been the easy mistake: #7c8cff on
9
- * #fbfbfa measures 2.88:1, which fails AA outright, so primary drops to
10
- * #4b5bd6 (5.38:1) and each status hue is darkened to match.
11
- *
12
- * Not a built-in (`builtIn: false`). Only overrides the tokens the matching CSS
13
- * block overrides; everything else falls back to `DEFAULT_LIGHT_THEME`.
14
- *
15
- * Contrast against `appkit-color-bg` (#fbfbfa), measured not estimated:
16
- * text 17.15:1, muted 5.84:1, faint 4.67:1, primary 5.38:1, white-on-primary
17
- * 5.58:1, and every status colour ≥ 4.5:1 (lowest: success 4.80:1).
18
- *
19
- * Mirrors the `[data-theme="technical-light"]` block in
20
- * `appkit/src/tokens/tokens.css`; the two must stay byte-identical.
21
- */
22
- export const TECHNICAL_LIGHT_THEME = {
23
- id: "technical-light",
24
- name: "Technical Light",
25
- mode: "light",
26
- builtIn: false,
27
- tokens: {
28
- // Same violet ROLE as the dark preset, re-darkened for white.
29
- "appkit-color-primary": "#4b5bd6",
30
- "appkit-color-primary-50": "#eef0ff",
31
- "appkit-color-primary-100": "#e0e4ff",
32
- "appkit-color-primary-200": "#c7cdff",
33
- "appkit-color-primary-300": "#a5aeff",
34
- "appkit-color-primary-400": "#7c8cff",
35
- "appkit-color-primary-500": "#5a68e8",
36
- "appkit-color-primary-600": "#4b5bd6",
37
- "appkit-color-primary-700": "#3b45ad",
38
- "appkit-color-primary-800": "#2f3789",
39
- "appkit-color-primary-900": "#262c6d",
40
- "appkit-color-primary-950": "#151840",
41
- "appkit-color-secondary": "#0f8f5f",
42
- "appkit-color-secondary-50": "#ecfdf5",
43
- "appkit-color-secondary-100": "#d1fae5",
44
- "appkit-color-secondary-200": "#a7f3d0",
45
- "appkit-color-secondary-300": "#6ee7b7",
46
- "appkit-color-secondary-400": "#34b87d",
47
- "appkit-color-secondary-500": "#0f8f5f",
48
- "appkit-color-secondary-600": "#0c744d",
49
- "appkit-color-secondary-700": "#0a5c3d",
50
- "appkit-color-secondary-800": "#084830",
51
- "appkit-color-secondary-900": "#063a27",
52
- "appkit-color-secondary-950": "#032016",
53
- // Paper white, not pure #fff — pure white against a mono type stack
54
- // glares at the sizes this UI uses.
55
- "appkit-color-bg": "#fbfbfa",
56
- "appkit-color-surface": "#ffffff",
57
- "appkit-color-surface-elevated": "rgba(255, 255, 255, 0.96)",
58
- "appkit-color-surface-input": "rgba(244, 244, 242, 0.8)",
59
- "appkit-color-surface-hover": "rgba(22, 24, 29, 0.05)",
60
- "appkit-color-surface-raised": "rgba(244, 244, 242, 0.9)",
61
- "appkit-color-primary-surface": "rgba(75, 91, 214, 0.1)",
62
- "appkit-color-border": "#e2e2df",
63
- "appkit-color-border-subtle": "rgba(226, 226, 223, 0.7)",
64
- "appkit-color-text": "#16181d",
65
- "appkit-color-text-muted": "#5c6370",
66
- // #767d89 measured 4.00:1 here — AA for large text only. Darkened so even
67
- // faint metadata clears AA at body size.
68
- "appkit-color-text-faint": "#6b7280",
69
- "appkit-color-text-on-primary": "#ffffff",
70
- "appkit-color-success": "#13804f",
71
- "appkit-color-success-surface": "rgba(19, 128, 79, 0.1)",
72
- "appkit-color-warning": "#9a6400",
73
- "appkit-color-warning-surface": "rgba(154, 100, 0, 0.1)",
74
- "appkit-color-error": "#c62828",
75
- "appkit-color-error-surface": "rgba(198, 40, 40, 0.1)",
76
- "appkit-color-info": "#0a69b5",
77
- "appkit-color-info-surface": "rgba(10, 105, 181, 0.1)",
78
- // Darkened amber. The dark preset's #ffb86b measures 1.65:1 here —
79
- // effectively an invisible focus ring, which is a keyboard trap.
80
- "appkit-color-focus-ring": "#b45a00",
81
- "appkit-shadow-glow": "0 0 0 1px rgba(75,91,214,0.14), 0 4px 16px -6px rgba(75,91,214,0.18)",
82
- "appkit-shadow-glow-pink": "0 0 0 1px rgba(15,143,95,0.14), 0 4px 18px -6px rgba(15,143,95,0.2)",
83
- "appkit-font-display": "var(--font-mono), \"JetBrains Mono\", \"IBM Plex Mono\", ui-monospace, \"SFMono-Regular\", Consolas, monospace",
84
- "appkit-font-sans": "var(--font-mono), \"JetBrains Mono\", \"IBM Plex Mono\", ui-monospace, \"SFMono-Regular\", Consolas, monospace",
85
- "appkit-font-editorial": "var(--font-body), ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", Roboto, sans-serif",
86
- "appkit-font-mono": "var(--font-mono), \"JetBrains Mono\", \"IBM Plex Mono\", ui-monospace, \"SFMono-Regular\", Consolas, monospace",
87
- },
88
- gradients: { ...DEFAULT_LIGHT_THEME.gradients },
89
- };