@fluid-app/portal-sdk 0.1.184 → 0.1.185

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 (25) hide show
  1. package/dist/{PortalContentApiProvider-eSOgc4Nv.cjs → PortalContentApiProvider-C2G-u4O2.cjs} +99 -89
  2. package/dist/PortalContentApiProvider-C2G-u4O2.cjs.map +1 -0
  3. package/dist/{PortalContentApiProvider-C5BcaBSL.mjs → PortalContentApiProvider-Cei2eKh_.mjs} +94 -90
  4. package/dist/PortalContentApiProvider-Cei2eKh_.mjs.map +1 -0
  5. package/dist/{ProductsScreen-C2mx-086.cjs → ProductsScreen-BJBagajA.cjs} +2 -2
  6. package/dist/{ProductsScreen-CIT--Mnq.mjs → ProductsScreen-BNpjtlYx.mjs} +2 -2
  7. package/dist/{ProductsScreen-P4n3OFln.mjs → ProductsScreen-Ba2wcgYy.mjs} +2 -2
  8. package/dist/{ProductsScreen-P4n3OFln.mjs.map → ProductsScreen-Ba2wcgYy.mjs.map} +1 -1
  9. package/dist/{ProductsScreen-CJPwyXvT.cjs → ProductsScreen-ClOJgwBf.cjs} +2 -2
  10. package/dist/{ProductsScreen-CJPwyXvT.cjs.map → ProductsScreen-ClOJgwBf.cjs.map} +1 -1
  11. package/dist/{ShareablesScreen-C_KC7Ey1.cjs → ShareablesScreen-9j2YlYM5.cjs} +2 -2
  12. package/dist/{ShareablesScreen-CBrJ8Vzm.cjs → ShareablesScreen-CkaXzERa.cjs} +5 -4
  13. package/dist/ShareablesScreen-CkaXzERa.cjs.map +1 -0
  14. package/dist/{ShareablesScreen-BII-fIRD.mjs → ShareablesScreen-lLzBYQ9u.mjs} +5 -4
  15. package/dist/ShareablesScreen-lLzBYQ9u.mjs.map +1 -0
  16. package/dist/{ShareablesScreen-BLNcb2M-.mjs → ShareablesScreen-yYzOCGaX.mjs} +2 -2
  17. package/dist/index.cjs +7 -7
  18. package/dist/index.d.cts.map +1 -1
  19. package/dist/index.d.mts.map +1 -1
  20. package/dist/index.mjs +7 -7
  21. package/package.json +10 -10
  22. package/dist/PortalContentApiProvider-C5BcaBSL.mjs.map +0 -1
  23. package/dist/PortalContentApiProvider-eSOgc4Nv.cjs.map +0 -1
  24. package/dist/ShareablesScreen-BII-fIRD.mjs.map +0 -1
  25. package/dist/ShareablesScreen-CBrJ8Vzm.cjs.map +0 -1
@@ -1669,89 +1669,6 @@ function MediaDetailScreen({ mediaId, onNavigate: _onNavigate, onBack }) {
1669
1669
  });
1670
1670
  }
1671
1671
  //#endregion
