@fluid-app/rep-sdk 0.1.2 → 0.1.4

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 (73) hide show
  1. package/dist/ContactsScreen-33AJ5XUB.js +5 -0
  2. package/dist/{ContactsScreen-BYXF74BO.js.map → ContactsScreen-33AJ5XUB.js.map} +1 -1
  3. package/dist/ContactsScreen-ATASCZO2.cjs +18 -0
  4. package/dist/{ContactsScreen-XZOQJVFE.cjs.map → ContactsScreen-ATASCZO2.cjs.map} +1 -1
  5. package/dist/CustomersScreen-E4HXBKV7.js +5 -0
  6. package/dist/{CustomersScreen-VS6LGULO.js.map → CustomersScreen-E4HXBKV7.js.map} +1 -1
  7. package/dist/CustomersScreen-XMPMKSQA.cjs +18 -0
  8. package/dist/{CustomersScreen-53SXRDDK.cjs.map → CustomersScreen-XMPMKSQA.cjs.map} +1 -1
  9. package/dist/MessagingScreen-5TEWFUX4.js +4 -0
  10. package/dist/{MessagingScreen-O42JEJMW.js.map → MessagingScreen-5TEWFUX4.js.map} +1 -1
  11. package/dist/MessagingScreen-JC7I55NG.cjs +17 -0
  12. package/dist/{MessagingScreen-UCVLYWZB.cjs.map → MessagingScreen-JC7I55NG.cjs.map} +1 -1
  13. package/dist/OrdersScreen-IPPZLEYF.js +5 -0
  14. package/dist/{OrdersScreen-QQJFTTSS.js.map → OrdersScreen-IPPZLEYF.js.map} +1 -1
  15. package/dist/OrdersScreen-X7FYUROL.cjs +18 -0
  16. package/dist/{OrdersScreen-WNT2WDLI.cjs.map → OrdersScreen-X7FYUROL.cjs.map} +1 -1
  17. package/dist/ProductsScreen-4ZIUQNUU.cjs +18 -0
  18. package/dist/{ProductsScreen-CTIAKS3Z.cjs.map → ProductsScreen-4ZIUQNUU.cjs.map} +1 -1
  19. package/dist/ProductsScreen-YTSOZW7B.js +5 -0
  20. package/dist/{ProductsScreen-TRIT2FE3.js.map → ProductsScreen-YTSOZW7B.js.map} +1 -1
  21. package/dist/chunk-424PT5DM.js +21 -0
  22. package/dist/chunk-424PT5DM.js.map +1 -0
  23. package/dist/{chunk-QUVJ3R4T.cjs → chunk-5UBEM3AX.cjs} +4 -4
  24. package/dist/{chunk-QUVJ3R4T.cjs.map → chunk-5UBEM3AX.cjs.map} +1 -1
  25. package/dist/chunk-B6S6BEPL.cjs +16 -0
  26. package/dist/chunk-B6S6BEPL.cjs.map +1 -0
  27. package/dist/{chunk-WH7WZXT6.js → chunk-CMF2FYTD.js} +3 -3
  28. package/dist/{chunk-WH7WZXT6.js.map → chunk-CMF2FYTD.js.map} +1 -1
  29. package/dist/{chunk-MEOOAMH2.cjs → chunk-EOXYOOWS.cjs} +4 -4
  30. package/dist/{chunk-MEOOAMH2.cjs.map → chunk-EOXYOOWS.cjs.map} +1 -1
  31. package/dist/{chunk-YII3IXF4.cjs → chunk-FG2CI6HA.cjs} +4 -4
  32. package/dist/{chunk-YII3IXF4.cjs.map → chunk-FG2CI6HA.cjs.map} +1 -1
  33. package/dist/chunk-HDQ2JUQT.cjs +24 -0
  34. package/dist/chunk-HDQ2JUQT.cjs.map +1 -0
  35. package/dist/{chunk-MBUCXIUN.cjs → chunk-MHPK7YQ2.cjs} +4 -4
  36. package/dist/{chunk-MBUCXIUN.cjs.map → chunk-MHPK7YQ2.cjs.map} +1 -1
  37. package/dist/chunk-OE62VIZU.cjs +1955 -0
  38. package/dist/chunk-OE62VIZU.cjs.map +1 -0
  39. package/dist/{chunk-2AWTZV3T.js → chunk-QZMWG7EM.js} +3 -3
  40. package/dist/{chunk-2AWTZV3T.js.map → chunk-QZMWG7EM.js.map} +1 -1
  41. package/dist/chunk-R4SXB6EV.js +1881 -0
  42. package/dist/chunk-R4SXB6EV.js.map +1 -0
  43. package/dist/chunk-RS4OSTES.js +14 -0
  44. package/dist/chunk-RS4OSTES.js.map +1 -0
  45. package/dist/{chunk-PZIHCYDD.js → chunk-WFPYEYC7.js} +3 -3
  46. package/dist/{chunk-PZIHCYDD.js.map → chunk-WFPYEYC7.js.map} +1 -1
  47. package/dist/{chunk-CXRJSGO6.js → chunk-WMBD65GH.js} +3 -3
  48. package/dist/{chunk-CXRJSGO6.js.map → chunk-WMBD65GH.js.map} +1 -1
  49. package/dist/index.cjs +1726 -1194
  50. package/dist/index.cjs.map +1 -1
  51. package/dist/index.d.cts +2603 -0
  52. package/dist/index.d.ts +2603 -0
  53. package/dist/index.js +1395 -1021
  54. package/dist/index.js.map +1 -1
  55. package/package.json +26 -7
  56. package/dist/ContactsScreen-BYXF74BO.js +0 -4
  57. package/dist/ContactsScreen-XZOQJVFE.cjs +0 -17
  58. package/dist/CustomersScreen-53SXRDDK.cjs +0 -17
  59. package/dist/CustomersScreen-VS6LGULO.js +0 -4
  60. package/dist/MessagingScreen-O42JEJMW.js +0 -4
  61. package/dist/MessagingScreen-UCVLYWZB.cjs +0 -17
  62. package/dist/OrdersScreen-QQJFTTSS.js +0 -4
  63. package/dist/OrdersScreen-WNT2WDLI.cjs +0 -17
  64. package/dist/ProductsScreen-CTIAKS3Z.cjs +0 -17
  65. package/dist/ProductsScreen-TRIT2FE3.js +0 -4
  66. package/dist/chunk-DEQ3PBVX.cjs +0 -29
  67. package/dist/chunk-DEQ3PBVX.cjs.map +0 -1
  68. package/dist/chunk-JZRNKSKT.cjs +0 -19
  69. package/dist/chunk-JZRNKSKT.cjs.map +0 -1
  70. package/dist/chunk-LO2HDG6C.js +0 -26
  71. package/dist/chunk-LO2HDG6C.js.map +0 -1
  72. package/dist/chunk-PJWPO4BJ.js +0 -16
  73. package/dist/chunk-PJWPO4BJ.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-app/rep-sdk",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "SDK for building custom Fluid rep portals",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -16,6 +16,9 @@
