@fluid-app/portal-sdk 0.1.209 → 0.1.210

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 (34) hide show
  1. package/dist/{FluidProvider-CVYSJW9G.cjs → FluidProvider-CZSbUoDH.cjs} +3 -3
  2. package/dist/{FluidProvider-CVYSJW9G.cjs.map → FluidProvider-CZSbUoDH.cjs.map} +1 -1
  3. package/dist/{FluidProvider-BhXU4mXn.mjs → FluidProvider-DBh92Dz3.mjs} +3 -3
  4. package/dist/{FluidProvider-BhXU4mXn.mjs.map → FluidProvider-DBh92Dz3.mjs.map} +1 -1
  5. package/dist/{MessagingScreen-lOhqghg5.cjs → MessagingScreen-C9pAZqA0.cjs} +2 -2
  6. package/dist/{MessagingScreen-lOhqghg5.cjs.map → MessagingScreen-C9pAZqA0.cjs.map} +1 -1
  7. package/dist/{MessagingScreen-DZPzRM2a.mjs → MessagingScreen-DhtepYkU.mjs} +2 -2
  8. package/dist/{MessagingScreen-DZPzRM2a.mjs.map → MessagingScreen-DhtepYkU.mjs.map} +1 -1
  9. package/dist/{MessagingScreen-CneT3yWA.cjs → MessagingScreen-FyP5WFDU.cjs} +3 -3
  10. package/dist/{ProfileScreen-CJlMCpIM.cjs → ProfileScreen-0ZfgjXvC.cjs} +3 -3
  11. package/dist/{ProfileScreen-BVlyq4I8.mjs → ProfileScreen-BEZneAry.mjs} +2 -2
  12. package/dist/{ProfileScreen-BVlyq4I8.mjs.map → ProfileScreen-BEZneAry.mjs.map} +1 -1
  13. package/dist/{ProfileScreen-DToaxnsZ.cjs → ProfileScreen-Dyh4GP76.cjs} +2 -2
  14. package/dist/{ProfileScreen-DToaxnsZ.cjs.map → ProfileScreen-Dyh4GP76.cjs.map} +1 -1
  15. package/dist/QuickShareWidget-BdAgexWk.cjs +583 -0
  16. package/dist/QuickShareWidget-BdAgexWk.cjs.map +1 -0
  17. package/dist/QuickShareWidget-CunkC1r8.mjs +566 -0
  18. package/dist/QuickShareWidget-CunkC1r8.mjs.map +1 -0
  19. package/dist/{ShopScreen-dkt4YuUO.cjs → ShopScreen-D06ln7AW.cjs} +2 -2
  20. package/dist/{ShopScreen-dkt4YuUO.cjs.map → ShopScreen-D06ln7AW.cjs.map} +1 -1
  21. package/dist/{ShopScreen-7s5O5oFR.cjs → ShopScreen-DTtw168w.cjs} +3 -3
  22. package/dist/{ShopScreen-DAZC9E9E.mjs → ShopScreen-DeVoH7co.mjs} +2 -2
  23. package/dist/{ShopScreen-DAZC9E9E.mjs.map → ShopScreen-DeVoH7co.mjs.map} +1 -1
  24. package/dist/index.cjs +11 -11
  25. package/dist/index.d.cts +7 -0
  26. package/dist/index.d.cts.map +1 -1
  27. package/dist/index.d.mts +7 -0
  28. package/dist/index.d.mts.map +1 -1
  29. package/dist/index.mjs +11 -11
  30. package/package.json +17 -17
  31. package/dist/QuickShareWidget-DRbErOlt.cjs +0 -268
  32. package/dist/QuickShareWidget-DRbErOlt.cjs.map +0 -1
  33. package/dist/QuickShareWidget-Dbjueevf.mjs +0 -251
  34. package/dist/QuickShareWidget-Dbjueevf.mjs.map +0 -1
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./es-DmEK0Umf.mjs";
2
- import { a as createScreen, c as FluidThemeProvider, h as deleteDatabase, i as widgetPropertySchemas, l as useThemeContext, m as createPersister, n as useFluidContext, o as createWidgetFromShareable, p as useAppDefinitionApi, r as DEFAULT_SDK_WIDGET_REGISTRY, s as createWidgetRegistry, t as FluidProvider } from "./FluidProvider-BhXU4mXn.mjs";
2
+ import { a as createScreen, c as FluidThemeProvider, h as deleteDatabase, i as widgetPropertySchemas, l as useThemeContext, m as createPersister, n as useFluidContext, o as createWidgetFromShareable, p as useAppDefinitionApi, r as DEFAULT_SDK_WIDGET_REGISTRY, s as createWidgetRegistry, t as FluidProvider } from "./FluidProvider-DBh92Dz3.mjs";
3
3
  import { a as assertNever, i as assertDefined, n as DataAwareWidget, o as isWidgetType, r as WIDGET_TYPE_NAMES, s as isWidgetTypeName, u as useRegistry } from "./ScreenRenderer-Cv2rxvtF.mjs";
4
4
  import "./account-api-context-BIZ_aibJ.mjs";
