@fluid-app/portal-sdk 0.1.97 → 0.1.99

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 (122) hide show
  1. package/dist/{AppDownloadScreen-DpxltF8z.cjs → AppDownloadScreen-BcK2snUL.cjs} +2 -2
  2. package/dist/{AppDownloadScreen-DpxltF8z.cjs.map → AppDownloadScreen-BcK2snUL.cjs.map} +1 -1
  3. package/dist/{AppDownloadScreen-BMOcvPF1.cjs → AppDownloadScreen-CwLZzr-7.cjs} +9 -9
  4. package/dist/{AppDownloadScreen-BrRZShlm.mjs → AppDownloadScreen-rO--O0pk.mjs} +2 -2
  5. package/dist/{AppDownloadScreen-BrRZShlm.mjs.map → AppDownloadScreen-rO--O0pk.mjs.map} +1 -1
  6. package/dist/{CarouselWidget-D48n9SsA.cjs → CarouselWidget-CAiMfcdg.cjs} +2 -2
  7. package/dist/{CarouselWidget-D48n9SsA.cjs.map → CarouselWidget-CAiMfcdg.cjs.map} +1 -1
  8. package/dist/{CarouselWidget-CNf1MR95.cjs → CarouselWidget-DXA_unMC.cjs} +2 -2
  9. package/dist/{CarouselWidget-dqjnsx9d.mjs → CarouselWidget-Hre6Pz6P.mjs} +2 -2
  10. package/dist/{CarouselWidget-dqjnsx9d.mjs.map → CarouselWidget-Hre6Pz6P.mjs.map} +1 -1
  11. package/dist/{ContactsScreen-CZ0gortp.mjs → ContactsScreen-BGwqGlpV.mjs} +2 -2
  12. package/dist/{ContactsScreen-CZ0gortp.mjs.map → ContactsScreen-BGwqGlpV.mjs.map} +1 -1
  13. package/dist/{ContactsScreen-1S3tfYu2.cjs → ContactsScreen-CkSeaPyz.cjs} +2 -2
  14. package/dist/{ContactsScreen-1S3tfYu2.cjs.map → ContactsScreen-CkSeaPyz.cjs.map} +1 -1
  15. package/dist/{ContactsScreen-CAI3msL5.cjs → ContactsScreen-D4WQ59ib.cjs} +9 -9
  16. package/dist/{FluidProvider-C8sXuPhI.mjs → FluidProvider-CWYquEIF.mjs} +13 -13
  17. package/dist/{FluidProvider-C8sXuPhI.mjs.map → FluidProvider-CWYquEIF.mjs.map} +1 -1
  18. package/dist/{FluidProvider-roApesp3.cjs → FluidProvider-CyzA2g75.cjs} +13 -13
  19. package/dist/{FluidProvider-roApesp3.cjs.map → FluidProvider-CyzA2g75.cjs.map} +1 -1
  20. package/dist/{ImageWidget-C8bQdTkz.mjs → ImageWidget-DE9Fp_oH.mjs} +2 -2
  21. package/dist/{ImageWidget-C8bQdTkz.mjs.map → ImageWidget-DE9Fp_oH.mjs.map} +1 -1
  22. package/dist/{ImageWidget-DSMtD54I.cjs → ImageWidget-DKen6mq7.cjs} +2 -2
  23. package/dist/{ImageWidget-DSMtD54I.cjs.map → ImageWidget-DKen6mq7.cjs.map} +1 -1
  24. package/dist/{ListWidget-BDHYpRri.cjs → ListWidget-BVMMpxC0.cjs} +2 -2
  25. package/dist/{ListWidget-6rzwiSHu.mjs → ListWidget-CBLZ8CjD.mjs} +2 -2
  26. package/dist/{ListWidget-6rzwiSHu.mjs.map → ListWidget-CBLZ8CjD.mjs.map} +1 -1
  27. package/dist/{ListWidget-CdE-JgyF.cjs → ListWidget-KxIwLQtv.cjs} +2 -2
  28. package/dist/{ListWidget-CdE-JgyF.cjs.map → ListWidget-KxIwLQtv.cjs.map} +1 -1
  29. package/dist/{MediaRenderer-C_maibNT.mjs → MediaRenderer-Cfvg51w8.mjs} +68 -43
  30. package/dist/MediaRenderer-Cfvg51w8.mjs.map +1 -0
  31. package/dist/{MediaRenderer-CSrxxSt4.cjs → MediaRenderer-p7hExkdt.cjs} +68 -43
  32. package/dist/MediaRenderer-p7hExkdt.cjs.map +1 -0
  33. package/dist/{MessagingScreen-CJOd1XEc.cjs → MessagingScreen-5jw8KSLQ.cjs} +9 -9
  34. package/dist/{MessagingScreen-D-rz6Q91.cjs → MessagingScreen-B9CCsimy.cjs} +3 -3
  35. package/dist/{MessagingScreen-D-rz6Q91.cjs.map → MessagingScreen-B9CCsimy.cjs.map} +1 -1
  36. package/dist/{MessagingScreen-Cq5frHOu.mjs → MessagingScreen-BGr41874.mjs} +10 -9
  37. package/dist/{MessagingScreen-CkM93okb.mjs → MessagingScreen-DTXSZ-Oa.mjs} +3 -3
  38. package/dist/{MessagingScreen-CkM93okb.mjs.map → MessagingScreen-DTXSZ-Oa.mjs.map} +1 -1
  39. package/dist/{MySiteScreen-DvU2pZz6.cjs → MySiteScreen-2IzxVfpO.cjs} +9 -9
  40. package/dist/{MySiteScreen-DDn-LF3O.cjs → MySiteScreen-BSFb-n7n.cjs} +2 -2
  41. package/dist/{MySiteScreen-DDn-LF3O.cjs.map → MySiteScreen-BSFb-n7n.cjs.map} +1 -1
  42. package/dist/{MySiteScreen-CPbfU_IZ.mjs → MySiteScreen-Bvyx63pT.mjs} +2 -2
  43. package/dist/{MySiteScreen-CPbfU_IZ.mjs.map → MySiteScreen-Bvyx63pT.mjs.map} +1 -1
  44. package/dist/{NestedWidget-VLIlkeTO.mjs → NestedWidget-DIwW-wM7.mjs} +2 -2
  45. package/dist/{NestedWidget-VLIlkeTO.mjs.map → NestedWidget-DIwW-wM7.mjs.map} +1 -1
  46. package/dist/{NestedWidget-BvzfHeEB.cjs → NestedWidget-DYWk_L7c.cjs} +2 -2
  47. package/dist/{NestedWidget-Dt-pcMt3.cjs → NestedWidget-G17JLI8g.cjs} +2 -2
  48. package/dist/{NestedWidget-Dt-pcMt3.cjs.map → NestedWidget-G17JLI8g.cjs.map} +1 -1
  49. package/dist/{OrdersScreen-CFoaFECU.cjs → OrdersScreen-Bf4o3Kty.cjs} +3 -3
  50. package/dist/{OrdersScreen-CFoaFECU.cjs.map → OrdersScreen-Bf4o3Kty.cjs.map} +1 -1
  51. package/dist/{OrdersScreen-BaK2X85Y.cjs → OrdersScreen-DCzYEgsP.cjs} +9 -9
  52. package/dist/{OrdersScreen-kv-WHzAT.mjs → OrdersScreen-Djdeji9g.mjs} +3 -3
  53. package/dist/{OrdersScreen-kv-WHzAT.mjs.map → OrdersScreen-Djdeji9g.mjs.map} +1 -1
  54. package/dist/{ProductsScreen-DxM9yGUe.mjs → ProductsScreen-6J79mnIB.mjs} +4 -4
  55. package/dist/{ProductsScreen-DxM9yGUe.mjs.map → ProductsScreen-6J79mnIB.mjs.map} +1 -1
  56. package/dist/{ProductsScreen-D-H2I5f1.mjs → ProductsScreen-DCPVyEyQ.mjs} +13 -13
  57. package/dist/{ProductsScreen-De2dqFa0.cjs → ProductsScreen-DZnKtPBp.cjs} +10 -10
  58. package/dist/{ProductsScreen-9nEL6Y3b.cjs → ProductsScreen-PJ95OcSX.cjs} +4 -4
  59. package/dist/{ProductsScreen-9nEL6Y3b.cjs.map → ProductsScreen-PJ95OcSX.cjs.map} +1 -1
  60. package/dist/{ProfileScreen-HhhjGnaj.cjs → ProfileScreen-B46jd4Ic.cjs} +9 -9
  61. package/dist/{ProfileScreen-BVNBgqev.mjs → ProfileScreen-CUsGRCB7.mjs} +3 -3
  62. package/dist/{ProfileScreen-BVNBgqev.mjs.map → ProfileScreen-CUsGRCB7.mjs.map} +1 -1
  63. package/dist/{ProfileScreen-C9x02V7u.cjs → ProfileScreen-DtmReqa8.cjs} +3 -3
  64. package/dist/{ProfileScreen-C9x02V7u.cjs.map → ProfileScreen-DtmReqa8.cjs.map} +1 -1
  65. package/dist/ShareablesScreen-CVT7u2hN.cjs +398 -0
  66. package/dist/ShareablesScreen-CVT7u2hN.cjs.map +1 -0
  67. package/dist/ShareablesScreen-Cy7w85IH.mjs +380 -0
  68. package/dist/ShareablesScreen-Cy7w85IH.mjs.map +1 -0
  69. package/dist/{ShareablesScreen-DWLYxLHA.cjs → ShareablesScreen-Dk5EQGMa.cjs} +10 -10
  70. package/dist/{ShareablesScreen-CEZqZez3.mjs → ShareablesScreen-jAj9hmif.mjs} +13 -13
  71. package/dist/{ShopScreen-BMgp7sPi.mjs → ShopScreen-AGvcqUii.mjs} +4 -4
  72. package/dist/{ShopScreen-BMgp7sPi.mjs.map → ShopScreen-AGvcqUii.mjs.map} +1 -1
  73. package/dist/{ShopScreen-B7Rpew_K.cjs → ShopScreen-DgBjP_8D.cjs} +4 -4
  74. package/dist/{ShopScreen-B7Rpew_K.cjs.map → ShopScreen-DgBjP_8D.cjs.map} +1 -1
  75. package/dist/{ShopScreen-CxjJQ-Oh.cjs → ShopScreen-wYtLEGXo.cjs} +9 -9
  76. package/dist/{SubscriptionsScreen-D0c9J3ug.cjs → SubscriptionsScreen-BqOb2kYR.cjs} +9 -9
  77. package/dist/{SubscriptionsScreen-DBBeoyvD.cjs → SubscriptionsScreen-BrLlvFJn.cjs} +3 -3
  78. package/dist/{SubscriptionsScreen-DBBeoyvD.cjs.map → SubscriptionsScreen-BrLlvFJn.cjs.map} +1 -1
  79. package/dist/{SubscriptionsScreen-CRANhpmr.mjs → SubscriptionsScreen-C5YWtYfE.mjs} +3 -3
  80. package/dist/{SubscriptionsScreen-CRANhpmr.mjs.map → SubscriptionsScreen-C5YWtYfE.mjs.map} +1 -1
  81. package/dist/{TableWidget-CniHh-ug.mjs → TableWidget-CC4XnRF2.mjs} +2 -2
  82. package/dist/{TableWidget-CniHh-ug.mjs.map → TableWidget-CC4XnRF2.mjs.map} +1 -1
  83. package/dist/{TableWidget-6Mui98HQ.cjs → TableWidget-DiqQBV7-.cjs} +2 -2
  84. package/dist/{TableWidget-6Mui98HQ.cjs.map → TableWidget-DiqQBV7-.cjs.map} +1 -1
  85. package/dist/{TableWidget-pZhHgb5f.cjs → TableWidget-DmwVP_Lm.cjs} +2 -2
  86. package/dist/{VideoWidget-D-7VTnG1.cjs → VideoWidget-BmVIIfvM.cjs} +2 -2
  87. package/dist/{VideoWidget-D-7VTnG1.cjs.map → VideoWidget-BmVIIfvM.cjs.map} +1 -1
  88. package/dist/{VideoWidget-2f5fuWwH.mjs → VideoWidget-CpUPsOI7.mjs} +2 -2
  89. package/dist/{VideoWidget-2f5fuWwH.mjs.map → VideoWidget-CpUPsOI7.mjs.map} +1 -1
  90. package/dist/index.cjs +42 -42
  91. package/dist/index.d.cts.map +1 -1
  92. package/dist/index.d.mts.map +1 -1
  93. package/dist/index.mjs +42 -42
  94. package/dist/{src-D9jWnRlX.mjs → src-BrwLqPPh.mjs} +90 -269
  95. package/dist/src-BrwLqPPh.mjs.map +1 -0
  96. package/dist/{src-C3R03o4d.cjs → src-Dlsw83js.cjs} +95 -268
  97. package/dist/src-Dlsw83js.cjs.map +1 -0
  98. package/dist/{use-account-clients-BUJ8gkPI.cjs → use-account-clients-CkDfPpCR.cjs} +2 -2
  99. package/dist/{use-account-clients-BUJ8gkPI.cjs.map → use-account-clients-CkDfPpCR.cjs.map} +1 -1
  100. package/dist/{use-account-clients-B278xE7A.mjs → use-account-clients-Dsqx0mKw.mjs} +2 -2
  101. package/dist/{use-account-clients-B278xE7A.mjs.map → use-account-clients-Dsqx0mKw.mjs.map} +1 -1
  102. package/dist/{use-current-user-BlZn_jR2.mjs → use-current-user-BMI-LR9t.mjs} +3 -3
  103. package/dist/{use-current-user-BlZn_jR2.mjs.map → use-current-user-BMI-LR9t.mjs.map} +1 -1
  104. package/dist/{use-current-user-D84vQEB5.cjs → use-current-user-LLJ1GtNB.cjs} +3 -3
  105. package/dist/{use-current-user-D84vQEB5.cjs.map → use-current-user-LLJ1GtNB.cjs.map} +1 -1
  106. package/dist/{use-customer-account-DSR6VNmL.cjs → use-customer-account-DZW_YY9d.cjs} +3 -3
  107. package/dist/{use-customer-account-DSR6VNmL.cjs.map → use-customer-account-DZW_YY9d.cjs.map} +1 -1
  108. package/dist/{use-customer-account-DqzsUJ02.mjs → use-customer-account-DzOD3vLz.mjs} +3 -3
  109. package/dist/{use-customer-account-DqzsUJ02.mjs.map → use-customer-account-DzOD3vLz.mjs.map} +1 -1
  110. package/dist/{use-fluid-api-CVYfAcJM.mjs → use-fluid-api-CaSYWFuj.mjs} +2 -2
  111. package/dist/{use-fluid-api-CVYfAcJM.mjs.map → use-fluid-api-CaSYWFuj.mjs.map} +1 -1
  112. package/dist/{use-fluid-api-5vFjbTFA.cjs → use-fluid-api-Kw0AKvCs.cjs} +2 -2
  113. package/dist/{use-fluid-api-5vFjbTFA.cjs.map → use-fluid-api-Kw0AKvCs.cjs.map} +1 -1
  114. package/package.json +14 -14
  115. package/dist/MediaRenderer-CSrxxSt4.cjs.map +0 -1
  116. package/dist/MediaRenderer-C_maibNT.mjs.map +0 -1
  117. package/dist/ShareablesScreen-B1T6QFc4.mjs +0 -159
  118. package/dist/ShareablesScreen-B1T6QFc4.mjs.map +0 -1
  119. package/dist/ShareablesScreen-HZ0XSOvN.cjs +0 -177
  120. package/dist/ShareablesScreen-HZ0XSOvN.cjs.map +0 -1
  121. package/dist/src-C3R03o4d.cjs.map +0 -1
  122. package/dist/src-D9jWnRlX.mjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  require("./chunk-9hOWP6kD.cjs");
