@inorain_development/hotel-smarters-chat-ui 1.0.0
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/README.md +110 -0
- package/lib/commonjs/features/chat/components/common/cart-icon.native.js +36 -0
- package/lib/commonjs/features/chat/components/common/cart-icon.native.js.map +1 -0
- package/lib/commonjs/features/chat/components/common/collapsible.js +20 -0
- package/lib/commonjs/features/chat/components/common/collapsible.js.map +1 -0
- package/lib/commonjs/features/chat/components/common/collapsible.native.js +38 -0
- package/lib/commonjs/features/chat/components/common/collapsible.native.js.map +1 -0
- package/lib/commonjs/features/chat/components/product/index.js +13 -0
- package/lib/commonjs/features/chat/components/product/index.js.map +1 -0
- package/lib/commonjs/features/chat/components/product/product.js +83 -0
- package/lib/commonjs/features/chat/components/product/product.js.map +1 -0
- package/lib/commonjs/features/chat/components/product/product.model.js +6 -0
- package/lib/commonjs/features/chat/components/product/product.model.js.map +1 -0
- package/lib/commonjs/features/chat/components/product/product.native.js +125 -0
- package/lib/commonjs/features/chat/components/product/product.native.js.map +1 -0
- package/lib/commonjs/features/chat/components/service/index.js +13 -0
- package/lib/commonjs/features/chat/components/service/index.js.map +1 -0
- package/lib/commonjs/features/chat/components/service/service.js +83 -0
- package/lib/commonjs/features/chat/components/service/service.js.map +1 -0
- package/lib/commonjs/features/chat/components/service/service.model.js +6 -0
- package/lib/commonjs/features/chat/components/service/service.model.js.map +1 -0
- package/lib/commonjs/features/chat/components/service/service.native.js +106 -0
- package/lib/commonjs/features/chat/components/service/service.native.js.map +1 -0
- package/lib/commonjs/features/chat/index.d.js +6 -0
- package/lib/commonjs/features/chat/index.d.js.map +1 -0
- package/lib/commonjs/features/chat/index.d.ts.map +1 -0
- package/lib/commonjs/features/chat/index.js +46 -0
- package/lib/commonjs/features/chat/index.js.map +1 -0
- package/lib/commonjs/features/chat/model/chat.model.js +23 -0
- package/lib/commonjs/features/chat/model/chat.model.js.map +1 -0
- package/lib/commonjs/features/chat/renderer/index.js +13 -0
- package/lib/commonjs/features/chat/renderer/index.js.map +1 -0
- package/lib/commonjs/features/chat/renderer/renderer.js +32 -0
- package/lib/commonjs/features/chat/renderer/renderer.js.map +1 -0
- package/lib/commonjs/features/chat/renderer/renderer.native.js +32 -0
- package/lib/commonjs/features/chat/renderer/renderer.native.js.map +1 -0
- package/lib/commonjs/index.d.js +17 -0
- package/lib/commonjs/index.d.js.map +1 -0
- package/lib/commonjs/index.d.ts.map +1 -0
- package/lib/commonjs/index.js +17 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/native.d.js +6 -0
- package/lib/commonjs/native.d.js.map +1 -0
- package/lib/commonjs/native.d.ts.map +1 -0
- package/lib/commonjs/native.js +46 -0
- package/lib/commonjs/native.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/styles/global.css +3 -0
- package/lib/commonjs/utils/i18n.utils.js +12 -0
- package/lib/commonjs/utils/i18n.utils.js.map +1 -0
- package/lib/commonjs/utils/theme.utils.js +37 -0
- package/lib/commonjs/utils/theme.utils.js.map +1 -0
- package/lib/commonjs/utils/use-expandable-list.js +23 -0
- package/lib/commonjs/utils/use-expandable-list.js.map +1 -0
- package/lib/commonjs/web.d.js +6 -0
- package/lib/commonjs/web.d.js.map +1 -0
- package/lib/commonjs/web.d.ts.map +1 -0
- package/lib/commonjs/web.js +46 -0
- package/lib/commonjs/web.js.map +1 -0
- package/lib/module/features/chat/components/common/cart-icon.native.js +32 -0
- package/lib/module/features/chat/components/common/cart-icon.native.js.map +1 -0
- package/lib/module/features/chat/components/common/collapsible.js +16 -0
- package/lib/module/features/chat/components/common/collapsible.js.map +1 -0
- package/lib/module/features/chat/components/common/collapsible.native.js +34 -0
- package/lib/module/features/chat/components/common/collapsible.native.js.map +1 -0
- package/lib/module/features/chat/components/product/index.js +4 -0
- package/lib/module/features/chat/components/product/index.js.map +1 -0
- package/lib/module/features/chat/components/product/product.js +79 -0
- package/lib/module/features/chat/components/product/product.js.map +1 -0
- package/lib/module/features/chat/components/product/product.model.js +4 -0
- package/lib/module/features/chat/components/product/product.model.js.map +1 -0
- package/lib/module/features/chat/components/product/product.native.js +121 -0
- package/lib/module/features/chat/components/product/product.native.js.map +1 -0
- package/lib/module/features/chat/components/service/index.js +4 -0
- package/lib/module/features/chat/components/service/index.js.map +1 -0
- package/lib/module/features/chat/components/service/service.js +79 -0
- package/lib/module/features/chat/components/service/service.js.map +1 -0
- package/lib/module/features/chat/components/service/service.model.js +4 -0
- package/lib/module/features/chat/components/service/service.model.js.map +1 -0
- package/lib/module/features/chat/components/service/service.native.js +102 -0
- package/lib/module/features/chat/components/service/service.native.js.map +1 -0
- package/lib/module/features/chat/index.d.js +10 -0
- package/lib/module/features/chat/index.d.js.map +1 -0
- package/lib/module/features/chat/index.d.ts.map +1 -0
- package/lib/module/features/chat/index.js +7 -0
- package/lib/module/features/chat/index.js.map +1 -0
- package/lib/module/features/chat/model/chat.model.js +19 -0
- package/lib/module/features/chat/model/chat.model.js.map +1 -0
- package/lib/module/features/chat/renderer/index.js +4 -0
- package/lib/module/features/chat/renderer/index.js.map +1 -0
- package/lib/module/features/chat/renderer/renderer.js +28 -0
- package/lib/module/features/chat/renderer/renderer.js.map +1 -0
- package/lib/module/features/chat/renderer/renderer.native.js +28 -0
- package/lib/module/features/chat/renderer/renderer.native.js.map +1 -0
- package/lib/module/index.d.js +13 -0
- package/lib/module/index.d.js.map +1 -0
- package/lib/module/index.d.ts.map +1 -0
- package/lib/module/index.js +13 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/native.d.js +11 -0
- package/lib/module/native.d.js.map +1 -0
- package/lib/module/native.d.ts.map +1 -0
- package/lib/module/native.js +7 -0
- package/lib/module/native.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/styles/global.css +3 -0
- package/lib/module/utils/i18n.utils.js +8 -0
- package/lib/module/utils/i18n.utils.js.map +1 -0
- package/lib/module/utils/theme.utils.js +33 -0
- package/lib/module/utils/theme.utils.js.map +1 -0
- package/lib/module/utils/use-expandable-list.js +19 -0
- package/lib/module/utils/use-expandable-list.js.map +1 -0
- package/lib/module/web.d.js +10 -0
- package/lib/module/web.d.js.map +1 -0
- package/lib/module/web.d.ts.map +1 -0
- package/lib/module/web.js +7 -0
- package/lib/module/web.js.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/common/cart-icon.native.d.ts +6 -0
- package/lib/typescript/commonjs/features/chat/components/common/cart-icon.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/common/collapsible.d.ts +6 -0
- package/lib/typescript/commonjs/features/chat/components/common/collapsible.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/common/collapsible.native.d.ts +6 -0
- package/lib/typescript/commonjs/features/chat/components/common/collapsible.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/product/index.d.ts +3 -0
- package/lib/typescript/commonjs/features/chat/components/product/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/product/product.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/product/product.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/product/product.model.d.ts +10 -0
- package/lib/typescript/commonjs/features/chat/components/product/product.model.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/product/product.native.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/product/product.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/service/index.d.ts +3 -0
- package/lib/typescript/commonjs/features/chat/components/service/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/service/service.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/service/service.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/service/service.model.d.ts +10 -0
- package/lib/typescript/commonjs/features/chat/components/service/service.model.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/components/service/service.native.d.ts +4 -0
- package/lib/typescript/commonjs/features/chat/components/service/service.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/index.d.ts +8 -0
- package/lib/typescript/commonjs/features/chat/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/model/chat.model.d.ts +31 -0
- package/lib/typescript/commonjs/features/chat/model/chat.model.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/renderer/index.d.ts +2 -0
- package/lib/typescript/commonjs/features/chat/renderer/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/renderer/renderer.d.ts +5 -0
- package/lib/typescript/commonjs/features/chat/renderer/renderer.d.ts.map +1 -0
- package/lib/typescript/commonjs/features/chat/renderer/renderer.native.d.ts +5 -0
- package/lib/typescript/commonjs/features/chat/renderer/renderer.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/index.d.ts +11 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/native.d.ts +8 -0
- package/lib/typescript/commonjs/native.d.ts.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/utils/i18n.utils.d.ts +3 -0
- package/lib/typescript/commonjs/utils/i18n.utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/theme.utils.d.ts +16 -0
- package/lib/typescript/commonjs/utils/theme.utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/use-expandable-list.d.ts +8 -0
- package/lib/typescript/commonjs/utils/use-expandable-list.d.ts.map +1 -0
- package/lib/typescript/commonjs/web.d.ts +8 -0
- package/lib/typescript/commonjs/web.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/common/cart-icon.native.d.ts +6 -0
- package/lib/typescript/module/features/chat/components/common/cart-icon.native.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/common/collapsible.d.ts +6 -0
- package/lib/typescript/module/features/chat/components/common/collapsible.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/common/collapsible.native.d.ts +6 -0
- package/lib/typescript/module/features/chat/components/common/collapsible.native.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/product/index.d.ts +3 -0
- package/lib/typescript/module/features/chat/components/product/index.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/product/product.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/product/product.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/product/product.model.d.ts +10 -0
- package/lib/typescript/module/features/chat/components/product/product.model.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/product/product.native.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/product/product.native.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/service/index.d.ts +3 -0
- package/lib/typescript/module/features/chat/components/service/index.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/service/service.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/service/service.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/service/service.model.d.ts +10 -0
- package/lib/typescript/module/features/chat/components/service/service.model.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/components/service/service.native.d.ts +4 -0
- package/lib/typescript/module/features/chat/components/service/service.native.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/index.d.ts +8 -0
- package/lib/typescript/module/features/chat/index.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/model/chat.model.d.ts +31 -0
- package/lib/typescript/module/features/chat/model/chat.model.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/renderer/index.d.ts +2 -0
- package/lib/typescript/module/features/chat/renderer/index.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/renderer/renderer.d.ts +5 -0
- package/lib/typescript/module/features/chat/renderer/renderer.d.ts.map +1 -0
- package/lib/typescript/module/features/chat/renderer/renderer.native.d.ts +5 -0
- package/lib/typescript/module/features/chat/renderer/renderer.native.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +11 -0
- package/lib/typescript/module/index.d.ts.map +1 -0
- package/lib/typescript/module/native.d.ts +8 -0
- package/lib/typescript/module/native.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/utils/i18n.utils.d.ts +3 -0
- package/lib/typescript/module/utils/i18n.utils.d.ts.map +1 -0
- package/lib/typescript/module/utils/theme.utils.d.ts +16 -0
- package/lib/typescript/module/utils/theme.utils.d.ts.map +1 -0
- package/lib/typescript/module/utils/use-expandable-list.d.ts +8 -0
- package/lib/typescript/module/utils/use-expandable-list.d.ts.map +1 -0
- package/lib/typescript/module/web.d.ts +8 -0
- package/lib/typescript/module/web.d.ts.map +1 -0
- package/nativewind-env.d.ts +1 -0
- package/package.json +142 -0
- package/src/features/chat/components/common/cart-icon.native.tsx +20 -0
- package/src/features/chat/components/common/collapsible.native.tsx +28 -0
- package/src/features/chat/components/common/collapsible.tsx +13 -0
- package/src/features/chat/components/product/index.ts +2 -0
- package/src/features/chat/components/product/product.model.ts +10 -0
- package/src/features/chat/components/product/product.native.tsx +117 -0
- package/src/features/chat/components/product/product.tsx +80 -0
- package/src/features/chat/components/service/index.ts +2 -0
- package/src/features/chat/components/service/service.model.ts +10 -0
- package/src/features/chat/components/service/service.native.tsx +96 -0
- package/src/features/chat/components/service/service.tsx +80 -0
- package/src/features/chat/index.d.ts +8 -0
- package/src/features/chat/index.d.ts.map +1 -0
- package/src/features/chat/index.ts +13 -0
- package/src/features/chat/model/chat.model.ts +36 -0
- package/src/features/chat/renderer/index.ts +1 -0
- package/src/features/chat/renderer/renderer.native.tsx +22 -0
- package/src/features/chat/renderer/renderer.tsx +22 -0
- package/src/index.d.ts +11 -0
- package/src/index.d.ts.map +1 -0
- package/src/index.ts +10 -0
- package/src/native.d.ts +9 -0
- package/src/native.d.ts.map +1 -0
- package/src/native.ts +13 -0
- package/src/styles/global.css +3 -0
- package/src/utils/i18n.utils.ts +7 -0
- package/src/utils/theme.utils.ts +47 -0
- package/src/utils/use-expandable-list.ts +12 -0
- package/src/web.d.ts +8 -0
- package/src/web.d.ts.map +1 -0
- package/src/web.ts +13 -0
- package/tailwind.config.js +43 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Root entry (aggregator). Defaults to the web/DOM build.
|
|
5
|
+
*
|
|
6
|
+
* Prefer importing the explicit platform entry in apps:
|
|
7
|
+
* - `hotel-smarters-chat-ui/native` -> React Native (mobile + web client via react-native-web)
|
|
8
|
+
* - `hotel-smarters-chat-ui/web` -> React DOM (admin)
|
|
9
|
+
*
|
|
10
|
+
* Public exports are added here once domain components exist.
|
|
11
|
+
*/
|
|
12
|
+
export * from "./web.js";
|
|
13
|
+
//# sourceMappingURL=index.d.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA;;;;;;;;;AASA,cAAc,UAAO","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,cAAc,OAAO,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Root entry (aggregator). Defaults to the web/DOM build.
|
|
5
|
+
*
|
|
6
|
+
* Prefer importing the explicit platform entry in apps:
|
|
7
|
+
* - `@inorain_development/hotel-smarters-chat-ui/native` -> React Native (mobile + web client via react-native-web)
|
|
8
|
+
* - `@inorain_development/hotel-smarters-chat-ui/web` -> React DOM (admin)
|
|
9
|
+
*
|
|
10
|
+
* Public exports are added here once domain components exist.
|
|
11
|
+
*/
|
|
12
|
+
export * from "./web.js";
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,UAAO","ignoreList":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Native entry (mobile + web client via react-native-web).
|
|
5
|
+
* Re-exports the `*.native.tsx` (React Native) component implementations.
|
|
6
|
+
*
|
|
7
|
+
* Placeholder until domain components are added, e.g.:
|
|
8
|
+
* export { Event } from './features/chat/components/Event/Event.native';
|
|
9
|
+
*/
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=native.d.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["native.ts"],"mappings":";;AAAA;;;;;;;AAOA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native.d.ts","sourceRoot":"","sources":["native.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export { Product } from "./features/chat/components/product/product.native.js";
|
|
4
|
+
export { Service } from "./features/chat/components/service/service.native.js";
|
|
5
|
+
export { ChatComponentRenderer } from "./features/chat/renderer/renderer.native.js";
|
|
6
|
+
export { ComponentType, ItemAction, Theme } from "./features/chat/model/chat.model.js";
|
|
7
|
+
//# sourceMappingURL=native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Product","Service","ChatComponentRenderer","ComponentType","ItemAction","Theme"],"sourceRoot":"../../src","sources":["native.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,sDAAmD;AAC3E,SAASC,OAAO,QAAQ,sDAAmD;AAC3E,SAASC,qBAAqB,QAAQ,6CAA0C;AAChF,SAASC,aAAa,EAAEC,UAAU,EAAEC,KAAK,QAAQ,qCAAkC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["resolveText","text","language","first","Object","values"],"sourceRoot":"../../../src","sources":["utils/i18n.utils.ts"],"mappings":";;AAEA,OAAO,SAASA,WAAWA,CAACC,IAAmB,EAAEC,QAAmB,EAAU;EAC5E,IAAIA,QAAQ,IAAID,IAAI,CAACC,QAAQ,CAAC,IAAI,IAAI,EAAE,OAAOD,IAAI,CAACC,QAAQ,CAAC;EAC7D,MAAMC,KAAK,GAAGC,MAAM,CAACC,MAAM,CAACJ,IAAI,CAAC,CAAC,CAAC,CAAC;EACpC,OAAOE,KAAK,IAAI,EAAE;AACpB","ignoreList":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { Theme } from "../features/chat/model/chat.model.js";
|
|
4
|
+
const DARK = {
|
|
5
|
+
surface: 'bg-chat-surface-dark',
|
|
6
|
+
border: 'border-chat-border-dark',
|
|
7
|
+
title: 'text-white',
|
|
8
|
+
subtitle: 'text-chat-subtitle-dark',
|
|
9
|
+
price: 'text-white',
|
|
10
|
+
actionBorder: 'border-neutral-700',
|
|
11
|
+
actionText: 'text-white',
|
|
12
|
+
divider: 'bg-neutral-800',
|
|
13
|
+
iconBg: 'bg-indigo-500/20',
|
|
14
|
+
iconText: 'text-indigo-300',
|
|
15
|
+
iconColor: '#a5b4fc'
|
|
16
|
+
};
|
|
17
|
+
const LIGHT = {
|
|
18
|
+
surface: 'bg-chat-surface-light',
|
|
19
|
+
border: 'border-chat-border-light',
|
|
20
|
+
title: 'text-neutral-900',
|
|
21
|
+
subtitle: 'text-neutral-500',
|
|
22
|
+
price: 'text-neutral-900',
|
|
23
|
+
actionBorder: 'border-slate-400',
|
|
24
|
+
actionText: 'text-neutral-900',
|
|
25
|
+
divider: 'bg-slate-300',
|
|
26
|
+
iconBg: 'bg-indigo-500/15',
|
|
27
|
+
iconText: 'text-indigo-500',
|
|
28
|
+
iconColor: '#6366f1'
|
|
29
|
+
};
|
|
30
|
+
export function getThemeClasses(theme = Theme.Dark) {
|
|
31
|
+
return theme === Theme.Light ? LIGHT : DARK;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=theme.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Theme","DARK","surface","border","title","subtitle","price","actionBorder","actionText","divider","iconBg","iconText","iconColor","LIGHT","getThemeClasses","theme","Dark","Light"],"sourceRoot":"../../../src","sources":["utils/theme.utils.ts"],"mappings":";;AAAA,SAASA,KAAK,QAAQ,sCAAmC;AAgBzD,MAAMC,IAAkB,GAAG;EACzBC,OAAO,EAAE,sBAAsB;EAC/BC,MAAM,EAAE,yBAAyB;EACjCC,KAAK,EAAE,YAAY;EACnBC,QAAQ,EAAE,yBAAyB;EACnCC,KAAK,EAAE,YAAY;EACnBC,YAAY,EAAE,oBAAoB;EAClCC,UAAU,EAAE,YAAY;EACxBC,OAAO,EAAE,gBAAgB;EACzBC,MAAM,EAAE,kBAAkB;EAC1BC,QAAQ,EAAE,iBAAiB;EAC3BC,SAAS,EAAE;AACb,CAAC;AAED,MAAMC,KAAmB,GAAG;EAC1BX,OAAO,EAAE,uBAAuB;EAChCC,MAAM,EAAE,0BAA0B;EAClCC,KAAK,EAAE,kBAAkB;EACzBC,QAAQ,EAAE,kBAAkB;EAC5BC,KAAK,EAAE,kBAAkB;EACzBC,YAAY,EAAE,kBAAkB;EAChCC,UAAU,EAAE,kBAAkB;EAC9BC,OAAO,EAAE,cAAc;EACvBC,MAAM,EAAE,kBAAkB;EAC1BC,QAAQ,EAAE,iBAAiB;EAC3BC,SAAS,EAAE;AACb,CAAC;AAED,OAAO,SAASE,eAAeA,CAACC,KAAY,GAAGf,KAAK,CAACgB,IAAI,EAAgB;EACvE,OAAOD,KAAK,KAAKf,KAAK,CAACiB,KAAK,GAAGJ,KAAK,GAAGZ,IAAI;AAC7C","ignoreList":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useState } from 'react';
|
|
4
|
+
const COLLAPSED_COUNT = 3;
|
|
5
|
+
export function useExpandableList(items, limit = COLLAPSED_COUNT) {
|
|
6
|
+
const [expanded, setExpanded] = useState(false);
|
|
7
|
+
const hasMore = items.length > limit;
|
|
8
|
+
const head = hasMore ? items.slice(0, limit) : items;
|
|
9
|
+
const rest = hasMore ? items.slice(limit) : [];
|
|
10
|
+
const toggle = () => setExpanded(v => !v);
|
|
11
|
+
return {
|
|
12
|
+
head,
|
|
13
|
+
rest,
|
|
14
|
+
expanded,
|
|
15
|
+
hasMore,
|
|
16
|
+
toggle
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=use-expandable-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useState","COLLAPSED_COUNT","useExpandableList","items","limit","expanded","setExpanded","hasMore","length","head","slice","rest","toggle","v"],"sourceRoot":"../../../src","sources":["utils/use-expandable-list.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,OAAO;AAEhC,MAAMC,eAAe,GAAG,CAAC;AAEzB,OAAO,SAASC,iBAAiBA,CAAIC,KAAU,EAAEC,KAAK,GAAGH,eAAe,EAAE;EACxE,MAAM,CAACI,QAAQ,EAAEC,WAAW,CAAC,GAAGN,QAAQ,CAAC,KAAK,CAAC;EAC/C,MAAMO,OAAO,GAAGJ,KAAK,CAACK,MAAM,GAAGJ,KAAK;EACpC,MAAMK,IAAI,GAAGF,OAAO,GAAGJ,KAAK,CAACO,KAAK,CAAC,CAAC,EAAEN,KAAK,CAAC,GAAGD,KAAK;EACpD,MAAMQ,IAAI,GAAGJ,OAAO,GAAGJ,KAAK,CAACO,KAAK,CAACN,KAAK,CAAC,GAAG,EAAE;EAC9C,MAAMQ,MAAM,GAAGA,CAAA,KAAMN,WAAW,CAAEO,CAAC,IAAK,CAACA,CAAC,CAAC;EAC3C,OAAO;IAAEJ,IAAI;IAAEE,IAAI;IAAEN,QAAQ;IAAEE,OAAO;IAAEK;EAAO,CAAC;AAClD","ignoreList":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Web / DOM entry (admin). Re-exports the `*.tsx` (DOM) component implementations.
|
|
5
|
+
*
|
|
6
|
+
* Placeholder until domain components are added, e.g.:
|
|
7
|
+
* export { Event } from './features/chat/components/Event/Event';
|
|
8
|
+
*/
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=web.d.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["web.ts"],"mappings":";;AAAA;;;;;;AAMA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["web.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export { Product } from './features/chat/components/product/product';
|
|
4
|
+
export { Service } from './features/chat/components/service/service';
|
|
5
|
+
export { ChatComponentRenderer } from './features/chat/renderer/renderer';
|
|
6
|
+
export { ComponentType, ItemAction, Theme } from "./features/chat/model/chat.model.js";
|
|
7
|
+
//# sourceMappingURL=web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Product","Service","ChatComponentRenderer","ComponentType","ItemAction","Theme"],"sourceRoot":"../../src","sources":["web.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,4CAA4C;AACpE,SAASC,OAAO,QAAQ,4CAA4C;AACpE,SAASC,qBAAqB,QAAQ,mCAAmC;AACzE,SAASC,aAAa,EAAEC,UAAU,EAAEC,KAAK,QAAQ,qCAAkC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cart-icon.native.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/common/cart-icon.native.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,QAAQ,CAAC,EAAE,IAAS,EAAE,KAAsB,EAAE,EAAE,aAAa,+BAc5E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/common/collapsible.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAU7F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collapsible.native.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/common/collapsible.native.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAsB7F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/product/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ChatComponentProps } from '../../model/chat.model';
|
|
2
|
+
import type { ProductItem } from './product.model';
|
|
3
|
+
export declare function Product({ data, theme, language, onSelect, }: ChatComponentProps<ProductItem>): import("react").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=product.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/product/product.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,wBAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,KAAkB,EAClB,QAAQ,EACR,QAAQ,GACT,EAAE,kBAAkB,CAAC,WAAW,CAAC,+BAiEjC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { LocalizedText } from '../../model/chat.model';
|
|
2
|
+
export interface ProductItem {
|
|
3
|
+
id: number;
|
|
4
|
+
image: string;
|
|
5
|
+
name: LocalizedText;
|
|
6
|
+
description: LocalizedText;
|
|
7
|
+
price: string;
|
|
8
|
+
categoryId: number;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=product.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/product/product.model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,aAAa,CAAC;IACpB,WAAW,EAAE,aAAa,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ChatComponentProps } from '../../model/chat.model';
|
|
2
|
+
import type { ProductItem } from './product.model';
|
|
3
|
+
export declare function Product({ data, theme, language, actionLabel, counts, onAction, onSelect, }: ChatComponentProps<ProductItem>): import("react").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=product.native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.native.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/product/product.native.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,wBAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,KAAkB,EAClB,QAAQ,EACR,WAA2B,EAC3B,MAAM,EACN,QAAQ,EACR,QAAQ,GACT,EAAE,kBAAkB,CAAC,WAAW,CAAC,+BAiGjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/service/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ChatComponentProps } from '../../model/chat.model';
|
|
2
|
+
import type { ServiceItem } from './service.model';
|
|
3
|
+
export declare function Service({ data, theme, language, onSelect, }: ChatComponentProps<ServiceItem>): import("react").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/service/service.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,wBAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,KAAkB,EAClB,QAAQ,EACR,QAAQ,GACT,EAAE,kBAAkB,CAAC,WAAW,CAAC,+BAiEjC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { LocalizedText } from '../../model/chat.model';
|
|
2
|
+
export interface ServiceItem {
|
|
3
|
+
id: number;
|
|
4
|
+
image: string;
|
|
5
|
+
name: LocalizedText;
|
|
6
|
+
description: LocalizedText;
|
|
7
|
+
price: string;
|
|
8
|
+
departmentUnitId: number;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=service.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/service/service.model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,aAAa,CAAC;IACpB,WAAW,EAAE,aAAa,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ChatComponentProps } from '../../model/chat.model';
|
|
2
|
+
import type { ServiceItem } from './service.model';
|
|
3
|
+
export declare function Service({ data, theme, language, actionLabel, onAction, onSelect, }: ChatComponentProps<ServiceItem>): import("react").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=service.native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.native.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/service/service.native.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,wBAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,KAAkB,EAClB,QAAQ,EACR,WAAuB,EACvB,QAAQ,EACR,QAAQ,GACT,EAAE,kBAAkB,CAAC,WAAW,CAAC,+BA8EjC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { Product } from './components/product';
|
|
2
|
+
export { Service } from './components/service';
|
|
3
|
+
export { ChatComponentRenderer } from './renderer';
|
|
4
|
+
export { ComponentType, ItemAction, Theme } from './model/chat.model';
|
|
5
|
+
export type { ProductItem } from './components/product/product.model';
|
|
6
|
+
export type { ServiceItem } from './components/service/service.model';
|
|
7
|
+
export type { ActionHandler, ChatComponentProps, ItemCount, Language, LocalizedText, } from './model/chat.model';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/chat/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtE,YAAY,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACtE,YAAY,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACtE,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,SAAS,EACT,QAAQ,EACR,aAAa,GACd,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare enum Theme {
|
|
2
|
+
Dark = "dark",
|
|
3
|
+
Light = "light"
|
|
4
|
+
}
|
|
5
|
+
export type Language = string;
|
|
6
|
+
export type LocalizedText = Record<string, string>;
|
|
7
|
+
export declare enum ComponentType {
|
|
8
|
+
Product = "product",
|
|
9
|
+
ProductList = "productList",
|
|
10
|
+
Service = "service",
|
|
11
|
+
ServiceList = "serviceList"
|
|
12
|
+
}
|
|
13
|
+
export declare enum ItemAction {
|
|
14
|
+
Add = "add"
|
|
15
|
+
}
|
|
16
|
+
export type ActionHandler<TItem = unknown> = (item: TItem, action?: ItemAction) => void;
|
|
17
|
+
export interface ItemCount {
|
|
18
|
+
id: number;
|
|
19
|
+
count: number;
|
|
20
|
+
}
|
|
21
|
+
export interface ChatComponentProps<TItem = unknown> {
|
|
22
|
+
type: ComponentType;
|
|
23
|
+
data: TItem | TItem[];
|
|
24
|
+
language?: Language;
|
|
25
|
+
onAction?: ActionHandler<TItem>;
|
|
26
|
+
onSelect?: ActionHandler<TItem>;
|
|
27
|
+
actionLabel?: string;
|
|
28
|
+
counts?: ItemCount[];
|
|
29
|
+
theme?: Theme;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=chat.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat.model.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/model/chat.model.ts"],"names":[],"mappings":"AAAA,oBAAY,KAAK;IACf,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC;AAC9B,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEnD,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,WAAW,gBAAgB;CAC5B;AAED,oBAAY,UAAU;IACpB,GAAG,QAAQ;CACZ;AAED,MAAM,MAAM,aAAa,CAAC,KAAK,GAAG,OAAO,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;AAExF,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,kBAAkB,CAAC,KAAK,GAAG,OAAO;IACjD,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,EAAE,KAAK,GAAG,KAAK,EAAE,CAAC;IACtB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,QAAQ,CAAC,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/renderer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ProductItem } from '../components/product/product.model';
|
|
2
|
+
import type { ServiceItem } from '../components/service/service.model';
|
|
3
|
+
import type { ChatComponentProps } from '../model/chat.model';
|
|
4
|
+
export declare function ChatComponentRenderer({ type, ...rest }: ChatComponentProps<ProductItem | ServiceItem>): import("react").JSX.Element | null;
|
|
5
|
+
//# sourceMappingURL=renderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/renderer/renderer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAEvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,wBAAgB,qBAAqB,CAAC,EACpC,IAAI,EACJ,GAAG,IAAI,EACR,EAAE,kBAAkB,CAAC,WAAW,GAAG,WAAW,CAAC,sCAW/C"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ProductItem } from '../components/product/product.model';
|
|
2
|
+
import type { ServiceItem } from '../components/service/service.model';
|
|
3
|
+
import type { ChatComponentProps } from '../model/chat.model';
|
|
4
|
+
export declare function ChatComponentRenderer({ type, ...rest }: ChatComponentProps<ProductItem | ServiceItem>): import("react").JSX.Element | null;
|
|
5
|
+
//# sourceMappingURL=renderer.native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderer.native.d.ts","sourceRoot":"","sources":["../../../../../../src/features/chat/renderer/renderer.native.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAEvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,wBAAgB,qBAAqB,CAAC,EACpC,IAAI,EACJ,GAAG,IAAI,EACR,EAAE,kBAAkB,CAAC,WAAW,GAAG,WAAW,CAAC,sCAW/C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Root entry (aggregator). Defaults to the web/DOM build.
|
|
3
|
+
*
|
|
4
|
+
* Prefer importing the explicit platform entry in apps:
|
|
5
|
+
* - `@inorain_development/hotel-smarters-chat-ui/native` -> React Native (mobile + web client via react-native-web)
|
|
6
|
+
* - `@inorain_development/hotel-smarters-chat-ui/web` -> React DOM (admin)
|
|
7
|
+
*
|
|
8
|
+
* Public exports are added here once domain components exist.
|
|
9
|
+
*/
|
|
10
|
+
export * from './web';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,cAAc,OAAO,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { Product } from './features/chat/components/product/product.native';
|
|
2
|
+
export { Service } from './features/chat/components/service/service.native';
|
|
3
|
+
export { ChatComponentRenderer } from './features/chat/renderer/renderer.native';
|
|
4
|
+
export { ComponentType, ItemAction, Theme } from './features/chat/model/chat.model';
|
|
5
|
+
export type { ProductItem } from './features/chat/components/product/product.model';
|
|
6
|
+
export type { ServiceItem } from './features/chat/components/service/service.model';
|
|
7
|
+
export type { ActionHandler, ChatComponentProps, ItemCount, Language, LocalizedText, } from './features/chat/model/chat.model';
|
|
8
|
+
//# sourceMappingURL=native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native.d.ts","sourceRoot":"","sources":["../../../src/native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mDAAmD,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,mDAAmD,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AACpF,YAAY,EAAE,WAAW,EAAE,MAAM,kDAAkD,CAAC;AACpF,YAAY,EAAE,WAAW,EAAE,MAAM,kDAAkD,CAAC;AACpF,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,SAAS,EACT,QAAQ,EACR,aAAa,GACd,MAAM,kCAAkC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18n.utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/i18n.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAEjF,wBAAgB,WAAW,CAAC,IAAI,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,MAAM,CAI5E"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Theme } from '../features/chat/model/chat.model';
|
|
2
|
+
export interface ThemeClasses {
|
|
3
|
+
surface: string;
|
|
4
|
+
border: string;
|
|
5
|
+
title: string;
|
|
6
|
+
subtitle: string;
|
|
7
|
+
price: string;
|
|
8
|
+
actionBorder: string;
|
|
9
|
+
actionText: string;
|
|
10
|
+
divider: string;
|
|
11
|
+
iconBg: string;
|
|
12
|
+
iconText: string;
|
|
13
|
+
iconColor: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function getThemeClasses(theme?: Theme): ThemeClasses;
|
|
16
|
+
//# sourceMappingURL=theme.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/theme.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAE1D,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AA8BD,wBAAgB,eAAe,CAAC,KAAK,GAAE,KAAkB,GAAG,YAAY,CAEvE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-expandable-list.d.ts","sourceRoot":"","sources":["../../../../src/utils/use-expandable-list.ts"],"names":[],"mappings":"AAIA,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,KAAK,SAAkB;;;;;;EAOvE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { Product } from './features/chat/components/product/product';
|
|
2
|
+
export { Service } from './features/chat/components/service/service';
|
|
3
|
+
export { ChatComponentRenderer } from './features/chat/renderer/renderer';
|
|
4
|
+
export { ComponentType, ItemAction, Theme } from './features/chat/model/chat.model';
|
|
5
|
+
export type { ProductItem } from './features/chat/components/product/product.model';
|
|
6
|
+
export type { ServiceItem } from './features/chat/components/service/service.model';
|
|
7
|
+
export type { ActionHandler, ChatComponentProps, ItemCount, Language, LocalizedText, } from './features/chat/model/chat.model';
|
|
8
|
+
//# sourceMappingURL=web.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4CAA4C,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,4CAA4C,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AACpF,YAAY,EAAE,WAAW,EAAE,MAAM,kDAAkD,CAAC;AACpF,YAAY,EAAE,WAAW,EAAE,MAAM,kDAAkD,CAAC;AACpF,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,SAAS,EACT,QAAQ,EACR,aAAa,GACd,MAAM,kCAAkC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cart-icon.native.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/common/cart-icon.native.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,QAAQ,CAAC,EAAE,IAAS,EAAE,KAAsB,EAAE,EAAE,aAAa,+BAc5E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/common/collapsible.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAU7F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collapsible.native.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/common/collapsible.native.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAsB7F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/product/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,WAAW,EAAE,MAAM,oBAAiB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ChatComponentProps } from '../../model/chat.model.js';
|
|
2
|
+
import type { ProductItem } from './product.model.js';
|
|
3
|
+
export declare function Product({ data, theme, language, onSelect, }: ChatComponentProps<ProductItem>): import("react").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=product.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/product/product.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAiB,CAAC;AAEnD,wBAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,KAAkB,EAClB,QAAQ,EACR,QAAQ,GACT,EAAE,kBAAkB,CAAC,WAAW,CAAC,+BAiEjC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { LocalizedText } from '../../model/chat.model.js';
|
|
2
|
+
export interface ProductItem {
|
|
3
|
+
id: number;
|
|
4
|
+
image: string;
|
|
5
|
+
name: LocalizedText;
|
|
6
|
+
description: LocalizedText;
|
|
7
|
+
price: string;
|
|
8
|
+
categoryId: number;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=product.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.model.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/product/product.model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAAwB,CAAC;AAE5D,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,aAAa,CAAC;IACpB,WAAW,EAAE,aAAa,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ChatComponentProps } from '../../model/chat.model.js';
|
|
2
|
+
import type { ProductItem } from './product.model.js';
|
|
3
|
+
export declare function Product({ data, theme, language, actionLabel, counts, onAction, onSelect, }: ChatComponentProps<ProductItem>): import("react").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=product.native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.native.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/product/product.native.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAiB,CAAC;AAEnD,wBAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,KAAkB,EAClB,QAAQ,EACR,WAA2B,EAC3B,MAAM,EACN,QAAQ,EACR,QAAQ,GACT,EAAE,kBAAkB,CAAC,WAAW,CAAC,+BAiGjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/chat/components/service/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,WAAW,EAAE,MAAM,oBAAiB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ChatComponentProps } from '../../model/chat.model.js';
|
|
2
|
+
import type { ServiceItem } from './service.model.js';
|
|
3
|
+
export declare function Service({ data, theme, language, onSelect, }: ChatComponentProps<ServiceItem>): import("react").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=service.d.ts.map
|