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

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 (38) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/lib/components/InboxMessage/MessageWidgets/MessageAlert.d.ts +7 -0
  3. package/lib/components/InboxMessage/MessageWidgets/MessageAlert.d.ts.map +1 -0
  4. package/lib/components/InboxMessage/MessageWidgets/MessageAlert.js +16 -0
  5. package/lib/components/InboxMessage/MessageWidgets/MessageAlert.js.map +1 -0
  6. package/lib/components/InboxMessage/MessageWidgets/MessageCard.d.ts +7 -0
  7. package/lib/components/InboxMessage/MessageWidgets/MessageCard.d.ts.map +1 -0
  8. package/lib/components/InboxMessage/MessageWidgets/MessageCard.js +44 -0
  9. package/lib/components/InboxMessage/MessageWidgets/MessageCard.js.map +1 -0
  10. package/lib/components/InboxMessage/MessageWidgets/index.d.ts +3 -0
  11. package/lib/components/InboxMessage/MessageWidgets/index.d.ts.map +1 -0
  12. package/lib/components/InboxMessage/index.d.ts +2 -0
  13. package/lib/components/InboxMessage/index.d.ts.map +1 -0
  14. package/lib/components/index.d.ts +2 -0
  15. package/lib/components/index.d.ts.map +1 -0
  16. package/lib/index.d.ts +2 -0
  17. package/lib/index.d.ts.map +1 -0
  18. package/lib/index.js +1 -0
  19. package/lib/index.js.map +1 -0
  20. package/lib/interfaces/index.d.ts +2 -0
  21. package/lib/interfaces/index.d.ts.map +1 -0
  22. package/lib/interfaces/message-widgets.interface.d.ts +13 -0
  23. package/lib/interfaces/message-widgets.interface.d.ts.map +1 -0
  24. package/lib/module.d.ts +3 -0
  25. package/lib/module.d.ts.map +1 -0
  26. package/lib/module.js +12 -0
  27. package/lib/module.js.map +1 -0
  28. package/lib/slot-fill/index.d.ts +3 -0
  29. package/lib/slot-fill/index.d.ts.map +1 -0
  30. package/lib/slot-fill/message-alert-fill.d.ts +2 -0
  31. package/lib/slot-fill/message-alert-fill.d.ts.map +1 -0
  32. package/lib/slot-fill/message-alert-fill.js +8 -0
  33. package/lib/slot-fill/message-alert-fill.js.map +1 -0
  34. package/lib/slot-fill/message-card-fill.d.ts +2 -0
  35. package/lib/slot-fill/message-card-fill.d.ts.map +1 -0
  36. package/lib/slot-fill/message-card-fill.js +8 -0
  37. package/lib/slot-fill/message-card-fill.js.map +1 -0
  38. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
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.255](https://github.com/CDEBase/messenger-box/compare/v0.0.1-alpha.254...v0.0.1-alpha.255) (2023-02-17)
7
+
8
+ **Note:** Version bump only for package @messenger-box/property-ext-browser
9
+
6
10
  ## [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
11
 
8
12
  **Note:** Version bump only for package @messenger-box/property-ext-browser
@@ -0,0 +1,7 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,16 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,7 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,44 @@
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
@@ -0,0 +1 @@
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,E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C,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"}
@@ -0,0 +1,3 @@
1
+ export { MessageCard } from './MessageCard';
2
+ export { MessageAlert } from './MessageAlert';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ export { MessageAlert, MessageCard } from './MessageWidgets';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ export { MessageCard, MessageAlert } from './InboxMessage';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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 ADDED
@@ -0,0 +1,2 @@
1
+ export { feature as default } from './module';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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 ADDED
@@ -0,0 +1 @@
1
+ export{feature as default}from'./module.js';//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export { CardMessageAttachmentsInterface, AlertMessageAttachmentsInterface } from './message-widgets.interface';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,13 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,3 @@
1
+ import { Feature } from '@common-stack/client-react';
2
+ export declare const feature: Feature;
3
+ //# sourceMappingURL=module.d.ts.map
@@ -0,0 +1 @@
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 ADDED
@@ -0,0 +1,12 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,3 @@
1
+ export { MessageAlertFill } from './message-alert-fill';
2
+ export { MessageCardFill } from './message-card-fill';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ export declare const MessageAlertFill: () => JSX.Element;
2
+ //# sourceMappingURL=message-alert-fill.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,8 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ export declare const MessageCardFill: () => JSX.Element;
2
+ //# sourceMappingURL=message-card-fill.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,8 @@
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
@@ -0,0 +1 @@
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@messenger-box/property-ext-browser",
3
- "version": "0.0.1-alpha.247",
3
+ "version": "0.0.1-alpha.255",
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.247",
45
- "@messenger-box/core": "0.0.1-alpha.245",
46
- "@messenger-box/property-ext-core": "0.0.1-alpha.245",
44
+ "@messenger-box/chakra-ui-inbox": "0.0.1-alpha.255",
45
+ "@messenger-box/core": "0.0.1-alpha.255",
46
+ "@messenger-box/property-ext-core": "0.0.1-alpha.255",
47
47
  "date-fns": "^2.28.0",
48
48
  "date-fns-tz": "^1.3.3",
49
49
  "emoji-mart": "^3.0.1",
@@ -76,5 +76,5 @@
76
76
  "typescript": {
77
77
  "definition": "lib/index.d.ts"
78
78
  },
79
- "gitHead": "df2e6202d25c2c9cadd735495e9234f0ab33cba5"
79
+ "gitHead": "92fbe498ee59aa19c939079fe1302a31d47dba81"
80
80
  }