@commercetools-frontend/sdk 23.3.0 → 24.0.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/dist/commercetools-frontend-sdk.cjs.dev.js +1 -1
- package/dist/commercetools-frontend-sdk.cjs.prod.js +1 -1
- package/dist/commercetools-frontend-sdk.esm.js +1 -1
- package/dist/declarations/src/components/sdk-get/sdk-get.d.ts +2 -2
- package/dist/declarations/src/index.d.ts +3 -17
- package/package.json +7 -7
|
@@ -301,7 +301,7 @@ const mapDispatchToProps = dispatch => ({
|
|
|
301
301
|
var SdkGet$1 = reactRedux.connect(null, mapDispatchToProps)(SdkGet);
|
|
302
302
|
|
|
303
303
|
// NOTE: This string will be replaced on build time with the package version.
|
|
304
|
-
var version = "
|
|
304
|
+
var version = "24.0.0";
|
|
305
305
|
|
|
306
306
|
/* eslint-disable no-console */
|
|
307
307
|
|
|
@@ -292,7 +292,7 @@ const mapDispatchToProps = dispatch => ({
|
|
|
292
292
|
var SdkGet$1 = reactRedux.connect(null, mapDispatchToProps)(SdkGet);
|
|
293
293
|
|
|
294
294
|
// NOTE: This string will be replaced on build time with the package version.
|
|
295
|
-
var version = "
|
|
295
|
+
var version = "24.0.0";
|
|
296
296
|
|
|
297
297
|
const mcHostnameRegex = /^mc(-(\d){4,})?\.(.*)$/;
|
|
298
298
|
const mcPreviewHostnameRegex = /^.*\.mc-preview\.(.*)$/;
|
|
@@ -278,7 +278,7 @@ const mapDispatchToProps = dispatch => ({
|
|
|
278
278
|
var SdkGet$1 = connect(null, mapDispatchToProps)(SdkGet);
|
|
279
279
|
|
|
280
280
|
// NOTE: This string will be replaced on build time with the package version.
|
|
281
|
-
var version = "
|
|
281
|
+
var version = "24.0.0";
|
|
282
282
|
|
|
283
283
|
/* eslint-disable no-console */
|
|
284
284
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="commercetools__sdk-client" />
|
|
2
|
-
import { Component } from 'react';
|
|
2
|
+
import { Component, JSX } from 'react';
|
|
3
3
|
import type { SuccessResult, HttpErrorType } from '@commercetools/sdk-client';
|
|
4
4
|
import type { TSdkAction } from '../../types';
|
|
5
5
|
type TSdkError = Error | HttpErrorType;
|
|
@@ -47,5 +47,5 @@ export declare class SdkGet extends Component<Props, State> {
|
|
|
47
47
|
refresh: () => Promise<void | import("@commercetools/sdk-client").Json>;
|
|
48
48
|
render(): JSX.Element;
|
|
49
49
|
}
|
|
50
|
-
declare const _default: import("react-redux").ConnectedComponent<typeof SdkGet, import("react-redux").Omit<import("react").
|
|
50
|
+
declare const _default: import("react-redux").ConnectedComponent<typeof SdkGet, import("react-redux").Omit<JSX.LibraryManagedAttributes<C, import("react-redux").GetProps<C>>, "dispatch"> & OwnProps>;
|
|
51
51
|
export default _default;
|
|
@@ -1,26 +1,12 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/// <reference types="commercetools__sdk-client" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
3
|
import * as actions from './actions';
|
|
4
4
|
export { default as version } from './version';
|
|
5
5
|
export { default as createMiddleware } from './middleware';
|
|
6
6
|
export { default as useAsyncDispatch } from './hooks/use-async-dispatch';
|
|
7
7
|
export * from './types';
|
|
8
8
|
declare const Sdk: {
|
|
9
|
-
Get: import("react-redux").ConnectedComponent<typeof import("./components/sdk-get/sdk-get").SdkGet, import("react-redux").Omit<import("react").
|
|
10
|
-
dispatch: (action: import("./types").TSdkAction) => Promise<import("@commercetools/sdk-client").Json>;
|
|
11
|
-
} & {
|
|
12
|
-
actionCreator: (...args: unknown[]) => import("./types").TSdkAction;
|
|
13
|
-
actionCreatorArgs?: unknown[] | undefined;
|
|
14
|
-
shouldRefetch?: ((prevArgs: unknown[], nextArgs: unknown[]) => boolean) | undefined;
|
|
15
|
-
onSuccess?: ((result: import("@commercetools/sdk-client").Json) => void) | undefined;
|
|
16
|
-
onError?: ((error: Error | import("@commercetools/sdk-client").HttpErrorType) => void) | undefined;
|
|
17
|
-
render: (options: {
|
|
18
|
-
isLoading: boolean;
|
|
19
|
-
refresh: () => Promise<void | import("@commercetools/sdk-client").Json>;
|
|
20
|
-
result?: import("@commercetools/sdk-client").Json | undefined;
|
|
21
|
-
error?: (Error | import("@commercetools/sdk-client").HttpErrorType) | undefined;
|
|
22
|
-
}) => JSX.Element;
|
|
23
|
-
}, "dispatch"> & {
|
|
9
|
+
Get: import("react-redux").ConnectedComponent<typeof import("./components/sdk-get/sdk-get").SdkGet, import("react-redux").Omit<JSX.LibraryManagedAttributes<C, import("react-redux").GetProps<C>>, "dispatch"> & {
|
|
24
10
|
actionCreator: (...args: unknown[]) => import("./types").TSdkAction;
|
|
25
11
|
actionCreatorArgs?: unknown[] | undefined;
|
|
26
12
|
shouldRefetch?: ((prevArgs: unknown[], nextArgs: unknown[]) => boolean) | undefined;
|
|
@@ -31,7 +17,7 @@ declare const Sdk: {
|
|
|
31
17
|
refresh: () => Promise<void | import("@commercetools/sdk-client").Json>;
|
|
32
18
|
result?: import("@commercetools/sdk-client").Json | undefined;
|
|
33
19
|
error?: (Error | import("@commercetools/sdk-client").HttpErrorType) | undefined;
|
|
34
|
-
}) => JSX.Element;
|
|
20
|
+
}) => import("react").JSX.Element;
|
|
35
21
|
}>;
|
|
36
22
|
};
|
|
37
23
|
export { Sdk, actions };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "24.0.0",
|
|
4
4
|
"description": "Tools for declarative fetching",
|
|
5
5
|
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
"repository": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@babel/runtime": "^7.22.15",
|
|
39
39
|
"@babel/runtime-corejs3": "^7.22.15",
|
|
40
|
-
"@commercetools-frontend/constants": "
|
|
40
|
+
"@commercetools-frontend/constants": "24.0.0",
|
|
41
41
|
"@commercetools/api-request-builder": "6.0.0",
|
|
42
42
|
"@commercetools/http-user-agent": "3.0.0",
|
|
43
43
|
"@commercetools/sdk-client": "3.0.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@commercetools/sdk-middleware-http": "7.0.4",
|
|
46
46
|
"@types/node-fetch": "2.6.11",
|
|
47
47
|
"@types/prop-types": "^15.7.5",
|
|
48
|
-
"@types/react": "^
|
|
48
|
+
"@types/react": "^19.0.3",
|
|
49
49
|
"@types/react-redux": "^7.1.26",
|
|
50
50
|
"buffer": "6.0.3",
|
|
51
51
|
"fast-equals": "2.0.4",
|
|
@@ -57,17 +57,17 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@emotion/react": "^11.14.0",
|
|
60
|
-
"@testing-library/react": "
|
|
60
|
+
"@testing-library/react": "16.1.0",
|
|
61
61
|
"@types/uuid": "^9.0.3",
|
|
62
62
|
"jest-mock": "29.7.0",
|
|
63
|
-
"react": "
|
|
64
|
-
"react-dom": "
|
|
63
|
+
"react": "19.0.0",
|
|
64
|
+
"react-dom": "19.0.0",
|
|
65
65
|
"react-redux": "7.2.9",
|
|
66
66
|
"redux": "4.2.1",
|
|
67
67
|
"redux-thunk": "2.4.2"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"react": "
|
|
70
|
+
"react": "19.x",
|
|
71
71
|
"react-redux": "7.x",
|
|
72
72
|
"redux": "4.x"
|
|
73
73
|
}
|