chayns-api 2.4.4 → 2.4.6

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.
@@ -60,12 +60,15 @@ const withCompatMode = Component => {
60
60
  }
61
61
  render() {
62
62
  return _react.default.createElement("div", {
63
- ref: this.ref
63
+ ref: this.ref,
64
+ "data-compat-mode": true
64
65
  });
65
66
  }
66
67
  }
67
68
  return {
68
- Component: props => _react.default.createElement("div", null, _react.default.createElement(Component, props)),
69
+ Component: props => _react.default.createElement("div", {
70
+ "data-compat-mode": false
71
+ }, _react.default.createElement(Component, props)),
69
72
  CompatComponent,
70
73
  requiredVersion: __REQUIRED_REACT_VERSION__,
71
74
  environment: process.env.NODE_ENV,
@@ -103,7 +103,8 @@ const loadComponent = (scope, module, url, skipCompatMode = false, preventSingle
103
103
  }
104
104
  render() {
105
105
  return _react.default.createElement('div', {
106
- ref: this.ref
106
+ ref: this.ref,
107
+ 'data-compat-mode': true
107
108
  });
108
109
  }
109
110
  }
@@ -116,7 +116,8 @@ class AppWrapper {
116
116
  },
117
117
  dynamicFontSize: false,
118
118
  locationPersonId: AppInfo.LocationPersonId,
119
- urlHash: (_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.location.hash.replace('#', '')
119
+ urlHash: (_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.location.hash.replace('#', ''),
120
+ icon: `https://tsimg.cloud/${AppInfo.SiteID}/profile.png`
120
121
  },
121
122
  parameters: Object.fromEntries(urlParams),
122
123
  user: {
@@ -51,12 +51,15 @@ export const withCompatMode = Component => {
51
51
  }
52
52
  render() {
53
53
  return React.createElement("div", {
54
- ref: this.ref
54
+ ref: this.ref,
55
+ "data-compat-mode": true
55
56
  });
56
57
  }
57
58
  }
58
59
  return {
59
- Component: props => React.createElement("div", null, React.createElement(Component, props)),
60
+ Component: props => React.createElement("div", {
61
+ "data-compat-mode": false
62
+ }, React.createElement(Component, props)),
60
63
  CompatComponent,
61
64
  requiredVersion: __REQUIRED_REACT_VERSION__,
62
65
  environment: process.env.NODE_ENV,
@@ -98,7 +98,8 @@ const loadComponent = function (scope, module, url) {
98
98
  }
99
99
  render() {
100
100
  return React.createElement('div', {
101
- ref: this.ref
101
+ ref: this.ref,
102
+ 'data-compat-mode': true
102
103
  });
103
104
  }
104
105
  }
@@ -105,7 +105,8 @@ export class AppWrapper {
105
105
  },
106
106
  dynamicFontSize: false,
107
107
  locationPersonId: AppInfo.LocationPersonId,
108
- urlHash: (_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.location.hash.replace('#', '')
108
+ urlHash: (_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.location.hash.replace('#', ''),
109
+ icon: `https://tsimg.cloud/${AppInfo.SiteID}/profile.png`
109
110
  },
110
111
  parameters: Object.fromEntries(urlParams),
111
112
  user: {
@@ -191,6 +191,7 @@ export type ChaynsApiSite = {
191
191
  url: string;
192
192
  urlHash: string;
193
193
  originSiteId?: string;
194
+ icon: string;
194
195
  };
195
196
  export declare enum IconStyle {
196
197
  SOLID = 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chayns-api",
3
- "version": "2.4.4",
3
+ "version": "2.4.6",
4
4
  "description": "new chayns api",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",