@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.
- package/dist/{ContactsScreen-Dw9G8Q3n.mjs → ContactsScreen-BtBNMZzG.mjs} +68 -71
- package/dist/ContactsScreen-BtBNMZzG.mjs.map +1 -0
- package/dist/{ContactsScreen-Euvu6Y8H.cjs → ContactsScreen-Cheiwaxn.cjs} +3 -4
- package/dist/{ContactsScreen-D2rOJ9Ra.cjs → ContactsScreen-DvohvoOE.cjs} +67 -70
- package/dist/ContactsScreen-DvohvoOE.cjs.map +1 -0
- package/dist/{FluidProvider-bZ4dm-UF.cjs → FluidProvider-BWBEdHQQ.cjs} +30 -2
- package/dist/{FluidProvider-bZ4dm-UF.cjs.map → FluidProvider-BWBEdHQQ.cjs.map} +1 -1
- package/dist/{FluidProvider-ClxrzJDf.mjs → FluidProvider-dp9q6oRM.mjs} +30 -2
- package/dist/FluidProvider-dp9q6oRM.mjs.map +1 -0
- package/dist/InfiniteScrollSentinel-CU801UfD.cjs +36 -0
- package/dist/InfiniteScrollSentinel-CU801UfD.cjs.map +1 -0
- package/dist/InfiniteScrollSentinel-MgF-ldXy.mjs +30 -0
- package/dist/InfiniteScrollSentinel-MgF-ldXy.mjs.map +1 -0
- package/dist/{MessagingScreen-Bu8KvZrz.mjs → MessagingScreen-BNsaLpzu.mjs} +2 -2
- package/dist/{MessagingScreen-Bu8KvZrz.mjs.map → MessagingScreen-BNsaLpzu.mjs.map} +1 -1
- package/dist/{MessagingScreen-CZIMNXUy.cjs → MessagingScreen-CJ3p3ZHq.cjs} +2 -2
- package/dist/{MessagingScreen-B4OtJ908.cjs → MessagingScreen-DX8A0ahD.cjs} +2 -2
- package/dist/{MessagingScreen-B4OtJ908.cjs.map → MessagingScreen-DX8A0ahD.cjs.map} +1 -1
- package/dist/{OrdersScreen-DtO4r_th.mjs → OrdersScreen-BgyMsZpn.mjs} +245 -84
- package/dist/OrdersScreen-BgyMsZpn.mjs.map +1 -0
- package/dist/{OrdersScreen-DlCLRqEK.cjs → OrdersScreen-CCVPgVWa.cjs} +244 -83
- package/dist/OrdersScreen-CCVPgVWa.cjs.map +1 -0
- package/dist/{OrdersScreen-CV6umNnp.cjs → OrdersScreen-DWNylH_i.cjs} +3 -2
- package/dist/{PortalContentApiProvider-DGkP0Vk6.mjs → PortalContentApiProvider-Bwi7FOTs.mjs} +72 -75
- package/dist/PortalContentApiProvider-Bwi7FOTs.mjs.map +1 -0
- package/dist/{PortalContentApiProvider-CH87-pE5.cjs → PortalContentApiProvider-Cb-DGxBo.cjs} +72 -75
- package/dist/PortalContentApiProvider-Cb-DGxBo.cjs.map +1 -0
- package/dist/{PortalProductsApiProvider-CTLKKRqy.cjs → PortalProductsApiProvider-CRN-i8Rh.cjs} +2 -2
- package/dist/{PortalProductsApiProvider-CTLKKRqy.cjs.map → PortalProductsApiProvider-CRN-i8Rh.cjs.map} +1 -1
- package/dist/{PortalProductsApiProvider-CY6CUq6x.mjs → PortalProductsApiProvider-D0jul2Fh.mjs} +2 -2
- package/dist/{PortalProductsApiProvider-CY6CUq6x.mjs.map → PortalProductsApiProvider-D0jul2Fh.mjs.map} +1 -1
- package/dist/{ProductsScreen-a1Bcvc3U.cjs → ProductsScreen-BQqP8-N9.cjs} +3 -3
- package/dist/{ProductsScreen-a1Bcvc3U.cjs.map → ProductsScreen-BQqP8-N9.cjs.map} +1 -1
- package/dist/{ProductsScreen-DWpcieDU.mjs → ProductsScreen-Cd8hpH-3.mjs} +3 -3
- package/dist/{ProductsScreen-DWpcieDU.mjs.map → ProductsScreen-Cd8hpH-3.mjs.map} +1 -1
- package/dist/{ProductsScreen-DLrDpYau.mjs → ProductsScreen-CdbwRM5O.mjs} +4 -4
- package/dist/{ProductsScreen-DmhLYjZD.cjs → ProductsScreen-DgPjO-HY.cjs} +4 -4
- package/dist/{ProfileScreen-Dx8KAKbU.cjs → ProfileScreen-BsjuHCor.cjs} +2 -2
- package/dist/{ProfileScreen-Dx8KAKbU.cjs.map → ProfileScreen-BsjuHCor.cjs.map} +1 -1
- package/dist/{ProfileScreen-BCDSo1pW.cjs → ProfileScreen-DL-C2R6R.cjs} +2 -2
- package/dist/{ProfileScreen-DoCcIaDI.mjs → ProfileScreen-eJvfI2YW.mjs} +2 -2
- package/dist/{ProfileScreen-DoCcIaDI.mjs.map → ProfileScreen-eJvfI2YW.mjs.map} +1 -1
- package/dist/{ShareablesScreen-B-OPO65F.cjs → ShareablesScreen-BEm7wQaI.cjs} +4 -4
- package/dist/{ShareablesScreen-CXchqCpx.mjs → ShareablesScreen-BUuuUpDS.mjs} +3 -3
- package/dist/{ShareablesScreen-CXchqCpx.mjs.map → ShareablesScreen-BUuuUpDS.mjs.map} +1 -1
- package/dist/{ShareablesScreen-D8tsuynn.cjs → ShareablesScreen-C1PQmDVa.cjs} +3 -3
- package/dist/{ShareablesScreen-D8tsuynn.cjs.map → ShareablesScreen-C1PQmDVa.cjs.map} +1 -1
- package/dist/{ShareablesScreen-Bvx2nkO5.mjs → ShareablesScreen-DoJ8EIDG.mjs} +4 -4
- package/dist/{ShopScreen-D__IvAj7.mjs → ShopScreen-5AXTCtLQ.mjs} +3 -3
- package/dist/{ShopScreen-D__IvAj7.mjs.map → ShopScreen-5AXTCtLQ.mjs.map} +1 -1
- package/dist/{ShopScreen-D6YHqL2Z.cjs → ShopScreen-DEFhDrcd.cjs} +3 -3
- package/dist/{ShopScreen-CcmvJ3mF.cjs → ShopScreen-X802gHEX.cjs} +3 -3
- package/dist/{ShopScreen-CcmvJ3mF.cjs.map → ShopScreen-X802gHEX.cjs.map} +1 -1
- package/dist/{SubscriptionsScreen-CshfzE9Z.mjs → SubscriptionsScreen-BwRoXYF8.mjs} +44 -34
- package/dist/SubscriptionsScreen-BwRoXYF8.mjs.map +1 -0
- package/dist/{SubscriptionsScreen-CEiVF1iQ.cjs → SubscriptionsScreen-DbcnEDD0.cjs} +43 -33
- package/dist/SubscriptionsScreen-DbcnEDD0.cjs.map +1 -0
- package/dist/{SubscriptionsScreen-C32rbhAZ.cjs → SubscriptionsScreen-mhTl7OIp.cjs} +3 -3
- package/dist/{dist-Ib6pM5r3.cjs → dist-bL3uiYn3.cjs} +1 -1
- package/dist/{dist-Ib6pM5r3.cjs.map → dist-bL3uiYn3.cjs.map} +1 -1
- package/dist/{dist-DhOQb8en.mjs → dist-wzcShuuv.mjs} +1 -1
- package/dist/{dist-DhOQb8en.mjs.map → dist-wzcShuuv.mjs.map} +1 -1
- package/dist/index.cjs +30 -30
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +30 -30
- package/dist/{order-status-badge-DvZns1LY.cjs → order-status-badge-Crk9UGpl.cjs} +23 -151
- package/dist/order-status-badge-Crk9UGpl.cjs.map +1 -0
- package/dist/{order-status-badge-DK9GG8H-.mjs → order-status-badge-DiQDwwSp.mjs} +28 -150
- package/dist/order-status-badge-DiQDwwSp.mjs.map +1 -0
- package/dist/{portal_tenant-BrihTN41.mjs → portal_tenant-CWKHVgID.mjs} +14 -4
- package/dist/portal_tenant-CWKHVgID.mjs.map +1 -0
- package/dist/{portal_tenant-DjN8hwJb.cjs → portal_tenant-pozf8Ht6.cjs} +19 -3
- package/dist/portal_tenant-pozf8Ht6.cjs.map +1 -0
- package/package.json +18 -18
- package/dist/ContactsScreen-D2rOJ9Ra.cjs.map +0 -1
- package/dist/ContactsScreen-Dw9G8Q3n.mjs.map +0 -1
- package/dist/FluidProvider-ClxrzJDf.mjs.map +0 -1
- package/dist/OrdersScreen-DlCLRqEK.cjs.map +0 -1
- package/dist/OrdersScreen-DtO4r_th.mjs.map +0 -1
- package/dist/PortalContentApiProvider-CH87-pE5.cjs.map +0 -1
- package/dist/PortalContentApiProvider-DGkP0Vk6.mjs.map +0 -1
- package/dist/SubscriptionsScreen-CEiVF1iQ.cjs.map +0 -1
- package/dist/SubscriptionsScreen-CshfzE9Z.mjs.map +0 -1
- package/dist/order-status-badge-DK9GG8H-.mjs.map +0 -1
- package/dist/order-status-badge-DvZns1LY.cjs.map +0 -1
- package/dist/portal_tenant-BrihTN41.mjs.map +0 -1
- package/dist/portal_tenant-DjN8hwJb.cjs.map +0 -1
- package/dist/src-DOYe5GAF.cjs +0 -3
- 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-
|
|
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-
|
|
54641
|
+
//# sourceMappingURL=MessagingScreen-BNsaLpzu.mjs.map
|