@fluid-app/portal-sdk 0.1.455 → 0.1.457
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/{AlertWidget-CdWJXZn1.mjs → AlertWidget-BtkVIGr9.mjs} +2 -2
- package/dist/{AlertWidget-CdWJXZn1.mjs.map → AlertWidget-BtkVIGr9.mjs.map} +1 -1
- package/dist/{AlertWidget-BJekf1r1.cjs → AlertWidget-C5sAMhqU.cjs} +2 -2
- package/dist/{AlertWidget-BJekf1r1.cjs.map → AlertWidget-C5sAMhqU.cjs.map} +1 -1
- package/dist/{ContactsScreen-DsHXXYfF.cjs → ContactsScreen-BTCUeDHl.cjs} +1 -1
- package/dist/{ContactsScreen-TO0LAuHz.cjs → ContactsScreen-Cu6-ckm9.cjs} +23 -13
- package/dist/ContactsScreen-Cu6-ckm9.cjs.map +1 -0
- package/dist/{ContactsScreen-DhMQm4w2.mjs → ContactsScreen-D0l3-Xof.mjs} +23 -13
- package/dist/ContactsScreen-D0l3-Xof.mjs.map +1 -0
- package/dist/{FluidProvider-BULkBuyn.cjs → FluidProvider-Dm5QH6EP.cjs} +2 -2
- package/dist/{FluidProvider-BULkBuyn.cjs.map → FluidProvider-Dm5QH6EP.cjs.map} +1 -1
- package/dist/{FluidProvider-CA_HAl9a.mjs → FluidProvider-KBZgRXjL.mjs} +2 -2
- package/dist/{FluidProvider-CA_HAl9a.mjs.map → FluidProvider-KBZgRXjL.mjs.map} +1 -1
- package/dist/{MessagingScreen-DWH9xBbq.cjs → MessagingScreen-BrbkMeld.cjs} +2 -2
- package/dist/{MessagingScreen-DWH9xBbq.cjs.map → MessagingScreen-BrbkMeld.cjs.map} +1 -1
- package/dist/{MessagingScreen-CYOGaqKX.mjs → MessagingScreen-BtoXnSqJ.mjs} +2 -2
- package/dist/{MessagingScreen-CYOGaqKX.mjs.map → MessagingScreen-BtoXnSqJ.mjs.map} +1 -1
- package/dist/{MessagingScreen-BG6clVDQ.mjs → MessagingScreen-CYqzOl6D.mjs} +6 -6
- package/dist/{MessagingScreen-B_nyIg2b.cjs → MessagingScreen-uuydnJEi.cjs} +5 -5
- package/dist/{OrdersScreen-DMlrdteQ.mjs → OrdersScreen-CutgAgyO.mjs} +6 -6
- package/dist/{OrdersScreen-Dh_nsi8j.cjs → OrdersScreen-DKQmax51.cjs} +2 -2
- package/dist/{OrdersScreen-Dh_nsi8j.cjs.map → OrdersScreen-DKQmax51.cjs.map} +1 -1
- package/dist/{OrdersScreen-CfchcnYB.cjs → OrdersScreen-UaQcR3IU.cjs} +5 -5
- package/dist/{OrdersScreen-CBF6uZSk.mjs → OrdersScreen-eqJy6_m3.mjs} +2 -2
- package/dist/{OrdersScreen-CBF6uZSk.mjs.map → OrdersScreen-eqJy6_m3.mjs.map} +1 -1
- package/dist/{ProfileScreen-t2V-W4Dv.cjs → ProfileScreen-B5DcNq7i.cjs} +6 -6
- package/dist/{ProfileScreen-CbYASEr9.mjs → ProfileScreen-C4SiOL-k.mjs} +7 -7
- package/dist/{ProfileScreen-DlPK9S_Q.mjs → ProfileScreen-CealQbpo.mjs} +3 -3
- package/dist/{ProfileScreen-DlPK9S_Q.mjs.map → ProfileScreen-CealQbpo.mjs.map} +1 -1
- package/dist/{ProfileScreen-CXqMOEza.cjs → ProfileScreen-DXSnyfCO.cjs} +3 -3
- package/dist/{ProfileScreen-CXqMOEza.cjs.map → ProfileScreen-DXSnyfCO.cjs.map} +1 -1
- package/dist/{ShopScreen-1vtAE4X7.mjs → ShopScreen-B6cf4gW-.mjs} +6 -6
- package/dist/{ShopScreen-CrObPeSv.cjs → ShopScreen-CcupxIut.cjs} +2 -2
- package/dist/{ShopScreen-CrObPeSv.cjs.map → ShopScreen-CcupxIut.cjs.map} +1 -1
- package/dist/{ShopScreen-BWDYXw4Q.cjs → ShopScreen-DH_TcNMs.cjs} +5 -5
- package/dist/{ShopScreen-BnuiYHKY.mjs → ShopScreen-z2J4fRfs.mjs} +3 -3
- package/dist/{ShopScreen-BnuiYHKY.mjs.map → ShopScreen-z2J4fRfs.mjs.map} +1 -1
- package/dist/{ShopWidget-CwiD88Sr.mjs → ShopWidget-DXVNRrFY.mjs} +2 -2
- package/dist/{ShopWidget-CwiD88Sr.mjs.map → ShopWidget-DXVNRrFY.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-CBIjEFKA.mjs → SubscriptionsScreen-CBEULwpU.mjs} +7 -7
- package/dist/{SubscriptionsScreen-Bjdz5fx-.cjs → SubscriptionsScreen-CTrOXRIz.cjs} +3 -3
- package/dist/{SubscriptionsScreen-Bjdz5fx-.cjs.map → SubscriptionsScreen-CTrOXRIz.cjs.map} +1 -1
- package/dist/{SubscriptionsScreen-BlB3Ppoa.cjs → SubscriptionsScreen-DdlwKkJ1.cjs} +6 -6
- package/dist/{SubscriptionsScreen-DyjmAOvJ.mjs → SubscriptionsScreen-DyL-7oeE.mjs} +3 -3
- package/dist/{SubscriptionsScreen-DyjmAOvJ.mjs.map → SubscriptionsScreen-DyL-7oeE.mjs.map} +1 -1
- package/dist/{TextWidget-CY71e66E.cjs → TextWidget-CNks2l1S.cjs} +4 -3
- package/dist/TextWidget-CNks2l1S.cjs.map +1 -0
- package/dist/{TextWidget-B-2RFD_g.mjs → TextWidget-cnDl92rJ.mjs} +4 -3
- package/dist/TextWidget-cnDl92rJ.mjs.map +1 -0
- package/dist/{build-widget-registry-L8a9-O3A.cjs → build-widget-registry-Bg8G7GQF.cjs} +29 -5
- package/dist/build-widget-registry-Bg8G7GQF.cjs.map +1 -0
- package/dist/{build-widget-registry-Dy8S7Ggy.mjs → build-widget-registry-fQIvocLa.mjs} +26 -8
- package/dist/build-widget-registry-fQIvocLa.mjs.map +1 -0
- package/dist/index.cjs +215 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +7 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +215 -24
- package/dist/index.mjs.map +1 -1
- package/dist/{use-portal-card-add-3ds-flow-B4wqRVNt.mjs → use-portal-card-add-3ds-flow-Caupep6C.mjs} +2 -2
- package/dist/{use-portal-card-add-3ds-flow-B4wqRVNt.mjs.map → use-portal-card-add-3ds-flow-Caupep6C.mjs.map} +1 -1
- package/dist/{use-portal-card-add-3ds-flow-Dt29-X8z.cjs → use-portal-card-add-3ds-flow-Cl3H-Dp7.cjs} +2 -2
- package/dist/{use-portal-card-add-3ds-flow-Dt29-X8z.cjs.map → use-portal-card-add-3ds-flow-Cl3H-Dp7.cjs.map} +1 -1
- package/dist/utils/build-remote-widget-plugin-manifests.cjs +3 -3
- package/dist/utils/build-remote-widget-plugin-manifests.mjs +4 -4
- package/package.json +9 -9
- package/dist/ContactsScreen-DhMQm4w2.mjs.map +0 -1
- package/dist/ContactsScreen-TO0LAuHz.cjs.map +0 -1
- package/dist/TextWidget-B-2RFD_g.mjs.map +0 -1
- package/dist/TextWidget-CY71e66E.cjs.map +0 -1
- package/dist/build-widget-registry-Dy8S7Ggy.mjs.map +0 -1
- package/dist/build-widget-registry-L8a9-O3A.cjs.map +0 -1
|
@@ -12,10 +12,11 @@ const textAlignmentClasses = {
|
|
|
12
12
|
center: "text-center",
|
|
13
13
|
right: "text-right"
|
|
14
14
|
};
|
|
15
|
-
function TextWidget({ titleEnabled = true, title = "Text Widget", titleFontSize = "xl", titleFontWeight = "bold", titleColor = "foreground", titleAlignment = "left", description
|
|
15
|
+
function TextWidget({ titleEnabled = true, title = "Text Widget", titleFontSize = "xl", titleFontWeight = "bold", titleColor = "foreground", titleAlignment = "left", description, content, descriptionFontSize = "md", descriptionFontWeight = "normal", descriptionColor = "foreground", descriptionAlignment = "left", background = {
|
|
16
16
|
type: "solid",
|
|
17
17
|
color: "background"
|
|
18
18
|
}, padding = 4, borderRadius = "md", borderWidth = "none", borderColor = "muted", className, ...props }) {
|
|
19
|
+
const resolvedDescription = description ?? content ?? "This is a text widget";
|
|
19
20
|
const backgroundColor = background.color || "background";
|
|
20
21
|
const backgroundImage = (background.resource?.image_url || background.resource?.imageUrl) && background.type === "image" ? `url(${background.resource.image_url || background.resource.imageUrl})` : "none";
|
|
21
22
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -27,7 +28,7 @@ function TextWidget({ titleEnabled = true, title = "Text Widget", titleFontSize
|
|
|
27
28
|
children: title
|
|
28
29
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
29
30
|
className: `text-${descriptionFontSize} text-${descriptionColor} ${textAlignmentClasses[descriptionAlignment]} font-${descriptionFontWeight}`,
|
|
30
|
-
children:
|
|
31
|
+
children: resolvedDescription
|
|
31
32
|
})]
|
|
32
33
|
});
|
|
33
34
|
}
|
|
@@ -235,4 +236,4 @@ Object.defineProperty(exports, "textWidgetPropertySchema", {
|
|
|
235
236
|
}
|
|
236
237
|
});
|
|
237
238
|
|
|
238
|
-
//# sourceMappingURL=TextWidget-
|
|
239
|
+
//# sourceMappingURL=TextWidget-CNks2l1S.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextWidget-CNks2l1S.cjs","names":["borderWidthClasses","borderColorClasses","getFontSizeField","getFontWeightField","getColorField","AlignLeft","AlignCenter","AlignRight","getPaddingField","getBorderRadiusField","getBorderWidthField","getBorderColorField"],"sources":["../../widgets/src/widgets/TextWidget.tsx"],"sourcesContent":["import type { WidgetPropertySchema } from \"@fluid-app/portal-core/registries\";\nimport type { ComponentProps } from \"react\";\nimport type React from \"react\";\nimport {\n getBorderRadiusField,\n getBorderWidthField,\n getBorderColorField,\n getColorField,\n getFontSizeField,\n getFontWeightField,\n getPaddingField,\n borderWidthClasses,\n borderColorClasses,\n} from \"../core/fields\";\nimport type {\n BackgroundValue,\n BorderRadiusOptions,\n BorderWidthOptions,\n ColorOptions,\n FontSizeOptions,\n FontWeightOptions,\n PaddingOptions,\n} from \"@fluid-app/portal-core/types\";\nimport { AlignCenter, AlignLeft, AlignRight } from \"lucide-react\";\n\ntype TextAlignment = \"left\" | \"center\" | \"right\";\n\nconst textAlignmentClasses: Record<TextAlignment, string> = {\n left: \"text-left\",\n center: \"text-center\",\n right: \"text-right\",\n} as const;\n\ntype TextWidgetProps = ComponentProps<\"div\"> & {\n // Title\n titleEnabled?: boolean;\n title?: string;\n titleFontSize?: FontSizeOptions;\n titleFontWeight?: FontWeightOptions;\n titleColor?: ColorOptions;\n titleAlignment?: TextAlignment;\n\n // Description\n description?: string;\n /**\n * Alias for `description`. Authoring tools and agents reach for `content`\n * often enough that silently dropping it (and rendering placeholder copy)\n * reads as a broken widget — accept it, lowest precedence.\n */\n content?: string;\n descriptionFontSize?: FontSizeOptions;\n descriptionFontWeight?: FontWeightOptions;\n descriptionColor?: ColorOptions;\n descriptionAlignment?: TextAlignment;\n\n // Styling\n background?: BackgroundValue;\n padding?: PaddingOptions;\n borderRadius?: BorderRadiusOptions;\n borderWidth?: BorderWidthOptions;\n borderColor?: ColorOptions;\n};\n\nexport function TextWidget({\n titleEnabled = true,\n title = \"Text Widget\",\n titleFontSize = \"xl\",\n titleFontWeight = \"bold\",\n titleColor = \"foreground\",\n titleAlignment = \"left\",\n description,\n content,\n descriptionFontSize = \"md\",\n descriptionFontWeight = \"normal\",\n descriptionColor = \"foreground\",\n descriptionAlignment = \"left\",\n background = {\n type: \"solid\",\n color: \"background\",\n },\n padding = 4,\n borderRadius = \"md\",\n borderWidth = \"none\",\n borderColor = \"muted\",\n className,\n ...props\n}: TextWidgetProps): React.JSX.Element {\n const resolvedDescription = description ?? content ?? \"This is a text widget\";\n const backgroundColor = background.color || \"background\";\n const backgroundImage =\n (background.resource?.image_url || background.resource?.imageUrl) &&\n background.type === \"image\"\n ? `url(${background.resource.image_url || background.resource.imageUrl})`\n : \"none\";\n return (\n <div\n className={`bg-${backgroundColor} p-${padding} rounded-${borderRadius} ${borderWidthClasses[borderWidth]} ${borderWidth !== \"none\" ? borderColorClasses[borderColor] : \"\"} ${className ?? \"\"}`}\n style={{ backgroundImage }}\n {...props}\n >\n {titleEnabled && (\n <h2\n className={`text-${titleFontSize} text-${titleColor} ${textAlignmentClasses[titleAlignment]} font-header font-${titleFontWeight}`}\n >\n {title}\n </h2>\n )}\n <p\n className={`text-${descriptionFontSize} text-${descriptionColor} ${textAlignmentClasses[descriptionAlignment]} font-${descriptionFontWeight}`}\n >\n {resolvedDescription}\n </p>\n </div>\n );\n}\n\nexport const textWidgetPropertySchema: WidgetPropertySchema = {\n widgetType: \"TextWidget\",\n displayName: \"Text Widget\",\n tabsConfig: [{ id: \"content\", label: \"Content\" }],\n dataSourceTargetProps: [\"title\", \"description\"],\n fields: [\n // Content Tab - Title Group\n {\n key: \"titleEnabled\",\n label: \"Widget Title\",\n type: \"boolean\",\n description: \"Enable the title displayed above the text\",\n defaultValue: true,\n tab: \"content\",\n group: \"Title\",\n },\n {\n key: \"title\",\n label: \"Title\",\n type: \"text\",\n description: \"The title\",\n defaultValue: \"Heads up!\",\n tab: \"content\",\n group: \"Title\",\n requiresKeyToBeTrue: \"titleEnabled\",\n },\n getFontSizeField({\n key: \"titleFontSize\",\n label: \"Title Font Size\",\n description: \"Font size for the title\",\n defaultValue: \"xl\",\n tab: \"content\",\n group: \"Title\",\n requiresKeyToBeTrue: \"titleEnabled\",\n }),\n getFontWeightField({\n key: \"titleFontWeight\",\n label: \"Title Font Weight\",\n description: \"Font weight for the title\",\n defaultValue: \"bold\",\n tab: \"content\",\n group: \"Title\",\n requiresKeyToBeTrue: \"titleEnabled\",\n }),\n getColorField({\n key: \"titleColor\",\n label: \"Title Color\",\n description: \"The color of the title\",\n defaultValue: \"foreground\",\n tab: \"content\",\n group: \"Title\",\n requiresKeyToBeTrue: \"titleEnabled\",\n }),\n {\n key: \"titleAlignment\",\n label: \"Alignment\",\n type: \"buttonGroup\",\n description: \"Text alignment for the title\",\n options: [\n { icon: AlignLeft, ariaLabel: \"Align left\", value: \"left\" },\n { icon: AlignCenter, ariaLabel: \"Align center\", value: \"center\" },\n { icon: AlignRight, ariaLabel: \"Align right\", value: \"right\" },\n ],\n defaultValue: \"left\",\n tab: \"content\",\n group: \"Title\",\n requiresKeyToBeTrue: \"titleEnabled\",\n },\n // Content Tab - Description Group\n {\n key: \"description\",\n label: \"Description\",\n type: \"textarea\",\n description: \"The text message\",\n rows: 3,\n defaultValue:\n \"You can add components and dependencies to your app using the cli.\",\n tab: \"content\",\n group: \"Description\",\n },\n getFontSizeField({\n key: \"descriptionFontSize\",\n label: \"Description Font Size\",\n description: \"Font size for the text\",\n defaultValue: \"md\",\n tab: \"content\",\n group: \"Description\",\n }),\n getFontWeightField({\n key: \"descriptionFontWeight\",\n label: \"Description Font Weight\",\n description: \"Font weight for the text\",\n defaultValue: \"normal\",\n tab: \"content\",\n group: \"Description\",\n }),\n getColorField({\n key: \"descriptionColor\",\n label: \"Description Color\",\n description: \"The color of the text\",\n defaultValue: \"foreground\",\n tab: \"content\",\n group: \"Description\",\n }),\n {\n key: \"descriptionAlignment\",\n label: \"Alignment\",\n type: \"buttonGroup\",\n description: \"Text alignment for the description\",\n options: [\n { icon: AlignLeft, ariaLabel: \"Align left\", value: \"left\" },\n { icon: AlignCenter, ariaLabel: \"Align center\", value: \"center\" },\n { icon: AlignRight, ariaLabel: \"Align right\", value: \"right\" },\n ],\n defaultValue: \"left\",\n tab: \"content\",\n group: \"Description\",\n },\n // Content Tab - Style Group\n {\n type: \"background\",\n key: \"background\",\n label: \"Background\",\n description: \"Background for the text container\",\n defaultValue: \"background\",\n tab: \"content\",\n group: \"Style\",\n },\n getPaddingField({\n key: \"padding\",\n label: \"Padding\",\n description: \"The padding of the text container\",\n defaultValue: 4,\n tab: \"content\",\n group: \"Style\",\n }),\n getBorderRadiusField({\n key: \"borderRadius\",\n description: \"The border radius of the text container\",\n label: \"Border Radius\",\n tab: \"content\",\n group: \"Design\",\n }),\n getBorderWidthField({\n key: \"borderWidth\",\n label: \"Border Width\",\n description: \"The border width of the text container\",\n defaultValue: \"none\",\n tab: \"content\",\n group: \"Design\",\n }),\n getBorderColorField({\n key: \"borderColor\",\n label: \"Border Color\",\n description: \"The border color of the text container\",\n defaultValue: \"muted\",\n tab: \"content\",\n group: \"Design\",\n }),\n ],\n};\n"],"mappings":"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"}
|
|
@@ -12,10 +12,11 @@ const textAlignmentClasses = {
|
|
|
12
12
|
center: "text-center",
|
|
13
13
|
right: "text-right"
|
|
14
14
|
};
|
|
15
|
-
function TextWidget({ titleEnabled = true, title = "Text Widget", titleFontSize = "xl", titleFontWeight = "bold", titleColor = "foreground", titleAlignment = "left", description
|
|
15
|
+
function TextWidget({ titleEnabled = true, title = "Text Widget", titleFontSize = "xl", titleFontWeight = "bold", titleColor = "foreground", titleAlignment = "left", description, content, descriptionFontSize = "md", descriptionFontWeight = "normal", descriptionColor = "foreground", descriptionAlignment = "left", background = {
|
|
16
16
|
type: "solid",
|
|
17
17
|
color: "background"
|
|
18
18
|
}, padding = 4, borderRadius = "md", borderWidth = "none", borderColor = "muted", className, ...props }) {
|
|
19
|
+
const resolvedDescription = description ?? content ?? "This is a text widget";
|
|
19
20
|
const backgroundColor = background.color || "background";
|
|
20
21
|
const backgroundImage = (background.resource?.image_url || background.resource?.imageUrl) && background.type === "image" ? `url(${background.resource.image_url || background.resource.imageUrl})` : "none";
|
|
21
22
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -27,7 +28,7 @@ function TextWidget({ titleEnabled = true, title = "Text Widget", titleFontSize
|
|
|
27
28
|
children: title
|
|
28
29
|
}), /* @__PURE__ */ jsx("p", {
|
|
29
30
|
className: `text-${descriptionFontSize} text-${descriptionColor} ${textAlignmentClasses[descriptionAlignment]} font-${descriptionFontWeight}`,
|
|
30
|
-
children:
|
|
31
|
+
children: resolvedDescription
|
|
31
32
|
})]
|
|
32
33
|
});
|
|
33
34
|
}
|
|
@@ -218,4 +219,4 @@ const textWidgetPropertySchema = {
|
|
|
218
219
|
//#endregion
|
|
219
220
|
export { TextWidget_exports as n, textWidgetPropertySchema as r, TextWidget as t };
|
|
220
221
|
|
|
221
|
-
//# sourceMappingURL=TextWidget-
|
|
222
|
+
//# sourceMappingURL=TextWidget-cnDl92rJ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextWidget-cnDl92rJ.mjs","names":[],"sources":["../../widgets/src/widgets/TextWidget.tsx"],"sourcesContent":["import type { WidgetPropertySchema } from \"@fluid-app/portal-core/registries\";\nimport type { ComponentProps } from \"react\";\nimport type React from \"react\";\nimport {\n getBorderRadiusField,\n getBorderWidthField,\n getBorderColorField,\n getColorField,\n getFontSizeField,\n getFontWeightField,\n getPaddingField,\n borderWidthClasses,\n borderColorClasses,\n} from \"../core/fields\";\nimport type {\n BackgroundValue,\n BorderRadiusOptions,\n BorderWidthOptions,\n ColorOptions,\n FontSizeOptions,\n FontWeightOptions,\n PaddingOptions,\n} from \"@fluid-app/portal-core/types\";\nimport { AlignCenter, AlignLeft, AlignRight } from \"lucide-react\";\n\ntype TextAlignment = \"left\" | \"center\" | \"right\";\n\nconst textAlignmentClasses: Record<TextAlignment, string> = {\n left: \"text-left\",\n center: \"text-center\",\n right: \"text-right\",\n} as const;\n\ntype TextWidgetProps = ComponentProps<\"div\"> & {\n // Title\n titleEnabled?: boolean;\n title?: string;\n titleFontSize?: FontSizeOptions;\n titleFontWeight?: FontWeightOptions;\n titleColor?: ColorOptions;\n titleAlignment?: TextAlignment;\n\n // Description\n description?: string;\n /**\n * Alias for `description`. Authoring tools and agents reach for `content`\n * often enough that silently dropping it (and rendering placeholder copy)\n * reads as a broken widget — accept it, lowest precedence.\n */\n content?: string;\n descriptionFontSize?: FontSizeOptions;\n descriptionFontWeight?: FontWeightOptions;\n descriptionColor?: ColorOptions;\n descriptionAlignment?: TextAlignment;\n\n // Styling\n background?: BackgroundValue;\n padding?: PaddingOptions;\n borderRadius?: BorderRadiusOptions;\n borderWidth?: BorderWidthOptions;\n borderColor?: ColorOptions;\n};\n\nexport function TextWidget({\n titleEnabled = true,\n title = \"Text Widget\",\n titleFontSize = \"xl\",\n titleFontWeight = \"bold\",\n titleColor = \"foreground\",\n titleAlignment = \"left\",\n description,\n content,\n descriptionFontSize = \"md\",\n descriptionFontWeight = \"normal\",\n descriptionColor = \"foreground\",\n descriptionAlignment = \"left\",\n background = {\n type: \"solid\",\n color: \"background\",\n },\n padding = 4,\n borderRadius = \"md\",\n borderWidth = \"none\",\n borderColor = \"muted\",\n className,\n ...props\n}: TextWidgetProps): React.JSX.Element {\n const resolvedDescription = description ?? content ?? \"This is a text widget\";\n const backgroundColor = background.color || \"background\";\n const backgroundImage =\n (background.resource?.image_url || background.resource?.imageUrl) &&\n background.type === \"image\"\n ? `url(${background.resource.image_url || background.resource.imageUrl})`\n : \"none\";\n return (\n <div\n className={`bg-${backgroundColor} p-${padding} rounded-${borderRadius} ${borderWidthClasses[borderWidth]} ${borderWidth !== \"none\" ? borderColorClasses[borderColor] : \"\"} ${className ?? \"\"}`}\n style={{ backgroundImage }}\n {...props}\n >\n {titleEnabled && (\n <h2\n className={`text-${titleFontSize} text-${titleColor} ${textAlignmentClasses[titleAlignment]} font-header font-${titleFontWeight}`}\n >\n {title}\n </h2>\n )}\n <p\n className={`text-${descriptionFontSize} text-${descriptionColor} ${textAlignmentClasses[descriptionAlignment]} font-${descriptionFontWeight}`}\n >\n {resolvedDescription}\n </p>\n </div>\n );\n}\n\nexport const textWidgetPropertySchema: WidgetPropertySchema = {\n widgetType: \"TextWidget\",\n displayName: \"Text Widget\",\n tabsConfig: [{ id: \"content\", label: \"Content\" }],\n dataSourceTargetProps: [\"title\", \"description\"],\n fields: [\n // Content Tab - Title Group\n {\n key: \"titleEnabled\",\n label: \"Widget Title\",\n type: \"boolean\",\n description: \"Enable the title displayed above the text\",\n defaultValue: true,\n tab: \"content\",\n group: \"Title\",\n },\n {\n key: \"title\",\n label: \"Title\",\n type: \"text\",\n description: \"The title\",\n defaultValue: \"Heads up!\",\n tab: \"content\",\n group: \"Title\",\n requiresKeyToBeTrue: \"titleEnabled\",\n },\n getFontSizeField({\n key: \"titleFontSize\",\n label: \"Title Font Size\",\n description: \"Font size for the title\",\n defaultValue: \"xl\",\n tab: \"content\",\n group: \"Title\",\n requiresKeyToBeTrue: \"titleEnabled\",\n }),\n getFontWeightField({\n key: \"titleFontWeight\",\n label: \"Title Font Weight\",\n description: \"Font weight for the title\",\n defaultValue: \"bold\",\n tab: \"content\",\n group: \"Title\",\n requiresKeyToBeTrue: \"titleEnabled\",\n }),\n getColorField({\n key: \"titleColor\",\n label: \"Title Color\",\n description: \"The color of the title\",\n defaultValue: \"foreground\",\n tab: \"content\",\n group: \"Title\",\n requiresKeyToBeTrue: \"titleEnabled\",\n }),\n {\n key: \"titleAlignment\",\n label: \"Alignment\",\n type: \"buttonGroup\",\n description: \"Text alignment for the title\",\n options: [\n { icon: AlignLeft, ariaLabel: \"Align left\", value: \"left\" },\n { icon: AlignCenter, ariaLabel: \"Align center\", value: \"center\" },\n { icon: AlignRight, ariaLabel: \"Align right\", value: \"right\" },\n ],\n defaultValue: \"left\",\n tab: \"content\",\n group: \"Title\",\n requiresKeyToBeTrue: \"titleEnabled\",\n },\n // Content Tab - Description Group\n {\n key: \"description\",\n label: \"Description\",\n type: \"textarea\",\n description: \"The text message\",\n rows: 3,\n defaultValue:\n \"You can add components and dependencies to your app using the cli.\",\n tab: \"content\",\n group: \"Description\",\n },\n getFontSizeField({\n key: \"descriptionFontSize\",\n label: \"Description Font Size\",\n description: \"Font size for the text\",\n defaultValue: \"md\",\n tab: \"content\",\n group: \"Description\",\n }),\n getFontWeightField({\n key: \"descriptionFontWeight\",\n label: \"Description Font Weight\",\n description: \"Font weight for the text\",\n defaultValue: \"normal\",\n tab: \"content\",\n group: \"Description\",\n }),\n getColorField({\n key: \"descriptionColor\",\n label: \"Description Color\",\n description: \"The color of the text\",\n defaultValue: \"foreground\",\n tab: \"content\",\n group: \"Description\",\n }),\n {\n key: \"descriptionAlignment\",\n label: \"Alignment\",\n type: \"buttonGroup\",\n description: \"Text alignment for the description\",\n options: [\n { icon: AlignLeft, ariaLabel: \"Align left\", value: \"left\" },\n { icon: AlignCenter, ariaLabel: \"Align center\", value: \"center\" },\n { icon: AlignRight, ariaLabel: \"Align right\", value: \"right\" },\n ],\n defaultValue: \"left\",\n tab: \"content\",\n group: \"Description\",\n },\n // Content Tab - Style Group\n {\n type: \"background\",\n key: \"background\",\n label: \"Background\",\n description: \"Background for the text container\",\n defaultValue: \"background\",\n tab: \"content\",\n group: \"Style\",\n },\n getPaddingField({\n key: \"padding\",\n label: \"Padding\",\n description: \"The padding of the text container\",\n defaultValue: 4,\n tab: \"content\",\n group: \"Style\",\n }),\n getBorderRadiusField({\n key: \"borderRadius\",\n description: \"The border radius of the text container\",\n label: \"Border Radius\",\n tab: \"content\",\n group: \"Design\",\n }),\n getBorderWidthField({\n key: \"borderWidth\",\n label: \"Border Width\",\n description: \"The border width of the text container\",\n defaultValue: \"none\",\n tab: \"content\",\n group: \"Design\",\n }),\n getBorderColorField({\n key: \"borderColor\",\n label: \"Border Color\",\n description: \"The border color of the text container\",\n defaultValue: \"muted\",\n tab: \"content\",\n group: \"Design\",\n }),\n ],\n};\n"],"mappings":"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"}
|
|
@@ -3,8 +3,8 @@ const require_use_account = require("./use-account-CPOGOGl6.cjs");
|
|
|
3
3
|
const require_QuickLinksWidget = require("./QuickLinksWidget-mDiAucKr.cjs");
|
|
4
4
|
const require_PointsWidget = require("./PointsWidget-BcBtWxS2.cjs");
|
|
5
5
|
const require_LayoutWidget = require("./LayoutWidget-CS8fOr1e.cjs");
|
|
6
|
-
const require_TextWidget = require("./TextWidget-
|
|
7
|
-
const require_AlertWidget = require("./AlertWidget-
|
|
6
|
+
const require_TextWidget = require("./TextWidget-CNks2l1S.cjs");
|
|
7
|
+
const require_AlertWidget = require("./AlertWidget-C5sAMhqU.cjs");
|
|
8
8
|
const require_BulletListWidget = require("./BulletListWidget-Dz_32RH1.cjs");
|
|
9
9
|
const require_CalendarWidget = require("./CalendarWidget-Cq2SrfVW.cjs");
|
|
10
10
|
const require_CardWidget = require("./CardWidget-CGbAcMeq.cjs");
|
|
@@ -1408,7 +1408,7 @@ function createWidgetFromShareable(item) {
|
|
|
1408
1408
|
//#endregion
|
|
1409
1409
|
//#region ../widgets/src/widgets/index.ts
|
|
1410
1410
|
const widgetPropertySchemas = {
|
|
1411
|
-
AlertWidget: () => Promise.resolve().then(() => require("./AlertWidget-
|
|
1411
|
+
AlertWidget: () => Promise.resolve().then(() => require("./AlertWidget-C5sAMhqU.cjs")).then((n) => n.AlertWidget_exports).then((m) => m.alertWidgetPropertySchema),
|
|
1412
1412
|
BulletListWidget: () => Promise.resolve().then(() => require("./BulletListWidget-Dz_32RH1.cjs")).then((n) => n.BulletListWidget_exports).then((m) => m.bulletListWidgetPropertySchema),
|
|
1413
1413
|
CalendarWidget: () => Promise.resolve().then(() => require("./CalendarWidget-Cq2SrfVW.cjs")).then((n) => n.CalendarWidget_exports).then((m) => m.calendarWidgetPropertySchema),
|
|
1414
1414
|
CardWidget: () => Promise.resolve().then(() => require("./CardWidget-BbddboSI.cjs")).then((m) => m.cardWidgetPropertySchema),
|
|
@@ -1431,7 +1431,7 @@ const widgetPropertySchemas = {
|
|
|
1431
1431
|
ShopWidget: () => Promise.resolve().then(() => require("./ShopWidget-DrLJa_WV.cjs")).then((m) => m.shopWidgetPropertySchema),
|
|
1432
1432
|
SpacerWidget: () => Promise.resolve().then(() => require("./SpacerWidget-CBr--iyL.cjs")).then((n) => n.SpacerWidget_exports).then((m) => m.spacerWidgetPropertySchema),
|
|
1433
1433
|
TableWidget: () => Promise.resolve().then(() => require("./TableWidget-CKZn4yR7.cjs")).then((m) => m.tableWidgetPropertySchema),
|
|
1434
|
-
TextWidget: () => Promise.resolve().then(() => require("./TextWidget-
|
|
1434
|
+
TextWidget: () => Promise.resolve().then(() => require("./TextWidget-CNks2l1S.cjs")).then((n) => n.TextWidget_exports).then((m) => m.textWidgetPropertySchema),
|
|
1435
1435
|
ToDoWidget: () => Promise.resolve().then(() => require("./ToDoWidget-O_rPmjKH.cjs")).then((m) => m.toDoWidgetPropertySchema),
|
|
1436
1436
|
VideoWidget: () => Promise.resolve().then(() => require("./VideoWidget-dt8fNuTR.cjs")).then((n) => n.VideoWidget_exports).then((m) => m.videoWidgetPropertySchema)
|
|
1437
1437
|
};
|
|
@@ -1464,6 +1464,24 @@ const DEFAULT_SDK_WIDGET_REGISTRY = createWidgetRegistry({
|
|
|
1464
1464
|
ToDoWidget: require_ToDoWidget.ToDoWidget,
|
|
1465
1465
|
VideoWidget: require_VideoWidget.VideoWidget
|
|
1466
1466
|
});
|
|
1467
|
+
/**
|
|
1468
|
+
* True only when `component` is the exact built-in component this SDK
|
|
1469
|
+
* registers for `widgetType` — i.e. the runtime registry (which apps can
|
|
1470
|
+
* extend or override via `RegistryProvider`) hasn't swapped it out for a
|
|
1471
|
+
* custom one.
|
|
1472
|
+
*
|
|
1473
|
+
* `DEFAULT_PROPERTY_SCHEMA_REGISTRY` (see `../utils/warn-unknown-widget-props`
|
|
1474
|
+
* and its call site) only describes the built-in components' own props. An
|
|
1475
|
+
* app-provided override of a built-in widget type may accept a completely
|
|
1476
|
+
* different prop shape, and a custom/company widget that happens to reuse a
|
|
1477
|
+
* built-in type name isn't the widget the schema describes either — in both
|
|
1478
|
+
* cases validating against the built-in schema would be checking the wrong
|
|
1479
|
+
* contract. Gate the unknown-prop warning on this identity check so it only
|
|
1480
|
+
* ever runs against the component the schema actually documents.
|
|
1481
|
+
*/
|
|
1482
|
+
function isDefaultWidgetComponent(widgetType, component) {
|
|
1483
|
+
return DEFAULT_SDK_WIDGET_REGISTRY[widgetType] === component;
|
|
1484
|
+
}
|
|
1467
1485
|
const REMOTE_DOM_WIDGET_RUNTIME = "remote-dom";
|
|
1468
1486
|
const PACKAGE_FIELDS = new Set([
|
|
1469
1487
|
"manifestVersion",
|
|
@@ -2913,6 +2931,12 @@ Object.defineProperty(exports, "getForegroundColor", {
|
|
|
2913
2931
|
return getForegroundColor;
|
|
2914
2932
|
}
|
|
2915
2933
|
});
|
|
2934
|
+
Object.defineProperty(exports, "isDefaultWidgetComponent", {
|
|
2935
|
+
enumerable: true,
|
|
2936
|
+
get: function() {
|
|
2937
|
+
return isDefaultWidgetComponent;
|
|
2938
|
+
}
|
|
2939
|
+
});
|
|
2916
2940
|
Object.defineProperty(exports, "isRemoteDomWidgetPackageDescriptor", {
|
|
2917
2941
|
enumerable: true,
|
|
2918
2942
|
get: function() {
|
|
@@ -3034,4 +3058,4 @@ Object.defineProperty(exports, "widgetPropertySchemas", {
|
|
|
3034
3058
|
}
|
|
3035
3059
|
});
|
|
3036
3060
|
|
|
3037
|
-
//# sourceMappingURL=build-widget-registry-
|
|
3061
|
+
//# sourceMappingURL=build-widget-registry-Bg8G7GQF.cjs.map
|