@plaudit/gutenberg-api-extensions 2.65.0 → 2.66.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/build/blocks/SNPFlexibleItemsListComponent.d.ts +1 -1
- package/build/blocks/SNPTreeContext.d.ts +2 -9
- package/build/blocks/SNPTreeContext.js +1 -6
- package/build/blocks/SNPTreeContext.js.map +1 -1
- package/build/blocks/basic-custom-block-bindings-support.d.ts +3 -0
- package/build/blocks/basic-custom-block-bindings-support.js +7 -2
- package/build/blocks/basic-custom-block-bindings-support.js.map +1 -1
- package/build/blocks/common-native-property-constructors.d.ts +14 -2
- package/build/blocks/common-native-property-constructors.js +43 -3
- package/build/blocks/common-native-property-constructors.js.map +1 -1
- package/build/blocks/data-controller-manager.d.ts +1 -1
- package/build/blocks/data-controller.d.ts +1 -0
- package/build/blocks/data-controller.js +19 -6
- package/build/blocks/data-controller.js.map +1 -1
- package/build/blocks/index.d.ts +2 -1
- package/build/blocks/index.js +1 -1
- package/build/blocks/index.js.map +1 -1
- package/build/blocks/layered-styles-api.d.ts +2 -1
- package/build/blocks/layered-styles-api.js +1 -1
- package/build/blocks/layered-styles-api.js.map +1 -1
- package/build/blocks/layered-styles-impl.d.ts +1 -1
- package/build/blocks/layered-styles-impl.js.map +1 -1
- package/build/blocks/layout/PanelRoot.js +1 -1
- package/build/blocks/layout/PanelRoot.js.map +1 -1
- package/build/blocks/layout/TabsRoot.js +1 -1
- package/build/blocks/layout/TabsRoot.js.map +1 -1
- package/build/blocks/simple-native-property-api.d.ts +2 -3
- package/build/blocks/simple-native-property-api.js.map +1 -1
- package/build/blocks/simple-native-property-impl.d.ts +3 -0
- package/build/blocks/simple-native-property-impl.js +17 -11
- package/build/blocks/simple-native-property-impl.js.map +1 -1
- package/build/blocks/simple-native-property-internal-shared.d.ts +2 -2
- package/build/blocks/snp-api.d.ts +2 -31
- package/build/blocks/snp-api.js +1 -6
- package/build/blocks/snp-api.js.map +1 -1
- package/build/blocks/snp-data-store.d.ts +1 -1
- package/build/blocks/snp-data-store.js.map +1 -1
- package/build/controls/AsynchronousFormTokenField.d.ts +3 -0
- package/build/controls/AsynchronousFormTokenField.js +4 -3
- package/build/controls/AsynchronousFormTokenField.js.map +1 -1
- package/build/controls/ExtendedFormTokenField.d.ts +39 -0
- package/build/controls/ExtendedFormTokenField.js +133 -0
- package/build/controls/ExtendedFormTokenField.js.map +1 -0
- package/build/controls/ExtendedPostPicker.d.ts +5 -3
- package/build/controls/ExtendedPostPicker.js +28 -16
- package/build/controls/ExtendedPostPicker.js.map +1 -1
- package/build/controls/ExtendedTaxonomyPicker.d.ts +21 -0
- package/build/controls/ExtendedTaxonomyPicker.js +68 -0
- package/build/controls/ExtendedTaxonomyPicker.js.map +1 -0
- package/build/controls/MultiSelectControl.d.ts +1 -1
- package/build/controls/MultiSelectControl.js +19 -22
- package/build/controls/MultiSelectControl.js.map +1 -1
- package/build/controls/PromisableComponent.d.ts +1 -1
- package/build/controls/SortableFlexibleItemsControl.d.ts +2 -2
- package/build/controls/SortableFlexibleItemsControl.js.map +1 -1
- package/build/controls/hooks/useMultiSingleConversionLayer.d.ts +1 -2
- package/build/controls/hooks/useMultiSingleConversionLayer.js +1 -2
- package/build/controls/hooks/useMultiSingleConversionLayer.js.map +1 -1
- package/build/controls/hooks/useOutputMemoizingFilter.d.ts +1 -0
- package/build/controls/hooks/useOutputMemoizingFilter.js +15 -0
- package/build/controls/hooks/useOutputMemoizingFilter.js.map +1 -0
- package/build/controls/index.d.ts +2 -1
- package/build/controls/index.js +2 -1
- package/build/controls/index.js.map +1 -1
- package/build/editor/post-featured-image.d.ts +3 -0
- package/build/editor/post-featured-image.js +43 -35
- package/build/editor/post-featured-image.js.map +1 -1
- package/build/editor/simple-gutenberg-endpoints-api.d.ts +12 -3
- package/build/editor/simple-gutenberg-endpoints-api.js +19 -12
- package/build/editor/simple-gutenberg-endpoints-api.js.map +1 -1
- package/build/editor/simple-gutenberg-endpoints-impl.d.ts +24 -18
- package/build/editor/simple-gutenberg-endpoints-impl.js +77 -36
- package/build/editor/simple-gutenberg-endpoints-impl.js.map +1 -1
- package/build/index.d.ts +9 -3
- package/build/index.js +10 -7
- package/build/index.js.map +1 -1
- package/build/lib/gutenberg-api-extensions-state/general-logic.d.ts +1 -1
- package/build/lib/gutenberg-api-extensions-state/layered-block-styles-logic.d.ts +2 -2
- package/build/lib/gutenberg-api-extensions-state/snp-logic.d.ts +3 -4
- package/build/lib/gutenberg-api-extensions-state/snp-logic.js +7 -4
- package/build/lib/gutenberg-api-extensions-state/snp-logic.js.map +1 -1
- package/build/lib/gutenberg-api-extensions-state.d.ts +9 -26
- package/build/lib/gutenberg-api-extensions-state.js +6 -4
- package/build/lib/gutenberg-api-extensions-state.js.map +1 -1
- package/build/lib/helpers.d.ts +26 -2
- package/build/lib/helpers.js +54 -0
- package/build/lib/helpers.js.map +1 -1
- package/build/lib/suspense/promise-handlers.d.ts +2 -0
- package/build/lib/suspense/promise-handlers.js +24 -0
- package/build/lib/suspense/promise-handlers.js.map +1 -1
- package/build/lib/suspense.d.ts +1 -1
- package/build/lib/useful-types.d.ts +80 -3
- package/build/lib/useful-types.js +6 -1
- package/build/lib/useful-types.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { CustomBlockBindingsSupportLogicActions, CustomBlockBindingsSupportLogicState } from "./gutenberg-api-extensions-state/custom-block-bindings-support-logic";
|
|
1
|
+
import type { LaidOutProperties, SimpleNativePanel, SimpleNativeTab } from "../blocks";
|
|
2
|
+
import { CustomBlockBindingsSupportLogicState } from "./gutenberg-api-extensions-state/custom-block-bindings-support-logic";
|
|
4
3
|
import { GeneralLogicActions, GeneralLogicState } from "./gutenberg-api-extensions-state/general-logic";
|
|
5
|
-
import {
|
|
4
|
+
import { LayeredBlockStylesLogicState } from "./gutenberg-api-extensions-state/layered-block-styles-logic";
|
|
6
5
|
import { SNPLogicActions, SNPLogicState } from "./gutenberg-api-extensions-state/snp-logic";
|
|
7
|
-
import type {
|
|
6
|
+
import type { BlockName } from "./useful-types";
|
|
8
7
|
export type State = {
|
|
9
8
|
customBlockBindingsSupportLogic: CustomBlockBindingsSupportLogicState;
|
|
10
9
|
layeredBlockStylesLogic: LayeredBlockStylesLogicState;
|
|
@@ -16,24 +15,8 @@ export type NamedBlockAction<A extends string, P = {}> = {
|
|
|
16
15
|
type: A;
|
|
17
16
|
blockName: BlockName;
|
|
18
17
|
} & P;
|
|
19
|
-
export
|
|
20
|
-
|
|
21
|
-
};
|
|
22
|
-
export type ThunkParams<T extends StoreDescriptor> = {
|
|
23
|
-
select: ReturnType<typeof select<T>>;
|
|
24
|
-
dispatch: ReturnType<typeof dispatch<T>> & {
|
|
25
|
-
(action: ReducerActions | WordPressMetaActions): Promise<unknown>;
|
|
26
|
-
};
|
|
27
|
-
resolveSelect: PromisifyFunctionReturns<ReturnType<typeof select<T>>>;
|
|
28
|
-
};
|
|
29
|
-
export type PromisifyFunctionReturns<T extends {
|
|
30
|
-
[K in string]: (...args: any[]) => any;
|
|
31
|
-
}> = {
|
|
32
|
-
[K in keyof T]: (...args: Parameters<T[K]>) => Promise<ReturnType<T[K]>>;
|
|
33
|
-
};
|
|
34
|
-
type ReducerActions = CustomBlockBindingsSupportLogicActions | LayeredBlockStylesLogicActions | SNPLogicActions | GeneralLogicActions;
|
|
35
|
-
export declare const store: import("@wordpress/data/build-types/types").StoreDescriptor<import("@wordpress/data/build-types/types").ReduxStoreConfig<State, {
|
|
36
|
-
recordBaselineBlockAttrs(attrs: import("../blocks/snp-api").RegisterBlockAttrs<Record<string, any>>): GeneralLogicActions;
|
|
18
|
+
export declare const store: import("@wordpress/data/build-types/types").StoreDescriptor<import("@wordpress/data/build-types/types").ReduxStoreConfig<State, typeof import("@wordpress/data/build-types/redux-store/metadata/actions") & {
|
|
19
|
+
recordBaselineBlockAttrs(attrs: import("./useful-types").RegisterBlockAttrs<Record<string, any>>): GeneralLogicActions;
|
|
37
20
|
setFeatureProp(feature: string, prop: string, value: any): GeneralLogicActions;
|
|
38
21
|
addProperties(blockName: BlockName | BlockName[], properties: BareProperties): SNPLogicActions;
|
|
39
22
|
addOrUpdateExtraPropTransform(blockName: BlockName, propPath: string, extraPropTransform: import("../blocks/simple-native-property-internal-shared").ExtraPropTransformsConfig[string]): SNPLogicActions;
|
|
@@ -53,7 +36,7 @@ export declare const store: import("@wordpress/data/build-types/types").StoreDes
|
|
|
53
36
|
dbSources: (DBSource[] & import("../blocks").DbSource[]) | undefined;
|
|
54
37
|
};
|
|
55
38
|
};
|
|
56
|
-
}, {
|
|
39
|
+
}, typeof import("@wordpress/data/build-types/redux-store/metadata/selectors") & {
|
|
57
40
|
customBlockBindingsSource: (state: {
|
|
58
41
|
customBlockBindingsSupportLogic: CustomBlockBindingsSupportLogicState;
|
|
59
42
|
layeredBlockStylesLogic: LayeredBlockStylesLogicState;
|
|
@@ -108,7 +91,7 @@ export declare const store: import("@wordpress/data/build-types/types").StoreDes
|
|
|
108
91
|
layeredBlockStylesLogic: LayeredBlockStylesLogicState;
|
|
109
92
|
snpLogic: SNPLogicState;
|
|
110
93
|
generalLogic: GeneralLogicState;
|
|
111
|
-
}, blockName: `${string}/${string}`) => import("
|
|
94
|
+
}, blockName: `${string}/${string}`) => import("./useful-types").RegisterBlockAttrs<Record<string, any>> | undefined;
|
|
112
95
|
featureProp: (state: {
|
|
113
96
|
customBlockBindingsSupportLogic: CustomBlockBindingsSupportLogicState;
|
|
114
97
|
layeredBlockStylesLogic: LayeredBlockStylesLogicState;
|
|
@@ -116,4 +99,4 @@ export declare const store: import("@wordpress/data/build-types/types").StoreDes
|
|
|
116
99
|
generalLogic: GeneralLogicState;
|
|
117
100
|
}, feature: string, prop: string) => any;
|
|
118
101
|
}>>;
|
|
119
|
-
export
|
|
102
|
+
export declare function registerStore(): void;
|
|
@@ -3,7 +3,7 @@ import { customBlockBindingsSupportLogic, customBlockBindingsSupportLogicActions
|
|
|
3
3
|
import { generalLogic, generalLogicActions, generalLogicSelectors } from "./gutenberg-api-extensions-state/general-logic";
|
|
4
4
|
import { layeredBlockStylesLogic, layeredBlockStylesLogicActions, layeredBlockStylesLogicSelectors } from "./gutenberg-api-extensions-state/layered-block-styles-logic";
|
|
5
5
|
import { snpLogic, snpLogicActions, snpLogicSelectors } from "./gutenberg-api-extensions-state/snp-logic";
|
|
6
|
-
import { combineSelectors } from "./helpers";
|
|
6
|
+
import { combineSelectors, withExposedWordpressMetadata } from "./helpers";
|
|
7
7
|
const DEFAULT_STATE = {
|
|
8
8
|
customBlockBindingsSupportLogic: {
|
|
9
9
|
customBlockBindingsSupport: {}
|
|
@@ -21,7 +21,7 @@ const DEFAULT_STATE = {
|
|
|
21
21
|
baselineBlockAttrs: {}, features: {}
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
export const store = createReduxStore('plaudit/gutenberg-api-extensions', {
|
|
24
|
+
export const store = createReduxStore('plaudit/gutenberg-api-extensions', withExposedWordpressMetadata({
|
|
25
25
|
initialState: DEFAULT_STATE,
|
|
26
26
|
reducer: combineReducers({
|
|
27
27
|
customBlockBindingsSupportLogic,
|
|
@@ -41,6 +41,8 @@ export const store = createReduxStore('plaudit/gutenberg-api-extensions', {
|
|
|
41
41
|
snpLogic: snpLogicSelectors,
|
|
42
42
|
generalLogic: generalLogicSelectors
|
|
43
43
|
})
|
|
44
|
-
});
|
|
45
|
-
|
|
44
|
+
}));
|
|
45
|
+
export function registerStore() {
|
|
46
|
+
register(store);
|
|
47
|
+
}
|
|
46
48
|
//# sourceMappingURL=gutenberg-api-extensions-state.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gutenberg-api-extensions-state.js","sourceRoot":"","sources":["../../src/lib/gutenberg-api-extensions-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"gutenberg-api-extensions-state.js","s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,wCAAwC;QACzE,uBAAuB,EAAE,gCAAgC;QACzD,QAAQ,EAAE,iBAAiB;QAC3B,YAAY,EAAE,qBAAqB;KACnC,CAAC;CACF,CAAC,CAAC,CAAC;AAEJ,MAAM,UAAU,aAAa;IAC5B,QAAQ,CAAC,KAAK,CAAC,CAAC;AACjB,CAAC"}
|
package/build/lib/helpers.d.ts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
1
|
+
import { type select } from "@wordpress/data";
|
|
2
|
+
import type { ActionCreator, ReduxStoreConfig } from "@wordpress/data/build-types/types";
|
|
3
|
+
import type * as MetaActions from "@wordpress/data/build-types/redux-store/metadata/actions";
|
|
4
|
+
import type * as MetaSelectors from "@wordpress/data/build-types/redux-store/metadata/selectors";
|
|
5
|
+
import type { store as apiStore } from "./gutenberg-api-extensions-state";
|
|
6
|
+
import type { store as endpointsStore } from "../editor/simple-gutenberg-endpoints-impl";
|
|
7
|
+
import type { PromisifyFunctionReturns, SubsequentArgsOfFunc } from "./useful-types";
|
|
8
|
+
export declare function clone<T>(value: T): T;
|
|
9
|
+
type Mapping<K> = K extends 'plaudit/gutenberg-api-extensions' | (typeof apiStore) ? PromisifyFunctionReturns<ReturnType<typeof select<typeof apiStore>>> : K extends 'plaudit/simple-gutenberg-apis' | (typeof endpointsStore) ? PromisifyFunctionReturns<ReturnType<typeof select<typeof endpointsStore>>> : never;
|
|
10
|
+
export declare const fixedResolveSelect: (<K extends 'plaudit/gutenberg-api-extensions' | (typeof apiStore) | 'plaudit/simple-gutenberg-apis' | (typeof endpointsStore)>(key: K) => Mapping<K>);
|
|
3
11
|
type UnionToIntersection<U> = (U extends any ? (x: U) => void : never) extends ((x: infer I) => void) ? I : never;
|
|
4
12
|
type SelectorsForT<S, ST> = S extends {
|
|
5
13
|
[SELECTOR in string]: (state: any, ...args: any[]) => any;
|
|
@@ -18,4 +26,20 @@ type SelectorsArg<S extends {}> = {
|
|
|
18
26
|
};
|
|
19
27
|
};
|
|
20
28
|
export declare function combineSelectors<S extends SelectorsArg<any>>(selectors: S): CombinedSelectors<typeof selectors>;
|
|
29
|
+
export declare function withExposedWordpressMetadata<State, Actions extends Record<Exclude<string, keyof typeof MetaActions>, ActionCreator>, Selectors extends Omit<Selectors, keyof typeof MetaSelectors>>(options: ReduxStoreConfig<State, Actions, Selectors>): Omit<typeof options, 'actions' | 'selectors'> & {
|
|
30
|
+
actions: (typeof MetaActions) & (typeof options)['actions'];
|
|
31
|
+
selectors: (typeof MetaSelectors) & (typeof options)['selectors'];
|
|
32
|
+
};
|
|
33
|
+
export declare class TemporalLRUCache<K, V extends NonNullable<any> | undefined> {
|
|
34
|
+
private readonly capacity;
|
|
35
|
+
private readonly minDroppableAccessTime;
|
|
36
|
+
private readonly cache;
|
|
37
|
+
private timeout?;
|
|
38
|
+
constructor(capacity: number, minDroppableAccessTime?: number);
|
|
39
|
+
get(key: K): V | null;
|
|
40
|
+
set(key: K, value: V): void;
|
|
41
|
+
has(key: K): boolean;
|
|
42
|
+
cancelTimeout(): void;
|
|
43
|
+
private beginTimeout;
|
|
44
|
+
}
|
|
21
45
|
export {};
|
package/build/lib/helpers.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { resolveSelect } from "@wordpress/data";
|
|
1
2
|
export function clone(value) {
|
|
2
3
|
if (value === null || value === undefined) {
|
|
3
4
|
return value;
|
|
@@ -7,6 +8,7 @@ export function clone(value) {
|
|
|
7
8
|
}
|
|
8
9
|
return typeof value === 'object' ? Object.fromEntries(Object.entries(value).map(([k, v]) => [k, clone(v)])) : value;
|
|
9
10
|
}
|
|
11
|
+
export const fixedResolveSelect = resolveSelect;
|
|
10
12
|
export function combineSelectors(selectors) {
|
|
11
13
|
return Object.fromEntries(Object.entries(selectors).flatMap(sel => {
|
|
12
14
|
const key = sel[0];
|
|
@@ -17,4 +19,56 @@ export function combineSelectors(selectors) {
|
|
|
17
19
|
});
|
|
18
20
|
}));
|
|
19
21
|
}
|
|
22
|
+
export function withExposedWordpressMetadata(options) {
|
|
23
|
+
return options;
|
|
24
|
+
}
|
|
25
|
+
export class TemporalLRUCache {
|
|
26
|
+
capacity;
|
|
27
|
+
minDroppableAccessTime;
|
|
28
|
+
cache = new Map();
|
|
29
|
+
timeout;
|
|
30
|
+
constructor(capacity, minDroppableAccessTime = 10_000) {
|
|
31
|
+
this.capacity = capacity;
|
|
32
|
+
this.minDroppableAccessTime = minDroppableAccessTime;
|
|
33
|
+
}
|
|
34
|
+
get(key) {
|
|
35
|
+
const val = this.cache.get(key);
|
|
36
|
+
if (val !== undefined) {
|
|
37
|
+
val[1] = Date.now();
|
|
38
|
+
return val[0];
|
|
39
|
+
}
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
set(key, value) {
|
|
43
|
+
this.cache.set(key, [value, Date.now()]);
|
|
44
|
+
if (this.cache.size >= this.capacity && this.timeout === undefined) {
|
|
45
|
+
this.beginTimeout();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
has(key) {
|
|
49
|
+
return this.cache.has(key);
|
|
50
|
+
}
|
|
51
|
+
cancelTimeout() {
|
|
52
|
+
if (this.timeout !== undefined) {
|
|
53
|
+
window.clearTimeout(this.timeout);
|
|
54
|
+
this.timeout = undefined;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
beginTimeout() {
|
|
58
|
+
this.timeout = window.setTimeout(() => {
|
|
59
|
+
const now = Date.now();
|
|
60
|
+
const droppableItems = [...this.cache.entries()]
|
|
61
|
+
.filter(([_, v]) => now - v[1] >= this.minDroppableAccessTime)
|
|
62
|
+
.sort(([_a, [_a0, mraA]], [_b, [_b0, mraB]]) => mraA - mraB)
|
|
63
|
+
.slice(0, this.cache.size - this.capacity);
|
|
64
|
+
for (const [key] of droppableItems) {
|
|
65
|
+
this.cache.delete(key);
|
|
66
|
+
}
|
|
67
|
+
this.timeout = undefined;
|
|
68
|
+
if (this.cache.size > this.capacity) {
|
|
69
|
+
this.beginTimeout();
|
|
70
|
+
}
|
|
71
|
+
}, this.minDroppableAccessTime);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
20
74
|
//# sourceMappingURL=helpers.js.map
|
package/build/lib/helpers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/lib/helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/lib/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAc,MAAM,iBAAiB,CAAC;AAS3D,MAAM,UAAU,KAAK,CAAI,KAAQ;IAChC,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QAC3C,OAAO,KAAK,CAAC;IACd,CAAC;SAAM,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACjC,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAM,CAAC;IACtC,CAAC;IACD,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAM,CAAC,CAAC,CAAC,KAAK,CAAC;AAC1H,CAAC;AAOD,MAAM,CAAC,MAAM,kBAAkB,GACqH,aAAa,CAAC;AAmBlK,MAAM,UAAU,gBAAgB,CAA8B,SAAY;IACzE,OAAO,MAAM,CAAC,WAAW,CAAE,MAAM,CAAC,OAAO,CAAC,SAAS,CAA6B,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;QAC9F,MAAM,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;QACnB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GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACrC,IAAI,CAAC,YAAY,EAAE,CAAC;YACrB,CAAC;QACF,CAAC,EAAE,IAAI,CAAC,sBAAsB,CAAC,CAAC;IACjC,CAAC;CACD"}
|
|
@@ -13,6 +13,8 @@ export type PartiallyWrappedPromise<T> = Promise<T> & ({
|
|
|
13
13
|
} | WrappedPromiseEnhancements<T>);
|
|
14
14
|
export declare function isWrappedPromise<T>(promise: Promise<T>): promise is WrappedPromise<T>;
|
|
15
15
|
export declare function use<T>(promise: PartiallyWrappedPromise<T>): T;
|
|
16
|
+
export declare function useImmediately<T>(promise: PartiallyWrappedPromise<T>): T | undefined;
|
|
17
|
+
export declare function useToPromise<T>(promise: PartiallyWrappedPromise<T>): Promise<T>;
|
|
16
18
|
export declare function wrapPromise<T>(promise: PartiallyWrappedPromise<T>): WrappedPromise<T>;
|
|
17
19
|
export declare function getPromiseState(promise: PartiallyWrappedPromise<any>): "pending" | "fulfilled" | "rejected";
|
|
18
20
|
export {};
|
|
@@ -14,6 +14,30 @@ export function use(promise) {
|
|
|
14
14
|
return use(actuallyWrapPromise(promise));
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
+
export function useImmediately(promise) {
|
|
18
|
+
switch (promise.status) {
|
|
19
|
+
case "pending":
|
|
20
|
+
return undefined;
|
|
21
|
+
case "fulfilled":
|
|
22
|
+
return promise.value;
|
|
23
|
+
case "rejected":
|
|
24
|
+
throw promise.reason;
|
|
25
|
+
default:
|
|
26
|
+
return useImmediately(actuallyWrapPromise(promise));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export function useToPromise(promise) {
|
|
30
|
+
switch (promise.status) {
|
|
31
|
+
case "pending":
|
|
32
|
+
throw promise;
|
|
33
|
+
case "fulfilled":
|
|
34
|
+
return Promise.resolve(promise.value);
|
|
35
|
+
case "rejected":
|
|
36
|
+
throw promise.reason;
|
|
37
|
+
default:
|
|
38
|
+
return useToPromise(actuallyWrapPromise(promise));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
17
41
|
export function wrapPromise(promise) {
|
|
18
42
|
return isWrappedPromise(promise) ? promise : actuallyWrapPromise(promise);
|
|
19
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promise-handlers.js","sourceRoot":"","sources":["../../../src/lib/suspense/promise-handlers.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,gBAAgB,CAAI,OAAmB;IACtD,OAAO,QAAQ,IAAI,OAAO;WACtB,CAAC,OAAO,CAAC,MAAM,KAAK,SAAS,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,WAAW,IAAI,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,UAAU,IAAI,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC;AACxJ,CAAC;AAED,MAAM,UAAU,GAAG,CAAI,OAAmC;IACzD,QAAQ,OAAO,CAAC,MAAM,EAAE,CAAC;QACxB,KAAK,SAAS;YACb,MAAM,OAAO,CAAC;QACf,KAAK,WAAW;YACf,OAAO,OAAO,CAAC,KAAK,CAAC;QACtB,KAAK,UAAU;YACd,MAAM,OAAO,CAAC,MAAM,CAAC;QACtB;YACC,OAAO,GAAG,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC;IAC3C,CAAC;AACF,CAAC;AAED,MAAM,UAAU,WAAW,CAAI,OAAmC;IACjE,OAAO,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;AAC3E,CAAC;AACD,SAAS,mBAAmB,CAAI,OAAmC;IAClE,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAC3B,OAAO,CAAC,IAAI,CACX,KAAK,CAAC,EAAE;QACN,OAAsC,CAAC,MAAM,GAAG,WAAW,CAAC;QAC5D,OAAe,CAAC,KAAK,GAAG,KAAK,CAAC;IAChC,CAAC,EACD,MAA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AAC,CAAC,CAAC;IACtD,CAAC;AACF,CAAC;AAED,MAAM,UAAU,YAAY,CAAI,OAAmC;IAClE,QAAQ,OAAO,CAAC,MAAM,EAAE,CAAC;QACxB,KAAK,SAAS;YACb,MAAM,OAAO,CAAC;QACf,KAAK,WAAW;YACf,OAAO,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACvC,KAAK,UAAU;YACd,MAAM,OAAO,CAAC,MAAM,CAAC;QACtB;YACC,OAAO,YAAY,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC;IACpD,CAAC;AACF,CAAC;AAED,MAAM,UAAU,WAAW,CAAI,OAAmC;IACjE,OAAO,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;AAC3E,CAAC;AACD,SAAS,mBAAmB,CAAI,OAAmC;IAClE,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAC3B,OAAO,CAAC,IAAI,CACX,KAAK,CAAC,EAAE;QACN,OAAsC,CAAC,MAAM,GAAG,WAAW,CAAC;QAC5D,OAAe,CAAC,KAAK,GAAG,KAAK,CAAC;IAChC,CAAC,EACD,MAAM,CAAC,EAAE;QACP,OAAsC,CAAC,MAAM,GAAG,UAAU,CAAC;QAC3D,OAAe,CAAC,MAAM,GAAG,MAAM,CAAC;IAClC,CAAC,CACD,CAAC;IACF,OAAO,OAA4B,CAAC;AACrC,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,OAAqC;IACpE,OAAO,WAAW,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC;AACpC,CAAC"}
|
package/build/lib/suspense.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ type OptionallySuspensefulProps = Omit<SuspenseProps, 'children'> & {
|
|
|
4
4
|
children: ReactNode | (() => ReactNode);
|
|
5
5
|
hasSuspensefulOptions: (() => boolean) | boolean;
|
|
6
6
|
};
|
|
7
|
-
export declare function OptionallySuspenseful({ children: Children, hasSuspensefulOptions, ...props }: OptionallySuspensefulProps): string | number | boolean | import("react/jsx-runtime").JSX.Element |
|
|
7
|
+
export declare function OptionallySuspenseful({ children: Children, hasSuspensefulOptions, ...props }: OptionallySuspensefulProps): string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
@@ -1,10 +1,87 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type { Block } from "@wordpress/blocks";
|
|
2
|
+
import { dispatch, select, StoreDescriptor } from "@wordpress/data";
|
|
3
|
+
import type * as MetaActions from "@wordpress/data/build-types/redux-store/metadata/actions";
|
|
4
|
+
import type { PropertiesParameter } from "../blocks";
|
|
2
5
|
export type NormalizedReduxActionExtractor<V> = V extends {
|
|
3
|
-
[key in string]: (...args: any[]) =>
|
|
4
|
-
} ? NormalizedReduxActionExtractor<
|
|
6
|
+
[key in string]: (...args: any[]) => infer R;
|
|
7
|
+
} ? NormalizedReduxActionExtractor<R> : V extends {
|
|
5
8
|
type: string;
|
|
6
9
|
} ? V : (V extends (...args: any[]) => {
|
|
7
10
|
type: string;
|
|
8
11
|
} ? ReturnType<V> : never);
|
|
9
12
|
export type WordPressMetaActions = NormalizedReduxActionExtractor<typeof MetaActions>;
|
|
10
13
|
export type SubsequentArgsOfFunc<F> = F extends (arg: any, ...args: infer R) => any ? R : never;
|
|
14
|
+
export type BlockName = `${string}/${string}`;
|
|
15
|
+
export type ActualBEPAttrs = Record<string, any> & {
|
|
16
|
+
className?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
export type ActualBlockEditProps = {
|
|
19
|
+
attributes: ActualBEPAttrs;
|
|
20
|
+
setAttributes: (attributes: ActualBEPAttrs) => void;
|
|
21
|
+
name: BlockName;
|
|
22
|
+
clientId: string;
|
|
23
|
+
};
|
|
24
|
+
export type ActualBlockListBlockProps = {
|
|
25
|
+
attributes: ActualBEPAttrs;
|
|
26
|
+
name: BlockName;
|
|
27
|
+
clientId: string;
|
|
28
|
+
};
|
|
29
|
+
export type BlockJsonNativePropsConfig = {
|
|
30
|
+
type: "native";
|
|
31
|
+
properties?: PropertiesParameter | undefined;
|
|
32
|
+
};
|
|
33
|
+
export type RegisterBlockAttrs<T extends Record<string, any> = {}> = {
|
|
34
|
+
name: BlockName;
|
|
35
|
+
attributes: Block<T>['attributes'];
|
|
36
|
+
usesContext?: string[];
|
|
37
|
+
plaudit?: "native" | boolean | {
|
|
38
|
+
group: any;
|
|
39
|
+
} | BlockJsonNativePropsConfig | undefined;
|
|
40
|
+
};
|
|
41
|
+
export declare function isBlockJsonNativePropsConfig(thing: unknown): thing is BlockJsonNativePropsConfig;
|
|
42
|
+
export type NonEmptyArray<T> = [T, ...T[]];
|
|
43
|
+
export declare function arrayIsNotEmpty<T>(arr: T[] | null | undefined): arr is NonEmptyArray<T>;
|
|
44
|
+
export type MinThunkParams<S, A> = {
|
|
45
|
+
select<R>(selector: (state: {
|
|
46
|
+
root: S;
|
|
47
|
+
}) => R): R;
|
|
48
|
+
dispatch(action: A | WordPressMetaActions): Promise<unknown>;
|
|
49
|
+
resolveSelect: any;
|
|
50
|
+
};
|
|
51
|
+
export type ThunkParams<T extends StoreDescriptor, S, A> = {
|
|
52
|
+
select: ReturnType<typeof select<T>> & {
|
|
53
|
+
<R>(selector: (state: {
|
|
54
|
+
root: S;
|
|
55
|
+
}) => R): R;
|
|
56
|
+
};
|
|
57
|
+
dispatch: ReturnType<typeof dispatch<T>> & {
|
|
58
|
+
(action: A | (typeof MetaActions)): Promise<unknown>;
|
|
59
|
+
};
|
|
60
|
+
resolveSelect: PromisifyFunctionReturns<ReturnType<typeof select<T>>>;
|
|
61
|
+
};
|
|
62
|
+
export type PromisifyFunctionReturns<T extends {
|
|
63
|
+
[K in string]: (...args: any[]) => any;
|
|
64
|
+
}> = {
|
|
65
|
+
[K in keyof T]: (...args: Parameters<T[K]>) => Promise<ReturnType<T[K]>>;
|
|
66
|
+
};
|
|
67
|
+
export type WPTaxonomyQuery = {
|
|
68
|
+
relation?: 'AND' | 'OR';
|
|
69
|
+
clauses: Array<WPTaxonomyQuery>;
|
|
70
|
+
} | WPTaxonomyQueryFirstOrderClause;
|
|
71
|
+
type WPTaxonomyQueryFirstOrderClause = {
|
|
72
|
+
include_children?: boolean;
|
|
73
|
+
operator?: 'AND' | 'IN' | 'NOT IN' | 'EXISTS' | 'NOT EXISTS';
|
|
74
|
+
} & (({
|
|
75
|
+
taxonomy: string;
|
|
76
|
+
} & ({
|
|
77
|
+
terms: number | number[];
|
|
78
|
+
field?: 'term_id';
|
|
79
|
+
} | {
|
|
80
|
+
terms: string | string[];
|
|
81
|
+
field: 'slug' | 'name';
|
|
82
|
+
})) | {
|
|
83
|
+
taxonomy?: string;
|
|
84
|
+
terms: number | number[];
|
|
85
|
+
field: 'term_taxonomy_id';
|
|
86
|
+
});
|
|
87
|
+
export {};
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export function isBlockJsonNativePropsConfig(thing) {
|
|
2
|
+
return typeof thing === 'object' && thing !== null && 'type' in thing && thing.type === "native";
|
|
3
|
+
}
|
|
4
|
+
export function arrayIsNotEmpty(arr) {
|
|
5
|
+
return !!arr && arr.length > 0;
|
|
6
|
+
}
|
|
2
7
|
//# sourceMappingURL=useful-types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useful-types.js","sourceRoot":"","sources":["../../src/lib/useful-types.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"useful-types.js","sourceRoot":"","sources":["../../src/lib/useful-types.ts"],"names":[],"mappings":"AA6BA,MAAM,UAAU,4BAA4B,CAAC,KAAc;IAC1D,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,MAAM,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC;AAClG,CAAC;AAGD,MAAM,UAAU,eAAe,CAAI,GAAuB;IACzD,OAAO,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC;AAChC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plaudit/gutenberg-api-extensions",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.66.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepublishOnly": "rm -rf build && mkdir build && tsc",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@wordpress/hooks": "^4.8.2",
|
|
46
46
|
"@wordpress/i18n": "^5.8.2",
|
|
47
47
|
"@wordpress/icons": "^10.8.2",
|
|
48
|
-
"framer-motion": "^
|
|
48
|
+
"framer-motion": "^12.4.7",
|
|
49
49
|
"html-react-parser": "^5.2.2",
|
|
50
50
|
"immer": "^9.0.21",
|
|
51
51
|
"react": "^18.3.1",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"redux": "^4.2.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"typescript": "^5.7.
|
|
56
|
+
"typescript": "^5.7.3"
|
|
57
57
|
},
|
|
58
58
|
"resolutions": {
|
|
59
59
|
"@wordpress/blocks": "^13.8.5",
|