2
- require("./FluidProvider-roApesp3.cjs");
2
+ require("./FluidProvider-CyzA2g75.cjs");
3
3
  require("./PointsWidget-DG0QQHqL.cjs");
4
4
  require("./error-state-Bpq2CYvz.cjs");
5
5
  require("./ScreenRenderer-DFcTR685.cjs");
@@ -16,29 +16,29 @@ require("./CardWidget-BizXFntv.cjs");
16
16
  require("./purify.es-BYKYXCoc.cjs");
17
17
  require("./src-51z4j_HI.cjs");
18
18
  require("./scroll-arrows-CPqmb9kZ.cjs");
19
- require("./MediaRenderer-CSrxxSt4.cjs");
20
- require("./CarouselWidget-D48n9SsA.cjs");
19
+ require("./MediaRenderer-p7hExkdt.cjs");
20
+ require("./CarouselWidget-CAiMfcdg.cjs");
21
21
  require("./CatchUpWidget-BchUal38.cjs");
22
22
  require("./ChartWidget-RHqQCYx_.cjs");
23
23
  require("./ContainerWidget-CtgF1LXW.cjs");
24
- require("./ImageWidget-DSMtD54I.cjs");
24
+ require("./ImageWidget-DKen6mq7.cjs");
25
25
  require("./LinkWidget-DboreMUy.cjs");