5
5
  import "./store-api-context-C1lXT_3d.mjs";
@@ -20,7 +20,7 @@ import { r as calendarWidgetPropertySchema, t as CalendarWidget } from "./Calend
20
20
  import { r as cardWidgetPropertySchema, t as CardWidget } from "./CardWidget-gcPNwuZk.mjs";
21
21
  import "./purify.es-Bl6SBkmi.mjs";
22
22
  import { C as Skeleton$1, En as Button, Pn as cn$1, _t as CollapsibleContent, gt as Collapsible, ht as PopoverTrigger, mt as PopoverContent, pt as Popover, vt as CollapsibleTrigger, x as Toaster } from "./src-BEx23d86.mjs";
23
- import { a as useMessagingConfig, i as createFluidFileUploader, o as useMessagingAuth, r as messagingScreenPropertySchema, t as MessagingScreen } from "./MessagingScreen-DZPzRM2a.mjs";
23
+ import { a as useMessagingConfig, i as createFluidFileUploader, o as useMessagingAuth, r as messagingScreenPropertySchema, t as MessagingScreen } from "./MessagingScreen-DhtepYkU.mjs";
24
24
  import { r as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-CuP9OfBI.mjs";
25
25
  import "./scroll-arrows-CYshgsiB.mjs";
26
26
  import "./MediaRenderer-CEtrOi5O.mjs";
@@ -34,7 +34,7 @@ import { r as listWidgetPropertySchema, t as ListWidget } from "./ListWidget-DvZ
34
34
  import { r as mySiteWidgetPropertySchema, t as MySiteWidget } from "./MySiteWidget-C6IZytLt.mjs";
35
35
  import { r as nestedWidgetPropertySchema, t as NestedWidget } from "./NestedWidget-J9sJbt9s.mjs";
36
36
  import { r as pointsWidgetPropertySchema, t as PointsWidget } from "./PointsWidget-CoDqvWC5.mjs";
37
- import { r as quickShareWidgetPropertySchema, t as QuickShareWidget } from "./QuickShareWidget-Dbjueevf.mjs";
37
+ import { r as quickShareWidgetPropertySchema, t as QuickShareWidget } from "./QuickShareWidget-CunkC1r8.mjs";
38
38
  import { r as recentActivityWidgetPropertySchema, t as RecentActivityWidget } from "./RecentActivityWidget-C6qm5x9b.mjs";
39
39
  import { r as separatorWidgetPropertySchema, t as SeparatorWidget } from "./SeparatorWidget-Clm35u4g.mjs";
40
40
  import { r as spacerWidgetPropertySchema, t as SpacerWidget } from "./SpacerWidget-JyChGNdx.mjs";
@@ -46,7 +46,7 @@ import { t as useAccount } from "./use-account-B16Tor2Q.mjs";
46
46
  import { t as useStore } from "./use-store-BnHhQDYo.mjs";
47
47
  import { i as CoreScreenPlaceholder, r as customersScreenPropertySchema, t as CustomersScreen } from "./CustomersScreen-CeLL33Gu.mjs";
48
48
  import { n as useAppNavigation, t as AppNavigationProvider } from "./AppNavigationContext-BW3lSpfT.mjs";
49
- import { r as profileScreenPropertySchema, t as ProfileScreen } from "./ProfileScreen-BVlyq4I8.mjs";
49
+ import { r as profileScreenPropertySchema, t as ProfileScreen } from "./ProfileScreen-BEZneAry.mjs";
50
50
  import "./dist-BETEuYfn.mjs";
51
51
  import { r as contactsScreenPropertySchema, t as ContactsScreen } from "./ContactsScreen-CCsst8bb.mjs";
52
52
  import "./SearchSort-TmuNOCwA.mjs";
@@ -61,7 +61,7 @@ import { n as productsScreenPropertySchema, t as ProductsScreen } from "./Produc
61
61
  import "./use-mysite-portal-axe_PFzR.mjs";
62
62
  import { r as mySiteScreenPropertySchema, t as MySiteScreen } from "./MySiteScreen-Dz5htti5.mjs";
63
63
  import { n as shareablesScreenPropertySchema, t as ShareablesScreen } from "./ShareablesScreen-BZK_lSdi.mjs";
64
- import { r as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-DAZC9E9E.mjs";
64
+ import { r as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-DeVoH7co.mjs";
65
65
  import "./UpgradeScreen-K1atEcyx.mjs";
66
66
  import "./AppDownloadScreen-CLSjQhHn.mjs";
67
67
  import * as React$1 from "react";
@@ -2132,12 +2132,12 @@ function AccountManageLayout({ children }) {
2132
2132
  }
2133
2133
  //#endregion
2134
2134
  //#region src/shell/system-screen-map.ts
2135
- const ProfileScreen$1 = lazy(() => import("./ProfileScreen-BVlyq4I8.mjs").then((n) => n.n).then((m) => ({ default: m.ProfileScreen })));
2135
+ const ProfileScreen$1 = lazy(() => import("./ProfileScreen-BEZneAry.mjs").then((n) => n.n).then((m) => ({ default: m.ProfileScreen })));
2136
2136
  const OrdersScreen$1 = lazy(() => import("./OrdersScreen-D4pe5mLs.mjs").then((n) => n.n).then((m) => ({ default: m.OrdersScreen })));
2137
2137
  const SubscriptionsScreen$1 = lazy(() => import("./SubscriptionsScreen-CuP9OfBI.mjs").then((n) => n.n).then((m) => ({ default: m.SubscriptionsScreen })));
2138
- const MessagingScreen$1 = lazy(() => import("./MessagingScreen-DZPzRM2a.mjs").then((n) => n.n).then((m) => ({ default: m.MessagingScreen })));
2138
+ const MessagingScreen$1 = lazy(() => import("./MessagingScreen-DhtepYkU.mjs").then((n) => n.n).then((m) => ({ default: m.MessagingScreen })));
2139
2139
  const ContactsScreen$1 = lazy(() => import("./ContactsScreen-CCsst8bb.mjs").then((n) => n.n).then((m) => ({ default: m.ContactsScreen })));
2140
- const ShopScreen$1 = lazy(() => import("./ShopScreen-DAZC9E9E.mjs").then((n) => n.n).then((m) => ({ default: m.ShopScreen })));
2140
+ const ShopScreen$1 = lazy(() => import("./ShopScreen-DeVoH7co.mjs").then((n) => n.n).then((m) => ({ default: m.ShopScreen })));
2141
2141
  const CustomersScreen$1 = lazy(() => import("./CustomersScreen-CeLL33Gu.mjs").then((n) => n.n).then((m) => ({ default: m.CustomersScreen })));
2142
2142
  const ProductsScreen$1 = lazy(() => import("./ProductsScreen-CRV1_NVf.mjs").then((m) => ({ default: m.ProductsScreen })));
2143
2143
  const ShareablesScreen$1 = lazy(() => import("./ShareablesScreen-Ce7kJAPw.mjs").then((m) => ({ default: m.ShareablesScreen })));
@@ -3627,8 +3627,8 @@ z.object({
3627
3627
  //#endregion
3628
3628
  //#region src/screens/index.ts
3629
3629
  const screenPropertySchemas = {
3630
- ProfileScreen: () => import("./ProfileScreen-BVlyq4I8.mjs").then((n) => n.n).then((m) => m.profileScreenPropertySchema),
3631
- MessagingScreen: () => import("./MessagingScreen-DZPzRM2a.mjs").then((n) => n.n).then((m) => m.messagingScreenPropertySchema),
3630
+ ProfileScreen: () => import("./ProfileScreen-BEZneAry.mjs").then((n) => n.n).then((m) => m.profileScreenPropertySchema),
3631
+ MessagingScreen: () => import("./MessagingScreen-DhtepYkU.mjs").then((n) => n.n).then((m) => m.messagingScreenPropertySchema),
3632
3632
  ContactsScreen: () => import("./ContactsScreen-CCsst8bb.mjs").then((n) => n.n).then((m) => m.contactsScreenPropertySchema),
3633
3633
  OrdersScreen: () => import("./OrdersScreen-D4pe5mLs.mjs").then((n) => n.n).then((m) => m.ordersScreenPropertySchema),
3634
3634
  SubscriptionsScreen: () => import("./SubscriptionsScreen-CuP9OfBI.mjs").then((n) => n.n).then((m) => m.subscriptionsScreenPropertySchema),
@@ -3636,7 +3636,7 @@ const screenPropertySchemas = {
3636
3636
  ProductsScreen: () => import("./ProductsScreen-CRV1_NVf.mjs").then((m) => m.productsScreenPropertySchema),
3637
3637
  MySiteScreen: () => import("./MySiteScreen-Dz5htti5.mjs").then((n) => n.n).then((m) => m.mySiteScreenPropertySchema),
3638
3638
  ShareablesScreen: () => import("./ShareablesScreen-Ce7kJAPw.mjs").then((m) => m.shareablesScreenPropertySchema),
3639
- ShopScreen: () => import("./ShopScreen-DAZC9E9E.mjs").then((n) => n.n).then((m) => m.shopScreenPropertySchema),
3639
+ ShopScreen: () => import("./ShopScreen-DeVoH7co.mjs").then((n) => n.n).then((m) => m.shopScreenPropertySchema),
3640
3640
  UpgradeScreen: () => import("./UpgradeScreen-K1atEcyx.mjs").then((n) => n.t).then((m) => m.upgradeScreenPropertySchema),
3641
3641
  AppDownloadScreen: () => import("./AppDownloadScreen-CLSjQhHn.mjs").then((n) => n.t).then((m) => m.appDownloadScreenPropertySchema)
3642
3642
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-app/portal-sdk",
3
- "version": "0.1.209",
3
+ "version": "0.1.210",
4
4
  "description": "SDK for building custom Fluid portals",
5
5
  "files": [
6
6
  "dist",
@@ -72,46 +72,46 @@
72
72
  "typescript": "^5",
73
73
  "zod": "4.3.5",
74
74
  "@fluid-app/api-client-core": "0.1.0",
75
- "@fluid-app/auth": "0.1.0",
76
75
  "@fluid-app/cart-ui": "0.1.17",
77
- "@fluid-app/company-switcher-ui": "0.1.0",
78
76
  "@fluid-app/company-switcher-core": "0.1.0",
77
+ "@fluid-app/company-switcher-ui": "0.1.0",
78
+ "@fluid-app/auth": "0.1.0",
79
+ "@fluid-app/contacts-core": "0.1.0",
79
80
  "@fluid-app/file-picker-api-client": "0.1.0",
80
81
  "@fluid-app/file-picker-core": "0.1.0",
81
- "@fluid-app/contacts-ui": "0.1.0",
82
- "@fluid-app/fluid-pay-core": "0.1.0",
83
82
  "@fluid-app/fluidos-api-client": "0.1.0",
84
83
  "@fluid-app/messaging-api-client": "0.1.0",
85
- "@fluid-app/contacts-core": "0.1.0",
86
- "@fluid-app/mysite-core": "0.1.0",
84
+ "@fluid-app/contacts-ui": "0.1.0",
87
85
  "@fluid-app/messaging-core": "0.1.0",
88
86
  "@fluid-app/messaging-ui": "0.1.0",
87
+ "@fluid-app/fluid-pay-core": "0.1.0",
88
+ "@fluid-app/mysite-core": "0.1.0",
89
89
  "@fluid-app/mysite-ui": "0.1.0",
90
90
  "@fluid-app/orders-core": "0.1.0",
91
91
  "@fluid-app/orders-ui": "0.1.0",
92
- "@fluid-app/portal-app-download-ui": "0.1.0",
93
92
  "@fluid-app/permissions": "0.1.0",
94
93
  "@fluid-app/portal-core": "0.1.23",
95
- "@fluid-app/portal-preview": "0.1.0",
94
+ "@fluid-app/portal-app-download-ui": "0.1.0",
96
95
  "@fluid-app/portal-pro-upgrade-ui": "0.1.0",
96
+ "@fluid-app/portal-preview": "0.1.0",
97
97
  "@fluid-app/portal-react": "0.1.0",
98
+ "@fluid-app/portal-tenant-api-client": "0.1.0",
98
99
  "@fluid-app/portal-tenant-contacts-api-client": "0.1.0",
99
100
  "@fluid-app/portal-tenant-content-api-client": "0.1.0",
100
- "@fluid-app/portal-tenant-api-client": "0.1.0",
101
- "@fluid-app/portal-tenant-mysite-api-client": "0.1.0",
102
101
  "@fluid-app/portal-tenant-pay-api-client": "0.1.0",
103
102
  "@fluid-app/portal-tenant-store-api-client": "0.1.0",
104
- "@fluid-app/products-core": "0.1.0",
103
+ "@fluid-app/portal-tenant-mysite-api-client": "0.1.0",
105
104
  "@fluid-app/portal-widgets": "0.1.22",
106
- "@fluid-app/products-api-client": "0.1.0",
107
- "@fluid-app/profile-core": "0.1.0",
105
+ "@fluid-app/products-core": "0.1.0",
108
106
  "@fluid-app/profile-ui": "0.1.0",
109
- "@fluid-app/query-persister": "0.1.0",
107
+ "@fluid-app/profile-core": "0.1.0",
108
+ "@fluid-app/products-api-client": "0.1.0",
110
109
  "@fluid-app/shareables-core": "0.1.0",
110
+ "@fluid-app/query-persister": "0.1.0",
111
111
  "@fluid-app/shareables-ui": "0.1.0",
112
- "@fluid-app/shop-ui": "0.1.0",
113
- "@fluid-app/store-core": "0.1.0",
114
112
  "@fluid-app/store-api-client": "0.1.0",
113
+ "@fluid-app/store-core": "0.1.0",
114
+ "@fluid-app/shop-ui": "0.1.0",
115
115
  "@fluid-app/subscriptions-core": "0.1.0",
116
116
  "@fluid-app/subscriptions-ui": "0.1.0",
117
117
  "@fluid-app/typescript-config": "0.0.0",
@@ -1,268 +0,0 @@
1
- const require_chunk = require("./chunk-9hOWP6kD.cjs");
2
- const require_registries = require("./registries-CpUM406S.cjs");
3
- let react_jsx_runtime = require("react/jsx-runtime");
4
- let lucide_react = require("lucide-react");
5
- let qrcode_react = require("qrcode.react");
6
- //#region ../widgets/src/widgets/QuickShareWidget.tsx
7
- var QuickShareWidget_exports = /* @__PURE__ */ require_chunk.__exportAll({
8
- QuickShareWidget: () => QuickShareWidget,
9
- quickShareWidgetPropertySchema: () => quickShareWidgetPropertySchema
10
- });
11
- function QuickShareWidget({ shareableResource, titleEnabled = true, titleText = "", titleFontSize = "2xl", titleColor = "foreground", textColor = "foreground", accentColor = "primary", padding = 4, borderRadius = "md", borderWidth = "none", borderColor = "muted", overlayEnabled = true, overlayType = "solid", overlayIntensity = 50, showBuyButton = false, className, ...props }) {
12
- const backgroundImageUrl = shareableResource?.image_url || shareableResource?.imageUrl;
13
- const shareLink = shareableResource?.share_link || "";
14
- const displayUrl = shareLink || "Select a resource to generate link";
15
- const displayTitle = titleText || shareableResource?.title || "Select a resource to display!";
16
- const isProduct = shareableResource?.type === "Product" || shareableResource?.shareableType === "Product";
17
- const shouldShowBuyButton = showBuyButton && isProduct;
18
- const handleCopyToClipboard = async () => {
19
- if (shareLink) try {
20
- await navigator.clipboard.writeText(shareLink);
21
- } catch (error) {
22
- console.error("Failed to copy to clipboard:", error);
23
- }
24
- };
25
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
26
- className: `relative overflow-hidden rounded-${borderRadius} ${require_registries.borderWidthClasses[borderWidth]} ${borderWidth !== "none" ? require_registries.borderColorClasses[borderColor] : ""} bg-muted text-${textColor} ${className ?? ""}`,
27
- ...props,
28
- children: [backgroundImageUrl ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
29
- className: "absolute inset-0",
30
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
31
- src: backgroundImageUrl,
32
- alt: "",
33
- className: "h-full w-full object-cover"
34
- }), overlayEnabled && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
35
- className: `absolute inset-0 ${overlayType === "gradient" ? "bg-gradient-to-t from-black to-transparent" : "bg-black"}`,
36
- style: { opacity: (Number(String(overlayIntensity).replace("%", "")) || 50) / 100 }
37
- })]
38
- }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
39
- className: `bg-muted absolute inset-0 flex items-center justify-center`,
40
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Image, { className: "h-16 w-16 opacity-20" })
41
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
42
- className: `relative flex min-h-[400px] flex-col p-${padding}`,
43
- children: [titleEnabled && displayTitle && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
44
- className: "flex flex-1 items-center justify-center",
45
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h2", {
46
- className: `text-center text-${titleFontSize} font-header font-semibold text-${titleColor} drop-shadow-lg`,
47
- children: displayTitle
48
- })
49
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
50
- className: "mt-auto flex flex-col gap-4",
51
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
52
- className: "flex items-end justify-between gap-4",
53
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
54
- className: "shrink-0 rounded-lg bg-white p-2",
55
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(qrcode_react.QRCodeSVG, {
56
- value: shareLink || "https://example.com",
57
- size: 100,
58
- level: "H"
59
- })
60
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
61
- className: "min-w-0 flex-1",
62
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
63
- className: "mb-2 text-sm font-semibold tracking-wide drop-shadow",
64
- children: "Your Shareable URL"
65
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
66
- className: "flex items-center justify-between rounded-md border border-white/20 bg-black/50 p-2 text-sm text-white backdrop-blur",
67
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
68
- className: "truncate",
69
- children: displayUrl
70
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
71
- type: "button",
72
- onClick: handleCopyToClipboard,
73
- className: `ml-2 shrink-0 rounded p-1 transition-colors hover:bg-${accentColor}/20`,
74
- "aria-label": "Copy link",
75
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Copy, { className: "h-4 w-4" })
76
- })]
77
- })]
78
- })]
79
- }), shouldShowBuyButton && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
80
- className: "flex",
81
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
82
- type: "button",
83
- className: `flex w-full items-center justify-center gap-2 rounded-lg bg-${accentColor} p-3 font-medium text-${accentColor}-foreground transition-all hover:bg-${accentColor}/70`,
84
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ShoppingCart, { className: "h-4 w-4" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: "Buy" })]
85
- })
86
- })]
87
- })]
88
- })]
89
- });
90
- }
91
- const quickShareWidgetPropertySchema = {
92
- widgetType: "QuickShareWidget",
93
- displayName: "Quick Share Widget",
94
- tabsConfig: [{
95
- id: "styling",
96
- label: "Styling"
97
- }],
98
- fields: [
99
- {
100
- key: "shareableResource",
101
- label: "Shareable Content",
102
- type: "resource",
103
- description: "Select the content to generate a share link for",
104
- allowedTypes: [
105
- "Product",
106
- "Page",
107
- "EnrollmentPack",
108
- "Medium",
109
- "Library"
110
- ],
111
- tab: "styling",
112
- group: "Content"
113
- },
114
- {
115
- key: "titleEnabled",
116
- label: "Show Title",
117
- type: "boolean",
118
- description: "Display a title overlay on the widget",
119
- defaultValue: true,
120
- tab: "styling",
121
- group: "Title"
122
- },
123
- {
124
- key: "titleText",
125
- label: "Title",
126
- type: "text",
127
- description: "Custom title text (defaults to resource title if empty)",
128
- defaultValue: "",
129
- tab: "styling",
130
- group: "Title",
131
- requiresKeyToBeTrue: "titleEnabled"
132
- },
133
- require_registries.getFontSizeField({
134
- key: "titleFontSize",
135
- label: "Title Font Size",
136
- description: "Font size for the title text",
137
- defaultValue: "2xl",
138
- tab: "styling",
139
- group: "Title",
140
- requiresKeyToBeTrue: "titleEnabled"
141
- }),
142
- require_registries.getColorField({
143
- key: "titleColor",
144
- label: "Title Color",
145
- description: "Color for the title text",
146
- defaultValue: "background",
147
- tab: "styling",
148
- group: "Title",
149
- requiresKeyToBeTrue: "titleEnabled"
150
- }),
151
- require_registries.getColorField({
152
- key: "textColor",
153
- label: "Text Color",
154
- description: "Default text color for the widget",
155
- defaultValue: "background",
156
- tab: "styling",
157
- group: "Design"
158
- }),
159
- require_registries.getColorField({
160
- key: "accentColor",
161
- label: "Accent Color",
162
- description: "Color for accent elements and buy button",
163
- defaultValue: "primary",
164
- tab: "styling",
165
- group: "Design"
166
- }),
167
- {
168
- key: "overlayEnabled",
169
- label: "Enable Overlay",
170
- type: "boolean",
171
- description: "Add background overlay for text readability",
172
- defaultValue: true,
173
- tab: "styling",
174
- group: "Design"
175
- },
176
- {
177
- key: "overlayType",
178
- label: "Overlay Type",
179
- type: "buttonGroup",
180
- description: "Type of overlay to add to the background",
181
- defaultValue: "solid",
182
- options: [{
183
- label: "Solid",
184
- value: "solid"
185
- }, {
186
- label: "Gradient",
187
- value: "gradient"
188
- }],
189
- tab: "styling",
190
- group: "Design",
191
- requiresKeyToBeTrue: "overlayEnabled"
192
- },
193
- {
194
- key: "overlayIntensity",
195
- label: "Overlay Intensity",
196
- type: "slider",
197
- description: "Opacity of the overlay background (0-100)",
198
- min: 0,
199
- max: 100,
200
- step: 5,
201
- defaultValue: 50,
202
- unit: "%",
203
- tab: "styling",
204
- group: "Design",
205
- requiresKeyToBeTrue: "overlayEnabled"
206
- },
207
- {
208
- key: "separator",
209
- type: "separator",
210
- label: "Separator",
211
- tab: "styling",
212
- group: "Design"
213
- },
214
- require_registries.getPaddingField({
215
- key: "padding",
216
- label: "Padding",
217
- description: "Padding around the widget content",
218
- defaultValue: 4,
219
- tab: "styling",
220
- group: "Design"
221
- }),
222
- require_registries.getBorderRadiusField({
223
- key: "borderRadius",
224
- label: "Border Radius",
225
- description: "Border radius for the widget container",
226
- defaultValue: "md",
227
- tab: "styling",
228
- group: "Design"
229
- }),
230
- require_registries.getBorderWidthField({
231
- key: "borderWidth",
232
- label: "Border Width",
233
- description: "Border width for the widget",
234
- defaultValue: "none",
235
- tab: "styling",
236
- group: "Design"
237
- }),
238
- require_registries.getBorderColorField({
239
- key: "borderColor",
240
- label: "Border Color",
241
- description: "Border color for the widget",
242
- defaultValue: "muted",
243
- tab: "styling",
244
- group: "Design"
245
- })
246
- ]
247
- };
248
- //#endregion
249
- Object.defineProperty(exports, "QuickShareWidget", {
250
- enumerable: true,
251
- get: function() {
252
- return QuickShareWidget;
253
- }
254
- });
255
- Object.defineProperty(exports, "QuickShareWidget_exports", {
256
- enumerable: true,
257
- get: function() {
258
- return QuickShareWidget_exports;
259
- }
260
- });
261
- Object.defineProperty(exports, "quickShareWidgetPropertySchema", {
262
- enumerable: true,
263
- get: function() {
264
- return quickShareWidgetPropertySchema;
265
- }
266
- });
267
-
268
- //# sourceMappingURL=QuickShareWidget-DRbErOlt.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QuickShareWidget-DRbErOlt.cjs","names":["borderWidthClasses","borderColorClasses","Image","QRCodeSVG","Copy","ShoppingCart","getFontSizeField","getColorField","getPaddingField","getBorderRadiusField","getBorderWidthField","getBorderColorField"],"sources":["../../widgets/src/widgets/QuickShareWidget.tsx"],"sourcesContent":["import type { ComponentProps } from \"react\";\nimport type React from \"react\";\nimport type {\n BorderRadiusOptions,\n BorderWidthOptions,\n ColorOptions,\n FontSizeOptions,\n PaddingOptions,\n} from \"@fluid-app/portal-core/types\";\nimport type { WidgetPropertySchema } from \"@fluid-app/portal-core/registries\";\nimport type { ShareableItem } from \"@fluid-app/portal-core/types\";\nimport {\n getBorderRadiusField,\n getBorderWidthField,\n getBorderColorField,\n borderWidthClasses,\n borderColorClasses,\n getColorField,\n getFontSizeField,\n getPaddingField,\n} from \"../core/fields\";\nimport { QRCodeSVG } from \"qrcode.react\";\nimport { Copy, ShoppingCart, Image } from \"lucide-react\";\n\ntype QuickShareWidgetProps = ComponentProps<\"div\"> & {\n // Resource\n shareableResource?: ShareableItem;\n\n // Title\n titleEnabled?: boolean;\n titleText?: string;\n titleFontSize?: FontSizeOptions;\n titleColor?: ColorOptions;\n\n // Styling\n textColor?: ColorOptions;\n accentColor?: ColorOptions;\n padding?: PaddingOptions;\n borderRadius?: BorderRadiusOptions;\n borderWidth?: BorderWidthOptions;\n borderColor?: ColorOptions;\n\n // Overlay\n overlayEnabled?: boolean;\n overlayType?: \"solid\" | \"gradient\";\n overlayIntensity?: number;\n\n // Actions\n showBuyButton?: boolean;\n};\n\nexport function QuickShareWidget({\n // Resource\n shareableResource,\n\n // Title defaults\n titleEnabled = true,\n titleText = \"\",\n titleFontSize = \"2xl\",\n titleColor = \"foreground\",\n\n textColor = \"foreground\",\n accentColor = \"primary\",\n padding = 4,\n borderRadius = \"md\",\n borderWidth = \"none\",\n borderColor = \"muted\",\n\n // Overlay defaults\n overlayEnabled = true,\n overlayType = \"solid\",\n overlayIntensity = 50,\n\n // Actions defaults\n showBuyButton = false,\n\n className,\n ...props\n}: QuickShareWidgetProps): React.JSX.Element {\n // Determine background styling\n const backgroundImageUrl =\n shareableResource?.image_url || shareableResource?.imageUrl;\n\n // Get share link from resource\n const shareLink = shareableResource?.share_link || \"\";\n const displayUrl = shareLink || \"Select a resource to generate link\";\n\n // Determine title - use provided title or fall back to resource title\n const displayTitle =\n titleText || shareableResource?.title || \"Select a resource to display!\";\n\n // Check if resource is a Product for buy button visibility\n const isProduct =\n shareableResource?.type === \"Product\" ||\n shareableResource?.shareableType === \"Product\";\n const shouldShowBuyButton = showBuyButton && isProduct;\n\n // Copy to clipboard handler\n const handleCopyToClipboard = async () => {\n if (shareLink) {\n try {\n await navigator.clipboard.writeText(shareLink);\n } catch (error) {\n console.error(\"Failed to copy to clipboard:\", error);\n }\n }\n };\n\n return (\n <div\n className={`relative overflow-hidden rounded-${borderRadius} ${borderWidthClasses[borderWidth]} ${borderWidth !== \"none\" ? borderColorClasses[borderColor] : \"\"} bg-muted text-${textColor} ${className ?? \"\"}`}\n {...props}\n >\n {/* Background Image with Overlay */}\n {backgroundImageUrl ? (\n <div className=\"absolute inset-0\">\n <img\n src={backgroundImageUrl}\n alt=\"\"\n className=\"h-full w-full object-cover\"\n />\n {overlayEnabled && (\n <div\n className={`absolute inset-0 ${\n overlayType === \"gradient\"\n ? \"bg-gradient-to-t from-black to-transparent\"\n : \"bg-black\"\n }`}\n style={{\n opacity:\n (Number(String(overlayIntensity).replace(\"%\", \"\")) || 50) /\n 100,\n }}\n />\n )}\n </div>\n ) : (\n <div\n className={`bg-muted absolute inset-0 flex items-center justify-center`}\n >\n <Image className=\"h-16 w-16 opacity-20\" />\n </div>\n )}\n\n {/* Content Container */}\n <div className={`relative flex min-h-[400px] flex-col p-${padding}`}>\n {/* Title Overlay */}\n {titleEnabled && displayTitle && (\n <div className=\"flex flex-1 items-center justify-center\">\n <h2\n className={`text-center text-${titleFontSize} font-header font-semibold text-${titleColor} drop-shadow-lg`}\n >\n {displayTitle}\n </h2>\n </div>\n )}\n\n {/* Bottom Section - QR Code, URL, and Buttons */}\n <div className=\"mt-auto flex flex-col gap-4\">\n <div className=\"flex items-end justify-between gap-4\">\n {/* QR Code */}\n <div className=\"shrink-0 rounded-lg bg-white p-2\">\n <QRCodeSVG\n value={shareLink || \"https://example.com\"}\n size={100}\n level=\"H\"\n />\n </div>\n\n {/* URL Display */}\n <div className=\"min-w-0 flex-1\">\n <p className=\"mb-2 text-sm font-semibold tracking-wide drop-shadow\">\n Your Shareable URL\n </p>\n <div className=\"flex items-center justify-between rounded-md border border-white/20 bg-black/50 p-2 text-sm text-white backdrop-blur\">\n <span className=\"truncate\">{displayUrl}</span>\n <button\n type=\"button\"\n onClick={handleCopyToClipboard}\n className={`ml-2 shrink-0 rounded p-1 transition-colors hover:bg-${accentColor}/20`}\n aria-label=\"Copy link\"\n >\n <Copy className=\"h-4 w-4\" />\n </button>\n </div>\n </div>\n </div>\n\n {/* Action Buttons */}\n {/* TODO: Needs button link implmented, once it is uncomment the config for showBuyButton */}\n {shouldShowBuyButton && (\n <div className=\"flex\">\n <button\n type=\"button\"\n className={`flex w-full items-center justify-center gap-2 rounded-lg bg-${accentColor} p-3 font-medium text-${accentColor}-foreground transition-all hover:bg-${accentColor}/70`}\n >\n <ShoppingCart className=\"h-4 w-4\" />\n <span>Buy</span>\n </button>\n </div>\n )}\n </div>\n </div>\n </div>\n );\n}\n\nexport const quickShareWidgetPropertySchema: WidgetPropertySchema = {\n widgetType: \"QuickShareWidget\",\n displayName: \"Quick Share Widget\",\n tabsConfig: [{ id: \"styling\", label: \"Styling\" }],\n fields: [\n // Styling Tab - Resource\n {\n key: \"shareableResource\",\n label: \"Shareable Content\",\n type: \"resource\",\n description: \"Select the content to generate a share link for\",\n allowedTypes: [\"Product\", \"Page\", \"EnrollmentPack\", \"Medium\", \"Library\"],\n tab: \"styling\",\n group: \"Content\",\n },\n\n // Styling Tab - Title Group\n {\n key: \"titleEnabled\",\n label: \"Show Title\",\n type: \"boolean\",\n description: \"Display a title overlay on the widget\",\n defaultValue: true,\n tab: \"styling\",\n group: \"Title\",\n },\n {\n key: \"titleText\",\n label: \"Title\",\n type: \"text\",\n description: \"Custom title text (defaults to resource title if empty)\",\n defaultValue: \"\",\n tab: \"styling\",\n group: \"Title\",\n requiresKeyToBeTrue: \"titleEnabled\",\n },\n getFontSizeField({\n key: \"titleFontSize\",\n label: \"Title Font Size\",\n description: \"Font size for the title text\",\n defaultValue: \"2xl\",\n tab: \"styling\",\n group: \"Title\",\n requiresKeyToBeTrue: \"titleEnabled\",\n }),\n getColorField({\n key: \"titleColor\",\n label: \"Title Color\",\n description: \"Color for the title text\",\n defaultValue: \"background\",\n tab: \"styling\",\n group: \"Title\",\n requiresKeyToBeTrue: \"titleEnabled\",\n }),\n\n // Styling Tab - Actions Group\n // {\n // key: \"showBuyButton\",\n // label: \"Show Buy Button\",\n // type: \"boolean\",\n // description: \"Display the buy button (only visible for Product type)\",\n // defaultValue: false,\n // tab: \"styling\",\n // group: \"Actions\",\n // },\n\n // Styling Tab - Design Group\n getColorField({\n key: \"textColor\",\n label: \"Text Color\",\n description: \"Default text color for the widget\",\n defaultValue: \"background\",\n tab: \"styling\",\n group: \"Design\",\n }),\n getColorField({\n key: \"accentColor\",\n label: \"Accent Color\",\n description: \"Color for accent elements and buy button\",\n defaultValue: \"primary\",\n tab: \"styling\",\n group: \"Design\",\n }),\n {\n key: \"overlayEnabled\",\n label: \"Enable Overlay\",\n type: \"boolean\",\n description: \"Add background overlay for text readability\",\n defaultValue: true,\n tab: \"styling\",\n group: \"Design\",\n },\n {\n key: \"overlayType\",\n label: \"Overlay Type\",\n type: \"buttonGroup\",\n description: \"Type of overlay to add to the background\",\n defaultValue: \"solid\",\n options: [\n { label: \"Solid\", value: \"solid\" },\n { label: \"Gradient\", value: \"gradient\" },\n ],\n tab: \"styling\",\n group: \"Design\",\n requiresKeyToBeTrue: \"overlayEnabled\",\n },\n {\n key: \"overlayIntensity\",\n label: \"Overlay Intensity\",\n type: \"slider\",\n description: \"Opacity of the overlay background (0-100)\",\n min: 0,\n max: 100,\n step: 5,\n defaultValue: 50,\n unit: \"%\",\n tab: \"styling\",\n group: \"Design\",\n requiresKeyToBeTrue: \"overlayEnabled\",\n },\n {\n key: \"separator\",\n type: \"separator\",\n label: \"Separator\",\n tab: \"styling\",\n group: \"Design\",\n },\n getPaddingField({\n key: \"padding\",\n label: \"Padding\",\n description: \"Padding around the widget content\",\n defaultValue: 4,\n tab: \"styling\",\n group: \"Design\",\n }),\n getBorderRadiusField({\n key: \"borderRadius\",\n label: \"Border Radius\",\n description: \"Border radius for the widget container\",\n defaultValue: \"md\",\n tab: \"styling\",\n group: \"Design\",\n }),\n getBorderWidthField({\n key: \"borderWidth\",\n label: \"Border Width\",\n description: \"Border width for the widget\",\n defaultValue: \"none\",\n tab: \"styling\",\n group: \"Design\",\n }),\n getBorderColorField({\n key: \"borderColor\",\n label: \"Border Color\",\n description: \"Border color for the widget\",\n defaultValue: \"muted\",\n tab: \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