16
16
  "files": [
17
17
  "dist"
18
18
  ],
19
+ "publishConfig": {
20
+ "access": "public"
21
+ },
19
22
  "sideEffects": false,
20
23
  "dependencies": {
21
24
  "@radix-ui/react-slot": "^1.1.2",
@@ -26,31 +29,47 @@
26
29
  "qrcode.react": "^4.2.0",
27
30
  "recharts": "^2.15.4",
28
31
  "tailwind-merge": "^3.0.2",
29
- "@fluid-app/rep-core": "0.1.0",
32
+ "@fluid-app/fluid-messaging-api-client": "0.1.0",
33
+ "@fluid-app/fluid-messaging-core": "0.1.0",
34
+ "@fluid-app/fluid-messaging-ui": "0.1.0",
35
+ "@fluid-app/rep-core": "0.1.2",
30
36
  "@fluid-app/rep-widgets": "0.1.0"
31
37
  },
32
38
  "peerDependencies": {
39
+ "@fortawesome/fontawesome-svg-core": ">=6.0.0",
40
+ "@fortawesome/pro-regular-svg-icons": ">=6.0.0",
41
+ "@fortawesome/react-fontawesome": ">=0.2.0",
33
42
  "@tanstack/react-query": ">=5.0.0",
34
- "lucide-react": ">=0.400.0",
35
- "react": ">=18.0.0"
43
+ "react": ">=18.0.0",
44
+ "react-hook-form": ">=7.0.0",
45
+ "@hookform/resolvers": ">=3.0.0",
46
+ "zod": ">=3.0.0"
36
47
  },