26
- require("./ListWidget-CdE-JgyF.cjs");
26
+ require("./ListWidget-KxIwLQtv.cjs");
27
27
  require("./MySiteWidget-D2h4FMGj.cjs");
28
- require("./NestedWidget-Dt-pcMt3.cjs");
28
+ require("./NestedWidget-G17JLI8g.cjs");
29
29
  require("./QuickShareWidget-Bl3wpW-9.cjs");
30
30
  require("./RecentActivityWidget-jxntxDKT.cjs");
31
31
  require("./SeparatorWidget-CzRNaBc5.cjs");
32
32
  require("./SpacerWidget-DHFiuxkx.cjs");
33
- require("./TableWidget-6Mui98HQ.cjs");
33
+ require("./TableWidget-DiqQBV7-.cjs");
34
34
  require("./ToDoWidget-DZUvDwnJ.cjs");
35
- require("./VideoWidget-D-7VTnG1.cjs");
35
+ require("./VideoWidget-BmVIIfvM.cjs");
36
36
  require("./ScreenHeaderContext-DpVOhFzT.cjs");
37
37
  require("./dist-DRVtlgQ1.cjs");
38
38
  require("./es-DlWO6buB.cjs");
39
39
  require("./dist-Ck9MGRmE.cjs");
40
- require("./src-C3R03o4d.cjs");
40
+ require("./src-Dlsw83js.cjs");
41
41
  require("./dist-BSbac3uh.cjs");
