@fluid-app/portal-sdk 0.1.190 → 0.1.192

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 (90) hide show
  1. package/dist/{ContactsScreen-Dw9G8Q3n.mjs → ContactsScreen-BtBNMZzG.mjs} +68 -71
  2. package/dist/ContactsScreen-BtBNMZzG.mjs.map +1 -0
  3. package/dist/{ContactsScreen-Euvu6Y8H.cjs → ContactsScreen-Cheiwaxn.cjs} +3 -4
  4. package/dist/{ContactsScreen-D2rOJ9Ra.cjs → ContactsScreen-DvohvoOE.cjs} +67 -70
  5. package/dist/ContactsScreen-DvohvoOE.cjs.map +1 -0
  6. package/dist/{FluidProvider-bZ4dm-UF.cjs → FluidProvider-BWBEdHQQ.cjs} +30 -2
  7. package/dist/{FluidProvider-bZ4dm-UF.cjs.map → FluidProvider-BWBEdHQQ.cjs.map} +1 -1
  8. package/dist/{FluidProvider-ClxrzJDf.mjs → FluidProvider-dp9q6oRM.mjs} +30 -2
  9. package/dist/FluidProvider-dp9q6oRM.mjs.map +1 -0
  10. package/dist/InfiniteScrollSentinel-CU801UfD.cjs +36 -0
  11. package/dist/InfiniteScrollSentinel-CU801UfD.cjs.map +1 -0
  12. package/dist/InfiniteScrollSentinel-MgF-ldXy.mjs +30 -0
  13. package/dist/InfiniteScrollSentinel-MgF-ldXy.mjs.map +1 -0
  14. package/dist/{MessagingScreen-Bu8KvZrz.mjs → MessagingScreen-BNsaLpzu.mjs} +2 -2
  15. package/dist/{MessagingScreen-Bu8KvZrz.mjs.map → MessagingScreen-BNsaLpzu.mjs.map} +1 -1
  16. package/dist/{MessagingScreen-CZIMNXUy.cjs → MessagingScreen-CJ3p3ZHq.cjs} +2 -2
  17. package/dist/{MessagingScreen-B4OtJ908.cjs → MessagingScreen-DX8A0ahD.cjs} +2 -2
  18. package/dist/{MessagingScreen-B4OtJ908.cjs.map → MessagingScreen-DX8A0ahD.cjs.map} +1 -1
  19. package/dist/{OrdersScreen-DtO4r_th.mjs → OrdersScreen-BgyMsZpn.mjs} +245 -84
  20. package/dist/OrdersScreen-BgyMsZpn.mjs.map +1 -0
  21. package/dist/{OrdersScreen-DlCLRqEK.cjs → OrdersScreen-CCVPgVWa.cjs} +244 -83
  22. package/dist/OrdersScreen-CCVPgVWa.cjs.map +1 -0
  23. package/dist/{OrdersScreen-CV6umNnp.cjs → OrdersScreen-DWNylH_i.cjs} +3 -2
  24. package/dist/{PortalContentApiProvider-DGkP0Vk6.mjs → PortalContentApiProvider-Bwi7FOTs.mjs} +72 -75
  25. package/dist/PortalContentApiProvider-Bwi7FOTs.mjs.map +1 -0
  26. package/dist/{PortalContentApiProvider-CH87-pE5.cjs → PortalContentApiProvider-Cb-DGxBo.cjs} +72 -75
  27. package/dist/PortalContentApiProvider-Cb-DGxBo.cjs.map +1 -0
  28. package/dist/{PortalProductsApiProvider-CTLKKRqy.cjs → PortalProductsApiProvider-CRN-i8Rh.cjs} +2 -2
  29. package/dist/{PortalProductsApiProvider-CTLKKRqy.cjs.map → PortalProductsApiProvider-CRN-i8Rh.cjs.map} +1 -1
  30. package/dist/{PortalProductsApiProvider-CY6CUq6x.mjs → PortalProductsApiProvider-D0jul2Fh.mjs} +2 -2
  31. package/dist/{PortalProductsApiProvider-CY6CUq6x.mjs.map → PortalProductsApiProvider-D0jul2Fh.mjs.map} +1 -1
  32. package/dist/{ProductsScreen-a1Bcvc3U.cjs → ProductsScreen-BQqP8-N9.cjs} +3 -3
  33. package/dist/{ProductsScreen-a1Bcvc3U.cjs.map → ProductsScreen-BQqP8-N9.cjs.map} +1 -1
  34. package/dist/{ProductsScreen-DWpcieDU.mjs → ProductsScreen-Cd8hpH-3.mjs} +3 -3
  35. package/dist/{ProductsScreen-DWpcieDU.mjs.map → ProductsScreen-Cd8hpH-3.mjs.map} +1 -1
  36. package/dist/{ProductsScreen-DLrDpYau.mjs → ProductsScreen-CdbwRM5O.mjs} +4 -4
  37. package/dist/{ProductsScreen-DmhLYjZD.cjs → ProductsScreen-DgPjO-HY.cjs} +4 -4
  38. package/dist/{ProfileScreen-Dx8KAKbU.cjs → ProfileScreen-BsjuHCor.cjs} +2 -2
  39. package/dist/{ProfileScreen-Dx8KAKbU.cjs.map → ProfileScreen-BsjuHCor.cjs.map} +1 -1
  40. package/dist/{ProfileScreen-BCDSo1pW.cjs → ProfileScreen-DL-C2R6R.cjs} +2 -2
  41. package/dist/{ProfileScreen-DoCcIaDI.mjs → ProfileScreen-eJvfI2YW.mjs} +2 -2
  42. package/dist/{ProfileScreen-DoCcIaDI.mjs.map → ProfileScreen-eJvfI2YW.mjs.map} +1 -1
  43. package/dist/{ShareablesScreen-B-OPO65F.cjs → ShareablesScreen-BEm7wQaI.cjs} +4 -4
  44. package/dist/{ShareablesScreen-CXchqCpx.mjs → ShareablesScreen-BUuuUpDS.mjs} +3 -3
  45. package/dist/{ShareablesScreen-CXchqCpx.mjs.map → ShareablesScreen-BUuuUpDS.mjs.map} +1 -1
  46. package/dist/{ShareablesScreen-D8tsuynn.cjs → ShareablesScreen-C1PQmDVa.cjs} +3 -3
  47. package/dist/{ShareablesScreen-D8tsuynn.cjs.map → ShareablesScreen-C1PQmDVa.cjs.map} +1 -1
  48. package/dist/{ShareablesScreen-Bvx2nkO5.mjs → ShareablesScreen-DoJ8EIDG.mjs} +4 -4
  49. package/dist/{ShopScreen-D__IvAj7.mjs → ShopScreen-5AXTCtLQ.mjs} +3 -3
  50. package/dist/{ShopScreen-D__IvAj7.mjs.map → ShopScreen-5AXTCtLQ.mjs.map} +1 -1
  51. package/dist/{ShopScreen-D6YHqL2Z.cjs → ShopScreen-DEFhDrcd.cjs} +3 -3
  52. package/dist/{ShopScreen-CcmvJ3mF.cjs → ShopScreen-X802gHEX.cjs} +3 -3
  53. package/dist/{ShopScreen-CcmvJ3mF.cjs.map → ShopScreen-X802gHEX.cjs.map} +1 -1
  54. package/dist/{SubscriptionsScreen-CshfzE9Z.mjs → SubscriptionsScreen-BwRoXYF8.mjs} +44 -34
  55. package/dist/SubscriptionsScreen-BwRoXYF8.mjs.map +1 -0
  56. package/dist/{SubscriptionsScreen-CEiVF1iQ.cjs → SubscriptionsScreen-DbcnEDD0.cjs} +43 -33
  57. package/dist/SubscriptionsScreen-DbcnEDD0.cjs.map +1 -0
  58. package/dist/{SubscriptionsScreen-C32rbhAZ.cjs → SubscriptionsScreen-mhTl7OIp.cjs} +3 -3
  59. package/dist/{dist-Ib6pM5r3.cjs → dist-bL3uiYn3.cjs} +1 -1
  60. package/dist/{dist-Ib6pM5r3.cjs.map → dist-bL3uiYn3.cjs.map} +1 -1
  61. package/dist/{dist-DhOQb8en.mjs → dist-wzcShuuv.mjs} +1 -1
  62. package/dist/{dist-DhOQb8en.mjs.map → dist-wzcShuuv.mjs.map} +1 -1
  63. package/dist/index.cjs +30 -30
  64. package/dist/index.d.cts.map +1 -1
  65. package/dist/index.d.mts.map +1 -1
  66. package/dist/index.mjs +30 -30
  67. package/dist/{order-status-badge-DvZns1LY.cjs → order-status-badge-Crk9UGpl.cjs} +23 -151
  68. package/dist/order-status-badge-Crk9UGpl.cjs.map +1 -0
  69. package/dist/{order-status-badge-DK9GG8H-.mjs → order-status-badge-DiQDwwSp.mjs} +28 -150
  70. package/dist/order-status-badge-DiQDwwSp.mjs.map +1 -0
  71. package/dist/{portal_tenant-BrihTN41.mjs → portal_tenant-CWKHVgID.mjs} +14 -4
  72. package/dist/portal_tenant-CWKHVgID.mjs.map +1 -0
  73. package/dist/{portal_tenant-DjN8hwJb.cjs → portal_tenant-pozf8Ht6.cjs} +19 -3
  74. package/dist/portal_tenant-pozf8Ht6.cjs.map +1 -0
  75. package/package.json +18 -18
  76. package/dist/ContactsScreen-D2rOJ9Ra.cjs.map +0 -1
  77. package/dist/ContactsScreen-Dw9G8Q3n.mjs.map +0 -1
  78. package/dist/FluidProvider-ClxrzJDf.mjs.map +0 -1
  79. package/dist/OrdersScreen-DlCLRqEK.cjs.map +0 -1
  80. package/dist/OrdersScreen-DtO4r_th.mjs.map +0 -1
  81. package/dist/PortalContentApiProvider-CH87-pE5.cjs.map +0 -1
  82. package/dist/PortalContentApiProvider-DGkP0Vk6.mjs.map +0 -1
  83. package/dist/SubscriptionsScreen-CEiVF1iQ.cjs.map +0 -1
  84. package/dist/SubscriptionsScreen-CshfzE9Z.mjs.map +0 -1
  85. package/dist/order-status-badge-DK9GG8H-.mjs.map +0 -1
  86. package/dist/order-status-badge-DvZns1LY.cjs.map +0 -1
  87. package/dist/portal_tenant-BrihTN41.mjs.map +0 -1
  88. package/dist/portal_tenant-DjN8hwJb.cjs.map +0 -1
  89. package/dist/src-DOYe5GAF.cjs +0 -3
  90. package/dist/src-HUkXWdaF.mjs +0 -3