1672
- //#region ../../file-picker/ui/src/context/FilePickerApiContext.tsx
1673
- const FilePickerApiContext = (0, react.createContext)(null);
1674
- function FilePickerApiProvider({ api, children }) {
1675
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FilePickerApiContext.Provider, {
1676
- value: api,
1677
- children
1678
- });
1679
- }
1680
- function useFilePickerApi() {
1681
- const ctx = (0, react.useContext)(FilePickerApiContext);
1682
- if (!ctx) throw new Error("useFilePickerApi must be used within a FilePickerApiProvider");
1683
- return ctx;
1684
- }
1685
- //#endregion
1686
- //#region ../../file-picker/ui/src/context/FilePickerContext.tsx
1687
- const FilePickerContext = (0, react.createContext)(null);
1688
- function FilePickerProvider({ children, value }) {
1689
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FilePickerContext.Provider, {
1690
- value,
1691
- children
1692
- });
1693
- }
1694
- function useFilePickerContext() {
1695
- const ctx = (0, react.useContext)(FilePickerContext);
1696
- if (!ctx) throw new Error("useFilePickerContext must be used within a FilePickerProvider");
1697
- return ctx;
1698
- }
1699
- //#endregion
1700
- //#region ../../file-picker/ui/src/utils/brand-icons.tsx
1701
- function GoogleIcon({ className }) {
1702
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
1703
- className,
1704
- viewBox: "0 0 24 24",
1705
- fill: "currentColor",
1706
- children: [
1707
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z" }),
1708
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z" }),
1709
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z" }),
1710
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z" })
1711
- ]
1712
- });
1713
- }
1714
- function InstagramIcon({ className }) {
1715
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
1716
- className,
1717
- viewBox: "0 0 24 24",
1718
- fill: "currentColor",
1719
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 1 0 0 12.324 6.162 6.162 0 0 0 0-12.324zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm6.406-11.845a1.44 1.44 0 1 0 0 2.881 1.44 1.44 0 0 0 0-2.881z" })
1720
- });
1721
- }
1722
- function FacebookIcon({ className }) {
1723
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
1724
- className,
1725
- viewBox: "0 0 24 24",
1726
- fill: "currentColor",
1727
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z" })
1728
- });
1729
- }
1730
- function TiktokIcon({ className }) {
1731
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
1732
- className,
1733
- viewBox: "0 0 24 24",
1734
- fill: "currentColor",
1735
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z" })
1736
- });
1737
- }
1738
- function DropboxIcon({ className }) {
1739
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
1740
- className,
1741
- viewBox: "0 0 24 24",
1742
- fill: "currentColor",
1743
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M12 6.13L6 10.13l6 4-6 4-6-4 6-4-6-4 6-4 6 4zm0 0l6-4 6 4-6 4 6 4-6 4-6-4 6-4-6-4zm0 16.74l-6-4 6-4 6 4-6 4z" })
1744
- });
1745
- }
1746
- function UnsplashIcon({ className }) {
1747
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
1748
- className,
1749
- viewBox: "0 0 24 24",
1750
- fill: "currentColor",
1751
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M7.5 6.75V0h9v6.75h-9zm9 3.75H24V24H0V10.5h7.5v6.75h9V10.5z" })
1752
- });
1753
- }
1754
- //#endregion
1755
1672
  //#region ../../file-picker/core/src/query-keys.ts
1756
1673
  const damQueryKeys = {
1757
1674
  all: ["dam"],
@@ -1763,6 +1680,15 @@ const damQueryKeys = {
1763
1680
  ]
1764
1681
  };
1765
1682
  //#endregion
1683
+ //#region ../../file-picker/core/src/file-picker-api-context.ts
1684
+ const FilePickerApiContext = (0, react.createContext)(null);
1685
+ const FilePickerApiProvider$1 = FilePickerApiContext.Provider;
1686
+ function useFilePickerApi() {
1687
+ const api = (0, react.useContext)(FilePickerApiContext);
1688
+ if (!api) throw new Error("useFilePickerApi must be used within a FilePickerApiProvider");
1689
+ return api;
1690
+ }
1691
+ //#endregion
1766
1692
  //#region ../../file-picker/core/src/schemas/dam.ts