42
- const require_ProductsScreen = require("./ProductsScreen-9nEL6Y3b.cjs");
42
+ const require_ProductsScreen = require("./ProductsScreen-PJ95OcSX.cjs");
43
43
  exports.ProductsScreen = require_ProductsScreen.ProductsScreen;
44
44
  exports.productsScreenPropertySchema = require_ProductsScreen.productsScreenPropertySchema;
@@ -1,8 +1,8 @@
1
1
  require("./chunk-9hOWP6kD.cjs");
2
- const require_use_account_clients = require("./use-account-clients-BUJ8gkPI.cjs");
3
- const require_use_current_user = require("./use-current-user-D84vQEB5.cjs");
2
+ const require_use_account_clients = require("./use-account-clients-CkDfPpCR.cjs");
3
+ const require_use_current_user = require("./use-current-user-LLJ1GtNB.cjs");
4
4
  const require_AppNavigationContext = require("./AppNavigationContext-Agp0UkCQ.cjs");
5
- const require_src = require("./src-C3R03o4d.cjs");
5
+ const require_src = require("./src-Dlsw83js.cjs");
6
6
  const require_src$1 = require("./src-CMByt6YP.cjs");
7
7
  let react = require("react");
8
8
  let react_jsx_runtime = require("react/jsx-runtime");
