@messenger-box/property-ext-browser 9.0.4-alpha.22 → 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 +8 -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/MessageCard.d.ts +1 -1
- package/lib/components/InboxMessage/MessageWidgets/MessageCard.d.ts.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 +4 -4
- 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,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
|
+
## [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
|
+
|
|
6
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)
|
|
7
15
|
|
|
8
16
|
**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":"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"}
|
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,8 +21,8 @@
|
|
|
21
21
|
"watch": "npm run build:lib:watch"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@messenger-box/chakra-ui-inbox": "
|
|
25
|
-
"@messenger-box/core": "
|
|
24
|
+
"@messenger-box/chakra-ui-inbox": "10.0.2-alpha.0",
|
|
25
|
+
"@messenger-box/core": "10.0.2-alpha.0",
|
|
26
26
|
"@messenger-box/property-ext-core": "9.0.4-alpha.22",
|
|
27
27
|
"date-fns": "^2.28.0",
|
|
28
28
|
"date-fns-tz": "^1.3.3",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"typescript": {
|
|
56
56
|
"definition": "lib/index.d.ts"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "40aed609fa47796ae4496413978f4bb53b6b458d"
|
|
59
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
|
+
};
|