@messenger-box/property-ext-browser 0.0.1-alpha.239 → 0.0.1-alpha.247

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 (41) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +6 -6
  3. package/src/module.ts +2 -2
  4. package/src/slot-fill/message-alert-fill.tsx +1 -1
  5. package/src/slot-fill/message-card-fill.tsx +1 -1
  6. package/lib/components/InboxMessage/MessageWidgets/MessageAlert.d.ts +0 -7
  7. package/lib/components/InboxMessage/MessageWidgets/MessageAlert.d.ts.map +0 -1
  8. package/lib/components/InboxMessage/MessageWidgets/MessageAlert.js +0 -16
  9. package/lib/components/InboxMessage/MessageWidgets/MessageAlert.js.map +0 -1
  10. package/lib/components/InboxMessage/MessageWidgets/MessageCard.d.ts +0 -7
  11. package/lib/components/InboxMessage/MessageWidgets/MessageCard.d.ts.map +0 -1
  12. package/lib/components/InboxMessage/MessageWidgets/MessageCard.js +0 -44
  13. package/lib/components/InboxMessage/MessageWidgets/MessageCard.js.map +0 -1
  14. package/lib/components/InboxMessage/MessageWidgets/index.d.ts +0 -3
  15. package/lib/components/InboxMessage/MessageWidgets/index.d.ts.map +0 -1
  16. package/lib/components/InboxMessage/index.d.ts +0 -2
  17. package/lib/components/InboxMessage/index.d.ts.map +0 -1
  18. package/lib/components/index.d.ts +0 -2
  19. package/lib/components/index.d.ts.map +0 -1
  20. package/lib/index.d.ts +0 -2
  21. package/lib/index.d.ts.map +0 -1
  22. package/lib/index.js +0 -1
  23. package/lib/index.js.map +0 -1
  24. package/lib/interfaces/index.d.ts +0 -2
  25. package/lib/interfaces/index.d.ts.map +0 -1
  26. package/lib/interfaces/message-widgets.interface.d.ts +0 -13
  27. package/lib/interfaces/message-widgets.interface.d.ts.map +0 -1
  28. package/lib/module.d.ts +0 -3
  29. package/lib/module.d.ts.map +0 -1
  30. package/lib/module.js +0 -12
  31. package/lib/module.js.map +0 -1
  32. package/lib/slot-fill/index.d.ts +0 -3
  33. package/lib/slot-fill/index.d.ts.map +0 -1
  34. package/lib/slot-fill/message-alert-fill.d.ts +0 -2
  35. package/lib/slot-fill/message-alert-fill.d.ts.map +0 -1
  36. package/lib/slot-fill/message-alert-fill.js +0 -8
  37. package/lib/slot-fill/message-alert-fill.js.map +0 -1
  38. package/lib/slot-fill/message-card-fill.d.ts +0 -2
  39. package/lib/slot-fill/message-card-fill.d.ts.map +0 -1
  40. package/lib/slot-fill/message-card-fill.js +0 -8
  41. package/lib/slot-fill/message-card-fill.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.0.1-alpha.247](https://github.com/CDEBase/messenger-box/compare/v0.0.1-alpha.246...v0.0.1-alpha.247) (2023-02-15)
7
+
8
+ **Note:** Version bump only for package @messenger-box/property-ext-browser
9
+
10
+ ## [0.0.1-alpha.245](https://github.com/CDEBase/messenger-box/compare/v0.0.1-alpha.244...v0.0.1-alpha.245) (2023-02-14)
11
+
12
+ **Note:** Version bump only for package @messenger-box/property-ext-browser
13
+
6
14
  ## [0.0.1-alpha.239](https://github.com/cdmbase/messenger-box/compare/v0.0.1-alpha.238...v0.0.1-alpha.239) (2022-12-14)
7
15
 
8
16
  **Note:** Version bump only for package @messenger-box/property-ext-browser
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@messenger-box/property-ext-browser",
3
- "version": "0.0.1-alpha.239",
3
+ "version": "0.0.1-alpha.247",
4
4
  "description": "Extention to Messenger to support property on browser",
5
5
  "license": "ISC",
6
6
  "author": "CDMBase LLC",
@@ -41,9 +41,9 @@
41
41
  "dependencies": {
42
42
  "@emotion/react": "^11",
43
43
  "@emotion/styled": "^11",
44
- "@messenger-box/chakra-ui-inbox": "0.0.1-alpha.239",
45
- "@messenger-box/core": "0.0.1-alpha.239",
46
- "@messenger-box/property-ext-core": "0.0.1-alpha.239",
44
+ "@messenger-box/chakra-ui-inbox": "0.0.1-alpha.247",
45
+ "@messenger-box/core": "0.0.1-alpha.245",
46
+ "@messenger-box/property-ext-core": "0.0.1-alpha.245",
47
47
  "date-fns": "^2.28.0",
48
48
  "date-fns-tz": "^1.3.3",
49
49
  "emoji-mart": "^3.0.1",
@@ -59,7 +59,7 @@
59
59
  "@chakra-ui/react": "*",
60
60
  "@common-stack/client-react": "*",
61
61
  "@workbench-stack/components": "*",
62
- "antd": ">=4.15.3",
62
+ "antd": ">=5.1.0",
63
63
  "lodash": "*",
64
64
  "moment": "*",
65
65
  "react": ">=16.14.0",
@@ -76,5 +76,5 @@
76
76
  "typescript": {
77
77
  "definition": "lib/index.d.ts"
78
78
  },
79
- "gitHead": "40a47b144e87e9878d71b1596247bf888e3e7bc0"
79
+ "gitHead": "df2e6202d25c2c9cadd735495e9234f0ab33cba5"
80
80
  }
package/src/module.ts CHANGED
@@ -5,11 +5,11 @@ import { MessageAlertFill, MessageCardFill } from './slot-fill';
5
5
  export const feature = new Feature({
6
6
  componentFillPlugins: [
7
7
  {
8
- name: IPostTypeEnum.ALERT.toLowerCase(),
8
+ name: IPostTypeEnum.Alert.toLowerCase(),
9
9
  render: MessageAlertFill,
10
10
  },
11
11
  {
12
- name: IPostTypeEnum.CARD.toLowerCase(),
12
+ name: IPostTypeEnum.Card.toLowerCase(),
13
13
  render: MessageCardFill,
14
14
  },
15
15
  ],
@@ -6,7 +6,7 @@ import { IPropertyMessageWidgetProps } from '../components/InboxMessage/MessageW
6
6
 
7
7
  export const MessageAlertFill = () => {
8
8
  return (
9
- <Fill name={IPostTypeEnum.ALERT.toLowerCase()}>
9
+ <Fill name={IPostTypeEnum.Alert.toLowerCase()}>
10
10
  {
11
11
  (props: IPropertyMessageWidgetProps & { active: boolean }) => {
12
12
  if (props.active) {
@@ -6,7 +6,7 @@ import { IPostTypeEnum } from '@messenger-box/property-ext-core';
6
6
 
7
7
  export const MessageCardFill = () => {
8
8
  return (
9
- <Fill name={IPostTypeEnum.CARD.toLowerCase()}>
9
+ <Fill name={IPostTypeEnum.Card.toLowerCase()}>
10
10
  {
11
11
  (props: IPropertyCardProps & { active: boolean }) => {
12
12
  if (props.active) {
@@ -1,7 +0,0 @@
1
- import { IPost } from '@messenger-box/core';
2
- export interface IPropertyMessageWidgetProps {
3
- message: IPost;
4
- index: number;
5
- }
6
- export declare const MessageAlert: (props: IPropertyMessageWidgetProps) => JSX.Element;
7
- //# sourceMappingURL=MessageAlert.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MessageAlert.d.ts","sourceRoot":"","sources":["../../../../src/components/InboxMessage/MessageWidgets/MessageAlert.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAG5C,MAAM,WAAW,2BAA2B;IACxC,OAAO,EAAE,KAAK,CAAA;IACd,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,YAAY,UAAW,2BAA2B,gBAuC9D,CAAA"}
@@ -1,16 +0,0 @@
1
- import React from'react';import*as Icons from'@chakra-ui/icons';import parse from'html-react-parser';import {useColorModeValue,Stack,Text,Link}from'@chakra-ui/react';const MessageAlert = (props) => {
2
- const { message, index } = props;
3
- const { attachment } = message.propsConfiguration.contents;
4
- const Icon = Icons[attachment.icon];
5
- const color = useColorModeValue('white', 'gray.800');
6
- const bgColor = useColorModeValue('gray.800', 'white');
7
- return (React.createElement(Stack, { key: `${index}`, mt: "4", mb: "10", bgColor: bgColor, padding: 3, margin: 2, opacity: 0.7, borderRadius: 20, direction: ['column', 'row'] },
8
- React.createElement(Icon, { w: 6, h: 6, color: color }),
9
- React.createElement(Text, { fontSize: "14px", mt: "5px", mb: "5px", whiteSpace: 'pre-line', color: color }, attachment.isTitleHtml ? parse(attachment.title) : attachment === null || attachment === void 0 ? void 0 : attachment.title),
10
- attachment.callToAction && (React.createElement(Link, { color: color, mr: "2", style: {
11
- textDecoration: 'underline'
12
- }, href: attachment.callToAction.link, isExternal: true },
13
- attachment.callToAction.title,
14
- " ",
15
- React.createElement(Icons.ExternalLinkIcon, { mx: "2px" })))));
16
- };export{MessageAlert};//# sourceMappingURL=MessageAlert.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MessageAlert.js","sources":["../../../../src/components/InboxMessage/MessageWidgets/MessageAlert.tsx"],"sourcesContent":[null],"names":[],"mappings":"sKAYa,MAAA,YAAY,GAAG,CAAC,KAAkC,KAAI;AAC/D,IAAA,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IACjC,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,kBAAkB,CAAC,QAA4D,CAAC;IAC/G,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IACpC,MAAM,KAAK,GAAG,iBAAiB,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;IACrD,MAAM,OAAO,GAAG,iBAAiB,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IACvD,QACI,oBAAC,KAAK,EAAA,EACF,GAAG,EAAE,CAAA,EAAG,KAAK,CAAE,CAAA,EACf,EAAE,EAAC,GAAG,EACN,EAAE,EAAC,IAAI,EACP,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,CAAC,EACV,MAAM,EAAE,CAAC,EACT,OAAO,EAAE,GAAG,EACZ,YAAY,EAAE,EAAE,EAChB,SAAS,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,EAAA;AAE5B,QAAA,KAAA,CAAA,aAAA,CAAC,IAAI,EAAA,EAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK,EAAG,CAAA;QACjC,KAAC,CAAA,aAAA,CAAA,IAAI,IAAC,QAAQ,EAAC,MAAM,EAAC,EAAE,EAAC,KAAK,EAAC,EAAE,EAAC,KAAK,EAAC,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAA,EACvE,UAAU,CAAC,WAAW,GAAG,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,UAAU,KAAV,IAAA,IAAA,UAAU,uBAAV,UAAU,CAAE,KAAK,CAClE;AAEH,QAAA,UAAU,CAAC,YAAY,KACnB,KAAA,CAAA,aAAA,CAAC,IAAI,EACD,EAAA,KAAK,EAAE,KAAK,EACZ,EAAE,EAAC,GAAG,EACN,KAAK,EAAE;AACH,gBAAA,cAAc,EAAE,WAAW;aAC9B,EACD,IAAI,EAAE,UAAU,CAAC,YAAY,CAAC,IAAI,EAClC,UAAU,EAAA,IAAA,EAAA;YAET,UAAU,CAAC,YAAY,CAAC,KAAK;;AAAE,YAAA,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,gBAAgB,EAAA,EAAC,EAAE,EAAC,KAAK,EAAA,CAAE,CAC/D,CACV,CAED,EACX;AACL"}
@@ -1,7 +0,0 @@
1
- import { IPost } from '@messenger-box/core';
2
- export interface IPropertyCardProps {
3
- message: IPost;
4
- index: number;
5
- }
6
- export declare const MessageCard: (props: IPropertyCardProps) => JSX.Element;
7
- //# sourceMappingURL=MessageCard.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MessageCard.d.ts","sourceRoot":"","sources":["../../../../src/components/InboxMessage/MessageWidgets/MessageCard.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAG5C,MAAM,WAAW,kBAAkB;IAC/B,OAAO,EAAE,KAAK,CAAA;IACd,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,WAAW,UAAW,kBAAkB,gBA8HpD,CAAA"}
@@ -1,44 +0,0 @@
1
- import React from'react';import {startCase}from'lodash';import parse from'html-react-parser';import {useColorModeValue,Box,Image,Heading,Badge,Spacer,Text,Link}from'@chakra-ui/react';import {StarIcon,ExternalLinkIcon}from'@chakra-ui/icons';const MessageCard = (props) => {
2
- var _a;
3
- const { message, index } = props;
4
- const color = useColorModeValue('gray.800', 'white');
5
- const { attachment, } = (_a = message.propsConfiguration) === null || _a === void 0 ? void 0 : _a.contents;
6
- const { property } = attachment;
7
- return (React.createElement(Box, { _hover: {
8
- cursor: 'pointer'
9
- }, margin: 5, maxW: "xs", borderWidth: "1px", borderRadius: "lg", overflow: "hidden", key: `${index}` },
10
- React.createElement(Image, { width: "100%", src: attachment.image, alt: attachment.title }),
11
- React.createElement(Box, { marginTop: 4, margin: 2, m: "3" },
12
- React.createElement(Box, { mt: "3", lineHeight: "tight", noOfLines: 1 },
13
- React.createElement(Heading, { color: color, fontSize: "14px", fontWeight: "semibold", as: "h3" }, attachment.isTitleHtml ? parse(attachment.title) : attachment.title)),
14
- property && (React.createElement(Box, { mt: "3", display: "flex" },
15
- (property === null || property === void 0 ? void 0 : property.type) && (React.createElement(Box, null,
16
- React.createElement(Badge, { borderRadius: "full", px: "2", colorScheme: "teal" }, startCase(property.type)))),
17
- React.createElement(Spacer, null),
18
- (property === null || property === void 0 ? void 0 : property.maxPeople) && (React.createElement(Box, { color: "gray.500", fontWeight: "semibold", letterSpacing: "wide", fontSize: "xs", textTransform: "uppercase", ml: "2" },
19
- property.maxPeople,
20
- " Max People")))),
21
- React.createElement(Box, { display: "flex", mt: "4", mb: "3", alignItems: "center" }, attachment.isDescriptionHtml ? parse(attachment.description) : (React.createElement(Text, null, attachment.description))),
22
- property && (React.createElement(Box, { display: "flex", mb: "4" },
23
- (property === null || property === void 0 ? void 0 : property.price) && (React.createElement(Box, { mt: 2 },
24
- property.price,
25
- React.createElement(Box, { as: "span", color: "gray.600", fontSize: "sm" },
26
- "\u00A0/ ",
27
- startCase(property.priceType)))),
28
- React.createElement(Spacer, null),
29
- React.createElement(Box, { mt: "2", alignItems: "center" },
30
- (property === null || property === void 0 ? void 0 : property.totalReview) && (React.createElement(Box, { as: "span", ml: "2", color: "gray.600", fontSize: "sm", mr: "2" },
31
- property.totalReview,
32
- " reviews")),
33
- (property === null || property === void 0 ? void 0 : property.totalStar) && Array(5)
34
- .fill('')
35
- .map((_, i) => (React.createElement(StarIcon, { key: i, color: i < property.totalStar ? 'teal.500' : 'gray.300' })))))),
36
- attachment.callToAction && (React.createElement(Link, { href: attachment.callToAction.link, style: {
37
- cursor: 'pointer'
38
- }, _hover: {
39
- cursor: 'pointer'
40
- }, isExternal: true },
41
- attachment.callToAction.title,
42
- " ",
43
- React.createElement(ExternalLinkIcon, { mx: "2px" }))))));
44
- };export{MessageCard};//# sourceMappingURL=MessageCard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MessageCard.js","sources":["../../../../src/components/InboxMessage/MessageWidgets/MessageCard.tsx"],"sourcesContent":[null],"names":[],"mappings":"gPAaa,MAAA,WAAW,GAAG,CAAC,KAAyB,KAAI;;AACrD,IAAA,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IACjC,MAAM,KAAK,GAAG,iBAAiB,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IACrD,MAAM,EACF,UAAU,GACb,GAAG,CAAA,EAAA,GAAA,OAAO,CAAC,kBAAkB,MAAE,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,QAA0E,CAAC;AAC3G,IAAA,MAAM,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC;AAChC,IAAA,QACI,KAAA,CAAA,aAAA,CAAC,GAAG,EAAA,EACA,MAAM,EAAE;AACJ,YAAA,MAAM,EAAE,SAAS;SACpB,EACD,MAAM,EAAE,CAAC,EACT,IAAI,EAAC,IAAI,EACT,WAAW,EAAC,KAAK,EACjB,YAAY,EAAC,IAAI,EACjB,QAAQ,EAAC,QAAQ,EACjB,GAAG,EAAE,CAAG,EAAA,KAAK,CAAE,CAAA,EAAA;AAEf,QAAA,KAAA,CAAA,aAAA,CAAC,KAAK,EACF,EAAA,KAAK,EAAC,MAAM,EACZ,GAAG,EAAE,UAAU,CA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A,KAAA,CAAA,GAAA,KAAA,CAAA,GAAR,QAAQ,CAAE,WAAW,MACjB,KAAA,CAAA,aAAA,CAAC,GAAG,EAAA,EAAC,EAAE,EAAC,MAAM,EAAC,EAAE,EAAC,GAAG,EAAC,KAAK,EAAC,UAAU,EAAC,QAAQ,EAAC,IAAI,EAAC,EAAE,EAAC,GAAG,EAAA;AACtD,wBAAA,QAAQ,CAAC,WAAW;mCACnB,CACT;oBAEJ,CAAA,QAAQ,KAAR,IAAA,IAAA,QAAQ,KAAR,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,QAAQ,CAAE,SAAS,KAAI,KAAK,CAAC,CAAC,CAAC;yBAC3B,IAAI,CAAC,EAAE,CAAC;AACR,yBAAA,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,MACN,KAAA,CAAA,aAAA,CAAC,QAAQ,EACL,EAAA,GAAG,EAAE,CAAC,EACN,KAAK,EAAE,CAAC,GAAG,QAAQ,CAAC,SAAS,GAAG,UAAU,GAAG,UAAU,EACzD,CAAA,CACL,CAAC,CACJ,CACJ,CACT;AAGD,YAAA,UAAU,CAAC,YAAY,KACnB,KAAA,CAAA,aAAA,CAAC,IAAI,EACD,EAAA,IAAI,EAAE,UAAU,CAAC,YAAY,CAAC,IAAI,EAClC,KAAK,EAAE;AACH,oBAAA,MAAM,EAAE,SAAS;AACpB,iBAAA,EACD,MAAM,EAAE;AACJ,oBAAA,MAAM,EAAE,SAAS;AACpB,iBAAA,EACD,UAAU,EAAA,IAAA,EAAA;gBAET,UAAU,CAAC,YAAY,CAAC,KAAK;;gBAAE,KAAC,CAAA,aAAA,CAAA,gBAAgB,EAAC,EAAA,EAAE,EAAC,KAAK,EAAE,CAAA,CACzD,CACV,CAEH,CACJ,EACT;AACL"}
@@ -1,3 +0,0 @@
1
- export { MessageCard } from './MessageCard';
2
- export { MessageAlert } from './MessageAlert';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/InboxMessage/MessageWidgets/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,2 +0,0 @@
1
- export { MessageAlert, MessageCard } from './MessageWidgets';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/InboxMessage/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1,2 +0,0 @@
1
- export { MessageCard, MessageAlert } from './InboxMessage';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
package/lib/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export { feature as default } from './module';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,UAAU,CAAC"}
package/lib/index.js DELETED
@@ -1 +0,0 @@
1
- export{feature as default}from'./module.js';//# sourceMappingURL=index.js.map
package/lib/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export { CardMessageAttachmentsInterface, AlertMessageAttachmentsInterface } from './message-widgets.interface';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,gCAAgC,EAAE,MAAM,6BAA6B,CAAC"}
@@ -1,13 +0,0 @@
1
- import { CardMessageAttachmentsInterface as BaseCardMessageAttachmentsInterface } from '@messenger-box/chakra-ui-inbox';
2
- export { AlertMessageAttachmentsInterface } from '@messenger-box/chakra-ui-inbox';
3
- export interface CardMessageAttachmentsInterface extends BaseCardMessageAttachmentsInterface {
4
- property: {
5
- price: number;
6
- priceType: string;
7
- type: string;
8
- totalStar: number;
9
- maxPeople: number;
10
- totalReview: number;
11
- };
12
- }
13
- //# sourceMappingURL=message-widgets.interface.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message-widgets.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/message-widgets.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,IAAI,mCAAmC,EAAE,MAAM,gCAAgC,CAAC;AAExH,OAAO,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AAElF,MAAM,WAAW,+BAAgC,SAAQ,mCAAmC;IACxF,QAAQ,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;KACvB,CAAC;CACL"}
package/lib/module.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import { Feature } from '@common-stack/client-react';
2
- export declare const feature: Feature;
3
- //# sourceMappingURL=module.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAIrD,eAAO,MAAM,OAAO,SAWlB,CAAC"}
package/lib/module.js DELETED
@@ -1,12 +0,0 @@
1
- import {Feature}from'@common-stack/client-react';import {IPostTypeEnum}from'@messenger-box/property-ext-core';import {MessageAlertFill}from'./slot-fill/message-alert-fill.js';import {MessageCardFill}from'./slot-fill/message-card-fill.js';const feature = new Feature({
2
- componentFillPlugins: [
3
- {
4
- name: IPostTypeEnum.ALERT.toLowerCase(),
5
- render: MessageAlertFill,
6
- },
7
- {
8
- name: IPostTypeEnum.CARD.toLowerCase(),
9
- render: MessageCardFill,
10
- },
11
- ],
12
- });export{feature};//# sourceMappingURL=module.js.map
package/lib/module.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"module.js","sources":["../src/module.ts"],"sourcesContent":[null],"names":[],"mappings":"8OAIa,MAAA,OAAO,GAAG,IAAI,OAAO,CAAC;AAC/B,IAAA,oBAAoB,EAAE;AAClB,QAAA;AACI,YAAA,IAAI,EAAE,aAAa,CAAC,KAAK,CAAC,WAAW,EAAE;AACvC,YAAA,MAAM,EAAE,gBAAgB;AAC3B,SAAA;AACD,QAAA;AACI,YAAA,IAAI,EAAE,aAAa,CAAC,IAAI,CAAC,WAAW,EAAE;AACtC,YAAA,MAAM,EAAE,eAAe;AAC1B,SAAA;AACJ,KAAA;AACJ,CAAA"}
@@ -1,3 +0,0 @@
1
- export { MessageAlertFill } from './message-alert-fill';
2
- export { MessageCardFill } from './message-card-fill';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/slot-fill/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const MessageAlertFill: () => JSX.Element;
2
- //# sourceMappingURL=message-alert-fill.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message-alert-fill.d.ts","sourceRoot":"","sources":["../../src/slot-fill/message-alert-fill.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,mBAa5B,CAAA"}
@@ -1,8 +0,0 @@
1
- import React from'react';import {Fill}from'@common-stack/components-pro';import {IPostTypeEnum}from'@messenger-box/property-ext-core';import'lodash';import'html-react-parser';import'@chakra-ui/react';import'@chakra-ui/icons';import {MessageAlert}from'../components/InboxMessage/MessageWidgets/MessageAlert.js';const MessageAlertFill = () => {
2
- return (React.createElement(Fill, { name: IPostTypeEnum.ALERT.toLowerCase() }, (props) => {
3
- if (props.active) {
4
- return (React.createElement(MessageAlert, Object.assign({}, props)));
5
- }
6
- return null;
7
- }));
8
- };export{MessageAlertFill};//# sourceMappingURL=message-alert-fill.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message-alert-fill.js","sources":["../../src/slot-fill/message-alert-fill.tsx"],"sourcesContent":[null],"names":[],"mappings":"sTAMO,MAAM,gBAAgB,GAAG,MAAK;AACjC,IAAA,QACI,KAAC,CAAA,aAAA,CAAA,IAAI,EAAC,EAAA,IAAI,EAAE,aAAa,CAAC,KAAK,CAAC,WAAW,EAAE,EAAA,EAErC,CAAC,KAAwD,KAAI;QACzD,IAAI,KAAK,CAAC,MAAM,EAAE;AACd,YAAA,QAAQ,KAAC,CAAA,aAAA,CAAA,YAAY,oBAAK,KAAK,CAAA,CAAG,EAAE;AACvC,SAAA;AACD,QAAA,OAAO,IAAI,CAAC;KACf,CAEF,EACV;AACL"}
@@ -1,2 +0,0 @@
1
- export declare const MessageCardFill: () => JSX.Element;
2
- //# sourceMappingURL=message-card-fill.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message-card-fill.d.ts","sourceRoot":"","sources":["../../src/slot-fill/message-card-fill.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe,mBAa3B,CAAA"}
@@ -1,8 +0,0 @@
1
- import React from'react';import {Fill}from'@common-stack/components-pro';import {MessageCard}from'../components/InboxMessage/MessageWidgets/MessageCard.js';import'@chakra-ui/icons';import'html-react-parser';import'@chakra-ui/react';import {IPostTypeEnum}from'@messenger-box/property-ext-core';const MessageCardFill = () => {
2
- return (React.createElement(Fill, { name: IPostTypeEnum.CARD.toLowerCase() }, (props) => {
3
- if (props.active) {
4
- return (React.createElement(MessageCard, Object.assign({}, props)));
5
- }
6
- return null;
7
- }));
8
- };export{MessageCardFill};//# sourceMappingURL=message-card-fill.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message-card-fill.js","sources":["../../src/slot-fill/message-card-fill.tsx"],"sourcesContent":[null],"names":[],"mappings":"qSAMO,MAAM,eAAe,GAAG,MAAK;AAChC,IAAA,QACI,KAAC,CAAA,aAAA,CAAA,IAAI,EAAC,EAAA,IAAI,EAAE,aAAa,CAAC,IAAI,CAAC,WAAW,EAAE,EAAA,EAEpC,CAAC,KAA+C,KAAI;QAChD,IAAI,KAAK,CAAC,MAAM,EAAE;AACd,YAAA,QAAQ,KAAC,CAAA,aAAA,CAAA,WAAW,oBAAK,KAAK,CAAA,CAAG,EAAE;AACtC,SAAA;AACD,QAAA,OAAO,IAAI,CAAC;KACf,CAEF,EACV;AACL"}