@@ -83,4 +83,4 @@ Object.defineProperty(exports, "productsScreenPropertySchema", {
83
83
  }
84
84
  });
85
85
 
86
- //# sourceMappingURL=ProductsScreen-9nEL6Y3b.cjs.map
86
+ //# sourceMappingURL=ProductsScreen-PJ95OcSX.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProductsScreen-9nEL6Y3b.cjs","names":["useSdkClient","useCurrentUser","useAppNavigation","createShareablesApiAdapter","ShareablesCoreProvider","ShareablesApiProvider","ShareablesUIProvider","ProductsApp"],"sources":["../src/screens/ProductsScreen.tsx"],"sourcesContent":["import { useCallback, useMemo, type ComponentProps } from \"react\";\nimport type {\n BackgroundValue,\n BorderRadiusOptions,\n ColorOptions,\n PaddingOptions,\n} from \"../types\";\nimport type { WidgetPropertySchema } from \"../registries/property-schema-types\";\nimport {\n ShareablesCoreProvider,\n ShareablesApiProvider,\n type ShareablesApi,\n} from \"@fluid-app/shareables-core\";\nimport { ShareablesUIProvider, ProductsApp } from \"@fluid-app/shareables-ui\";\nimport { createShareablesApiAdapter } from \"@fluid-app/shareables-api-client\";\nimport { useCurrentUser } from \"../hooks/use-current-user\";\nimport { useAppNavigation } from \"../shell/AppNavigationContext\";\nimport { useSdkClient } from \"../account/use-account-clients\";\n\ntype ProductsScreenProps = ComponentProps<\"div\"> & {\n background?: BackgroundValue;\n textColor?: ColorOptions;\n accentColor?: ColorOptions;\n padding?: PaddingOptions;\n borderRadius?: BorderRadiusOptions;\n};\n\nexport function ProductsScreen({\n /* eslint-disable @typescript-eslint/no-unused-vars -- destructured to exclude from divProps spread */\n background,\n textColor,\n accentColor,\n padding,\n borderRadius,\n /* eslint-enable @typescript-eslint/no-unused-vars */\n ...divProps\n}: ProductsScreenProps): React.JSX.Element {\n const domainClient = useSdkClient();\n const { data: userData } = useCurrentUser();\n const { currentSlug, navigate } = useAppNavigation();\n\n // Extract product ID from slug: \"products/123\" → \"123\"\n const productId = useMemo(() => {\n const match = currentSlug.match(/^products\\/(.+)/);\n return match?.[1] ?? null;\n }, [currentSlug]);\n\n const handleSelectProduct = useCallback(\n (id: string) => {\n navigate(`products/${id}`);\n },\n [navigate],\n );\n\n const handleBack = useCallback(() => {\n navigate(\"products\");\n }, [navigate]);\n\n const coreConfig = useMemo(\n () => ({\n client: domainClient,\n user: userData ? { id: userData.id } : null,\n repContext: true,\n }),\n [domainClient, userData],\n );\n\n const shareablesApi = useMemo<ShareablesApi>(\n () => createShareablesApiAdapter(domainClient, { repContext: true }),\n [domainClient],\n );\n\n const uiConfig = useMemo(\n () => ({\n user: userData\n ? {\n id: userData.id,\n company: userData.company\n ? { logo_url: userData.company.logo_url }\n : null,\n }\n : undefined,\n basePath: \"\",\n navigate: (path: string) => {\n navigate(path);\n },\n showToast: (opts: {\n title: string;\n type: \"success\" | \"error\" | \"warning\";\n }) => {\n console.log(`[Products] ${opts.type}: ${opts.title}`);\n },\n }),\n [userData, navigate],\n );\n\n return (\n <div {...divProps} className={`h-full ${divProps.className ?? \"\"}`}>\n <ShareablesCoreProvider config={coreConfig}>\n <ShareablesApiProvider api={shareablesApi}>\n <ShareablesUIProvider config={uiConfig}>\n <ProductsApp\n countryCode={userData?.country?.iso}\n companyLogoUrl={userData?.company?.logo_url}\n productId={productId}\n onSelectProduct={handleSelectProduct}\n onBack={handleBack}\n />\n </ShareablesUIProvider>\n </ShareablesApiProvider>\n </ShareablesCoreProvider>\n </div>\n );\n}\n\nexport const productsScreenPropertySchema: WidgetPropertySchema = {\n widgetType: \"ProductsScreen\",\n displayName: \"Products Screen\",\n tabsConfig: [{ id: \"styling\", label: \"Styling\" }],\n fields: [],\n} as const satisfies WidgetPropertySchema;\n"],"mappings":";;;;;;;;;AA2BA,SAAgB,eAAe,EAE7B,YACA,WACA,aACA,SACA,cAEA,GAAG,YACsC;CACzC,MAAM,eAAeA,4BAAAA,cAAc;CACnC,MAAM,EAAE,MAAM,aAAaC,yBAAAA,gBAAgB;CAC3C,MAAM,EAAE,aAAa,aAAa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MACjB,QAAQ;MACR,CAAA;KACmB,CAAA;IACD,CAAA;GACD,CAAA;EACrB,CAAA;;AAIV,MAAa,+BAAqD;CAChE,YAAY;CACZ,aAAa;CACb,YAAY,CAAC;EAAE,IAAI;EAAW,OAAO;EAAW,CAAC;CACjD,QAAQ,EAAE;CACX"}
1
+ {"version":3,"file":"ProductsScreen-PJ95OcSX.cjs","names":["useSdkClient","useCurrentUser","useAppNavigation","createShareablesApiAdapter","ShareablesCoreProvider","ShareablesApiProvider","ShareablesUIProvider","ProductsApp"],"sources":["../src/screens/ProductsScreen.tsx"],"sourcesContent":["import { useCallback, useMemo, type ComponentProps } from \"react\";\nimport type {\n BackgroundValue,\n BorderRadiusOptions,\n ColorOptions,\n PaddingOptions,\n} from \"../types\";\nimport type { WidgetPropertySchema } from \"../registries/property-schema-types\";\nimport {\n ShareablesCoreProvider,\n ShareablesApiProvider,\n type ShareablesApi,\n} from \"@fluid-app/shareables-core\";\nimport { ShareablesUIProvider, ProductsApp } from \"@fluid-app/shareables-ui\";\nimport { createShareablesApiAdapter } from \"@fluid-app/shareables-api-client\";\nimport { useCurrentUser } from \"../hooks/use-current-user\";\nimport { useAppNavigation } from \"../shell/AppNavigationContext\";\nimport { useSdkClient } from \"../account/use-account-clients\";\n\ntype ProductsScreenProps = ComponentProps<\"div\"> & {\n background?: BackgroundValue;\n textColor?: ColorOptions;\n accentColor?: ColorOptions;\n padding?: PaddingOptions;\n borderRadius?: BorderRadiusOptions;\n};\n\nexport function ProductsScreen({\n /* eslint-disable @typescript-eslint/no-unused-vars -- destructured to exclude from divProps spread */\n background,\n textColor,\n accentColor,\n padding,\n borderRadius,\n /* eslint-enable @typescript-eslint/no-unused-vars */\n ...divProps\n}: ProductsScreenProps): React.JSX.Element {\n const domainClient = useSdkClient();\n const { data: userData } = useCurrentUser();\n const { currentSlug, navigate } = useAppNavigation();\n\n // Extract product ID from slug: \"products/123\" → \"123\"\n const productId = useMemo(() => {\n const match = currentSlug.match(/^products\\/(.+)/);\n return match?.[1] ?? null;\n }, [currentSlug]);\n\n const handleSelectProduct = useCallback(\n (id: string) => {\n navigate(`products/${id}`);\n },\n [navigate],\n );\n\n const handleBack = useCallback(() => {\n navigate(\"products\");\n }, [navigate]);\n\n const coreConfig = useMemo(\n () => ({\n client: domainClient,\n user: userData ? { id: userData.id } : null,\n repContext: true,\n }),\n [domainClient, userData],\n );\n\n const shareablesApi = useMemo<ShareablesApi>(\n () => createShareablesApiAdapter(domainClient, { repContext: true }),\n [domainClient],\n );\n\n const uiConfig = useMemo(\n () => ({\n user: userData\n ? {\n id: userData.id,\n company: userData.company\n ? { logo_url: userData.company.logo_url }\n : null,\n }\n : undefined,\n basePath: \"\",\n navigate: (path: string) => {\n navigate(path);\n },\n showToast: (opts: {\n title: string;\n type: \"success\" | \"error\" | \"warning\";\n }) => {\n console.log(`[Products] ${opts.type}: ${opts.title}`);\n },\n }),\n [userData, navigate],\n );\n\n return (\n <div {...divProps} className={`h-full ${divProps.className ?? \"\"}`}>\n <ShareablesCoreProvider config={coreConfig}>\n <ShareablesApiProvider api={shareablesApi}>\n <ShareablesUIProvider config={uiConfig}>\n <ProductsApp\n countryCode={userData?.country?.iso}\n companyLogoUrl={userData?.company?.logo_url}\n productId={productId}\n onSelectProduct={handleSelectProduct}\n onBack={handleBack}\n />\n </ShareablesUIProvider>\n </ShareablesApiProvider>\n </ShareablesCoreProvider>\n </div>\n );\n}\n\nexport const productsScreenPropertySchema: WidgetPropertySchema = {\n widgetType: \"ProductsScreen\",\n displayName: \"Products Screen\",\n tabsConfig: [{ id: \"styling\", label: \"Styling\" }],\n fields: [],\n} as const satisfies WidgetPropertySchema;\n"],"mappings":";;;;;;;;;AA2BA,SAAgB,eAAe,EAE7B,YACA,WACA,aACA,SACA,cAEA,GAAG,YACsC;CACzC,MAAM,eAAeA,4BAAAA,cAAc;CACnC,MAAM,EAAE,MAAM,aAAaC,yBAAAA,gBAAgB;CAC3C,MAAM,EAAE,aAAa,aAAaC,6BAAAA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Q;MACR,CAAA;KACmB,CAAA;IACD,CAAA;GACD,CAAA;EACrB,CAAA;;AAIV,MAAa,+BAAqD;CAChE,YAAY;CACZ,aAAa;CACb,YAAY,CAAC;EAAE,IAAI;EAAW,OAAO;EAAW,CAAC;CACjD,QAAQ,EAAE;CACX"}
@@ -1,5 +1,5 @@
1
1
  require("./chunk-9hOWP6kD.cjs");
