@messenger-box/property-ext-browser 9.0.4-alpha.7 → 10.0.2-alpha.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/CHANGELOG.md +24 -0
- package/lib/components/InboxMessage/MessageWidgets/MessageAlert.d.ts +1 -1
- package/lib/components/InboxMessage/MessageWidgets/MessageAlert.d.ts.map +1 -1
- package/lib/components/InboxMessage/MessageWidgets/MessageAlert.js.map +1 -1
- package/lib/components/InboxMessage/MessageWidgets/MessageCard.d.ts +1 -1
- package/lib/components/InboxMessage/MessageWidgets/MessageCard.d.ts.map +1 -1
- package/lib/components/InboxMessage/MessageWidgets/MessageCard.js.map +1 -1
- package/lib/module.js +1 -1
- package/lib/module.js.map +1 -1
- package/lib/slot-fill/message-alert-fill.d.ts.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.d.ts.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 +6 -9
- package/rollup.config.mjs +26 -22
- package/src/components/InboxMessage/MessageWidgets/MessageAlert.tsx +1 -1
- package/src/components/InboxMessage/MessageWidgets/MessageCard.tsx +1 -1
- package/src/module.ts +1 -1
- package/src/slot-fill/message-alert-fill.tsx +9 -11
- package/src/slot-fill/message-card-fill.tsx +9 -11
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
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
|
+
## [10.0.2-alpha.0](https://github.com/cdmbase/messenger-box/compare/v9.0.4-alpha.23...v10.0.2-alpha.0) (2025-02-04)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @messenger-box/property-ext-browser
|
|
9
|
+
|
|
10
|
+
## [10.0.1-alpha.0](https://github.com/cdmbase/messenger-box/compare/v9.0.4-alpha.23...v10.0.1-alpha.0) (2025-02-04)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @messenger-box/property-ext-browser
|
|
13
|
+
|
|
14
|
+
## [9.0.4-alpha.22](https://github.com/CDEBase/messenger-box/compare/v9.0.4-alpha.21...v9.0.4-alpha.22) (2025-01-31)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @messenger-box/property-ext-browser
|
|
17
|
+
|
|
18
|
+
## [9.0.4-alpha.17](https://github.com/CDEBase/messenger-box/compare/v9.0.4-alpha.16...v9.0.4-alpha.17) (2024-10-17)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @messenger-box/property-ext-browser
|
|
21
|
+
|
|
22
|
+
## [9.0.4-alpha.16](https://github.com/CDEBase/messenger-box/compare/v9.0.4-alpha.15...v9.0.4-alpha.16) (2024-10-08)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @messenger-box/property-ext-browser
|
|
25
|
+
|
|
26
|
+
## [9.0.4-alpha.15](https://github.com/CDEBase/messenger-box/compare/v9.0.4-alpha.14...v9.0.4-alpha.15) (2024-09-30)
|
|
27
|
+
|
|
28
|
+
**Note:** Version bump only for package @messenger-box/property-ext-browser
|
|
29
|
+
|
|
6
30
|
## [9.0.4-alpha.7](https://github.com/CDEBase/messenger-box/compare/v9.0.4-alpha.6...v9.0.4-alpha.7) (2024-09-20)
|
|
7
31
|
|
|
8
32
|
**Note:** Version bump only for package @messenger-box/property-ext-browser
|
|
@@ -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;AAI1B,OAAO,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"MessageAlert.d.ts","sourceRoot":"","sources":["../../../../src/components/InboxMessage/MessageWidgets/MessageAlert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,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,UAAW,2BAA2B,sBA0C9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageAlert.js","sources":["../../../../src/components/InboxMessage/MessageWidgets/MessageAlert.tsx"],"sourcesContent":[null],"names":[],"mappings":"sKAaa,MAAA,YAAY,GAAG,KAAC,IAAsC;QACzD;IACN,OAAM;IAGN,KAAM;IACN
|
|
1
|
+
{"version":3,"file":"MessageAlert.js","sources":["../../../../src/components/InboxMessage/MessageWidgets/MessageAlert.tsx"],"sourcesContent":[null],"names":[],"mappings":"sKAaa,MAAA,YAAY,GAAG,KAAC,IAAsC;QACzD;IACN,OAAM;IAGN,KAAM;IACN;MACM,KAAA;QAEC;AAcC,IAAA;AACA,GAAA,GAAA,OAAA,CAAA,kBAAK,CAAC,QAAA;AAGL,EAAA,MAAA,IAAA,GAAA,KAAuB,CAAA,UAAA,CAAA,IACpB,CAAA;AAIQ,EAAA,MAAA,KAAA,GAAA,iBAA2B,CAAA,OAAA,EAAA,UAAA,CAAA;eAE/B,GAAA,4BAA8B,EAAA,OACpB,CAAA;cAEC,CAAA,aAAa,CAAA,KAAA,EAAC;;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;AAK1B,OAAO,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"MessageCard.d.ts","sourceRoot":"","sources":["../../../../src/components/InboxMessage/MessageWidgets/MessageCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,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,UAAW,kBAAkB,sBAqGpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageCard.js","sources":["../../../../src/components/InboxMessage/MessageWidgets/MessageCard.tsx"],"sourcesContent":[null],"names":[],"mappings":"mPAaa,MAAA,WAAW,GAAG,KAAC,IAA6B;AACrD,EAAA,MAAA;IACA,OAAM;IACN
|
|
1
|
+
{"version":3,"file":"MessageCard.js","sources":["../../../../src/components/InboxMessage/MessageWidgets/MessageCard.tsx"],"sourcesContent":[null],"names":[],"mappings":"mPAaa,MAAA,WAAW,GAAG,KAAC,IAA6B;AACrD,EAAA,MAAA;IACA,OAAM;IACN;AAIA,GAAA,GAAA,KAAQ;AACR,EAAA,MAAA,KACI,GAAA,iBAAI,CAAA,YACQ,OAAA,CAAA;AACJ,EAAA,MAAA;;AASJ,GAAA,GAAA,OAAA,CAAA,oBAAO,QAAK;AACZ,EAAA,MAAA;AACI,IAAA;AACI,GAAA,GAAA,UAAA;cAIK,CAAA,aACL,CAAA,GAAA,EAAA;AACK,IAAA,MAAA,EAAA;;AAOD,KAAA;AACC,IAAA,MAAA,EAAA,CAAA;AASQ,IAAA,IAAA,EAAA,IAAA;AACC,IAAA,WAAA,EAAA,KAAA;gBAIjB,EAAA,IAAA;YAOA,EAAQ,QAAA;iBAEQ,CAAA;AAEA,GAAA,EAAA,KAAA,CAAA,aAAA,CAAA,KAAc,EAAA;AACf,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;AAMzB,IAAA,KAAA,EAAA,KAAA;AAIW,IAAA,QAAA,EAAA,MAAA;AACH,IAAA,UAAA,EAAA,UACO;AACJ,IAAA,EAAA,EAAA;AACH,GAAA,EAAA,UAAA,CAAA,WACS,GAAA,KAAA,CAAA,UAAA,CAAA,KAAA,CAAA,GAAA,UAAA,CAAA,KAAA,CAAA,CAAA,EAAA,QAAA,IAAA,KAAA,CAAA,aAAA,CAAA,GAAA,EAAA;;;mBAEuB,IAAA,KAAA,CAAA,aAAA,CAAA,GAAA,EAAA,IAAgB,EAAC,KAAG,CAAA,aAKxE,CAAC,KAAA,EAAA;AACN,IAAE,YAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/module.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {Feature}from'@common-stack/client-react';import {IPostTypeEnum}from'
|
|
1
|
+
import {Feature}from'@common-stack/client-react';import {IPostTypeEnum}from'common';import {MessageAlertFill}from'./slot-fill/message-alert-fill.js';import {MessageCardFill}from'./slot-fill/message-card-fill.js';const feature = new Feature({
|
|
2
2
|
componentFillPlugins: [{
|
|
3
3
|
name: IPostTypeEnum.Alert.toLowerCase(),
|
|
4
4
|
render: MessageAlertFill
|
package/lib/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sources":["../src/module.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"module.js","sources":["../src/module.ts"],"sourcesContent":[null],"names":[],"mappings":"oNAIa,MAAA,OAAO,GAAG,IAAI,OAAO,CAAC;AAC/B,EAAA,oBAAA,EAAoB,CAAE;AAClB,IAAA,IAAA,EAAA,aAAA,CAAA,KAAA,CAAA,WAAA,EAAA;AACI,IAAA,MAAA,EAAA;AACA,GAAA,EAAA;AACH,IAAA,IAAA,EAAA,aAAA,CAAA,IAAA,CAAA,WAAA,EAAA;AACD,IAAA,MAAA,EAAA;AACI,GAAA;AACA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-alert-fill.d.ts","sourceRoot":"","sources":["../../src/slot-fill/message-alert-fill.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"message-alert-fill.d.ts","sourceRoot":"","sources":["../../src/slot-fill/message-alert-fill.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,eAAO,MAAM,gBAAgB,yBAW5B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from'react';import {Fill}from'@common-stack/components-pro';import {IPostTypeEnum}from'
|
|
1
|
+
import React from'react';import {Fill}from'@common-stack/components-pro';import {IPostTypeEnum}from'common';import'lodash-es';import'html-react-parser';import'@chakra-ui/react';import'@chakra-ui/icons';import {MessageAlert}from'../components/InboxMessage/MessageWidgets/MessageAlert.js';const MessageAlertFill = () => {
|
|
2
2
|
return React.createElement(Fill, {
|
|
3
3
|
name: IPostTypeEnum.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":"+RAMO,MAAM,gBAAgB,GAAG,MAAK;AACjC,EAAA,OAAA,KACK,CAAA,aAAA,CAAA,IAAA,EAAA;AAEO,IAAA,IAAA,EAAA,aAAgB,CAAA,KAAG,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-card-fill.d.ts","sourceRoot":"","sources":["../../src/slot-fill/message-card-fill.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"message-card-fill.d.ts","sourceRoot":"","sources":["../../src/slot-fill/message-card-fill.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,eAAO,MAAM,eAAe,yBAW3B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
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';
|
|
1
|
+
import React from'react';import {Fill}from'@common-stack/components-pro';import {IPostTypeEnum}from'common';import {MessageCard}from'../components/InboxMessage/MessageWidgets/MessageCard.js';import'@chakra-ui/icons';import'html-react-parser';import'@chakra-ui/react';const MessageCardFill = () => {
|
|
2
2
|
return React.createElement(Fill, {
|
|
3
3
|
name: IPostTypeEnum.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":"2QAMO,MAAM,eAAe,GAAG,MAAK;AAChC,EAAA,OAAA,KACK,CAAA,aAAA,CAAA,IAAA,EAAA;AAEO,IAAA,IAAA,EAAA,aAAgB,CAAA,IAAG,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": "
|
|
3
|
+
"version": "10.0.2-alpha.0",
|
|
4
4
|
"description": "Extention to Messenger to support property on browser",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -21,17 +21,14 @@
|
|
|
21
21
|
"watch": "npm run build:lib:watch"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@
|
|
25
|
-
"@
|
|
26
|
-
"@messenger-box/
|
|
27
|
-
"@messenger-box/core": "9.0.4-alpha.7",
|
|
28
|
-
"@messenger-box/property-ext-core": "9.0.4-alpha.7",
|
|
24
|
+
"@messenger-box/chakra-ui-inbox": "10.0.2-alpha.0",
|
|
25
|
+
"@messenger-box/core": "10.0.2-alpha.0",
|
|
26
|
+
"@messenger-box/property-ext-core": "9.0.4-alpha.22",
|
|
29
27
|
"date-fns": "^2.28.0",
|
|
30
28
|
"date-fns-tz": "^1.3.3",
|
|
31
29
|
"emoji-mart": "^3.0.1",
|
|
32
30
|
"html-react-parser": "^3.0.1",
|
|
33
|
-
"javascript-time-ago": "^2.3.13"
|
|
34
|
-
"react-icons": "~4.3.1"
|
|
31
|
+
"javascript-time-ago": "^2.3.13"
|
|
35
32
|
},
|
|
36
33
|
"peerDependencies": {
|
|
37
34
|
"@adminide-stack/chakra-design-pro": "*",
|
|
@@ -58,5 +55,5 @@
|
|
|
58
55
|
"typescript": {
|
|
59
56
|
"definition": "lib/index.d.ts"
|
|
60
57
|
},
|
|
61
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "40aed609fa47796ae4496413978f4bb53b6b458d"
|
|
62
59
|
}
|
package/rollup.config.mjs
CHANGED
|
@@ -2,27 +2,31 @@ import { createRollupConfig } from '../../../rollup.config.base.mjs';
|
|
|
2
2
|
|
|
3
3
|
const additionalPlugins = [];
|
|
4
4
|
// Use the createRollupConfig function to merge the base and specific configurations
|
|
5
|
-
export default
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
],
|
|
10
|
-
plugins: [
|
|
11
|
-
// Spread in additional plugins specific to this config
|
|
12
|
-
...additionalPlugins,
|
|
13
|
-
],
|
|
14
|
-
output: [
|
|
5
|
+
export default (commandLineArgs) => {
|
|
6
|
+
const isWatchMode = commandLineArgs.watch;
|
|
7
|
+
return [
|
|
8
|
+
createRollupConfig(
|
|
15
9
|
{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
10
|
+
input: ['src/index.ts'],
|
|
11
|
+
plugins: [
|
|
12
|
+
// Spread in additional plugins specific to this config
|
|
13
|
+
...additionalPlugins,
|
|
14
|
+
],
|
|
15
|
+
output: [
|
|
16
|
+
{
|
|
17
|
+
dir: 'lib',
|
|
18
|
+
format: 'es',
|
|
19
|
+
name: 'property-ext-browser',
|
|
20
|
+
compact: true,
|
|
21
|
+
exports: 'named',
|
|
22
|
+
sourcemap: true,
|
|
23
|
+
preserveModules: true,
|
|
24
|
+
chunkFileNames: '[name]-[hash].[format].js',
|
|
25
|
+
globals: { react: 'React' },
|
|
26
|
+
},
|
|
27
|
+
],
|
|
25
28
|
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
];
|
|
29
|
+
isWatchMode,
|
|
30
|
+
),
|
|
31
|
+
];
|
|
32
|
+
};
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import * as Icons from '@chakra-ui/icons';
|
|
3
3
|
import parse from 'html-react-parser';
|
|
4
4
|
import { Link, Stack, Text, useColorModeValue } from '@chakra-ui/react';
|
|
5
|
-
import { IPost } from '
|
|
5
|
+
import { IPost } from 'common';
|
|
6
6
|
import { AlertMessageAttachmentsInterface } from '../../../interfaces';
|
|
7
7
|
|
|
8
8
|
export interface IPropertyMessageWidgetProps {
|
|
@@ -3,7 +3,7 @@ import { startCase } from 'lodash-es';
|
|
|
3
3
|
import parse from 'html-react-parser';
|
|
4
4
|
import { Badge, Box, Heading, Image, Link, Spacer, Text, useColorModeValue } from '@chakra-ui/react';
|
|
5
5
|
import { ExternalLinkIcon, StarIcon } from '@chakra-ui/icons';
|
|
6
|
-
import { IPost } from '
|
|
6
|
+
import { IPost } from 'common';
|
|
7
7
|
import { CardMessageAttachmentsInterface } from '../../../interfaces';
|
|
8
8
|
|
|
9
9
|
export interface IPropertyCardProps {
|
package/src/module.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Feature } from '@common-stack/client-react';
|
|
2
|
-
import { IPostTypeEnum } from '
|
|
2
|
+
import { IPostTypeEnum } from 'common';
|
|
3
3
|
import { MessageAlertFill, MessageCardFill } from './slot-fill';
|
|
4
4
|
|
|
5
5
|
export const feature = new Feature({
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import React from 'react'
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { Fill } from '@common-stack/components-pro';
|
|
3
|
-
import { IPostTypeEnum } from '
|
|
3
|
+
import { IPostTypeEnum } from 'common';
|
|
4
4
|
import { MessageAlert } from '../components';
|
|
5
5
|
import { IPropertyMessageWidgetProps } from '../components/InboxMessage/MessageWidgets/MessageAlert';
|
|
6
6
|
|
|
7
7
|
export const MessageAlertFill = () => {
|
|
8
8
|
return (
|
|
9
9
|
<Fill name={IPostTypeEnum.Alert.toLowerCase()}>
|
|
10
|
-
{
|
|
11
|
-
(props
|
|
12
|
-
|
|
13
|
-
return (<MessageAlert {...props}/>);
|
|
14
|
-
}
|
|
15
|
-
return null;
|
|
10
|
+
{(props: IPropertyMessageWidgetProps & { active: boolean }) => {
|
|
11
|
+
if (props.active) {
|
|
12
|
+
return <MessageAlert {...props} />;
|
|
16
13
|
}
|
|
17
|
-
|
|
14
|
+
return null;
|
|
15
|
+
}}
|
|
18
16
|
</Fill>
|
|
19
|
-
)
|
|
20
|
-
}
|
|
17
|
+
);
|
|
18
|
+
};
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import React from 'react'
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { Fill } from '@common-stack/components-pro';
|
|
3
|
+
import { IPostTypeEnum } from 'common';
|
|
3
4
|
import { MessageCard } from '../components';
|
|
4
5
|
import { IPropertyCardProps } from '../components/InboxMessage/MessageWidgets/MessageCard';
|
|
5
|
-
import { IPostTypeEnum } from '@messenger-box/property-ext-core';
|
|
6
6
|
|
|
7
7
|
export const MessageCardFill = () => {
|
|
8
8
|
return (
|
|
9
9
|
<Fill name={IPostTypeEnum.Card.toLowerCase()}>
|
|
10
|
-
{
|
|
11
|
-
(props
|
|
12
|
-
|
|
13
|
-
return (<MessageCard {...props}/>);
|
|
14
|
-
}
|
|
15
|
-
return null;
|
|
10
|
+
{(props: IPropertyCardProps & { active: boolean }) => {
|
|
11
|
+
if (props.active) {
|
|
12
|
+
return <MessageCard {...props} />;
|
|
16
13
|
}
|
|
17
|
-
|
|
14
|
+
return null;
|
|
15
|
+
}}
|
|
18
16
|
</Fill>
|
|
19
|
-
)
|
|
20
|
-
}
|
|
17
|
+
);
|
|
18
|
+
};
|