@messenger-box/property-ext-browser 10.0.3-alpha.180 → 10.0.3-alpha.181
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/lib/components/InboxMessage/MessageWidgets/MessageAlert.d.ts.map +1 -1
- package/lib/components/InboxMessage/MessageWidgets/MessageAlert.js +35 -11
- package/lib/components/InboxMessage/MessageWidgets/MessageAlert.js.map +1 -1
- package/lib/components/InboxMessage/MessageWidgets/MessageCard.d.ts.map +1 -1
- package/lib/components/InboxMessage/MessageWidgets/MessageCard.js +81 -40
- package/lib/components/InboxMessage/MessageWidgets/MessageCard.js.map +1 -1
- package/lib/slot-fill/message-alert-fill.js +1 -1
- package/lib/slot-fill/message-alert-fill.js.map +1 -1
- package/lib/slot-fill/message-card-fill.js +1 -1
- package/lib/slot-fill/message-card-fill.js.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageAlert.d.ts","sourceRoot":"","sources":["../../../../src/components/InboxMessage/MessageWidgets/MessageAlert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageAlert.d.ts","sourceRoot":"","sources":["../../../../src/components/InboxMessage/MessageWidgets/MessageAlert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAG/B,MAAM,WAAW,2BAA2B;IACxC,OAAO,EAAE,KAAK,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAC;CACxC;AAED,eAAO,MAAM,YAAY,GAAI,OAAO,2BAA2B,sBAyC9D,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from'react';import {FiAlertCircle}from'@react-icons/all-files/fi/FiAlertCircle.js';import {FiExternalLink}from'@react-icons/all-files/fi/FiExternalLink.js';import parse from'html-react-parser';const MessageAlert = props => {
|
|
1
|
+
import React from'react';import {FiAlertCircle}from'@react-icons/all-files/fi/FiAlertCircle.js';import {FiExternalLink}from'@react-icons/all-files/fi/FiExternalLink.js';import parse from'html-react-parser';import {useColorModeValue,Stack,Text,Link}from'@chakra-ui/react';const MessageAlert = props => {
|
|
2
2
|
const {
|
|
3
3
|
message,
|
|
4
4
|
index,
|
|
@@ -7,20 +7,44 @@ import React from'react';import {FiAlertCircle}from'@react-icons/all-files/fi/Fi
|
|
|
7
7
|
const {
|
|
8
8
|
attachment
|
|
9
9
|
} = message.propsConfiguration.contents;
|
|
10
|
-
|
|
10
|
+
const color = useColorModeValue('white', 'gray.800');
|
|
11
|
+
const bgColor = useColorModeValue('gray.800', 'white');
|
|
12
|
+
return React.createElement(Stack, {
|
|
11
13
|
key: `${index}`,
|
|
12
|
-
|
|
14
|
+
mt: "4",
|
|
15
|
+
mb: "10",
|
|
16
|
+
bgColor: bgColor,
|
|
17
|
+
padding: 3,
|
|
18
|
+
margin: 2,
|
|
19
|
+
opacity: 0.7,
|
|
20
|
+
borderRadius: 20,
|
|
21
|
+
direction: ['column', 'row'],
|
|
22
|
+
cursor: 'pointer',
|
|
13
23
|
onClick: () => onMessageClick(message)
|
|
14
24
|
}, React.createElement(FiAlertCircle, {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
25
|
+
style: {
|
|
26
|
+
color,
|
|
27
|
+
width: '24px',
|
|
28
|
+
height: '24px'
|
|
29
|
+
}
|
|
30
|
+
}), React.createElement(Text, {
|
|
31
|
+
fontSize: "14px",
|
|
32
|
+
mt: "5px",
|
|
33
|
+
mb: "5px",
|
|
34
|
+
whiteSpace: 'pre-line',
|
|
35
|
+
color: color
|
|
36
|
+
}, attachment.isTitleHtml ? parse(attachment.title) : attachment?.title), attachment.callToAction && React.createElement(Link, {
|
|
37
|
+
color: color,
|
|
38
|
+
mr: "2",
|
|
39
|
+
style: {
|
|
40
|
+
textDecoration: 'underline'
|
|
41
|
+
},
|
|
20
42
|
href: attachment.callToAction.link,
|
|
21
|
-
|
|
22
|
-
rel: "noopener noreferrer"
|
|
43
|
+
isExternal: true
|
|
23
44
|
}, attachment.callToAction.title, " ", React.createElement(FiExternalLink, {
|
|
24
|
-
|
|
45
|
+
style: {
|
|
46
|
+
display: 'inline',
|
|
47
|
+
marginLeft: '2px'
|
|
48
|
+
}
|
|
25
49
|
})));
|
|
26
50
|
};export{MessageAlert};//# sourceMappingURL=MessageAlert.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageAlert.js","sources":["../../../../src/components/InboxMessage/MessageWidgets/MessageAlert.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MessageAlert.js","sources":["../../../../src/components/InboxMessage/MessageWidgets/MessageAlert.tsx"],"sourcesContent":[null],"names":[],"mappings":"+QAcO,MAAM,YAAY,GAAG,KAAC,IAAoC;QAC7D;IACA,OAAM;IAGN,KAAA;IACA;MAEA,KAAO;AAcC,EAAA,MAAA;AACA,IAAA;AAGC,GAAA,GAAA,OAAA,CAAA,kBAAuB,CAAA,QACpB;AAIQ,EAAA,MAAA,KAAA,GAAA,iBAAgB,CAAA,OAAA,EAAW,UAAA,CAAA;eAE/B,GAAA,4BAA8B,EAAA,OAC9B,CAAA;cAEC,CAAA,aAAW,CAAA,KAAA,EAAa;;AAAO,IAAA,EAAA,EAAA,GAAA;AAKpD,IAAE,EAAA,EAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageCard.d.ts","sourceRoot":"","sources":["../../../../src/components/InboxMessage/MessageWidgets/MessageCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageCard.d.ts","sourceRoot":"","sources":["../../../../src/components/InboxMessage/MessageWidgets/MessageCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAG/B,MAAM,WAAW,kBAAkB;IAC/B,OAAO,EAAE,KAAK,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,WAAW,GAAI,OAAO,kBAAkB,sBA6GpD,CAAC"}
|
|
@@ -1,58 +1,99 @@
|
|
|
1
|
-
import React from'react';import {startCase}from'lodash-es';import parse from'html-react-parser';import {FiExternalLink}from'@react-icons/all-files/fi/FiExternalLink.js';import {FiStar}from'@react-icons/all-files/fi/FiStar.js';const MessageCard = props => {
|
|
1
|
+
import React from'react';import {startCase}from'lodash-es';import parse from'html-react-parser';import {useColorModeValue,Box,Image,Heading,Badge,Spacer,Text,Link}from'@chakra-ui/react';import {FiExternalLink}from'@react-icons/all-files/fi/FiExternalLink.js';import {FiStar}from'@react-icons/all-files/fi/FiStar.js';const MessageCard = props => {
|
|
2
2
|
const {
|
|
3
3
|
message,
|
|
4
4
|
index
|
|
5
5
|
} = props;
|
|
6
|
+
const color = useColorModeValue('gray.800', 'white');
|
|
6
7
|
const {
|
|
7
8
|
attachment
|
|
8
9
|
} = message.propsConfiguration?.contents;
|
|
9
10
|
const {
|
|
10
11
|
property
|
|
11
12
|
} = attachment;
|
|
12
|
-
return React.createElement(
|
|
13
|
-
|
|
13
|
+
return React.createElement(Box, {
|
|
14
|
+
_hover: {
|
|
15
|
+
cursor: 'pointer'
|
|
16
|
+
},
|
|
17
|
+
margin: 5,
|
|
18
|
+
maxW: "xs",
|
|
19
|
+
borderWidth: "1px",
|
|
20
|
+
borderRadius: "lg",
|
|
21
|
+
overflow: "hidden",
|
|
14
22
|
key: `${index}`
|
|
15
|
-
}, React.createElement(
|
|
16
|
-
|
|
23
|
+
}, React.createElement(Image, {
|
|
24
|
+
width: "100%",
|
|
17
25
|
src: attachment.image,
|
|
18
26
|
alt: attachment.title
|
|
19
|
-
}), React.createElement(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}, React.createElement(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}, property.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
27
|
+
}), React.createElement(Box, {
|
|
28
|
+
marginTop: 4,
|
|
29
|
+
margin: 2,
|
|
30
|
+
m: "3"
|
|
31
|
+
}, React.createElement(Box, {
|
|
32
|
+
mt: "3",
|
|
33
|
+
lineHeight: "tight",
|
|
34
|
+
noOfLines: 1
|
|
35
|
+
}, React.createElement(Heading, {
|
|
36
|
+
color: color,
|
|
37
|
+
fontSize: "14px",
|
|
38
|
+
fontWeight: "semibold",
|
|
39
|
+
as: "h3"
|
|
40
|
+
}, attachment.isTitleHtml ? parse(attachment.title) : attachment.title)), property && React.createElement(Box, {
|
|
41
|
+
mt: "3",
|
|
42
|
+
display: "flex"
|
|
43
|
+
}, property?.type && React.createElement(Box, null, React.createElement(Badge, {
|
|
44
|
+
borderRadius: "full",
|
|
45
|
+
px: "2",
|
|
46
|
+
colorScheme: "teal"
|
|
47
|
+
}, startCase(property.type))), React.createElement(Spacer, null), property?.maxPeople && React.createElement(Box, {
|
|
48
|
+
color: "gray.500",
|
|
49
|
+
fontWeight: "semibold",
|
|
50
|
+
letterSpacing: "wide",
|
|
51
|
+
fontSize: "xs",
|
|
52
|
+
textTransform: "uppercase",
|
|
53
|
+
ml: "2"
|
|
54
|
+
}, property.maxPeople, " Max People")), React.createElement(Box, {
|
|
55
|
+
display: "flex",
|
|
56
|
+
mt: "4",
|
|
57
|
+
mb: "3",
|
|
58
|
+
alignItems: "center"
|
|
59
|
+
}, attachment.isDescriptionHtml ? parse(attachment.description) : React.createElement(Text, null, attachment.description)), property && React.createElement(Box, {
|
|
60
|
+
display: "flex",
|
|
61
|
+
mb: "4"
|
|
62
|
+
}, property?.price && React.createElement(Box, {
|
|
63
|
+
mt: 2
|
|
64
|
+
}, property.price, React.createElement(Box, {
|
|
65
|
+
as: "span",
|
|
66
|
+
color: "gray.600",
|
|
67
|
+
fontSize: "sm"
|
|
68
|
+
}, "\u00A0/ ", startCase(property.priceType))), React.createElement(Spacer, null), React.createElement(Box, {
|
|
69
|
+
mt: "2",
|
|
70
|
+
alignItems: "center"
|
|
71
|
+
}, property?.totalReview && React.createElement(Box, {
|
|
72
|
+
as: "span",
|
|
73
|
+
ml: "2",
|
|
74
|
+
color: "gray.600",
|
|
75
|
+
fontSize: "sm",
|
|
76
|
+
mr: "2"
|
|
47
77
|
}, property.totalReview, " reviews"), property?.totalStar && Array(5).fill('').map((_, i) => React.createElement(FiStar, {
|
|
48
78
|
key: i,
|
|
49
|
-
|
|
50
|
-
|
|
79
|
+
style: {
|
|
80
|
+
display: 'inline',
|
|
81
|
+
color: i < property.totalStar ? 'teal' : 'gray',
|
|
82
|
+
marginLeft: '1px'
|
|
83
|
+
}
|
|
84
|
+
})))), attachment.callToAction && React.createElement(Link, {
|
|
51
85
|
href: attachment.callToAction.link,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
86
|
+
style: {
|
|
87
|
+
cursor: 'pointer'
|
|
88
|
+
},
|
|
89
|
+
_hover: {
|
|
90
|
+
cursor: 'pointer'
|
|
91
|
+
},
|
|
92
|
+
isExternal: true
|
|
93
|
+
}, attachment.callToAction.title, ' ', React.createElement(FiExternalLink, {
|
|
94
|
+
style: {
|
|
95
|
+
display: 'inline',
|
|
96
|
+
marginLeft: '2px'
|
|
97
|
+
}
|
|
57
98
|
}))));
|
|
58
99
|
};export{MessageCard};//# sourceMappingURL=MessageCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageCard.js","sources":["../../../../src/components/InboxMessage/MessageWidgets/MessageCard.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MessageCard.js","sources":["../../../../src/components/InboxMessage/MessageWidgets/MessageCard.tsx"],"sourcesContent":[null],"names":[],"mappings":"4TAcO,MAAM,WAAW,GAAG,KAAC,IAA2B;AACnD,EAAA,MAAA;IACA,OAAM;IACN;AAIA,GAAA,GAAA,KAAM;AACN,EAAA,MAAA,KACI,GAAA,iBAAC,CAAA,YACS,OAAE,CAAA;AACJ,EAAA,MAAA;;AASJ,GAAA,GAAA,OAAA,CAAA,oBAAM,QAAM;AACZ,EAAA,MAAA;AACI,IAAA;AACI,GAAA,GAAA,UAAA;cAIH,CAAA,aACG,CAAA,GAAA,EAAA;AACK,IAAA,MAAA,EAAA;;AAOD,KAAA;AACC,IAAA,MAAA,EAAA,CAAA;AASQ,IAAA,IAAA,EAAA,IAAA;AACC,IAAA,WAAA,EAAA,KAAA;gBAIlB,EAAA,IAAA;YAOC,EAAA,QAAQ;iBAEA,CAAA;AAEQ,GAAA,EAAA,KAAA,CAAA,aAAA,CAAA,KAAS,EAAA;AACV,IAAA,KAAA,EAAA,MAAA;;AACa,IAAA,GAAA,EAAA,UAAA,CAAA;AAIrB,GAAA,CAAA,EAAA,KAAA,CAAA,aAAA,CAAA,GAAA,EAAA;gBACA;;AAGa,IAAA,CAAA,EAAA;;AAGR,IAAA,EAAA,EAAA,GAAA;;;AAGQ,GAAA,EAAA,KAAA,CAAA,aAAA,CAAA,OAAG,EAAE;AAIM,IAAA,KAAA,EAAA,KAAA;AACA,IAAA,QAAA,EAAA,MAAA;AACA,IAAA,UAAA,EAAA,UAAA;AACH,IAAA,EAAA,EAAA;AAM5B,GAAA,EAAA,UAAA,CAAA,WAAW,GAAA,KAAY,CAAA,UACpB,CAAA,KAAA,CAAA,GAAA,UAAK,CAAA,KACG,CAAA,CAAE,EAAA,QAAU,IAAC,KAAA,CAAA,iBACV,EAAA;AACH,IAAA,EAAA,EAAA,GAAA;AACH,IAAA,OAAA,EAAA;AAEG,GAAA,EAAA,QAAA,EAAA,IAAA,IAAA,KAAQ,CAAA,aAAS,CAAA,GAAA,EAAA,IAAA,EAAA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AACpB,IAAA,YAAA,EAAA,MACD;;iBAEgC;AAChC,GAAA,EAAA,SAAA,CAAA,QAAA,CAAA,IAAA,CAAA,CAAA,CAAA,EAAA,mBAAe,CAAA,MAAM,EAAE,IAAE,CAAA,EAAA,QAAS,EAAA,kBAAsB,CAAA,aAK1E,CAAA,GAAA,EAAA;AACN,IAAE,KAAA,EAAA,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from'react';import {Fill}from'@common-stack/components-pro';import {PostTypeEnum}from'common';import'lodash-es';import'html-react-parser';import'@react-icons/all-files/fi/FiExternalLink.js';import'@react-icons/all-files/fi/FiStar.js';import {MessageAlert}from'../components/InboxMessage/MessageWidgets/MessageAlert.js';const MessageAlertFill = () => {
|
|
1
|
+
import React from'react';import {Fill}from'@common-stack/components-pro';import {PostTypeEnum}from'common';import'lodash-es';import'html-react-parser';import'@chakra-ui/react';import'@react-icons/all-files/fi/FiExternalLink.js';import'@react-icons/all-files/fi/FiStar.js';import {MessageAlert}from'../components/InboxMessage/MessageWidgets/MessageAlert.js';const MessageAlertFill = () => {
|
|
2
2
|
return React.createElement(Fill, {
|
|
3
3
|
name: PostTypeEnum.Alert.toLowerCase()
|
|
4
4
|
}, props => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-alert-fill.js","sources":["../../src/slot-fill/message-alert-fill.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"message-alert-fill.js","sources":["../../src/slot-fill/message-alert-fill.tsx"],"sourcesContent":[null],"names":[],"mappings":"qWAMO,MAAM,gBAAgB,GAAG,MAAK;AACjC,EAAA,OAAA,KACI,CAAA,aAAA,CAAA,IAAC,EAAA;AAEO,IAAA,IAAA,EAAA,YAAU,CAAA,KAAS,CAAA,WAAA;AACf,GAAA,EAAA,KAAA,IAAA;QACJ,KAAC,CAAA,MAAA,EAAA;AACD,MAAA,OAAA,MAAW,aAAC,CAAA,YAAA,EAAA;QAGtB,GAAA;AACN,OAAE,CAAA;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from'react';import {Fill}from'@common-stack/components-pro';import {PostTypeEnum}from'common';import {MessageCard}from'../components/InboxMessage/MessageWidgets/MessageCard.js';import'@react-icons/all-files/fi/FiAlertCircle.js';import'@react-icons/all-files/fi/FiExternalLink.js';import'html-react-parser';const MessageCardFill = () => {
|
|
1
|
+
import React from'react';import {Fill}from'@common-stack/components-pro';import {PostTypeEnum}from'common';import {MessageCard}from'../components/InboxMessage/MessageWidgets/MessageCard.js';import'@react-icons/all-files/fi/FiAlertCircle.js';import'@react-icons/all-files/fi/FiExternalLink.js';import'html-react-parser';import'@chakra-ui/react';const MessageCardFill = () => {
|
|
2
2
|
return React.createElement(Fill, {
|
|
3
3
|
name: PostTypeEnum.Card.toLowerCase()
|
|
4
4
|
}, props => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-card-fill.js","sources":["../../src/slot-fill/message-card-fill.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"message-card-fill.js","sources":["../../src/slot-fill/message-card-fill.tsx"],"sourcesContent":[null],"names":[],"mappings":"wVAMO,MAAM,eAAe,GAAG,MAAK;AAChC,EAAA,OAAA,KACI,CAAA,aAAA,CAAA,IAAC,EAAA;AAEO,IAAA,IAAA,EAAA,YAAU,CAAA,IAAS,CAAA,WAAA;AACf,GAAA,EAAA,KAAA,IAAA;QACJ,KAAC,CAAA,MAAA,EAAA;AACD,MAAA,OAAA,MAAW,aAAC,CAAA,WAAA,EAAA;QAGtB,GAAA;AACN,OAAE,CAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@messenger-box/property-ext-browser",
|
|
3
|
-
"version": "10.0.3-alpha.
|
|
3
|
+
"version": "10.0.3-alpha.181",
|
|
4
4
|
"description": "Extention to Messenger to support property on browser",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@messenger-box/core": "10.0.3-alpha.180",
|
|
25
25
|
"@messenger-box/property-ext-core": "link:../core",
|
|
26
|
-
"@messenger-box/tailwind-ui-inbox": "10.0.3-alpha.
|
|
26
|
+
"@messenger-box/tailwind-ui-inbox": "10.0.3-alpha.181",
|
|
27
27
|
"date-fns": "^4.1.0",
|
|
28
28
|
"date-fns-tz": "^3.2.0",
|
|
29
29
|
"emoji-mart": "^3.0.1",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"typescript": {
|
|
54
54
|
"definition": "lib/index.d.ts"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "a9906636a7a82a42904fa44deb47e62d5c3681a6"
|
|
57
57
|
}
|