2
- require("./FluidProvider-roApesp3.cjs");
2
+ require("./FluidProvider-CyzA2g75.cjs");
3
3
  require("./PointsWidget-DG0QQHqL.cjs");
4
4
  require("./error-state-Bpq2CYvz.cjs");
5
5
  require("./ScreenRenderer-DFcTR685.cjs");
@@ -16,24 +16,24 @@ require("./CardWidget-BizXFntv.cjs");
16
16
  require("./purify.es-BYKYXCoc.cjs");
17
17
  require("./src-51z4j_HI.cjs");
18
18
  require("./scroll-arrows-CPqmb9kZ.cjs");
19
- require("./MediaRenderer-CSrxxSt4.cjs");
20
- require("./CarouselWidget-D48n9SsA.cjs");
19
+ require("./MediaRenderer-p7hExkdt.cjs");
20
+ require("./CarouselWidget-CAiMfcdg.cjs");
21
21
  require("./CatchUpWidget-BchUal38.cjs");
22
22
  require("./ChartWidget-RHqQCYx_.cjs");
23
23
  require("./ContainerWidget-CtgF1LXW.cjs");
24
- require("./ImageWidget-DSMtD54I.cjs");
24
+ require("./ImageWidget-DKen6mq7.cjs");
25
25
  require("./LinkWidget-DboreMUy.cjs");
