@commercetools-frontend/application-shell-connectors 22.40.0 → 22.42.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.
@@ -79,7 +79,7 @@ var _Reflect$construct__default = /*#__PURE__*/_interopDefault(_Reflect$construc
79
79
  var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
80
80
 
81
81
  // NOTE: This string will be replaced on build time with the package version.
82
- var version = "22.40.0";
82
+ var version = "22.42.0";
83
83
 
84
84
  // From https://github.com/acdlite/recompose/blob/master/src/packages/recompose/getDisplayName.js
85
85
  const getDisplayName = Component => {
@@ -370,6 +370,7 @@ function withApplicationContext(mapApplicationContextToProps) {
370
370
  const mappedProps = mapApplicationContextToProps ? mapApplicationContextToProps(applicationContext) : {
371
371
  applicationContext
372
372
  };
373
+ // @ts-ignore: relates to https://github.com/emotion-js/emotion/issues/3245
373
374
  return jsxRuntime.jsx(Component, _objectSpread$6(_objectSpread$6({}, props), mappedProps));
374
375
  }
375
376
  });
@@ -498,7 +499,9 @@ function withProjectExtensionImageRegex() {
498
499
  useWarning(false, `@commercetools-frontend/application-shell-connectors: It is not recommended to use the 'withProjectExtensionImageRegex' high order component anymore. Please use the 'useProjectExtensionImageRegex' hook instead.`);
499
500
  const imageregexContext = useProjectExtensionImageRegex();
500
501
  return jsxRuntime.jsx(GetProjectExtensionImageRegex, {
501
- render: () => jsxRuntime.jsx(Component, _objectSpread$4(_objectSpread$4({}, props), {}, {
502
+ render: () =>
503
+ // @ts-ignore: relates to https://github.com/emotion-js/emotion/issues/3245
504
+ jsxRuntime.jsx(Component, _objectSpread$4(_objectSpread$4({}, props), {}, {
502
505
  [propKey]: imageregexContext
503
506
  }))
504
507
  });
@@ -818,7 +821,7 @@ let RenewTokenError = /*#__PURE__*/function (_Error) {
818
821
  return _this;
819
822
  }
820
823
  return _createClass(RenewTokenError);
821
- }( /*#__PURE__*/_wrapNativeSuper(Error));
824
+ }(/*#__PURE__*/_wrapNativeSuper(Error));
822
825
  async function executeHttpClientRequest(fetcher) {
823
826
  let config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
824
827
  // Wrapper function to be called again (once) on retry.
@@ -77,7 +77,7 @@ var _Reflect$construct__default = /*#__PURE__*/_interopDefault(_Reflect$construc
77
77
  var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
78
78
 
79
79
  // NOTE: This string will be replaced on build time with the package version.
80
- var version = "22.40.0";
80
+ var version = "22.42.0";
81
81
 
82
82
  // From https://github.com/acdlite/recompose/blob/master/src/packages/recompose/getDisplayName.js
83
83
  const getDisplayName = Component => {
@@ -363,6 +363,7 @@ function withApplicationContext(mapApplicationContextToProps) {
363
363
  const mappedProps = mapApplicationContextToProps ? mapApplicationContextToProps(applicationContext) : {
364
364
  applicationContext
365
365
  };
366
+ // @ts-ignore: relates to https://github.com/emotion-js/emotion/issues/3245
366
367
  return jsxRuntime.jsx(Component, _objectSpread$6(_objectSpread$6({}, props), mappedProps));
367
368
  }
368
369
  });
@@ -481,7 +482,9 @@ function withProjectExtensionImageRegex() {
481
482
  useWarning();
482
483
  const imageregexContext = useProjectExtensionImageRegex();
483
484
  return jsxRuntime.jsx(GetProjectExtensionImageRegex, {
484
- render: () => jsxRuntime.jsx(Component, _objectSpread$4(_objectSpread$4({}, props), {}, {
485
+ render: () =>
486
+ // @ts-ignore: relates to https://github.com/emotion-js/emotion/issues/3245
487
+ jsxRuntime.jsx(Component, _objectSpread$4(_objectSpread$4({}, props), {}, {
485
488
  [propKey]: imageregexContext
486
489
  }))
487
490
  });
@@ -796,7 +799,7 @@ let RenewTokenError = /*#__PURE__*/function (_Error) {
796
799
  return _this;
797
800
  }
798
801
  return _createClass(RenewTokenError);
799
- }( /*#__PURE__*/_wrapNativeSuper(Error));
802
+ }(/*#__PURE__*/_wrapNativeSuper(Error));
800
803
  async function executeHttpClientRequest(fetcher) {
801
804
  let config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
802
805
  // Wrapper function to be called again (once) on retry.
@@ -45,7 +45,7 @@ import _JSON$stringify from '@babel/runtime-corejs3/core-js-stable/json/stringif
45
45
  import { RetryLink } from '@apollo/client/link/retry';
46
46
 
47
47
  // NOTE: This string will be replaced on build time with the package version.
48
- var version = "22.40.0";
48
+ var version = "22.42.0";
49
49
 
50
50
  // From https://github.com/acdlite/recompose/blob/master/src/packages/recompose/getDisplayName.js
51
51
  const getDisplayName = Component => {
@@ -336,6 +336,7 @@ function withApplicationContext(mapApplicationContextToProps) {
336
336
  const mappedProps = mapApplicationContextToProps ? mapApplicationContextToProps(applicationContext) : {
337
337
  applicationContext
338
338
  };
339
+ // @ts-ignore: relates to https://github.com/emotion-js/emotion/issues/3245
339
340
  return jsx(Component, _objectSpread$6(_objectSpread$6({}, props), mappedProps));
340
341
  }
341
342
  });
@@ -464,7 +465,9 @@ function withProjectExtensionImageRegex() {
464
465
  useWarning(false, `@commercetools-frontend/application-shell-connectors: It is not recommended to use the 'withProjectExtensionImageRegex' high order component anymore. Please use the 'useProjectExtensionImageRegex' hook instead.`);
465
466
  const imageregexContext = useProjectExtensionImageRegex();
466
467
  return jsx(GetProjectExtensionImageRegex, {
467
- render: () => jsx(Component, _objectSpread$4(_objectSpread$4({}, props), {}, {
468
+ render: () =>
469
+ // @ts-ignore: relates to https://github.com/emotion-js/emotion/issues/3245
470
+ jsx(Component, _objectSpread$4(_objectSpread$4({}, props), {}, {
468
471
  [propKey]: imageregexContext
469
472
  }))
470
473
  });
@@ -784,7 +787,7 @@ let RenewTokenError = /*#__PURE__*/function (_Error) {
784
787
  return _this;
785
788
  }
786
789
  return _createClass(RenewTokenError);
787
- }( /*#__PURE__*/_wrapNativeSuper(Error));
790
+ }(/*#__PURE__*/_wrapNativeSuper(Error));
788
791
  async function executeHttpClientRequest(fetcher) {
789
792
  let config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
790
793
  // Wrapper function to be called again (once) on retry.
@@ -93,11 +93,11 @@ type ConsumerProps<AdditionalEnvironmentProperties extends {}> = {
93
93
  children?: never;
94
94
  };
95
95
  declare const ApplicationContextProvider: {
96
- <AdditionalEnvironmentProperties extends {}>(props: ProviderProps<AdditionalEnvironmentProperties>): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
96
+ <AdditionalEnvironmentProperties extends {}>(props: ProviderProps<AdditionalEnvironmentProperties>): import("@emotion/react/jsx-runtime").JSX.Element;
97
97
  displayName: string;
98
98
  };
99
99
  declare const ApplicationContext: {
100
- <AdditionalEnvironmentProperties extends {}>(props: ConsumerProps<AdditionalEnvironmentProperties>): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
100
+ <AdditionalEnvironmentProperties extends {}>(props: ConsumerProps<AdditionalEnvironmentProperties>): import("@emotion/react/jsx-runtime").JSX.Element;
101
101
  displayName: string;
102
102
  };
103
103
  declare function withApplicationContext<OwnProps extends {}, AdditionalEnvironmentProperties extends {}, MappedProps extends {} = {
@@ -12,7 +12,7 @@ export type TCustomViewContextProviderProps = {
12
12
  children: ReactNode;
13
13
  };
14
14
  declare const Context: import("react").Context<{}>;
15
- declare const CustomViewContextProvider: (props: TCustomViewContextProviderProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
15
+ declare const CustomViewContextProvider: (props: TCustomViewContextProviderProps) => import("@emotion/react/jsx-runtime").JSX.Element;
16
16
  declare function useCustomViewContextHook(): TMergedContext;
17
17
  declare function useCustomViewContextHook<SelectedContext>(selector: (context: TMergedContext) => SelectedContext): SelectedContext;
18
18
  declare const useCustomViewContext: typeof useCustomViewContextHook;
@@ -23,15 +23,15 @@ declare const useProjectExtensionImageRegex: () => {
23
23
  } | null | undefined;
24
24
  };
25
25
  declare const ProjectExtensionProviderForImageRegex: {
26
- (props: ProviderProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
26
+ (props: ProviderProps): import("@emotion/react/jsx-runtime").JSX.Element;
27
27
  displayName: string;
28
28
  };
29
29
  declare const GetProjectExtensionImageRegex: {
30
- (props: ConsumerProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
30
+ (props: ConsumerProps): import("@emotion/react/jsx-runtime").JSX.Element;
31
31
  displayName: string;
32
32
  };
33
33
  declare function withProjectExtensionImageRegex<Props extends {}>(propKey?: string): (Component: ComponentType<Props>) => {
34
- (props: Props): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
34
+ (props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
35
35
  displayName: string;
36
36
  };
37
37
  export { GetProjectExtensionImageRegex, ProjectExtensionProviderForImageRegex, withProjectExtensionImageRegex, useProjectExtensionImageRegex, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/application-shell-connectors",
3
- "version": "22.40.0",
3
+ "version": "22.42.0",
4
4
  "description": "Contains complementary tools for @commercetools-frontend/application-shell",
5
5
  "bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
6
6
  "repository": {
@@ -37,12 +37,12 @@
37
37
  "dependencies": {
38
38
  "@babel/runtime": "^7.22.15",
39
39
  "@babel/runtime-corejs3": "^7.22.15",
40
- "@commercetools-frontend/application-config": "22.40.0",
41
- "@commercetools-frontend/browser-history": "22.40.0",
42
- "@commercetools-frontend/constants": "22.40.0",
43
- "@commercetools-frontend/sentry": "22.40.0",
40
+ "@commercetools-frontend/application-config": "22.42.0",
41
+ "@commercetools-frontend/browser-history": "22.42.0",
42
+ "@commercetools-frontend/constants": "22.42.0",
43
+ "@commercetools-frontend/sentry": "22.42.0",
44
44
  "@commercetools/http-user-agent": "3.0.0",
45
- "@emotion/react": "^11.11.4",
45
+ "@emotion/react": "^11.14.0",
46
46
  "@types/lodash": "^4.14.198",
47
47
  "@types/prop-types": "^15.7.5",
48
48
  "@types/react": "^17.0.83",