@fluid-app/portal-sdk 0.1.455 → 0.1.456
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-CA_HAl9a.mjs → FluidProvider-CbA8KrhD.mjs} +2 -2
- package/dist/{FluidProvider-CA_HAl9a.mjs.map → FluidProvider-CbA8KrhD.mjs.map} +1 -1
- package/dist/{FluidProvider-BULkBuyn.cjs → FluidProvider-JiGJqJQe.cjs} +2 -2
- package/dist/{FluidProvider-BULkBuyn.cjs.map → FluidProvider-JiGJqJQe.cjs.map} +1 -1
- package/dist/{MessagingScreen-DWH9xBbq.cjs → MessagingScreen-BeUhzBWr.cjs} +2 -2
- package/dist/{MessagingScreen-DWH9xBbq.cjs.map → MessagingScreen-BeUhzBWr.cjs.map} +1 -1
- package/dist/{MessagingScreen-CYOGaqKX.mjs → MessagingScreen-BtdVeSR5.mjs} +2 -2
- package/dist/{MessagingScreen-CYOGaqKX.mjs.map → MessagingScreen-BtdVeSR5.mjs.map} +1 -1
- package/dist/{MessagingScreen-B_nyIg2b.cjs → MessagingScreen-D6Bxoq0a.cjs} +5 -5
- package/dist/{MessagingScreen-BG6clVDQ.mjs → MessagingScreen-Dt6Rwk7_.mjs} +5 -5
- package/dist/{OrdersScreen-DMlrdteQ.mjs → OrdersScreen-1kPmXJga.mjs} +5 -5
- package/dist/{OrdersScreen-Dh_nsi8j.cjs → OrdersScreen-BSwESoF3.cjs} +2 -2
- package/dist/{OrdersScreen-Dh_nsi8j.cjs.map → OrdersScreen-BSwESoF3.cjs.map} +1 -1
- package/dist/{OrdersScreen-CfchcnYB.cjs → OrdersScreen-BirJq38x.cjs} +5 -5
- package/dist/{OrdersScreen-CBF6uZSk.mjs → OrdersScreen-fZFg1l1W.mjs} +2 -2
- package/dist/{OrdersScreen-CBF6uZSk.mjs.map → OrdersScreen-fZFg1l1W.mjs.map} +1 -1
- package/dist/{ProfileScreen-CbYASEr9.mjs → ProfileScreen-Bqv7MNPH.mjs} +6 -6
- package/dist/{ProfileScreen-CXqMOEza.cjs → ProfileScreen-BvxuA9P4.cjs} +3 -3
- package/dist/{ProfileScreen-CXqMOEza.cjs.map → ProfileScreen-BvxuA9P4.cjs.map} +1 -1
- package/dist/{ProfileScreen-t2V-W4Dv.cjs → ProfileScreen-CirvTBwX.cjs} +6 -6
- package/dist/{ProfileScreen-DlPK9S_Q.mjs → ProfileScreen-Dj1pTzLz.mjs} +3 -3
- package/dist/{ProfileScreen-DlPK9S_Q.mjs.map → ProfileScreen-Dj1pTzLz.mjs.map} +1 -1
- package/dist/{ShopScreen-BWDYXw4Q.cjs → ShopScreen-3ryiBWeh.cjs} +5 -5
- package/dist/{ShopScreen-BnuiYHKY.mjs → ShopScreen-BKWFrPHB.mjs} +2 -2
- package/dist/{ShopScreen-BnuiYHKY.mjs.map → ShopScreen-BKWFrPHB.mjs.map} +1 -1
- package/dist/{ShopScreen-CrObPeSv.cjs → ShopScreen-C3vwiETG.cjs} +2 -2
- package/dist/{ShopScreen-CrObPeSv.cjs.map → ShopScreen-C3vwiETG.cjs.map} +1 -1
- package/dist/{ShopScreen-1vtAE4X7.mjs → ShopScreen-CfvCqYJ9.mjs} +5 -5
- package/dist/{SubscriptionsScreen-BlB3Ppoa.cjs → SubscriptionsScreen-COBaRHDG.cjs} +6 -6
- package/dist/{SubscriptionsScreen-Bjdz5fx-.cjs → SubscriptionsScreen-DWB0E5Hu.cjs} +3 -3
- package/dist/{SubscriptionsScreen-Bjdz5fx-.cjs.map → SubscriptionsScreen-DWB0E5Hu.cjs.map} +1 -1
- package/dist/{SubscriptionsScreen-DyjmAOvJ.mjs → SubscriptionsScreen-Dv7PjXwb.mjs} +3 -3
- package/dist/{SubscriptionsScreen-DyjmAOvJ.mjs.map → SubscriptionsScreen-Dv7PjXwb.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-CBIjEFKA.mjs → SubscriptionsScreen-G64lYG5v.mjs} +6 -6
- 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-7slNHtKU.cjs} +5 -5
- package/dist/{build-widget-registry-L8a9-O3A.cjs.map → build-widget-registry-7slNHtKU.cjs.map} +1 -1
- package/dist/{build-widget-registry-Dy8S7Ggy.mjs → build-widget-registry-BZjLacQ8.mjs} +5 -5
- package/dist/{build-widget-registry-Dy8S7Ggy.mjs.map → build-widget-registry-BZjLacQ8.mjs.map} +1 -1
- package/dist/index.cjs +23 -23
- 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 +23 -23
- package/dist/{use-portal-card-add-3ds-flow-Dt29-X8z.cjs → use-portal-card-add-3ds-flow-C_Frj80d.cjs} +2 -2
- package/dist/{use-portal-card-add-3ds-flow-Dt29-X8z.cjs.map → use-portal-card-add-3ds-flow-C_Frj80d.cjs.map} +1 -1
- package/dist/{use-portal-card-add-3ds-flow-B4wqRVNt.mjs → use-portal-card-add-3ds-flow-tvSUKAvl.mjs} +2 -2
- package/dist/{use-portal-card-add-3ds-flow-B4wqRVNt.mjs.map → use-portal-card-add-3ds-flow-tvSUKAvl.mjs.map} +1 -1
- package/dist/utils/build-remote-widget-plugin-manifests.cjs +3 -3
- package/dist/utils/build-remote-widget-plugin-manifests.mjs +3 -3
- package/package.json +15 -15
- 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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ft as __exportAll } from "./translation-adapter-RsuBioxm.mjs";
|
|
2
|
-
import { r as textWidgetPropertySchema, t as TextWidget } from "./TextWidget-
|
|
2
|
+
import { r as textWidgetPropertySchema, t as TextWidget } from "./TextWidget-cnDl92rJ.mjs";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region ../widgets/src/widgets/AlertWidget.tsx
|
|
5
5
|
var AlertWidget_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -19,4 +19,4 @@ const alertWidgetPropertySchema = {
|
|
|
19
19
|
//#endregion
|
|
20
20
|
export { AlertWidget_exports as n, alertWidgetPropertySchema as r, AlertWidget as t };
|
|
21
21
|
|
|
22
|
-
//# sourceMappingURL=AlertWidget-
|
|
22
|
+
//# sourceMappingURL=AlertWidget-BtkVIGr9.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertWidget-
|
|
1
|
+
{"version":3,"file":"AlertWidget-BtkVIGr9.mjs","names":[],"sources":["../../widgets/src/widgets/AlertWidget.tsx"],"sourcesContent":["import { TextWidget, textWidgetPropertySchema } from \"./TextWidget\";\nimport type { WidgetPropertySchema } from \"@fluid-app/portal-core/registries\";\nimport type { ComponentProps } from \"react\";\nimport type React from \"react\";\n\n/**\n * AlertWidget - Wrapper for TextWidget (for backwards compatibility)\n */\nexport function AlertWidget(\n props: ComponentProps<typeof TextWidget>,\n): React.JSX.Element {\n return <TextWidget {...props} />;\n}\n\nexport const alertWidgetPropertySchema: WidgetPropertySchema = {\n ...textWidgetPropertySchema,\n widgetType: \"AlertWidget\",\n};\n"],"mappings":";;;;;;;;;;;AAQA,SAAgB,YACd,OACmB;AACnB,QAAO,oBAAC,YAAD,EAAY,GAAI,OAAS,CAAA;;AAGlC,MAAa,4BAAkD;CAC7D,GAAG;CACH,YAAY;CACb"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-9hOWP6kD.cjs");
|
|
2
|
-
const require_TextWidget = require("./TextWidget-
|
|
2
|
+
const require_TextWidget = require("./TextWidget-CNks2l1S.cjs");
|
|
3
3
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
4
|
//#region ../widgets/src/widgets/AlertWidget.tsx
|
|
5
5
|
var AlertWidget_exports = /* @__PURE__ */ require_chunk.__exportAll({
|
|
@@ -36,4 +36,4 @@ Object.defineProperty(exports, "alertWidgetPropertySchema", {
|
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
|
|
39
|
-
//# sourceMappingURL=AlertWidget-
|
|
39
|
+
//# sourceMappingURL=AlertWidget-C5sAMhqU.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertWidget-
|
|
1
|
+
{"version":3,"file":"AlertWidget-C5sAMhqU.cjs","names":["TextWidget","textWidgetPropertySchema"],"sources":["../../widgets/src/widgets/AlertWidget.tsx"],"sourcesContent":["import { TextWidget, textWidgetPropertySchema } from \"./TextWidget\";\nimport type { WidgetPropertySchema } from \"@fluid-app/portal-core/registries\";\nimport type { ComponentProps } from \"react\";\nimport type React from \"react\";\n\n/**\n * AlertWidget - Wrapper for TextWidget (for backwards compatibility)\n */\nexport function AlertWidget(\n props: ComponentProps<typeof TextWidget>,\n): React.JSX.Element {\n return <TextWidget {...props} />;\n}\n\nexport const alertWidgetPropertySchema: WidgetPropertySchema = {\n ...textWidgetPropertySchema,\n widgetType: \"AlertWidget\",\n};\n"],"mappings":";;;;;;;;;;;AAQA,SAAgB,YACd,OACmB;AACnB,QAAO,iBAAA,GAAA,kBAAA,KAACA,mBAAAA,YAAD,EAAY,GAAI,OAAS,CAAA;;AAGlC,MAAa,4BAAkD;CAC7D,GAAGC,mBAAAA;CACH,YAAY;CACb"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
require("./chunk-9hOWP6kD.cjs");
|
|
2
2
|
require("./ContactsTranslationBridge-BvkMkPED.cjs");
|
|
3
|
-
const require_ContactsScreen = require("./ContactsScreen-
|
|
3
|
+
const require_ContactsScreen = require("./ContactsScreen-Cu6-ckm9.cjs");
|
|
4
4
|
require("./static-dict-adapter-Dk_ZWOUI.cjs");
|
|
5
5
|
require("./translation-api-context-factory-DkXq_vPq.cjs");
|
|
6
6
|
require("./task-composer-form-oKkUtTAg.cjs");
|
|
@@ -586,6 +586,7 @@ function ContactsSidebarRow({ contact, isSelected, highlight, revealed = false,
|
|
|
586
586
|
const id = String(contact.id);
|
|
587
587
|
const secondary = contact.email ?? contact.status?.trim() ?? null;
|
|
588
588
|
const cardRef = (0, react.useRef)(null);
|
|
589
|
+
const deleteLayerRef = (0, react.useRef)(null);
|
|
589
590
|
const offsetRef = (0, react.useRef)(0);
|
|
590
591
|
const animateCloseRef = (0, react.useRef)(false);
|
|
591
592
|
const startXRef = (0, react.useRef)(0);
|
|
@@ -603,6 +604,11 @@ function ContactsSidebarRow({ contact, isSelected, highlight, revealed = false,
|
|
|
603
604
|
}, []);
|
|
604
605
|
const setOffset = (0, react.useCallback)((value, animate) => {
|
|
605
606
|
offsetRef.current = value;
|
|
607
|
+
const layer = deleteLayerRef.current;
|
|
608
|
+
if (layer) {
|
|
609
|
+
layer.style.opacity = value === 0 ? "0" : "1";
|
|
610
|
+
layer.style.pointerEvents = value <= -REVEAL_WIDTH ? "auto" : "none";
|
|
611
|
+
}
|
|
606
612
|
const el = cardRef.current;
|
|
607
613
|
if (!el) return;
|
|
608
614
|
if (animate === "open") el.style.transition = "transform 0.15s cubic-bezier(0.25, 0.1, 0.25, 1)";
|
|
@@ -762,9 +768,11 @@ function ContactsSidebarRow({ contact, isSelected, highlight, revealed = false,
|
|
|
762
768
|
onPointerTarget?.(contact);
|
|
763
769
|
}, [onPointerTarget, contact]);
|
|
764
770
|
const handleDelete = (0, react.useCallback)(() => {
|
|
771
|
+
if (!revealed) return;
|
|
765
772
|
onRevealChange?.(id, false);
|
|
766
773
|
onDelete?.(contact);
|
|
767
774
|
}, [
|
|
775
|
+
revealed,
|
|
768
776
|
onDelete,
|
|
769
777
|
onRevealChange,
|
|
770
778
|
contact,
|
|
@@ -772,21 +780,23 @@ function ContactsSidebarRow({ contact, isSelected, highlight, revealed = false,
|
|
|
772
780
|
]);
|
|
773
781
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
774
782
|
className: "relative overflow-hidden rounded-xl",
|
|
775
|
-
children: [onDelete && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("
|
|
776
|
-
|
|
783
|
+
children: [onDelete && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
784
|
+
ref: deleteLayerRef,
|
|
785
|
+
style: {
|
|
786
|
+
opacity: revealed ? 1 : 0,
|
|
787
|
+
pointerEvents: revealed ? "auto" : "none"
|
|
788
|
+
},
|
|
789
|
+
type: "button",
|
|
790
|
+
disabled: !revealed,
|
|
791
|
+
"aria-hidden": !revealed,
|
|
792
|
+
className: "bg-destructive text-destructive-foreground absolute inset-y-0 right-0 flex w-[88px] cursor-pointer appearance-none flex-col items-center justify-center gap-1 border-0 p-0 pl-2 transition-opacity disabled:cursor-default",
|
|
777
793
|
onPointerDown: (e) => {
|
|
778
794
|
e.stopPropagation();
|
|
779
|
-
e.preventDefault();
|
|
780
|
-
handleDelete();
|
|
781
795
|
},
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
handleDelete();
|
|
786
|
-
}
|
|
796
|
+
onClick: (e) => {
|
|
797
|
+
e.stopPropagation();
|
|
798
|
+
handleDelete();
|
|
787
799
|
},
|
|
788
|
-
role: "button",
|
|
789
|
-
tabIndex: 0,
|
|
790
800
|
"aria-label": t("delete_contact_aria", { name }),
|
|
791
801
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Trash2, { className: "size-5" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
792
802
|
className: "text-xs font-medium",
|
|
@@ -811,7 +821,7 @@ function ContactsSidebarRow({ contact, isSelected, highlight, revealed = false,
|
|
|
811
821
|
handleActivate();
|
|
812
822
|
}
|
|
813
823
|
},
|
|
814
|
-
className: require_src.cn("group relative flex w-full cursor-pointer items-center gap-3.5 rounded-
|
|
824
|
+
className: require_src.cn("group relative flex w-full cursor-pointer items-center gap-3.5 rounded-xl px-3 py-3 text-left select-none", isSelected ? "bg-muted" : "bg-background hover:bg-muted", highlight && "animate-highlight-fade"),
|
|
815
825
|
children: [
|
|
816
826
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
817
827
|
className: require_src.cn("text-muted-foreground relative flex size-12 shrink-0 items-center justify-center overflow-hidden rounded-xl text-base font-semibold transition-colors", isSelected ? "bg-background" : "bg-muted"),
|
|
@@ -5058,4 +5068,4 @@ Object.defineProperty(exports, "contactsScreenPropertySchema", {
|
|
|
5058
5068
|
}
|
|
5059
5069
|
});
|
|
5060
5070
|
|
|
5061
|
-
//# sourceMappingURL=ContactsScreen-
|
|
5071
|
+
//# sourceMappingURL=ContactsScreen-Cu6-ckm9.cjs.map
|