26
- require("./ListWidget-CdE-JgyF.cjs");
26
+ require("./ListWidget-KxIwLQtv.cjs");
27
27
  require("./MySiteWidget-D2h4FMGj.cjs");
28
- require("./NestedWidget-Dt-pcMt3.cjs");
28
+ require("./NestedWidget-G17JLI8g.cjs");
29
29
  require("./QuickShareWidget-Bl3wpW-9.cjs");
30
30
  require("./RecentActivityWidget-jxntxDKT.cjs");
31
31
  require("./SeparatorWidget-CzRNaBc5.cjs");
32
32
  require("./SpacerWidget-DHFiuxkx.cjs");
33
- require("./TableWidget-6Mui98HQ.cjs");
33
+ require("./TableWidget-DiqQBV7-.cjs");
34
34
  require("./ToDoWidget-DZUvDwnJ.cjs");
35
- require("./VideoWidget-D-7VTnG1.cjs");
35
+ require("./VideoWidget-BmVIIfvM.cjs");
36
36
  require("./ScreenHeaderContext-DpVOhFzT.cjs");
37
- const require_ProfileScreen = require("./ProfileScreen-C9x02V7u.cjs");
37
+ const require_ProfileScreen = require("./ProfileScreen-DtmReqa8.cjs");
38
38
  exports.ProfileScreen = require_ProfileScreen.ProfileScreen;
