@contentful/react-apps-toolkit 1.2.4 → 1.2.7

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.
@@ -39,6 +39,6 @@ var SDKProvider = function (props) {
39
39
  }
40
40
  return null;
41
41
  }
42
- return (0, jsx_runtime_1.jsx)(exports.SDKContext.Provider, __assign({ value: { sdk: sdk } }, { children: props.children }), void 0);
42
+ return (0, jsx_runtime_1.jsx)(exports.SDKContext.Provider, __assign({ value: { sdk: sdk } }, { children: props.children }));
43
43
  };
44
44
  exports.SDKProvider = SDKProvider;
@@ -21,13 +21,13 @@ describe('SDKProvider', function () {
21
21
  consoleWarnMock === null || consoleWarnMock === void 0 ? void 0 : consoleWarnMock.mockRestore();
22
22
  });
23
23
  it('renders its children when sdk the init returns the sdk', function () {
24
- var getByText = (0, react_1.render)((0, jsx_runtime_1.jsx)(SDKProvider_1.SDKProvider, { children: (0, jsx_runtime_1.jsx)("div", { children: "children" }, void 0) }, void 0)).getByText;
24
+ var getByText = (0, react_1.render)((0, jsx_runtime_1.jsx)(SDKProvider_1.SDKProvider, { children: (0, jsx_runtime_1.jsx)("div", { children: "children" }) })).getByText;
25
25
  expect(getByText('children')).toBeTruthy();
26
26
  });
27
27
  it('calls console warn after timeout if callback is not returning ', function () {
28
28
  // @ts-ignore
29
29
  app_sdk_1.init.mockImplementation(function () { });
30
- (0, react_1.render)((0, jsx_runtime_1.jsx)(SDKProvider_1.SDKProvider, { children: (0, jsx_runtime_1.jsx)("div", { children: "children" }, void 0) }, void 0));
30
+ (0, react_1.render)((0, jsx_runtime_1.jsx)(SDKProvider_1.SDKProvider, { children: (0, jsx_runtime_1.jsx)("div", { children: "children" }) }));
31
31
  jest.runAllTimers();
32
32
  expect(consoleWarnMock).toHaveBeenCalled();
33
33
  });
package/dist/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/react-apps-toolkit",
3
- "version": "1.2.4",
3
+ "version": "1.2.7",
4
4
  "description": "Toolkit for building a Contentful app in React",
5
5
  "keywords": [],
6
6
  "author": "Contentful GmbH",
@@ -31,9 +31,11 @@
31
31
  "pre-commit": "lint-staged"
32
32
  },
33
33
  "peerDependencies": {
34
+ "@contentful/app-sdk": ">=4.0.0",
34
35
  "react": ">=16.8.0"
35
36
  },
36
37
  "devDependencies": {
38
+ "@contentful/app-sdk": ">=4.0.0",
37
39
  "@testing-library/react": "12.1.5",
38
40
  "@testing-library/react-hooks": "8.0.1",
39
41
  "@types/jest": "27.4.0",
@@ -42,14 +44,13 @@
42
44
  "react": "17.0.2",
43
45
  "react-dom": "17.0.2",
44
46
  "ts-jest": "27.1.3",
45
- "typescript": "4.5.5"
47
+ "typescript": "4.8.3"
46
48
  },
47
49
  "publishConfig": {
48
50
  "access": "public"
49
51
  },
50
52
  "dependencies": {
51
- "@contentful/app-sdk": "^4.0.0",
52
53
  "contentful-management": ">=7.30.0"
53
54
  },
54
- "gitHead": "b8ac7c3d160ab52d117713e8e6bc47305f053fb9"
55
+ "gitHead": "650bc289c964eecd5c6878ebbb553d4580f1682a"
55
56
  }