decentraland-dapps 23.16.0 → 23.17.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.
@@ -1,9 +1,8 @@
1
1
  import * as React from 'react';
2
- import { IntercomWidget } from './IntercomWidget';
3
2
  import { DefaultProps, Props } from './Intercom.types';
4
3
  export default class Intercom extends React.PureComponent<Props> {
5
4
  static defaultProps: DefaultProps;
6
- widget: IntercomWidget;
5
+ private readonly widget;
7
6
  constructor(props: Props);
8
7
  componentDidMount(): void;
9
8
  componentDidUpdate(): void;
@@ -27,7 +27,9 @@ export default class Intercom extends React.PureComponent {
27
27
  this.renderWidget();
28
28
  }
29
29
  componentDidUpdate() {
30
- this.widget.settings = this.props.settings;
30
+ if (this.props.settings) {
31
+ this.widget.settings = this.props.settings;
32
+ }
31
33
  this.renderWidget();
32
34
  }
33
35
  componentWillUnmount() {
@@ -1 +1 @@
1
- {"version":3,"file":"Intercom.js","sourceRoot":"","sources":["../../../src/components/Intercom/Intercom.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGjD,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,KAAK,CAAC,aAAoB;IAC9D,MAAM,CAAC,YAAY,GAAiB;QAClC,IAAI,EAAE,EAAE;QACR,QAAQ,EAAE;YACR,SAAS,EAAE,MAAM;YACjB,kBAAkB,EAAE,EAAE;YACtB,gBAAgB,EAAE,EAAE;SACrB;KACF,CAAA;IAED,MAAM,CAAgB;IAEtB,YAAY,KAAY;QACtB,KAAK,CAAC,KAAK,CAAC,CAAA;QACZ,IAAI,CAAC,MAAM,GAAG,cAAc,CAAC,WAAW,EAAE,CAAA;QAE1C,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;YACvB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK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AE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,2BAA2B,EAAE,KAAK,CAAC,OAAO,CAAC,CAAA;QAC3D,CAAC;IACH,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAA;IACb,CAAC"}
@@ -11,6 +11,6 @@ export type DefaultProps = {
11
11
  data: Record<string, any>;
12
12
  settings: IntercomSettings;
13
13
  };
14
- export type Props = DefaultProps & {
14
+ export type Props = Partial<DefaultProps> & {
15
15
  appId: string;
16
16
  };
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import Intercom from '../../components/Intercom/Intercom';
3
+ declare const _default: import("react-redux").ConnectedComponent<typeof Intercom, import("react-redux").Omit<Pick<import("react").ClassAttributes<Intercom> & Partial<import("../../components/Intercom/Intercom.types").DefaultProps> & {
4
+ appId: string;
5
+ }, "appId" | keyof import("react").ClassAttributes<Intercom>> & Partial<Pick<import("react").ClassAttributes<Intercom> & Partial<import("../../components/Intercom/Intercom.types").DefaultProps> & {
6
+ appId: string;
7
+ }, keyof import("../../components/Intercom/Intercom.types").DefaultProps>> & Partial<Pick<import("../../components/Intercom/Intercom.types").DefaultProps, never>>, "data"> & Partial<import("../../components/Intercom/Intercom.types").DefaultProps> & {
8
+ appId: string;
9
+ }>;
10
+ export default _default;
@@ -0,0 +1,21 @@
1
+ import { connect } from 'react-redux';
2
+ import { getData as getWallet } from '../../modules/wallet/selectors';
3
+ import Intercom from '../../components/Intercom/Intercom';
4
+ const mapState = (state, ownProps) => {
5
+ const wallet = getWallet(state);
6
+ const enhancedData = {};
7
+ if (wallet?.address) {
8
+ enhancedData['Wallet'] = wallet?.address.toLowerCase() ?? null;
9
+ }
10
+ if (wallet?.providerType) {
11
+ enhancedData['Wallet type'] = wallet?.providerType ?? null;
12
+ }
13
+ return {
14
+ data: {
15
+ ...enhancedData,
16
+ ...ownProps.data
17
+ }
18
+ };
19
+ };
20
+ export default connect(mapState)(Intercom);
21
+ //# sourceMappingURL=EnhancedIntercom.container.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnhancedIntercom.container.js","sourceRoot":"","sources":["../../../src/containers/EnhancedIntercom/EnhancedIntercom.container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gCAAgC,CAAA;AACrE,OAAO,QAAQ,MAAM,oCAAoC,CAAA;AAGzD,MAAM,QAAQ,GAAG,CAAC,KAAU,EAAE,QAAe,EAAiB,EAAE;IAC9D,MAAM,MAAM,GAAG,SAAS,CAAC,KAAK,CAAC,CAAA;IAC/B,MAAM,YAAY,GAAgD,EAAE,CAAA;IAEpE,IAAI,MAAM,EAAE,OAAO,EAAE,CAAC;QACpB,YAAY,CAAC,QAAQ,CAAC,GAAG,MAAM,EAAE,OAAO,CAAC,WAAW,EAAE,IAAI,IAAI,CAAA;IAChE,CAAC;IAED,IAAI,MAAM,EAAE,YAAY,EAAE,CAAC;QACzB,YAAY,CAAC,aAAa,CAAC,GAAG,MAAM,EAAE,YAAY,IAAI,IAAI,CAAA;IAC5D,CAAC;IAED,OAAO;QACL,IAAI,EAAE;YACJ,GAAG,YAAY;YACf,GAAG,QAAQ,CAAC,IAAI;SACjB;KACF,CAAA;AACH,CAAC,CAAA;AAED,eAAe,OAAO,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { Props as IntercomProps } from '../../components/Intercom/Intercom.types';
2
+ export type Props = IntercomProps;
3
+ export type MapStateProps = Pick<Props, 'data'>;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=EnhancedIntercom.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnhancedIntercom.types.js","sourceRoot":"","sources":["../../../src/containers/EnhancedIntercom/EnhancedIntercom.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import EnhancedIntercom from './EnhancedIntercom.container';
2
+ export { EnhancedIntercom };
@@ -0,0 +1,3 @@
1
+ import EnhancedIntercom from './EnhancedIntercom.container';
2
+ export { EnhancedIntercom };
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/containers/EnhancedIntercom/index.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
@@ -11,6 +11,7 @@ export { default as Profile } from './Profile';
11
11
  export { default as SignInPage } from './SignInPage';
12
12
  export { default as TransactionLink } from './TransactionLink';
13
13
  export { default as withAuthorizedAction } from './withAuthorizedAction';
14
+ export * from './EnhancedIntercom';
14
15
  export * from './RarityFilter';
15
16
  export * from './SmartWearableFilter';
16
17
  export * from './AssetStatusFilter';
@@ -11,6 +11,7 @@ export { default as Profile } from './Profile';
11
11
  export { default as SignInPage } from './SignInPage';
12
12
  export { default as TransactionLink } from './TransactionLink';
13
13
  export { default as withAuthorizedAction } from './withAuthorizedAction';
14
+ export * from './EnhancedIntercom';
14
15
  export * from './RarityFilter';
15
16
  export * from './SmartWearableFilter';
16
17
  export * from './AssetStatusFilter';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/containers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,MA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AAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AACxE,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,uBAAuB,CAAA;AACrC,cAAc,qBAAqB,CAAA;AACnC,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decentraland-dapps",
3
- "version": "23.16.0",
3
+ "version": "23.17.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "files": [