@contentful/field-editor-shared 3.1.4 → 4.0.1-canary.14
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/cjs/queryClient.js +2 -2
- package/dist/esm/queryClient.js +2 -1
- package/dist/types/hooks/useLocalePublishStatus.d.ts +1 -1
- package/dist/types/hooks/useReleaseStatus.d.ts +1 -1
- package/dist/types/types.d.ts +2 -2
- package/dist/types/utils/getEntityReleaseStatus.d.ts +1 -1
- package/package.json +4 -4
package/dist/cjs/queryClient.js
CHANGED
|
@@ -20,7 +20,7 @@ _export(exports, {
|
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
23
|
-
const _reactquery = require("@tanstack/react-query");
|
|
23
|
+
const _reactquery = /*#__PURE__*/ _interop_require_wildcard(require("@tanstack/react-query"));
|
|
24
24
|
function _getRequireWildcardCache(nodeInterop) {
|
|
25
25
|
if (typeof WeakMap !== "function") return null;
|
|
26
26
|
var cacheBabelInterop = new WeakMap();
|
|
@@ -62,7 +62,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
62
62
|
}
|
|
63
63
|
return newObj;
|
|
64
64
|
}
|
|
65
|
-
const rqVersion =
|
|
65
|
+
const rqVersion = _reactquery.version;
|
|
66
66
|
const RQ_MAJOR = parseInt(rqVersion ?? '4', 10);
|
|
67
67
|
const IS_V5 = RQ_MAJOR >= 5;
|
|
68
68
|
const clientContext = /*#__PURE__*/ _react.createContext(undefined);
|
package/dist/esm/queryClient.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import * as ReactQuery from '@tanstack/react-query';
|
|
2
3
|
import { QueryClient, QueryClientProvider, useQuery as useRQv4, useQueryClient as useHostQueryClientV4 } from '@tanstack/react-query';
|
|
3
|
-
const rqVersion =
|
|
4
|
+
const rqVersion = ReactQuery.version;
|
|
4
5
|
const RQ_MAJOR = parseInt(rqVersion ?? '4', 10);
|
|
5
6
|
const IS_V5 = RQ_MAJOR >= 5;
|
|
6
7
|
const clientContext = /*#__PURE__*/ React.createContext(undefined);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LocalesAPI } from '@contentful/app-sdk';
|
|
2
|
-
import type { AssetProps, EntryProps, LocaleProps } from 'contentful-management
|
|
2
|
+
import type { AssetProps, EntryProps, LocaleProps } from 'contentful-management';
|
|
3
3
|
import { type SanitizedLocale } from '../utils/sanitizeLocales';
|
|
4
4
|
export type PublishStatus = 'draft' | 'published' | 'changed';
|
|
5
5
|
export type LocalePublishStatus = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LocalesAPI } from '@contentful/app-sdk';
|
|
2
|
-
import type { AssetProps, EntryProps, LocaleProps, ReleaseProps } from 'contentful-management
|
|
2
|
+
import type { AssetProps, EntryProps, LocaleProps, ReleaseProps } from 'contentful-management';
|
|
3
3
|
import type { ReleaseEntityStatus, ReleaseStatusMap, ReleaseV2Props } from '../types';
|
|
4
4
|
type UseActiveReleaseLocalesStatuses = {
|
|
5
5
|
entity?: Pick<EntryProps | AssetProps, 'sys'>;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BadgeVariant } from '@contentful/f36-components';
|
|
2
|
-
import type { CollectionProp, ReleaseProps } from 'contentful-management
|
|
3
|
-
import type { LocaleProps } from 'contentful-management
|
|
2
|
+
import type { CollectionProp, ReleaseProps } from 'contentful-management';
|
|
3
|
+
import type { LocaleProps } from 'contentful-management';
|
|
4
4
|
export type ValidationType = {
|
|
5
5
|
type: 'max';
|
|
6
6
|
max: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LocaleProps } from 'contentful-management
|
|
1
|
+
import type { LocaleProps } from 'contentful-management';
|
|
2
2
|
import type { ReleaseAction, ReleaseV2Entity, ReleaseV2EntityWithLocales, ReleaseV2Props } from '../types';
|
|
3
3
|
type GetEntityReleaseStatusResult = {
|
|
4
4
|
releaseAction: ReleaseAction;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-shared",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1-canary.14+b2660ed5",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@contentful/app-sdk": "^4.42.0",
|
|
46
|
-
"@contentful/field-editor-test-utils": "^
|
|
46
|
+
"@contentful/field-editor-test-utils": "^3.0.0",
|
|
47
47
|
"@lingui/core": "5.3.0",
|
|
48
48
|
"@tanstack/react-query": "^4.3.9",
|
|
49
49
|
"@testing-library/react": "16.3.0"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@contentful/f36-note": "^6.7.1",
|
|
55
55
|
"@contentful/f36-tokens": "^6.1.2",
|
|
56
56
|
"@emotion/css": "^11.13.5",
|
|
57
|
-
"contentful-management": "^
|
|
57
|
+
"contentful-management": "^12.3.0",
|
|
58
58
|
"fast-deep-equal": "^3.1.3",
|
|
59
59
|
"lodash": "^4.17.15"
|
|
60
60
|
},
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"registry": "https://npm.pkg.github.com/"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "b2660ed5523c6c7be45bc67b2801220fb5393b86"
|
|
77
77
|
}
|