@messenger-box/property-ext-browser 9.0.4-alpha.7 → 10.0.2-alpha.2

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 CHANGED
@@ -3,6 +3,34 @@
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.2](https://github.com/CDEBase/messenger-box/compare/v10.0.2-alpha.1...v10.0.2-alpha.2) (2025-02-10)
7
+
8
+ **Note:** Version bump only for package @messenger-box/property-ext-browser
9
+
10
+ ## [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)
11
+
12
+ **Note:** Version bump only for package @messenger-box/property-ext-browser
13
+
14
+ ## [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)
15
+
16
+ **Note:** Version bump only for package @messenger-box/property-ext-browser
17
+
18
+ ## [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)
19
+
20
+ **Note:** Version bump only for package @messenger-box/property-ext-browser
21
+
22
+ ## [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)
23
+
24
+ **Note:** Version bump only for package @messenger-box/property-ext-browser
25
+
26
+ ## [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)
27
+
28
+ **Note:** Version bump only for package @messenger-box/property-ext-browser
29
+
30
+ ## [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)
31
+
32
+ **Note:** Version bump only for package @messenger-box/property-ext-browser
33
+
6
34
  ## [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
35
 
8
36
  **Note:** Version bump only for package @messenger-box/property-ext-browser
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { IPost } from '@messenger-box/core';
2
+ import { IPost } from 'common';
3
3
  export interface IPropertyMessageWidgetProps {
4
4
  message: IPost;
5
5
  index: number;
@@ -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,qBAAqB,CAAC;AAG5C,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
+ {"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,cAAc;MACR,KAAA,CAAA;QAEC;AAcC,IAAA,UAAA;AACA,GAAA,GAAA,OAAA,CAAA,kBAAK,CAAC,QAAA,CAAA;AAGL,EAAA,MAAA,IAAA,GAAA,KAAuB,CAAA,UAAA,CAAA,IACpB,CAAA,CAAA;AAIQ,EAAA,MAAA,KAAA,GAAA,iBAA2B,CAAA,OAAA,EAAA,UAAA,CAAA,CAAA;eAE/B,GAAA,4BAA8B,EAAA,OACpB,CAAA,CAAA;cAEC,CAAA,aAAa,CAAA,KAAA,EAAC;;AAAO,IAAA,EAAA,EAAA,GAAA;AAKpD,IAAE,EAAA,EAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
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,5 +1,5 @@
1
1
  import React from 'react';
2
- import { IPost } from '@messenger-box/core';
2
+ import { IPost } from 'common';
3
3
  export interface IPropertyCardProps {
4
4
  message: IPost;
5
5
  index: number;
@@ -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,qBAAqB,CAAC;AAG5C,MAAM,WAAW,kBAAkB;IAC/B,OAAO,EAAE,KAAK,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,WAAW,UAAW,kBAAkB,sBAqGpD,CAAC"}
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,KAAM;AAIN,GAAA,GAAA,KAAQ,CAAA;AACR,EAAA,MAAA,KACI,GAAA,iBAAI,CAAA,YACQ,OAAA,CAAA,CAAA;AACJ,EAAA,MAAA;cAEJ;AAOA,GAAA,GAAA,OAAA,CAAA,oBAAO,QAAK,CAAC;AACb,EAAA,MAAA;AACI,IAAA,QAAA;AACI,GAAA,GAAA,UAAA,CAAA;cAIK,CAAA,aACL,CAAA,GAAA,EAAA;AACK,IAAA,MAAA,EAAA;uBAEQ;AAKT,KAAA;AACC,IAAA,MAAA,EAAA,CAAA;AASQ,IAAA,IAAA,EAAA,IAAA;AACC,IAAA,WAAA,EAAA,KAAA;gBAIjB,EAAA,IAAA;YAOA,EAAQ,QAAA;iBAEQ,CAAA,CAAA;AAEA,GAAA,EAAA,KAAA,CAAA,aAAA,CAAA,KAAc,EAAA;AACf,IAAA,KAAA,EAAA,MAAA;;AACa,IAAA,GAAA,EAAA,UAAA,CAAA,KAAA;AAIrB,GAAA,CAAA,EAAA,KAAA,CAAA,aAAA,CAAA,GAAA,EAAA;gBACA;;AAGa,IAAA,CAAA,EAAA,GAAA;;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,IAAA;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
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,9 +1,9 @@
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({
1
+ import {Feature}from'@common-stack/client-react';import {PostTypeEnum}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
- name: IPostTypeEnum.Alert.toLowerCase(),
3
+ name: PostTypeEnum.Alert.toLowerCase(),
4
4
  render: MessageAlertFill
5
5
  }, {
6
- name: IPostTypeEnum.Card.toLowerCase(),
6
+ name: PostTypeEnum.Card.toLowerCase(),
7
7
  render: MessageCardFill
8
8
  }]
9
9
  });export{feature};//# sourceMappingURL=module.js.map
package/lib/module.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"module.js","sources":["../src/module.ts"],"sourcesContent":[null],"names":[],"mappings":"8OAIa,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,gBAAmB;AACnB,GAAA,EAAA;AACH,IAAA,IAAA,EAAA,aAAA,CAAA,IAAA,CAAA,WAAA,EAAA;AACD,IAAA,MAAA,EAAA,eAAA;AACI,GAAA,CAAA;AACA,CAAA"}
1
+ {"version":3,"file":"module.js","sources":["../src/module.ts"],"sourcesContent":[null],"names":[],"mappings":"mNAIa,MAAA,OAAO,GAAG,IAAI,OAAO,CAAC;AAC/B,EAAA,oBAAA,EAAoB,CAAE;AAClB,IAAA,IAAA,EAAA,YAAA,CAAA,KAAA,CAAA,WAAA,EAAA;AACI,IAAA,MAAA,EAAA;AACA,GAAA,EAAA;AACH,IAAA,IAAA,EAAA,YAAA,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,CAAA;AAMzB,eAAO,MAAM,gBAAgB,yBAa5B,CAAA"}
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,6 +1,6 @@
1
- import React from'react';import {Fill}from'@common-stack/components-pro';import {IPostTypeEnum}from'@messenger-box/property-ext-core';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 = () => {
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'@chakra-ui/icons';import {MessageAlert}from'../components/InboxMessage/MessageWidgets/MessageAlert.js';const MessageAlertFill = () => {
2
2
  return React.createElement(Fill, {
3
- name: IPostTypeEnum.Alert.toLowerCase()
3
+ name: PostTypeEnum.Alert.toLowerCase()
4
4
  }, props => {
5
5
  if (props.active) {
6
6
  return React.createElement(MessageAlert, {
@@ -1 +1 @@
1
- {"version":3,"file":"message-alert-fill.js","sources":["../../src/slot-fill/message-alert-fill.tsx"],"sourcesContent":[null],"names":[],"mappings":"yTAMO,MAAM,gBAAgB,GAAG,MAAK;AACjC,EAAA,OAAA,KACK,CAAA,aAAA,CAAA,IAAA,EAAA;AAGW,IAAA,IAAA,EAAA,aAAgB,CAAA,KAAG,CAAA,WAAA,EAAA;AACf,GAAA,EAAA,KAAA,IAAA;QACJ,KAAC,CAAA,MAAA,EAAA;AACD,MAAA,OAAA,MAAW,aAAC,CAAA,YAAA,EAAA;QAI3B,GAAA,KAAA;AACL,OAAC,CAAA,CAAA;;;;"}
1
+ {"version":3,"file":"message-alert-fill.js","sources":["../../src/slot-fill/message-alert-fill.tsx"],"sourcesContent":[null],"names":[],"mappings":"8RAMO,MAAM,gBAAgB,GAAG,MAAK;AACjC,EAAA,OAAA,KACK,CAAA,aAAA,CAAA,IAAA,EAAA;AAEO,IAAA,IAAA,EAAA,YAAgB,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,CAAA;AAMzB,eAAO,MAAM,eAAe,yBAa3B,CAAA"}
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,6 +1,6 @@
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 = () => {
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'@chakra-ui/icons';import'html-react-parser';import'@chakra-ui/react';const MessageCardFill = () => {
2
2
  return React.createElement(Fill, {
3
- name: IPostTypeEnum.Card.toLowerCase()
3
+ name: PostTypeEnum.Card.toLowerCase()
4
4
  }, props => {
5
5
  if (props.active) {
6
6
  return React.createElement(MessageCard, {
@@ -1 +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,EAAA,OAAA,KACK,CAAA,aAAA,CAAA,IAAA,EAAA;AAGW,IAAA,IAAA,EAAA,aAAgB,CAAA,IAAG,CAAA,WAAA,EAAA;AACf,GAAA,EAAA,KAAA,IAAA;QACJ,KAAC,CAAA,MAAA,EAAA;AACD,MAAA,OAAA,MAAW,aAAC,CAAA,WAAA,EAAA;QAI3B,GAAA,KAAA;AACL,OAAC,CAAA,CAAA;;;;"}
1
+ {"version":3,"file":"message-card-fill.js","sources":["../../src/slot-fill/message-card-fill.tsx"],"sourcesContent":[null],"names":[],"mappings":"0QAMO,MAAM,eAAe,GAAG,MAAK;AAChC,EAAA,OAAA,KACK,CAAA,aAAA,CAAA,IAAA,EAAA;AAEO,IAAA,IAAA,EAAA,YAAgB,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": "9.0.4-alpha.7",
3
+ "version": "10.0.2-alpha.2",
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
- "@emotion/react": "^11",
25
- "@emotion/styled": "^11",
26
- "@messenger-box/chakra-ui-inbox": "9.0.4-alpha.7",
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.2",
25
+ "@messenger-box/core": "10.0.2-alpha.2",
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": "fbf6a50ed02ac16cf6a46f083762963b3737040e"
58
+ "gitHead": "4e6f143b5ea50dbd90354eb28b22b936a8fe59a3"
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
- createRollupConfig({
7
- input: [
8
- 'src/index.ts',
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
- dir: 'lib',
17
- format: 'es',
18
- name: 'property-ext-browser',
19
- compact: true,
20
- exports: 'named',
21
- sourcemap: true,
22
- preserveModules: true,
23
- chunkFileNames: '[name]-[hash].[format].js',
24
- globals: { react: 'React' },
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 '@messenger-box/core';
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 '@messenger-box/core';
6
+ import { IPost } from 'common';
7
7
  import { CardMessageAttachmentsInterface } from '../../../interfaces';
8
8
 
9
9
  export interface IPropertyCardProps {
package/src/module.ts CHANGED
@@ -1,15 +1,15 @@
1
1
  import { Feature } from '@common-stack/client-react';
2
- import { IPostTypeEnum } from '@messenger-box/property-ext-core';
2
+ import { PostTypeEnum } from 'common';
3
3
  import { MessageAlertFill, MessageCardFill } from './slot-fill';
4
4
 
5
5
  export const feature = new Feature({
6
6
  componentFillPlugins: [
7
7
  {
8
- name: IPostTypeEnum.Alert.toLowerCase(),
8
+ name: PostTypeEnum.Alert.toLowerCase(),
9
9
  render: MessageAlertFill,
10
10
  },
11
11
  {
12
- name: IPostTypeEnum.Card.toLowerCase(),
12
+ name: PostTypeEnum.Card.toLowerCase(),
13
13
  render: MessageCardFill,
14
14
  },
15
15
  ],
@@ -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 '@messenger-box/property-ext-core';
3
+ import { PostTypeEnum } 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
- <Fill name={IPostTypeEnum.Alert.toLowerCase()}>
10
- {
11
- (props: IPropertyMessageWidgetProps & { active: boolean }) => {
12
- if (props.active) {
13
- return (<MessageAlert {...props}/>);
14
- }
15
- return null;
9
+ <Fill name={PostTypeEnum.Alert.toLowerCase()}>
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 { PostTypeEnum } 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
- <Fill name={IPostTypeEnum.Card.toLowerCase()}>
10
- {
11
- (props: IPropertyCardProps & { active: boolean }) => {
12
- if (props.active) {
13
- return (<MessageCard {...props}/>);
14
- }
15
- return null;
9
+ <Fill name={PostTypeEnum.Card.toLowerCase()}>
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
+ };