39
39
  exports.profileScreenPropertySchema = require_ProfileScreen.profileScreenPropertySchema;
@@ -1,8 +1,8 @@
1
1
  import { n as __exportAll } from "./chunk-ByhMGyNw.mjs";
2
- import { bt as useFluidPayApi, n as useFluidContext, yt as useCountryStates } from "./FluidProvider-C8sXuPhI.mjs";
2
+ import { bt as useFluidPayApi, n as useFluidContext, yt as useCountryStates } from "./FluidProvider-CWYquEIF.mjs";
3
3
  import { t as parseApiErrors } from "./parse-api-errors-Dy2gL1eC.mjs";
4
4
  import { $t as Avatar, A as SelectContent, G as Label, I as Input, J as DropdownMenuItem, K as DropdownMenu, Kt as Breadcrumb, M as SelectTrigger, N as SelectValue, X as DropdownMenuSeparator, Xt as BreadcrumbPage, Yt as BreadcrumbList, _n as AccordionTrigger, at as DialogFooter, dn as Button, en as AvatarFallback, et as DropdownMenuTrigger, gn as AccordionItem, hn as AccordionContent, j as SelectItem, k as Select, lt as DialogTitle, mn as Accordion, nt as DialogClose, ot as DialogHeader, q as DropdownMenuContent, qt as BreadcrumbItem, rt as DialogContent, tt as Dialog, vn as useZodForm, x as Skeleton, y as fluidToast, yn as cn } from "./src-D6DimP34.mjs";
5
- import { a as useFluidAuth, r as useSdkClient, t as API_VERSION } from "./use-account-clients-B278xE7A.mjs";
5
+ import { a as useFluidAuth, r as useSdkClient, t as API_VERSION } from "./use-account-clients-Dsqx0mKw.mjs";
6
6
  import { r as useScreenHeaderBreadcrumbs } from "./ScreenHeaderContext-CrdfLGKk.mjs";
7
7
  import { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
8
8
  import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
@@ -2438,4 +2438,4 @@ const profileScreenPropertySchema = {
2438
2438
  //#endregion
2439
2439
  export { ProfileScreen_exports as n, profileScreenPropertySchema as r, ProfileScreen as t };
2440
2440
 
2441
- //# sourceMappingURL=ProfileScreen-BVNBgqev.mjs.map
2441
+ //# sourceMappingURL=ProfileScreen-CUsGRCB7.mjs.map