37
48
  "devDependencies": {
38
49
  "@tanstack/react-query": "^5.90.11",
39
50
  "@types/react": "^19.2.13",
51
+ "@fortawesome/fontawesome-svg-core": "^6.7.2",
52
+ "@fortawesome/pro-regular-svg-icons": "^6.7.2",
53
+ "@fortawesome/react-fontawesome": "^0.2.2",
54
+ "@hookform/resolvers": "^4.1.3",
40
55
  "jsdom": "^28.0.0",
41
- "lucide-react": "^0.475.0",
56
+ "react-hook-form": "^7.55.0",
57
+ "zod": "^3.24.2",
42
58
  "react": "^19.2.4",
43
59
  "tsup": "^8.4.0",
44
60
  "typescript": "^5",
45
61
  "vitest": "^4.0.18",
62
+ "@fluid-app/eslint-config": "0.0.0",
46
63
  "@fluid-app/typescript-config": "0.0.0",
47
- "@fluid-app/eslint-config": "0.0.0"
64
+ "@fluid-app/query-persister": "0.1.0",
65
+ "@fluid-app/fluidos-api-client": "0.1.0"
48
66
  },
49
67
  "scripts": {
68
+ "transit": "tsc --emitDeclarationOnly",
50
69
  "build": "tsup",
51
70
  "dev": "tsup --watch",
52
71
  "typecheck": "tsc --noEmit",
53
- "lint": "eslint . --max-warnings 0",
72
+ "lint": "eslint . --max-warnings 0 --cache --cache-strategy content",
54
73
  "lint:fix": "eslint . --fix",
55
74
  "test": "vitest run",
56
75
  "test:watch": "vitest"
@@ -1,4 +0,0 @@
1
- export { ContactsScreen, contactsScreenPropertySchema } from './chunk-WH7WZXT6.js';
2
- import './chunk-LO2HDG6C.js';
3
- //# sourceMappingURL=ContactsScreen-BYXF74BO.js.map
4
- //# sourceMappingURL=ContactsScreen-BYXF74BO.js.map
@@ -1,17 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkMEOOAMH2_cjs = require('./chunk-MEOOAMH2.cjs');
4
- require('./chunk-DEQ3PBVX.cjs');
5
-
6
-
7
-
8
- Object.defineProperty(exports, "ContactsScreen", {
9
- enumerable: true,
10
- get: function () { return chunkMEOOAMH2_cjs.ContactsScreen; }
11
- });
12
- Object.defineProperty(exports, "contactsScreenPropertySchema", {
13
- enumerable: true,
14
- get: function () { return chunkMEOOAMH2_cjs.contactsScreenPropertySchema; }
15
- });
16
- //# sourceMappingURL=ContactsScreen-XZOQJVFE.cjs.map
17
- //# sourceMappingURL=ContactsScreen-XZOQJVFE.cjs.map
@@ -1,17 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkMBUCXIUN_cjs = require('./chunk-MBUCXIUN.cjs');
4
- require('./chunk-DEQ3PBVX.cjs');
5
-
6
-
7
-
8
- Object.defineProperty(exports, "CustomersScreen", {
9
- enumerable: true,
10
- get: function () { return chunkMBUCXIUN_cjs.CustomersScreen; }
11
- });
12
- Object.defineProperty(exports, "customersScreenPropertySchema", {
13
- enumerable: true,
14
- get: function () { return chunkMBUCXIUN_cjs.customersScreenPropertySchema; }
15
- });
16
- //# sourceMappingURL=CustomersScreen-53SXRDDK.cjs.map
17
- //# sourceMappingURL=CustomersScreen-53SXRDDK.cjs.map
@@ -1,4 +0,0 @@
1
- export { CustomersScreen, customersScreenPropertySchema } from './chunk-CXRJSGO6.js';
2
- import './chunk-LO2HDG6C.js';
3
- //# sourceMappingURL=CustomersScreen-VS6LGULO.js.map
4
- //# sourceMappingURL=CustomersScreen-VS6LGULO.js.map
@@ -1,4 +0,0 @@
1
- export { MessagingScreen, messagingScreenPropertySchema } from './chunk-PJWPO4BJ.js';
2
- import './chunk-LO2HDG6C.js';
3
- //# sourceMappingURL=MessagingScreen-O42JEJMW.js.map
4
- //# sourceMappingURL=MessagingScreen-O42JEJMW.js.map
@@ -1,17 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkJZRNKSKT_cjs = require('./chunk-JZRNKSKT.cjs');
4
- require('./chunk-DEQ3PBVX.cjs');
5
-
6
-
7
-
8
- Object.defineProperty(exports, "MessagingScreen", {
9
- enumerable: true,
10
- get: function () { return chunkJZRNKSKT_cjs.MessagingScreen; }
11
- });
12
- Object.defineProperty(exports, "messagingScreenPropertySchema", {
13
- enumerable: true,
14
- get: function () { return chunkJZRNKSKT_cjs.messagingScreenPropertySchema; }
15
- });
16
- //# sourceMappingURL=MessagingScreen-UCVLYWZB.cjs.map
17
- //# sourceMappingURL=MessagingScreen-UCVLYWZB.cjs.map
@@ -1,4 +0,0 @@
1
- export { OrdersScreen, ordersScreenPropertySchema } from './chunk-PZIHCYDD.js';
2
- import './chunk-LO2HDG6C.js';
3
- //# sourceMappingURL=OrdersScreen-QQJFTTSS.js.map
4
- //# sourceMappingURL=OrdersScreen-QQJFTTSS.js.map
@@ -1,17 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkYII3IXF4_cjs = require('./chunk-YII3IXF4.cjs');
4
- require('./chunk-DEQ3PBVX.cjs');
5
-
6
-
7
-
8
- Object.defineProperty(exports, "OrdersScreen", {
9
- enumerable: true,
10
- get: function () { return chunkYII3IXF4_cjs.OrdersScreen; }
11
- });
12
- Object.defineProperty(exports, "ordersScreenPropertySchema", {
13
- enumerable: true,
14
- get: function () { return chunkYII3IXF4_cjs.ordersScreenPropertySchema; }
15
- });
16
- //# sourceMappingURL=OrdersScreen-WNT2WDLI.cjs.map
17
- //# sourceMappingURL=OrdersScreen-WNT2WDLI.cjs.map
@@ -1,17 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkQUVJ3R4T_cjs = require('./chunk-QUVJ3R4T.cjs');
4
- require('./chunk-DEQ3PBVX.cjs');
5
-
6
-
7
-
8
- Object.defineProperty(exports, "ProductsScreen", {
9
- enumerable: true,
10
- get: function () { return chunkQUVJ3R4T_cjs.ProductsScreen; }
11
- });
12
- Object.defineProperty(exports, "productsScreenPropertySchema", {
13
- enumerable: true,
14
- get: function () { return chunkQUVJ3R4T_cjs.productsScreenPropertySchema; }
15
- });
16
- //# sourceMappingURL=ProductsScreen-CTIAKS3Z.cjs.map
17
- //# sourceMappingURL=ProductsScreen-CTIAKS3Z.cjs.map
@@ -1,4 +0,0 @@
1
- export { ProductsScreen, productsScreenPropertySchema } from './chunk-2AWTZV3T.js';
2
- import './chunk-LO2HDG6C.js';
3
- //# sourceMappingURL=ProductsScreen-TRIT2FE3.js.map
4
- //# sourceMappingURL=ProductsScreen-TRIT2FE3.js.map
@@ -1,29 +0,0 @@
1
- 'use strict';
2
-
3
- var jsxRuntime = require('react/jsx-runtime');
4
-
5
- var __defProp = Object.defineProperty;
6
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
- var __getOwnPropNames = Object.getOwnPropertyNames;
8
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
18
- function CoreScreenPlaceholder({ name }) {
19
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-h-[400px] items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-w-sm rounded-lg border border-dashed border-gray-300 p-8 text-center dark:border-gray-700", children: [
20
- /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-xl font-semibold text-gray-900 dark:text-gray-100", children: name }),
21
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-2 text-gray-500 dark:text-gray-400", children: "This screen is provided by Fluid Commerce" }),
22
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-sm text-gray-400 dark:text-gray-500", children: "Connect to the Fluid platform to enable this feature" })
23
- ] }) });
24
- }
25
-
26
- exports.CoreScreenPlaceholder = CoreScreenPlaceholder;
27
- exports.__reExport = __reExport;
28
- //# sourceMappingURL=chunk-DEQ3PBVX.cjs.map
29
- //# sourceMappingURL=chunk-DEQ3PBVX.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/screens/CoreScreenPlaceholder.tsx"],"names":["jsxs","jsx"],"mappings":";;;;;;;;;;;;;;;;;AAIO,SAAS,qBAAA,CAAsB,EAAE,IAAA,EAAK,EAA8B;AACzE,EAAA,sCACG,KAAA,EAAA,EAAI,SAAA,EAAU,kDACb,QAAA,kBAAAA,eAAA,CAAC,KAAA,EAAA,EAAI,WAAU,+FAAA,EACb,QAAA,EAAA;AAAA,oBAAAC,cAAA,CAAC,IAAA,EAAA,EAAG,SAAA,EAAU,wDAAA,EACX,QAAA,EAAA,IAAA,EACH,CAAA;AAAA,oBACAA,cAAA,CAAC,GAAA,EAAA,EAAE,SAAA,EAAU,uCAAA,EAAwC,QAAA,EAAA,2CAAA,EAErD,CAAA;AAAA,oBACAA,cAAA,CAAC,GAAA,EAAA,EAAE,SAAA,EAAU,+CAAA,EAAgD,QAAA,EAAA,sDAAA,EAE7D;AAAA,GAAA,EACF,CAAA,EACF,CAAA;AAEJ","file":"chunk-DEQ3PBVX.cjs","sourcesContent":["/**\n * Internal placeholder component for core screens provided by Fluid Commerce.\n * This is NOT exported from the SDK — it's shared between core screen files.\n */\nexport function CoreScreenPlaceholder({ name }: { readonly name: string }) {\n return (\n <div className=\"flex min-h-[400px] items-center justify-center\">\n <div className=\"max-w-sm rounded-lg border border-dashed border-gray-300 p-8 text-center dark:border-gray-700\">\n <h2 className=\"text-xl font-semibold text-gray-900 dark:text-gray-100\">\n {name}\n </h2>\n <p className=\"mt-2 text-gray-500 dark:text-gray-400\">\n This screen is provided by Fluid Commerce\n </p>\n <p className=\"mt-1 text-sm text-gray-400 dark:text-gray-500\">\n Connect to the Fluid platform to enable this feature\n </p>\n </div>\n </div>\n );\n}\n"]}
@@ -1,19 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkDEQ3PBVX_cjs = require('./chunk-DEQ3PBVX.cjs');
4
- var jsxRuntime = require('react/jsx-runtime');
5
-
6
- function MessagingScreen(_props) {
7
- return /* @__PURE__ */ jsxRuntime.jsx(chunkDEQ3PBVX_cjs.CoreScreenPlaceholder, { name: "Messaging" });
8
- }
9
- var messagingScreenPropertySchema = {
10
- widgetType: "MessagingScreen",
11
- displayName: "Messaging Screen",
12
- tabsConfig: [{ id: "styling", label: "Styling" }],
13
- fields: []
14
- };
15
-
16
- exports.MessagingScreen = MessagingScreen;
17
- exports.messagingScreenPropertySchema = messagingScreenPropertySchema;
18
- //# sourceMappingURL=chunk-JZRNKSKT.cjs.map
19
- //# sourceMappingURL=chunk-JZRNKSKT.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/screens/MessagingScreen.tsx"],"names":["jsx","CoreScreenPlaceholder"],"mappings":";;;;;AAwBO,SAAS,gBAAgB,MAAA,EAA8B;AAC5D,EAAA,uBAAOA,cAAA,CAACC,uCAAA,EAAA,EAAsB,IAAA,EAAK,WAAA,EAAY,CAAA;AACjD;AAEO,IAAM,6BAAA,GAAsD;AAAA,EACjE,UAAA,EAAY,iBAAA;AAAA,EACZ,WAAA,EAAa,kBAAA;AAAA,EACb,YAAY,CAAC,EAAE,IAAI,SAAA,EAAW,KAAA,EAAO,WAAW,CAAA;AAAA,EAChD,QAAQ;AACV","file":"chunk-JZRNKSKT.cjs","sourcesContent":["import type { ComponentProps } from \"react\";\nimport type {\n BackgroundValue,\n BorderRadiusOptions,\n ColorOptions,\n PaddingOptions,\n} from \"../types\";\nimport type { WidgetPropertySchema } from \"../registries/property-schema-types\";\nimport { CoreScreenPlaceholder } from \"./CoreScreenPlaceholder\";\n\ntype MessagingScreenProps = ComponentProps<\"div\"> & {\n // Styling\n background?: BackgroundValue;\n textColor?: ColorOptions;\n accentColor?: ColorOptions;\n padding?: PaddingOptions;\n borderRadius?: BorderRadiusOptions;\n\n // Callbacks\n onConversationSelect?: (conversationId: string) => void;\n onSendMessage?: (conversationId: string, message: string) => void;\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function MessagingScreen(_props: MessagingScreenProps) {\n return <CoreScreenPlaceholder name=\"Messaging\" />;\n}\n\nexport const messagingScreenPropertySchema: WidgetPropertySchema = {\n widgetType: \"MessagingScreen\",\n displayName: \"Messaging Screen\",\n tabsConfig: [{ id: \"styling\", label: \"Styling\" }],\n fields: [],\n} as const satisfies WidgetPropertySchema;\n"]}
@@ -1,26 +0,0 @@
1
- import { jsx, jsxs } from 'react/jsx-runtime';
2
-
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from === "object" || typeof from === "function") {
9
- for (let key of __getOwnPropNames(from))
10
- if (!__hasOwnProp.call(to, key) && key !== except)
11
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- }
13
- return to;
14
- };
15
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
16
- function CoreScreenPlaceholder({ name }) {
17
- return /* @__PURE__ */ jsx("div", { className: "flex min-h-[400px] items-center justify-center", children: /* @__PURE__ */ jsxs("div", { className: "max-w-sm rounded-lg border border-dashed border-gray-300 p-8 text-center dark:border-gray-700", children: [
18
- /* @__PURE__ */ jsx("h2", { className: "text-xl font-semibold text-gray-900 dark:text-gray-100", children: name }),
19
- /* @__PURE__ */ jsx("p", { className: "mt-2 text-gray-500 dark:text-gray-400", children: "This screen is provided by Fluid Commerce" }),
20
- /* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-gray-400 dark:text-gray-500", children: "Connect to the Fluid platform to enable this feature" })
21
- ] }) });
22
- }
23
-
24
- export { CoreScreenPlaceholder, __reExport };
25
- //# sourceMappingURL=chunk-LO2HDG6C.js.map
26
- //# sourceMappingURL=chunk-LO2HDG6C.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/screens/CoreScreenPlaceholder.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAIO,SAAS,qBAAA,CAAsB,EAAE,IAAA,EAAK,EAA8B;AACzE,EAAA,2BACG,KAAA,EAAA,EAAI,SAAA,EAAU,kDACb,QAAA,kBAAA,IAAA,CAAC,KAAA,EAAA,EAAI,WAAU,+FAAA,EACb,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,IAAA,EAAA,EAAG,SAAA,EAAU,wDAAA,EACX,QAAA,EAAA,IAAA,EACH,CAAA;AAAA,oBACA,GAAA,CAAC,GAAA,EAAA,EAAE,SAAA,EAAU,uCAAA,EAAwC,QAAA,EAAA,2CAAA,EAErD,CAAA;AAAA,oBACA,GAAA,CAAC,GAAA,EAAA,EAAE,SAAA,EAAU,+CAAA,EAAgD,QAAA,EAAA,sDAAA,EAE7D;AAAA,GAAA,EACF,CAAA,EACF,CAAA;AAEJ","file":"chunk-LO2HDG6C.js","sourcesContent":["/**\n * Internal placeholder component for core screens provided by Fluid Commerce.\n * This is NOT exported from the SDK — it's shared between core screen files.\n */\nexport function CoreScreenPlaceholder({ name }: { readonly name: string }) {\n return (\n <div className=\"flex min-h-[400px] items-center justify-center\">\n <div className=\"max-w-sm rounded-lg border border-dashed border-gray-300 p-8 text-center dark:border-gray-700\">\n <h2 className=\"text-xl font-semibold text-gray-900 dark:text-gray-100\">\n {name}\n </h2>\n <p className=\"mt-2 text-gray-500 dark:text-gray-400\">\n This screen is provided by Fluid Commerce\n </p>\n <p className=\"mt-1 text-sm text-gray-400 dark:text-gray-500\">\n Connect to the Fluid platform to enable this feature\n </p>\n </div>\n </div>\n );\n}\n"]}
@@ -1,16 +0,0 @@
1
- import { CoreScreenPlaceholder } from './chunk-LO2HDG6C.js';
2
- import { jsx } from 'react/jsx-runtime';
3
-
4
- function MessagingScreen(_props) {
5
- return /* @__PURE__ */ jsx(CoreScreenPlaceholder, { name: "Messaging" });
6
- }
7
- var messagingScreenPropertySchema = {
8
- widgetType: "MessagingScreen",
9
- displayName: "Messaging Screen",
10
- tabsConfig: [{ id: "styling", label: "Styling" }],
11
- fields: []
12
- };
13
-
14
- export { MessagingScreen, messagingScreenPropertySchema };
15
- //# sourceMappingURL=chunk-PJWPO4BJ.js.map
16
- //# sourceMappingURL=chunk-PJWPO4BJ.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/screens/MessagingScreen.tsx"],"names":[],"mappings":";;;AAwBO,SAAS,gBAAgB,MAAA,EAA8B;AAC5D,EAAA,uBAAO,GAAA,CAAC,qBAAA,EAAA,EAAsB,IAAA,EAAK,WAAA,EAAY,CAAA;AACjD;AAEO,IAAM,6BAAA,GAAsD;AAAA,EACjE,UAAA,EAAY,iBAAA;AAAA,EACZ,WAAA,EAAa,kBAAA;AAAA,EACb,YAAY,CAAC,EAAE,IAAI,SAAA,EAAW,KAAA,EAAO,WAAW,CAAA;AAAA,EAChD,QAAQ;AACV","file":"chunk-PJWPO4BJ.js","sourcesContent":["import type { ComponentProps } from \"react\";\nimport type {\n BackgroundValue,\n BorderRadiusOptions,\n ColorOptions,\n PaddingOptions,\n} from \"../types\";\nimport type { WidgetPropertySchema } from \"../registries/property-schema-types\";\nimport { CoreScreenPlaceholder } from \"./CoreScreenPlaceholder\";\n\ntype MessagingScreenProps = ComponentProps<\"div\"> & {\n // Styling\n background?: BackgroundValue;\n textColor?: ColorOptions;\n accentColor?: ColorOptions;\n padding?: PaddingOptions;\n borderRadius?: BorderRadiusOptions;\n\n // Callbacks\n onConversationSelect?: (conversationId: string) => void;\n onSendMessage?: (conversationId: string, message: string) => void;\n};\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function MessagingScreen(_props: MessagingScreenProps) {\n return <CoreScreenPlaceholder name=\"Messaging\" />;\n}\n\nexport const messagingScreenPropertySchema: WidgetPropertySchema = {\n widgetType: \"MessagingScreen\",\n displayName: \"Messaging Screen\",\n tabsConfig: [{ id: \"styling\", label: \"Styling\" }],\n fields: [],\n} as const satisfies WidgetPropertySchema;\n"]}