1767
1693
  const damVariantSchema = zod.z.object({
1768
1694
  id: zod.z.string(),
@@ -2596,6 +2522,83 @@ function getSanitizedAssetName(filename) {
2596
2522
  return sanitizedName;
2597
2523
  }
2598
2524
  //#endregion
2525
+ //#region ../../file-picker/ui/src/context/FilePickerApiContext.tsx
2526
+ function FilePickerApiProvider({ api, children }) {
2527
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FilePickerApiProvider$1, {
2528
+ value: api,
2529
+ children
2530
+ });
2531
+ }
2532
+ //#endregion
2533
+ //#region ../../file-picker/ui/src/context/FilePickerContext.tsx
2534
+ const FilePickerContext = (0, react.createContext)(null);
2535
+ function FilePickerProvider({ children, value }) {
2536
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FilePickerContext.Provider, {
2537
+ value,
2538
+ children
2539
+ });
2540
+ }
2541
+ function useFilePickerContext() {
2542
+ const ctx = (0, react.useContext)(FilePickerContext);
2543
+ if (!ctx) throw new Error("useFilePickerContext must be used within a FilePickerProvider");
2544
+ return ctx;
2545
+ }
2546
+ //#endregion
2547
+ //#region ../../file-picker/ui/src/utils/brand-icons.tsx
2548
+ function GoogleIcon({ className }) {
2549
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
2550
+ className,
2551
+ viewBox: "0 0 24 24",
2552
+ fill: "currentColor",
2553
+ children: [
2554
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z" }),
2555
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z" }),
2556
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z" }),
2557
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z" })
2558
+ ]
2559
+ });
2560
+ }
2561
+ function InstagramIcon({ className }) {
2562
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
2563
+ className,
2564
+ viewBox: "0 0 24 24",
2565
+ fill: "currentColor",
2566
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 1 0 0 12.324 6.162 6.162 0 0 0 0-12.324zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm6.406-11.845a1.44 1.44 0 1 0 0 2.881 1.44 1.44 0 0 0 0-2.881z" })
2567
+ });
2568
+ }
2569
+ function FacebookIcon({ className }) {
2570
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
2571
+ className,
2572
+ viewBox: "0 0 24 24",
2573
+ fill: "currentColor",
2574
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z" })
2575
+ });
2576
+ }
2577
+ function TiktokIcon({ className }) {
2578
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
2579
+ className,
2580
+ viewBox: "0 0 24 24",
2581
+ fill: "currentColor",
2582
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z" })
2583
+ });
2584
+ }
2585
+ function DropboxIcon({ className }) {
2586
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
2587
+ className,
2588
+ viewBox: "0 0 24 24",
2589
+ fill: "currentColor",
2590
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M12 6.13L6 10.13l6 4-6 4-6-4 6-4-6-4 6-4 6 4zm0 0l6-4 6 4-6 4 6 4-6 4-6-4 6-4-6-4zm0 16.74l-6-4 6-4 6 4-6 4z" })
2591
+ });
2592
+ }
2593
+ function UnsplashIcon({ className }) {
2594
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
2595
+ className,
2596
+ viewBox: "0 0 24 24",
2597
+ fill: "currentColor",
2598
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M7.5 6.75V0h9v6.75h-9zm9 3.75H24V24H0V10.5h7.5v6.75h9V10.5z" })
2599
+ });
2600
+ }
2601
+ //#endregion
2599
2602
  //#region ../../file-picker/ui/src/hooks/use-debounced-search.ts
2600
2603
  const useDebouncedSearch = (delay = 300) => {
2601
2604
  const [searchQuery, setSearchQuery] = (0, react.useState)("");
@@ -9872,19 +9875,20 @@ function PortalContentApiProvider({ children }) {
9872
9875
  const ctx = (0, react.useMemo)(() => ({
9873
9876
  productsApi,
9874
9877
  playlistsAdapter,
9875
- mediaProductsAdapter,
9876
- filePickerApi
9878
+ mediaProductsAdapter
9877
9879
  }), [
9878
9880
  productsApi,
9879
9881
  playlistsAdapter,
9880
- mediaProductsAdapter,
9881
- filePickerApi
9882
+ mediaProductsAdapter
9882
9883
  ]);
9883
9884
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ContentContext.Provider, {
9884
9885
  value: ctx,
9885
9886
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ShareablesApiProvider, {
9886
9887
  value: contentApi,
9887
- children
9888
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FilePickerApiProvider$1, {
9889
+ value: filePickerApi,
9890
+ children
9891
+ })
9888
9892
  })
9889
9893
  });
9890
9894
  }
@@ -9925,6 +9929,12 @@ Object.defineProperty(exports, "toggleFavorite", {
9925
9929
  return toggleFavorite;
9926
9930
  }
9927
9931
  });
9932
+ Object.defineProperty(exports, "useFilePickerApi", {
9933
+ enumerable: true,
9934
+ get: function() {
9935
+ return useFilePickerApi;
9936
+ }
9937
+ });
9928
9938
  Object.defineProperty(exports, "usePortalContentContext", {
9929
9939
  enumerable: true,
9930
9940
  get: function() {
@@ -9932,4 +9942,4 @@ Object.defineProperty(exports, "usePortalContentContext", {
9932
9942
  }
9933
9943
  });
9934
9944
 
9935
- //# sourceMappingURL=PortalContentApiProvider-eSOgc4Nv.cjs.map
9945
+ //# sourceMappingURL=PortalContentApiProvider-C2G-u4O2.cjs.map