@adaptabletools/adaptable-react-aggrid 15.0.1 → 15.0.3-canary.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable-react-aggrid",
3
- "version": "15.0.1",
3
+ "version": "15.0.3-canary.0",
4
4
  "description": "React version of AdapTable - the powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements",
5
5
  "keywords": [],
6
6
  "license": "contact sales@adaptabletools.com for details",
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "tslib": "^2.3.0",
22
- "@adaptabletools/adaptable": "15.0.1"
22
+ "@adaptabletools/adaptable": "15.0.3-canary.0"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "@ag-grid-community/core": ">=29.0.0",
@@ -6,7 +6,6 @@ const react_1 = require("react");
6
6
  const agGrid_1 = tslib_1.__importDefault(require("@adaptabletools/adaptable/agGrid"));
7
7
  const package_json_1 = require("../../package.json");
8
8
  const version_1 = tslib_1.__importDefault(require("@adaptabletools/adaptable/version"));
9
- const logger_1 = require("../logger");
10
9
  const setupFrameworkComponents_1 = require("../setupFrameworkComponents");
11
10
  const join_1 = tslib_1.__importDefault(require("../utils/join"));
12
11
  if (package_json_1.version !== version_1.default) {
@@ -31,7 +30,6 @@ const AdaptableReact = (_a) => {
31
30
  variant: 'react',
32
31
  }).then((api) => {
33
32
  adaptableApi = api;
34
- (0, logger_1.LogAdaptableInfo)('AdaptableReady');
35
33
  if (onAdaptableReady) {
36
34
  adaptableApi.eventApi.on('AdaptableReady', onAdaptableReady);
37
35
  }
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.setupFrameworkComponents = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const React = tslib_1.__importStar(require("react"));
6
- const logger_1 = require("./logger");
7
6
  const weakMap = new WeakMap();
8
7
  const setupFrameworkComponents = (adaptableApi) => {
9
8
  adaptableApi.internalApi
@@ -11,7 +10,7 @@ const setupFrameworkComponents = (adaptableApi) => {
11
10
  ._onIncludeFired('FrameworkComponentChange', ({ command, frameworkComponent, containerDomNode, componentType }) => {
12
11
  if (command === 'create') {
13
12
  try {
14
- (0, logger_1.LogAdaptableInfo)(`Mounting custom framework component ${componentType}`, containerDomNode);
13
+ adaptableApi.logInfo(`Mounting custom framework component ${componentType}`, containerDomNode);
15
14
  const ReactComponent = frameworkComponent;
16
15
  const unmount = adaptableApi.internalApi
17
16
  .getAdaptableInstance()
@@ -19,11 +18,11 @@ const setupFrameworkComponents = (adaptableApi) => {
19
18
  weakMap.set(containerDomNode, unmount);
20
19
  }
21
20
  catch (err) {
22
- (0, logger_1.LogAdaptableError)(`Cannot correctly mount custom framework component ${componentType}`, err);
21
+ adaptableApi.logError(`Cannot correctly mount custom framework component ${componentType}`, err);
23
22
  }
24
23
  }
25
24
  else {
26
- (0, logger_1.LogAdaptableInfo)(`Unmounting custom framework component ${componentType}`, containerDomNode);
25
+ adaptableApi.logInfo(`Unmounting custom framework component ${componentType}`, containerDomNode);
27
26
  try {
28
27
  const unmount = weakMap.get(containerDomNode);
29
28
  weakMap.delete(containerDomNode);
@@ -33,7 +32,7 @@ const setupFrameworkComponents = (adaptableApi) => {
33
32
  unmount();
34
33
  }
35
34
  catch (err) {
36
- (0, logger_1.LogAdaptableError)(`Cannot correctly unmount custom framework component ${componentType}`, err);
35
+ adaptableApi.logError(`Cannot correctly unmount custom framework component ${componentType}`, err);
37
36
  }
38
37
  }
39
38
  });
package/src/logger.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const LogAdaptableError: (message: string, ...optionalParams: any[]) => void, LogAdaptableInfo: (message: string, ...optionalParams: any[]) => void, LogAdaptableSuccess: (message: string, ...optionalParams: any[]) => void, LogAdaptableWarning: (message: string, ...optionalParams: any[]) => void;
package/src/logger.js DELETED
@@ -1,6 +0,0 @@
1
- "use strict";
2
- var _a;
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.LogAdaptableWarning = exports.LogAdaptableSuccess = exports.LogAdaptableInfo = exports.LogAdaptableError = void 0;
5
- const LoggingHelper_1 = require("@adaptabletools/adaptable/src/Utilities/Helpers/LoggingHelper");
6
- _a = (0, LoggingHelper_1.getLoggingFunctions)('React'), exports.LogAdaptableError = _a.LogAdaptableError, exports.LogAdaptableInfo = _a.LogAdaptableInfo, exports.LogAdaptableSuccess = _a.LogAdaptableSuccess, exports.LogAdaptableWarning = _a.LogAdaptableWarning;