@@ -0,0 +1,36 @@
1
+ require("./chunk-9hOWP6kD.cjs");
2
+ const require_src = require("./src-D57IFKXU.cjs");
3
+ let react = require("react");
4
+ let react_jsx_runtime = require("react/jsx-runtime");
5
+ //#region ../../platform/ui-components/src/components/InfiniteScrollSentinel.tsx
6
+ function InfiniteScrollSentinel({ onLoadMore, hasMore, isLoading, rootMargin = "200px" }) {
7
+ const sentinelRef = (0, react.useRef)(null);
8
+ (0, react.useEffect)(() => {
9
+ const sentinel = sentinelRef.current;
10
+ if (!sentinel || !hasMore || isLoading) return;
11
+ const observer = new IntersectionObserver((entries) => {
12
+ if (entries[0]?.isIntersecting) onLoadMore();
13
+ }, { rootMargin });
14
+ observer.observe(sentinel);
15
+ return () => observer.disconnect();
16
+ }, [
17
+ onLoadMore,
18
+ hasMore,
19
+ isLoading,
20
+ rootMargin
21
+ ]);
22
+ if (!hasMore && !isLoading) return null;
23
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
24
+ className: "flex justify-center py-3",
25
+ children: isLoading ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_src.Spinner, {}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { ref: sentinelRef })
26
+ });
27
+ }
28
+ //#endregion
29
+ Object.defineProperty(exports, "InfiniteScrollSentinel", {
30
+ enumerable: true,
31
+ get: function() {
32
+ return InfiniteScrollSentinel;
33
+ }
34
+ });
35
+
36
+ //# sourceMappingURL=InfiniteScrollSentinel-CU801UfD.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InfiniteScrollSentinel-CU801UfD.cjs","names":["Spinner"],"sources":["../../../platform/ui-components/src/components/InfiniteScrollSentinel.tsx"],"sourcesContent":["import { useEffect, useRef } from \"react\";\nimport { Spinner } from \"@fluid-app/ui-primitives\";\n\nexport interface InfiniteScrollSentinelProps {\n onLoadMore: () => void;\n hasMore: boolean;\n isLoading: boolean;\n rootMargin?: string;\n}\n\nexport function InfiniteScrollSentinel({\n onLoadMore,\n hasMore,\n isLoading,\n rootMargin = \"200px\",\n}: InfiniteScrollSentinelProps) {\n const sentinelRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n const sentinel = sentinelRef.current;\n if (!sentinel || !hasMore || isLoading) return;\n\n const observer = new IntersectionObserver(\n (entries) => {\n if (entries[0]?.isIntersecting) {\n onLoadMore();\n }\n },\n { rootMargin },\n );\n\n observer.observe(sentinel);\n return () => observer.disconnect();\n }, [onLoadMore, hasMore, isLoading, rootMargin]);\n\n if (!hasMore && !isLoading) return null;\n\n return (\n <div className=\"flex justify-center py-3\">\n {isLoading ? <Spinner /> : <div ref={sentinelRef} />}\n </div>\n );\n}\n"],"mappings":";;;;;AAUA,SAAgB,uBAAuB,EACrC,YACA,SACA,WACA,aAAa,WACiB;CAC9B,MAAM,eAAA,GAAA,MAAA,QAAqC,KAAK;AAEhD,EAAA,GAAA,MAAA,iBAAgB;EACd,MAAM,WAAW,YAAY;AAC7B,MAAI,CAAC,YAAY,CAAC,WAAW,UAAW;EAExC,MAAM,WAAW,IAAI,sBAClB,YAAY;AACX,OAAI,QAAQ,IAAI,eACd,aAAY;KAGhB,EAAE,YAAY,CACf;AAED,WAAS,QAAQ,SAAS;AAC1B,eAAa,SAAS,YAAY;IACjC;EAAC;EAAY;EAAS;EAAW;EAAW,CAAC;AAEhD,KAAI,CAAC,WAAW,CAAC,UAAW,QAAO;AAEnC,QACE,iBAAA,GAAA,kBAAA,KAAC,OAAD;EAAK,WAAU;YACZ,YAAY,iBAAA,GAAA,kBAAA,KAACA,YAAAA,SAAD,EAAW,CAAA,GAAG,iBAAA,GAAA,kBAAA,KAAC,OAAD,EAAK,KAAK,aAAe,CAAA;EAChD,CAAA"}
@@ -0,0 +1,30 @@
1
+ import { y as Spinner } from "./src-BTbz18gY.mjs";
2
+ import { useEffect, useRef } from "react";
3
+ import { jsx } from "react/jsx-runtime";
4
+ //#region ../../platform/ui-components/src/components/InfiniteScrollSentinel.tsx
5
+ function InfiniteScrollSentinel({ onLoadMore, hasMore, isLoading, rootMargin = "200px" }) {
6
+ const sentinelRef = useRef(null);
7
+ useEffect(() => {
8
+ const sentinel = sentinelRef.current;
9
+ if (!sentinel || !hasMore || isLoading) return;
10
+ const observer = new IntersectionObserver((entries) => {
11
+ if (entries[0]?.isIntersecting) onLoadMore();
12
+ }, { rootMargin });
13
+ observer.observe(sentinel);
14
+ return () => observer.disconnect();
15
+ }, [
16
+ onLoadMore,
17
+ hasMore,
18
+ isLoading,
19
+ rootMargin
20
+ ]);
21
+ if (!hasMore && !isLoading) return null;
22
+ return /* @__PURE__ */ jsx("div", {
23
+ className: "flex justify-center py-3",
24
+ children: isLoading ? /* @__PURE__ */ jsx(Spinner, {}) : /* @__PURE__ */ jsx("div", { ref: sentinelRef })
25
+ });
26
+ }
27
+ //#endregion
28
+ export { InfiniteScrollSentinel as t };
29
+
30
+ //# sourceMappingURL=InfiniteScrollSentinel-MgF-ldXy.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InfiniteScrollSentinel-MgF-ldXy.mjs","names":[],"sources":["../../../platform/ui-components/src/components/InfiniteScrollSentinel.tsx"],"sourcesContent":["import { useEffect, useRef } from \"react\";\nimport { Spinner } from \"@fluid-app/ui-primitives\";\n\nexport interface InfiniteScrollSentinelProps {\n onLoadMore: () => void;\n hasMore: boolean;\n isLoading: boolean;\n rootMargin?: string;\n}\n\nexport function InfiniteScrollSentinel({\n onLoadMore,\n hasMore,\n isLoading,\n rootMargin = \"200px\",\n}: InfiniteScrollSentinelProps) {\n const sentinelRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n const sentinel = sentinelRef.current;\n if (!sentinel || !hasMore || isLoading) return;\n\n const observer = new IntersectionObserver(\n (entries) => {\n if (entries[0]?.isIntersecting) {\n onLoadMore();\n }\n },\n { rootMargin },\n );\n\n observer.observe(sentinel);\n return () => observer.disconnect();\n }, [onLoadMore, hasMore, isLoading, rootMargin]);\n\n if (!hasMore && !isLoading) return null;\n\n return (\n <div className=\"flex justify-center py-3\">\n {isLoading ? <Spinner /> : <div ref={sentinelRef} />}\n </div>\n );\n}\n"],"mappings":";;;;AAUA,SAAgB,uBAAuB,EACrC,YACA,SACA,WACA,aAAa,WACiB;CAC9B,MAAM,cAAc,OAAuB,KAAK;AAEhD,iBAAgB;EACd,MAAM,WAAW,YAAY;AAC7B,MAAI,CAAC,YAAY,CAAC,WAAW,UAAW;EAExC,MAAM,WAAW,IAAI,sBAClB,YAAY;AACX,OAAI,QAAQ,IAAI,eACd,aAAY;KAGhB,EAAE,YAAY,CACf;AAED,WAAS,QAAQ,SAAS;AAC1B,eAAa,SAAS,YAAY;IACjC;EAAC;EAAY;EAAS;EAAW;EAAW,CAAC;AAEhD,KAAI,CAAC,WAAW,CAAC,UAAW,QAAO;AAEnC,QACE,oBAAC,OAAD;EAAK,WAAU;YACZ,YAAY,oBAAC,SAAD,EAAW,CAAA,GAAG,oBAAC,OAAD,EAAK,KAAK,aAAe,CAAA;EAChD,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { a as __toESM, i as __require, n as __commonJSMin, r as __exportAll, t as useDropzone } from "./es-BeIE2Uzn.mjs";
2
- import { R as ApiError, n as useFluidContext } from "./FluidProvider-ClxrzJDf.mjs";
2
+ import { R as ApiError, n as useFluidContext } from "./FluidProvider-dp9q6oRM.mjs";
3
3
  import { $ as DropdownMenuSeparator, Bt as differenceInCalendarDays, Ft as isAfter, Gt as toDate, Ht as normalizeDates, It as format$1, J as DropdownMenuContent, Jt as millisecondsInMinute, Kt as constructFrom, L as Input, Lt as endOfMonth, Mt as subDays, Nt as isSameYear, Pt as isBefore, R as IconToggle, Rt as differenceInCalendarMonths, Ut as addMonths, Vt as startOfDay, Wt as addDays, X as DropdownMenuLabel, Y as DropdownMenuItem, at as DialogClose, b as fluidToast, ht as PopoverTrigger, i as TooltipTrigger, it as Dialog, jt as Calendar$1, mt as PopoverContent, n as TooltipContent, ot as DialogContent, pn as Button, pt as Popover, q as DropdownMenu, qt as millisecondsInHour, r as TooltipProvider, rt as DropdownMenuTrigger, t as Tooltip, v as SpinnerWithText, xn as cn, z as IconButton, zt as isSameDay } from "./src-BTbz18gY.mjs";
4
4
  import { C as PluginKey, D as Node$2, E as Mark$1, O as Schema$1, S as Plugin, T as Fragment$2, _ as index$1, a as useEditor, b as Decoration, c as Mark, d as escapeForRegEx, f as findChildrenInRange, g as getMarksBetween, h as getHTMLFromFragment, i as ReactRenderer, l as Node$1, m as getChangedRanges, o as Placeholder, p as getAttributes, r as EditorContent, s as Extension, t as StarterKit, u as combineTransactionSteps, v as markPasteRule, w as DOMParser, x as DecorationSet, y as mergeAttributes } from "./dist-tv6N_HgZ.mjs";
5
5
  import * as React$1 from "react";
@@ -54638,4 +54638,4 @@ const messagingScreenPropertySchema = {
54638
54638
  //#endregion
54639
54639
  export { useMessagingConfig as a, createFluidFileUploader as i, MessagingScreen_exports as n, useMessagingAuth as o, messagingScreenPropertySchema as r, MessagingScreen as t };
54640
54640
 
54641
- //# sourceMappingURL=MessagingScreen-Bu8KvZrz.mjs.map
54641
+ //# sourceMappingURL=MessagingScreen-BNsaLpzu.mjs.map