@kontent-ai/custom-app-sdk 2.1.1 → 2.2.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/README.md +109 -0
- package/dist/contexts.d.ts +29 -16
- package/dist/contexts.js +75 -31
- package/dist/contexts.js.map +1 -1
- package/dist/contexts.test-d.js +36 -0
- package/dist/contexts.test-d.js.map +1 -1
- package/dist/customAppSdk.js +2 -20
- package/dist/customAppSdk.js.map +1 -1
- package/dist/iframeSchema.d.ts +69 -5
- package/dist/iframeSchema.js +33 -1
- package/dist/iframeSchema.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -52,6 +52,38 @@ if (response.isError) {
|
|
|
52
52
|
itemListingSelection: response.context.itemListingSelection
|
|
53
53
|
});
|
|
54
54
|
break;
|
|
55
|
+
case "contentTypeListing":
|
|
56
|
+
case "snippetListing":
|
|
57
|
+
console.log({
|
|
58
|
+
contentModelListingSelection: response.context.contentModelListingSelection,
|
|
59
|
+
contentModelListingFilter: response.context.contentModelListingFilter
|
|
60
|
+
});
|
|
61
|
+
break;
|
|
62
|
+
case "taxonomyListing":
|
|
63
|
+
console.log({
|
|
64
|
+
contentModelListingSelection: response.context.contentModelListingSelection
|
|
65
|
+
});
|
|
66
|
+
break;
|
|
67
|
+
case "contentTypeEditor":
|
|
68
|
+
console.log({
|
|
69
|
+
contentTypeId: response.context.contentTypeId,
|
|
70
|
+
hasUnsavedChanges: response.context.hasUnsavedChanges,
|
|
71
|
+
validationErrors: response.context.validationErrors
|
|
72
|
+
});
|
|
73
|
+
break;
|
|
74
|
+
case "snippetEditor":
|
|
75
|
+
console.log({
|
|
76
|
+
snippetId: response.context.snippetId,
|
|
77
|
+
hasUnsavedChanges: response.context.hasUnsavedChanges,
|
|
78
|
+
validationErrors: response.context.validationErrors
|
|
79
|
+
});
|
|
80
|
+
break;
|
|
81
|
+
case "taxonomyEditor":
|
|
82
|
+
console.log({
|
|
83
|
+
taxonomyGroupId: response.context.taxonomyGroupId,
|
|
84
|
+
hasUnsavedChanges: response.context.hasUnsavedChanges
|
|
85
|
+
});
|
|
86
|
+
break;
|
|
55
87
|
}
|
|
56
88
|
}
|
|
57
89
|
```
|
|
@@ -121,6 +153,67 @@ When `currentPage` is `"contentInventory"`, the context includes the shared prop
|
|
|
121
153
|
| `itemListingFilter` | SerializedListingFilter | The current filter settings applied to the content item listing |
|
|
122
154
|
| `itemListingSelection` | ItemListingSelection | The current selection state of items in the listing |
|
|
123
155
|
|
|
156
|
+
##### Content Type Listing Page Context
|
|
157
|
+
|
|
158
|
+
When `currentPage` is `"contentTypeListing"`, the context includes the shared properties above plus:
|
|
159
|
+
|
|
160
|
+
| Property | Type | Description |
|
|
161
|
+
|--------------------------------|-----------------------------------|----------------------------------------------------------------------|
|
|
162
|
+
| `currentPage` | `"contentTypeListing"` | Identifies this as a content type listing page |
|
|
163
|
+
| `contentModelListingSelection` | ContentModelListingSelection | The current selection state of content types in the listing |
|
|
164
|
+
| `contentModelListingFilter` | ContentModelListingFilter | The current filter settings applied to the content type listing |
|
|
165
|
+
|
|
166
|
+
##### Content Type Editor Page Context
|
|
167
|
+
|
|
168
|
+
When `currentPage` is `"contentTypeEditor"`, the context includes the shared properties above plus:
|
|
169
|
+
|
|
170
|
+
| Property | Type | Description |
|
|
171
|
+
|-------------------------|---------------------------------------|----------------------------------------------------------------------|
|
|
172
|
+
| `currentPage` | `"contentTypeEditor"` | Identifies this as a content type editor page |
|
|
173
|
+
| `contentTypeId` | UUID \| null | The ID of the content type being edited, or `null` when creating new |
|
|
174
|
+
| `hasUnsavedChanges` | boolean | Whether the content type has unsaved changes |
|
|
175
|
+
| `validationErrors` | Record<string, Array<string>> | A record of validation errors for content type fields |
|
|
176
|
+
|
|
177
|
+
##### Snippet Listing Page Context
|
|
178
|
+
|
|
179
|
+
When `currentPage` is `"snippetListing"`, the context includes the shared properties above plus:
|
|
180
|
+
|
|
181
|
+
| Property | Type | Description |
|
|
182
|
+
|--------------------------------|-----------------------------------|----------------------------------------------------------------------|
|
|
183
|
+
| `currentPage` | `"snippetListing"` | Identifies this as a snippet listing page |
|
|
184
|
+
| `contentModelListingSelection` | ContentModelListingSelection | The current selection state of snippets in the listing |
|
|
185
|
+
| `contentModelListingFilter` | ContentModelListingFilter | The current filter settings applied to the snippet listing |
|
|
186
|
+
|
|
187
|
+
##### Snippet Editor Page Context
|
|
188
|
+
|
|
189
|
+
When `currentPage` is `"snippetEditor"`, the context includes the shared properties above plus:
|
|
190
|
+
|
|
191
|
+
| Property | Type | Description |
|
|
192
|
+
|-------------------------|---------------------------------------|----------------------------------------------------------------------|
|
|
193
|
+
| `currentPage` | `"snippetEditor"` | Identifies this as a snippet editor page |
|
|
194
|
+
| `snippetId` | UUID \| null | The ID of the snippet being edited, or `null` when creating new |
|
|
195
|
+
| `hasUnsavedChanges` | boolean | Whether the snippet has unsaved changes |
|
|
196
|
+
| `validationErrors` | Record<string, Array<string>> | A record of validation errors for snippet fields |
|
|
197
|
+
|
|
198
|
+
##### Taxonomy Listing Page Context
|
|
199
|
+
|
|
200
|
+
When `currentPage` is `"taxonomyListing"`, the context includes the shared properties above plus:
|
|
201
|
+
|
|
202
|
+
| Property | Type | Description |
|
|
203
|
+
|--------------------------------|-----------------------------------|----------------------------------------------------------------------|
|
|
204
|
+
| `currentPage` | `"taxonomyListing"` | Identifies this as a taxonomy listing page |
|
|
205
|
+
| `contentModelListingSelection` | ContentModelListingSelection | The current selection state of taxonomy groups in the listing |
|
|
206
|
+
|
|
207
|
+
##### Taxonomy Editor Page Context
|
|
208
|
+
|
|
209
|
+
When `currentPage` is `"taxonomyEditor"`, the context includes the shared properties above plus:
|
|
210
|
+
|
|
211
|
+
| Property | Type | Description |
|
|
212
|
+
|-------------------------|---------------------------------------|----------------------------------------------------------------------|
|
|
213
|
+
| `currentPage` | `"taxonomyEditor"` | Identifies this as a taxonomy editor page |
|
|
214
|
+
| `taxonomyGroupId` | UUID | The ID of the taxonomy group being edited |
|
|
215
|
+
| `hasUnsavedChanges` | boolean | Whether the taxonomy group has unsaved changes |
|
|
216
|
+
|
|
124
217
|
##### Other Page Context
|
|
125
218
|
|
|
126
219
|
When `currentPage` is `"other"`, the context includes the shared properties above plus:
|
|
@@ -184,6 +277,22 @@ The current selection state of items in the content inventory listing.
|
|
|
184
277
|
| `selectedItemIds` | Array\<UUID\> | IDs of content items that are selected (when `selectAll` is false, these are the selected items; when `selectAll` is true, these are exceptions to the selection) |
|
|
185
278
|
| `unselectedItemIds` | Array\<UUID\> | IDs of content items that are explicitly unselected (used when `selectAll` is true to exclude specific items) |
|
|
186
279
|
|
|
280
|
+
#### ContentModelListingSelection
|
|
281
|
+
|
|
282
|
+
The current selection state of items in the content model listing pages (content types, snippets, taxonomies).
|
|
283
|
+
|
|
284
|
+
| Property | Type | Description |
|
|
285
|
+
|-----------------------|----------------|----------------------------------------------------------------------------------|
|
|
286
|
+
| `selectedIds` | Array\<UUID\> | IDs of the selected items in the listing |
|
|
287
|
+
|
|
288
|
+
#### ContentModelListingFilter
|
|
289
|
+
|
|
290
|
+
The filter settings applied to content model listing pages (content types, snippets).
|
|
291
|
+
|
|
292
|
+
| Property | Type | Description |
|
|
293
|
+
|-----------------------|----------------|----------------------------------------------------------------------------------|
|
|
294
|
+
| `searchPhrase` | string | The search phrase entered by the user |
|
|
295
|
+
|
|
187
296
|
### observeCustomAppContext
|
|
188
297
|
|
|
189
298
|
Subscribes to context changes and receives notifications when the context is updated. The function takes a callback that will be invoked whenever the context changes.
|
package/dist/contexts.d.ts
CHANGED
|
@@ -1,24 +1,37 @@
|
|
|
1
1
|
import type { CustomAppContextProperties } from "./iframeSchema";
|
|
2
2
|
type MakeOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
3
3
|
declare const itemEditorContextProperties: readonly ["path", "pageTitle", "environmentId", "userId", "userEmail", "userRoles", "appConfig", "contentItemId", "languageId", "validationErrors", "currentPage"];
|
|
4
|
-
declare const optionalProperties: readonly ["appConfig"];
|
|
5
|
-
type RawItemEditorContext = Pick<CustomAppContextProperties, (typeof itemEditorContextProperties)[number]>;
|
|
6
|
-
export type ItemEditorContext = MakeOptional<Required<RawItemEditorContext>, (typeof optionalProperties)[number]> & {
|
|
7
|
-
readonly currentPage: "itemEditor";
|
|
8
|
-
};
|
|
9
|
-
export declare const isItemEditorContext: (context: RawItemEditorContext) => context is ItemEditorContext;
|
|
10
4
|
declare const itemListingContextProperties: readonly ["path", "pageTitle", "environmentId", "userId", "userEmail", "userRoles", "appConfig", "languageId", "itemListingFilter", "itemListingSelection", "currentPage"];
|
|
11
|
-
type RawItemListingContext = Pick<CustomAppContextProperties, (typeof itemListingContextProperties)[number]>;
|
|
12
|
-
export type ItemListingContext = MakeOptional<Required<RawItemListingContext>, (typeof optionalProperties)[number]> & {
|
|
13
|
-
readonly currentPage: "contentInventory";
|
|
14
|
-
};
|
|
15
|
-
export declare const isItemListingContext: (context: RawItemListingContext) => context is ItemListingContext;
|
|
16
5
|
declare const otherContextProperties: readonly ["path", "pageTitle", "environmentId", "userId", "userEmail", "userRoles", "appConfig", "currentPage"];
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
6
|
+
declare const contentTypeListingContextProperties: readonly ["path", "pageTitle", "environmentId", "userId", "userEmail", "userRoles", "appConfig", "contentModelListingSelection", "contentModelListingFilter", "currentPage"];
|
|
7
|
+
declare const contentTypeEditorContextProperties: readonly ["path", "pageTitle", "environmentId", "userId", "userEmail", "userRoles", "appConfig", "contentTypeId", "hasUnsavedChanges", "validationErrors", "currentPage"];
|
|
8
|
+
declare const snippetListingContextProperties: readonly ["path", "pageTitle", "environmentId", "userId", "userEmail", "userRoles", "appConfig", "contentModelListingSelection", "contentModelListingFilter", "currentPage"];
|
|
9
|
+
declare const snippetEditorContextProperties: readonly ["path", "pageTitle", "environmentId", "userId", "userEmail", "userRoles", "appConfig", "snippetId", "hasUnsavedChanges", "validationErrors", "currentPage"];
|
|
10
|
+
declare const taxonomyListingContextProperties: readonly ["path", "pageTitle", "environmentId", "userId", "userEmail", "userRoles", "appConfig", "contentModelListingSelection", "currentPage"];
|
|
11
|
+
declare const taxonomyEditorContextProperties: readonly ["path", "pageTitle", "environmentId", "userId", "userEmail", "userRoles", "appConfig", "taxonomyGroupId", "hasUnsavedChanges", "currentPage"];
|
|
12
|
+
declare const optionalProperties: readonly ["appConfig"];
|
|
13
|
+
type ContextForPage<Props extends ReadonlyArray<keyof CustomAppContextProperties>, Page extends NonNullable<CustomAppContextProperties["currentPage"]>> = MakeOptional<Required<Pick<CustomAppContextProperties, Props[number]>>, (typeof optionalProperties)[number]> & {
|
|
14
|
+
readonly currentPage: Page;
|
|
20
15
|
};
|
|
21
|
-
export
|
|
22
|
-
export type
|
|
16
|
+
export type ItemEditorContext = ContextForPage<typeof itemEditorContextProperties, "itemEditor">;
|
|
17
|
+
export type ItemListingContext = ContextForPage<typeof itemListingContextProperties, "contentInventory">;
|
|
18
|
+
export type OtherContext = ContextForPage<typeof otherContextProperties, "other">;
|
|
19
|
+
export type ContentTypeListingContext = ContextForPage<typeof contentTypeListingContextProperties, "contentTypeListing">;
|
|
20
|
+
export type ContentTypeEditorContext = ContextForPage<typeof contentTypeEditorContextProperties, "contentTypeEditor">;
|
|
21
|
+
export type SnippetListingContext = ContextForPage<typeof snippetListingContextProperties, "snippetListing">;
|
|
22
|
+
export type SnippetEditorContext = ContextForPage<typeof snippetEditorContextProperties, "snippetEditor">;
|
|
23
|
+
export type TaxonomyListingContext = ContextForPage<typeof taxonomyListingContextProperties, "taxonomyListing">;
|
|
24
|
+
export type TaxonomyEditorContext = ContextForPage<typeof taxonomyEditorContextProperties, "taxonomyEditor">;
|
|
25
|
+
export type Context = ItemEditorContext | ItemListingContext | OtherContext | ContentTypeListingContext | ContentTypeEditorContext | SnippetListingContext | SnippetEditorContext | TaxonomyListingContext | TaxonomyEditorContext;
|
|
26
|
+
export declare const isItemEditorContext: (context: CustomAppContextProperties) => context is ContextForPage<readonly ["path", "pageTitle", "environmentId", "userId", "userEmail", "userRoles", "appConfig", "contentItemId", "languageId", "validationErrors", "currentPage"], "itemEditor">;
|
|
27
|
+
export declare const isItemListingContext: (context: CustomAppContextProperties) => context is ContextForPage<readonly ["path", "pageTitle", "environmentId", "userId", "userEmail", "userRoles", "appConfig", "languageId", "itemListingFilter", "itemListingSelection", "currentPage"], "contentInventory">;
|
|
28
|
+
export declare const isOtherContext: (context: CustomAppContextProperties) => context is ContextForPage<readonly ["path", "pageTitle", "environmentId", "userId", "userEmail", "userRoles", "appConfig", "currentPage"], "other">;
|
|
29
|
+
export declare const isContentTypeListingContext: (context: CustomAppContextProperties) => context is ContextForPage<readonly ["path", "pageTitle", "environmentId", "userId", "userEmail", "userRoles", "appConfig", "contentModelListingSelection", "contentModelListingFilter", "currentPage"], "contentTypeListing">;
|
|
30
|
+
export declare const isContentTypeEditorContext: (context: CustomAppContextProperties) => context is ContextForPage<readonly ["path", "pageTitle", "environmentId", "userId", "userEmail", "userRoles", "appConfig", "contentTypeId", "hasUnsavedChanges", "validationErrors", "currentPage"], "contentTypeEditor">;
|
|
31
|
+
export declare const isSnippetListingContext: (context: CustomAppContextProperties) => context is ContextForPage<readonly ["path", "pageTitle", "environmentId", "userId", "userEmail", "userRoles", "appConfig", "contentModelListingSelection", "contentModelListingFilter", "currentPage"], "snippetListing">;
|
|
32
|
+
export declare const isSnippetEditorContext: (context: CustomAppContextProperties) => context is ContextForPage<readonly ["path", "pageTitle", "environmentId", "userId", "userEmail", "userRoles", "appConfig", "snippetId", "hasUnsavedChanges", "validationErrors", "currentPage"], "snippetEditor">;
|
|
33
|
+
export declare const isTaxonomyListingContext: (context: CustomAppContextProperties) => context is ContextForPage<readonly ["path", "pageTitle", "environmentId", "userId", "userEmail", "userRoles", "appConfig", "contentModelListingSelection", "currentPage"], "taxonomyListing">;
|
|
34
|
+
export declare const isTaxonomyEditorContext: (context: CustomAppContextProperties) => context is ContextForPage<readonly ["path", "pageTitle", "environmentId", "userId", "userEmail", "userRoles", "appConfig", "taxonomyGroupId", "hasUnsavedChanges", "currentPage"], "taxonomyEditor">;
|
|
35
|
+
export declare const isContext: (context: CustomAppContextProperties) => context is Context;
|
|
23
36
|
export declare const getContextPropertiesForPage: (currentPage: Context["currentPage"] | undefined) => ReadonlyArray<keyof CustomAppContextProperties>;
|
|
24
37
|
export {};
|
package/dist/contexts.js
CHANGED
|
@@ -14,14 +14,6 @@ const itemEditorContextProperties = [
|
|
|
14
14
|
"validationErrors",
|
|
15
15
|
"currentPage",
|
|
16
16
|
];
|
|
17
|
-
const optionalProperties = ["appConfig"];
|
|
18
|
-
const isOptionalProperty = (property) => !optionalProperties.includes(property);
|
|
19
|
-
export const isItemEditorContext = (context) => {
|
|
20
|
-
return (context.currentPage === "itemEditor" &&
|
|
21
|
-
itemEditorContextProperties
|
|
22
|
-
.filter(isOptionalProperty)
|
|
23
|
-
.every((property) => property in context && context[property] !== undefined));
|
|
24
|
-
};
|
|
25
17
|
const itemListingContextProperties = [
|
|
26
18
|
...sharedContextProperties,
|
|
27
19
|
"languageId",
|
|
@@ -29,32 +21,84 @@ const itemListingContextProperties = [
|
|
|
29
21
|
"itemListingSelection",
|
|
30
22
|
"currentPage",
|
|
31
23
|
];
|
|
32
|
-
export const isItemListingContext = (context) => {
|
|
33
|
-
return (context.currentPage === "contentInventory" &&
|
|
34
|
-
itemListingContextProperties
|
|
35
|
-
.filter(isOptionalProperty)
|
|
36
|
-
.every((property) => property in context && context[property] !== undefined));
|
|
37
|
-
};
|
|
38
24
|
const otherContextProperties = [
|
|
39
25
|
...sharedContextProperties,
|
|
40
26
|
"currentPage",
|
|
41
27
|
];
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
28
|
+
const contentTypeListingContextProperties = [
|
|
29
|
+
...sharedContextProperties,
|
|
30
|
+
"contentModelListingSelection",
|
|
31
|
+
"contentModelListingFilter",
|
|
32
|
+
"currentPage",
|
|
33
|
+
];
|
|
34
|
+
const contentTypeEditorContextProperties = [
|
|
35
|
+
...sharedContextProperties,
|
|
36
|
+
"contentTypeId",
|
|
37
|
+
"hasUnsavedChanges",
|
|
38
|
+
"validationErrors",
|
|
39
|
+
"currentPage",
|
|
40
|
+
];
|
|
41
|
+
const snippetListingContextProperties = [
|
|
42
|
+
...sharedContextProperties,
|
|
43
|
+
"contentModelListingSelection",
|
|
44
|
+
"contentModelListingFilter",
|
|
45
|
+
"currentPage",
|
|
46
|
+
];
|
|
47
|
+
const snippetEditorContextProperties = [
|
|
48
|
+
...sharedContextProperties,
|
|
49
|
+
"snippetId",
|
|
50
|
+
"hasUnsavedChanges",
|
|
51
|
+
"validationErrors",
|
|
52
|
+
"currentPage",
|
|
53
|
+
];
|
|
54
|
+
const taxonomyListingContextProperties = [
|
|
55
|
+
...sharedContextProperties,
|
|
56
|
+
"contentModelListingSelection",
|
|
57
|
+
"currentPage",
|
|
58
|
+
];
|
|
59
|
+
const taxonomyEditorContextProperties = [
|
|
60
|
+
...sharedContextProperties,
|
|
61
|
+
"taxonomyGroupId",
|
|
62
|
+
"hasUnsavedChanges",
|
|
63
|
+
"currentPage",
|
|
64
|
+
];
|
|
65
|
+
const optionalProperties = ["appConfig"];
|
|
66
|
+
const isRequiredProperty = (property) => !optionalProperties.includes(property);
|
|
67
|
+
const createContextGuard = (properties, page) => (context) => context.currentPage === page &&
|
|
68
|
+
properties
|
|
69
|
+
.filter(isRequiredProperty)
|
|
70
|
+
.every((property) => property in context && context[property] !== undefined);
|
|
71
|
+
export const isItemEditorContext = createContextGuard(itemEditorContextProperties, "itemEditor");
|
|
72
|
+
export const isItemListingContext = createContextGuard(itemListingContextProperties, "contentInventory");
|
|
73
|
+
export const isOtherContext = createContextGuard(otherContextProperties, "other");
|
|
74
|
+
export const isContentTypeListingContext = createContextGuard(contentTypeListingContextProperties, "contentTypeListing");
|
|
75
|
+
export const isContentTypeEditorContext = createContextGuard(contentTypeEditorContextProperties, "contentTypeEditor");
|
|
76
|
+
export const isSnippetListingContext = createContextGuard(snippetListingContextProperties, "snippetListing");
|
|
77
|
+
export const isSnippetEditorContext = createContextGuard(snippetEditorContextProperties, "snippetEditor");
|
|
78
|
+
export const isTaxonomyListingContext = createContextGuard(taxonomyListingContextProperties, "taxonomyListing");
|
|
79
|
+
export const isTaxonomyEditorContext = createContextGuard(taxonomyEditorContextProperties, "taxonomyEditor");
|
|
80
|
+
const contextGuards = [
|
|
81
|
+
isItemEditorContext,
|
|
82
|
+
isItemListingContext,
|
|
83
|
+
isOtherContext,
|
|
84
|
+
isContentTypeListingContext,
|
|
85
|
+
isContentTypeEditorContext,
|
|
86
|
+
isSnippetListingContext,
|
|
87
|
+
isSnippetEditorContext,
|
|
88
|
+
isTaxonomyListingContext,
|
|
89
|
+
isTaxonomyEditorContext,
|
|
90
|
+
];
|
|
91
|
+
export const isContext = (context) => contextGuards.some((guard) => guard(context));
|
|
92
|
+
const contextPropertiesByPage = {
|
|
93
|
+
itemEditor: itemEditorContextProperties,
|
|
94
|
+
contentInventory: itemListingContextProperties,
|
|
95
|
+
other: otherContextProperties,
|
|
96
|
+
contentTypeListing: contentTypeListingContextProperties,
|
|
97
|
+
contentTypeEditor: contentTypeEditorContextProperties,
|
|
98
|
+
snippetListing: snippetListingContextProperties,
|
|
99
|
+
snippetEditor: snippetEditorContextProperties,
|
|
100
|
+
taxonomyListing: taxonomyListingContextProperties,
|
|
101
|
+
taxonomyEditor: taxonomyEditorContextProperties,
|
|
59
102
|
};
|
|
103
|
+
export const getContextPropertiesForPage = (currentPage) => currentPage !== undefined ? contextPropertiesByPage[currentPage] : [];
|
|
60
104
|
//# sourceMappingURL=contexts.js.map
|
package/dist/contexts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contexts.js","sourceRoot":"","sources":["../src/contexts.ts"],"names":[],"mappings":"AAIA,MAAM,uBAAuB,GAAG;IAC9B,MAAM;IACN,WAAW;IACX,eAAe;IACf,QAAQ;IACR,WAAW;IACX,WAAW;IACX,WAAW;CACuD,CAAC;AAErE,MAAM,2BAA2B,GAAG;IAClC,GAAG,uBAAuB;IAC1B,eAAe;IACf,YAAY;IACZ,kBAAkB;IAClB,aAAa;CACqD,CAAC;AAErE,MAAM,kBAAkB,GAAG,CAAC,WAAW,CAEtC,CAAC;AAEF,MAAM,kBAAkB,GAAG,CAAC,QAA0C,EAAW,EAAE,CACjF,CAAE,kBAAwC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"contexts.js","sourceRoot":"","sources":["../src/contexts.ts"],"names":[],"mappings":"AAIA,MAAM,uBAAuB,GAAG;IAC9B,MAAM;IACN,WAAW;IACX,eAAe;IACf,QAAQ;IACR,WAAW;IACX,WAAW;IACX,WAAW;CACuD,CAAC;AAErE,MAAM,2BAA2B,GAAG;IAClC,GAAG,uBAAuB;IAC1B,eAAe;IACf,YAAY;IACZ,kBAAkB;IAClB,aAAa;CACqD,CAAC;AAErE,MAAM,4BAA4B,GAAG;IACnC,GAAG,uBAAuB;IAC1B,YAAY;IACZ,mBAAmB;IACnB,sBAAsB;IACtB,aAAa;CACqD,CAAC;AAErE,MAAM,sBAAsB,GAAG;IAC7B,GAAG,uBAAuB;IAC1B,aAAa;CACqD,CAAC;AAErE,MAAM,mCAAmC,GAAG;IAC1C,GAAG,uBAAuB;IAC1B,8BAA8B;IAC9B,2BAA2B;IAC3B,aAAa;CACqD,CAAC;AAErE,MAAM,kCAAkC,GAAG;IACzC,GAAG,uBAAuB;IAC1B,eAAe;IACf,mBAAmB;IACnB,kBAAkB;IAClB,aAAa;CACqD,CAAC;AAErE,MAAM,+BAA+B,GAAG;IACtC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{
|
|
|
22
22
|
test("OtherContext has literal currentPage", () => {
|
|
23
23
|
expectTypeOf().toEqualTypeOf();
|
|
24
24
|
});
|
|
25
|
+
test("ContentTypeListingContext has only content type listing properties", () => {
|
|
26
|
+
expectTypeOf().toEqualTypeOf();
|
|
27
|
+
});
|
|
28
|
+
test("ContentTypeListingContext has literal currentPage", () => {
|
|
29
|
+
expectTypeOf().toEqualTypeOf();
|
|
30
|
+
});
|
|
31
|
+
test("ContentTypeEditorContext has only content type editor properties", () => {
|
|
32
|
+
expectTypeOf().toEqualTypeOf();
|
|
33
|
+
});
|
|
34
|
+
test("ContentTypeEditorContext has literal currentPage", () => {
|
|
35
|
+
expectTypeOf().toEqualTypeOf();
|
|
36
|
+
});
|
|
37
|
+
test("SnippetListingContext has only snippet listing properties", () => {
|
|
38
|
+
expectTypeOf().toEqualTypeOf();
|
|
39
|
+
});
|
|
40
|
+
test("SnippetListingContext has literal currentPage", () => {
|
|
41
|
+
expectTypeOf().toEqualTypeOf();
|
|
42
|
+
});
|
|
43
|
+
test("SnippetEditorContext has only snippet editor properties", () => {
|
|
44
|
+
expectTypeOf().toEqualTypeOf();
|
|
45
|
+
});
|
|
46
|
+
test("SnippetEditorContext has literal currentPage", () => {
|
|
47
|
+
expectTypeOf().toEqualTypeOf();
|
|
48
|
+
});
|
|
49
|
+
test("TaxonomyListingContext has only taxonomy listing properties", () => {
|
|
50
|
+
expectTypeOf().toEqualTypeOf();
|
|
51
|
+
});
|
|
52
|
+
test("TaxonomyListingContext has literal currentPage", () => {
|
|
53
|
+
expectTypeOf().toEqualTypeOf();
|
|
54
|
+
});
|
|
55
|
+
test("TaxonomyEditorContext has only taxonomy editor properties", () => {
|
|
56
|
+
expectTypeOf().toEqualTypeOf();
|
|
57
|
+
});
|
|
58
|
+
test("TaxonomyEditorContext has literal currentPage", () => {
|
|
59
|
+
expectTypeOf().toEqualTypeOf();
|
|
60
|
+
});
|
|
25
61
|
});
|
|
26
62
|
//# sourceMappingURL=contexts.test-d.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contexts.test-d.js","sourceRoot":"","sources":["../src/contexts.test-d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"contexts.test-d.js","sourceRoot":"","sources":["../src/contexts.test-d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AActD,QAAQ,CAAC,uCAAuC,EAAE,GAAG,EAAE;IACrD,IAAI,CAAC,mDAAmD,EAAE,GAAG,EAAE;QAC7D,YAAY,EAAkC,CAAC,YAAY,EAAE,CAAC;QAC9D,YAAY,EAA2B,CAAC,aAAa,EAYlD,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,qDAAqD,EAAE,GAAG,EAAE;QAC/D,YAAY,EAA4B,CAAC,aAAa,EAYnD,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,yCAAyC,EAAE,GAAG,EAAE;QACnD,YAAY,EAAsB,CAAC,aAAa,EAS7C,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,iDAAiD,EAAE,GAAG,EAAE;QAC3D,YAAY,EAA0B,CAAC,aAAa,EAUjD,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,2CAA2C,EAAE,GAAG,EAAE;QACrD,YAAY,EAAoC,CAAC,aAAa,EAAgB,CAAC;IACjF,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,4CAA4C,EAAE,GAAG,EAAE;QACtD,YAAY,EAAqC,CAAC,aAAa,EAAsB,CAAC;IACxF,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,sCAAsC,EAAE,GAAG,EAAE;QAChD,YAAY,EAA+B,CAAC,aAAa,EAAW,CAAC;IACvE,CAAC,CAAC,CAAC;IAEH,I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CAAC;IAEH,IAAI,CAAC,+CAA+C,EAAE,GAAG,EAAE;QACzD,YAAY,EAAwC,CAAC,aAAa,EAAoB,CAAC;IACzF,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/dist/customAppSdk.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getContextPropertiesForPage,
|
|
1
|
+
import { getContextPropertiesForPage, isContext } from "./contexts";
|
|
2
2
|
import { addNotificationCallback, removeNotificationCallback, sendMessage, } from "./iframeMessenger";
|
|
3
3
|
import { ErrorMessage, PublishingState, VariantCompletionStatus, } from "./iframeSchema";
|
|
4
4
|
import { matchesSchema } from "./matchesSchema";
|
|
@@ -125,23 +125,5 @@ export const observeCustomAppContext = async (callback) => {
|
|
|
125
125
|
unsubscribe,
|
|
126
126
|
};
|
|
127
127
|
};
|
|
128
|
-
const getContextFromProperties = (properties) => {
|
|
129
|
-
const currentPage = properties.currentPage;
|
|
130
|
-
switch (currentPage) {
|
|
131
|
-
case "itemEditor":
|
|
132
|
-
return isItemEditorContext(properties)
|
|
133
|
-
? { isError: false, context: properties }
|
|
134
|
-
: outdatedContextError;
|
|
135
|
-
case "contentInventory":
|
|
136
|
-
return isItemListingContext(properties)
|
|
137
|
-
? { isError: false, context: properties }
|
|
138
|
-
: outdatedContextError;
|
|
139
|
-
case "other":
|
|
140
|
-
return isOtherContext(properties)
|
|
141
|
-
? { isError: false, context: properties }
|
|
142
|
-
: outdatedContextError;
|
|
143
|
-
default:
|
|
144
|
-
return outdatedContextError;
|
|
145
|
-
}
|
|
146
|
-
};
|
|
128
|
+
const getContextFromProperties = (properties) => isContext(properties) ? { isError: false, context: properties } : outdatedContextError;
|
|
147
129
|
//# sourceMappingURL=customAppSdk.js.map
|
package/dist/customAppSdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customAppSdk.js","sourceRoot":"","sources":["../src/customAppSdk.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
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,EAAE;QACF,MAAM,aAAa,GAAG,wBAAwB,CAAC,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QAChF,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC;YAC3B,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAClC,CAAC;IACH,CAAC,CAAC;IAEF,uBAAuB,CAAC,eAAe,CAAC,OAAO,CAAC,cAAc,EAAE,mBAAmB,CAAC,CAAC;IAErF,MAAM,WAAW,GAAG,KAAK,IAAmB,EAAE;QAC5C,0BAA0B,CAAC,eAAe,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;QAEnE,MAAM,WAAW,CAA8B;YAC7C,IAAI,EAAE,6BAA6B;YACnC,OAAO,EAAE,OAAO;YAChB,OAAO,EAAE;gBACP,cAAc,EAAE,eAAe,CAAC,OAAO,CAAC,cAAc;aACvD;SACF,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,OAAO;QACL,OAAO,EAAE,KAAK;QACd,OAAO,EAAE,cAAc,CAAC,OAAO;QAC/B,WAAW;KACZ,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,wBAAwB,GAAG,CAC/B,UAAsC,EACC,EAAE,CACzC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,oBAAoB,CAAC"}
|
package/dist/iframeSchema.d.ts
CHANGED
|
@@ -89,15 +89,25 @@ export type CustomAppContextProperties = {
|
|
|
89
89
|
readonly path?: string;
|
|
90
90
|
readonly pageTitle?: string;
|
|
91
91
|
readonly validationErrors?: Readonly<Record<string, ReadonlyArray<string>>>;
|
|
92
|
-
readonly currentPage?: "itemEditor" | "contentInventory" | "other";
|
|
92
|
+
readonly currentPage?: "itemEditor" | "contentInventory" | "contentTypeListing" | "contentTypeEditor" | "snippetListing" | "snippetEditor" | "taxonomyListing" | "taxonomyEditor" | "other";
|
|
93
93
|
readonly itemListingFilter?: SerializedListingFilter;
|
|
94
94
|
readonly itemListingSelection?: Readonly<{
|
|
95
95
|
readonly selectAll: boolean;
|
|
96
96
|
readonly selectedItemIds: ReadonlyArray<string>;
|
|
97
97
|
readonly unselectedItemIds: ReadonlyArray<string>;
|
|
98
98
|
}>;
|
|
99
|
+
readonly contentTypeId?: string | null;
|
|
100
|
+
readonly snippetId?: string | null;
|
|
101
|
+
readonly taxonomyGroupId?: string;
|
|
102
|
+
readonly hasUnsavedChanges?: boolean;
|
|
103
|
+
readonly contentModelListingSelection?: Readonly<{
|
|
104
|
+
readonly selectedIds: ReadonlyArray<string>;
|
|
105
|
+
}>;
|
|
106
|
+
readonly contentModelListingFilter?: Readonly<{
|
|
107
|
+
readonly searchPhrase: string;
|
|
108
|
+
}>;
|
|
99
109
|
};
|
|
100
|
-
export declare const allCustomAppContextPropertyKeys: readonly ("environmentId" | "userId" | "userEmail" | "userRoles" | "appConfig" | "contentItemId" | "languageId" | "path" | "pageTitle" | "validationErrors" | "currentPage" | "itemListingFilter" | "itemListingSelection")[];
|
|
110
|
+
export declare const allCustomAppContextPropertyKeys: readonly ("environmentId" | "userId" | "userEmail" | "userRoles" | "appConfig" | "contentItemId" | "languageId" | "path" | "pageTitle" | "validationErrors" | "currentPage" | "itemListingFilter" | "itemListingSelection" | "contentTypeId" | "snippetId" | "taxonomyGroupId" | "hasUnsavedChanges" | "contentModelListingSelection" | "contentModelListingFilter")[];
|
|
101
111
|
declare const ClientGetContextV2Request: z.ZodReadonly<z.ZodObject<{
|
|
102
112
|
type: z.ZodLiteral<"get-context-request">;
|
|
103
113
|
requestId: z.ZodString;
|
|
@@ -117,6 +127,12 @@ declare const ClientGetContextV2Request: z.ZodReadonly<z.ZodObject<{
|
|
|
117
127
|
currentPage: "currentPage";
|
|
118
128
|
itemListingFilter: "itemListingFilter";
|
|
119
129
|
itemListingSelection: "itemListingSelection";
|
|
130
|
+
contentTypeId: "contentTypeId";
|
|
131
|
+
snippetId: "snippetId";
|
|
132
|
+
taxonomyGroupId: "taxonomyGroupId";
|
|
133
|
+
hasUnsavedChanges: "hasUnsavedChanges";
|
|
134
|
+
contentModelListingSelection: "contentModelListingSelection";
|
|
135
|
+
contentModelListingFilter: "contentModelListingFilter";
|
|
120
136
|
}>>>;
|
|
121
137
|
}, z.core.$strip>>;
|
|
122
138
|
}, z.core.$strip>>;
|
|
@@ -134,7 +150,7 @@ declare const CustomAppContextPropertiesSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
134
150
|
path: z.ZodOptional<z.ZodString>;
|
|
135
151
|
pageTitle: z.ZodOptional<z.ZodString>;
|
|
136
152
|
validationErrors: z.ZodOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString>>>>>;
|
|
137
|
-
currentPage: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"itemEditor">, z.ZodLiteral<"contentInventory">, z.ZodLiteral<"other">]>>;
|
|
153
|
+
currentPage: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"itemEditor">, z.ZodLiteral<"contentInventory">, z.ZodLiteral<"contentTypeListing">, z.ZodLiteral<"contentTypeEditor">, z.ZodLiteral<"snippetListing">, z.ZodLiteral<"snippetEditor">, z.ZodLiteral<"taxonomyListing">, z.ZodLiteral<"taxonomyEditor">, z.ZodLiteral<"other">]>>;
|
|
138
154
|
itemListingFilter: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
139
155
|
selectedCollections: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
140
156
|
selectedContentItemStatus: z.ZodReadonly<z.ZodArray<z.ZodEnum<typeof VariantCompletionStatus>>>;
|
|
@@ -152,6 +168,16 @@ declare const CustomAppContextPropertiesSchema: z.ZodReadonly<z.ZodObject<{
|
|
|
152
168
|
selectedItemIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
153
169
|
unselectedItemIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
154
170
|
}, z.core.$strip>>>;
|
|
171
|
+
contentTypeId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
172
|
+
snippetId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
173
|
+
taxonomyGroupId: z.ZodOptional<z.ZodString>;
|
|
174
|
+
hasUnsavedChanges: z.ZodOptional<z.ZodBoolean>;
|
|
175
|
+
contentModelListingSelection: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
176
|
+
selectedIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
177
|
+
}, z.core.$strip>>>;
|
|
178
|
+
contentModelListingFilter: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
179
|
+
searchPhrase: z.ZodString;
|
|
180
|
+
}, z.core.$strip>>>;
|
|
155
181
|
}, z.core.$strip>>;
|
|
156
182
|
export type CustomAppContext = z.infer<typeof CustomAppContextPropertiesSchema>;
|
|
157
183
|
declare const ClientGetContextV2Response: z.ZodReadonly<z.ZodUnion<[z.ZodObject<{
|
|
@@ -172,7 +198,7 @@ declare const ClientGetContextV2Response: z.ZodReadonly<z.ZodUnion<[z.ZodObject<
|
|
|
172
198
|
path: z.ZodOptional<z.ZodString>;
|
|
173
199
|
pageTitle: z.ZodOptional<z.ZodString>;
|
|
174
200
|
validationErrors: z.ZodOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString>>>>>;
|
|
175
|
-
currentPage: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"itemEditor">, z.ZodLiteral<"contentInventory">, z.ZodLiteral<"other">]>>;
|
|
201
|
+
currentPage: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"itemEditor">, z.ZodLiteral<"contentInventory">, z.ZodLiteral<"contentTypeListing">, z.ZodLiteral<"contentTypeEditor">, z.ZodLiteral<"snippetListing">, z.ZodLiteral<"snippetEditor">, z.ZodLiteral<"taxonomyListing">, z.ZodLiteral<"taxonomyEditor">, z.ZodLiteral<"other">]>>;
|
|
176
202
|
itemListingFilter: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
177
203
|
selectedCollections: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
178
204
|
selectedContentItemStatus: z.ZodReadonly<z.ZodArray<z.ZodEnum<typeof VariantCompletionStatus>>>;
|
|
@@ -190,6 +216,16 @@ declare const ClientGetContextV2Response: z.ZodReadonly<z.ZodUnion<[z.ZodObject<
|
|
|
190
216
|
selectedItemIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
191
217
|
unselectedItemIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
192
218
|
}, z.core.$strip>>>;
|
|
219
|
+
contentTypeId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
220
|
+
snippetId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
221
|
+
taxonomyGroupId: z.ZodOptional<z.ZodString>;
|
|
222
|
+
hasUnsavedChanges: z.ZodOptional<z.ZodBoolean>;
|
|
223
|
+
contentModelListingSelection: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
224
|
+
selectedIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
225
|
+
}, z.core.$strip>>>;
|
|
226
|
+
contentModelListingFilter: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
227
|
+
searchPhrase: z.ZodString;
|
|
228
|
+
}, z.core.$strip>>>;
|
|
193
229
|
}, z.core.$strip>>>;
|
|
194
230
|
}, z.core.$strip>>;
|
|
195
231
|
requestId: z.ZodString;
|
|
@@ -251,6 +287,12 @@ export declare const ClientObserveContextV1Request: z.ZodReadonly<z.ZodObject<{
|
|
|
251
287
|
currentPage: "currentPage";
|
|
252
288
|
itemListingFilter: "itemListingFilter";
|
|
253
289
|
itemListingSelection: "itemListingSelection";
|
|
290
|
+
contentTypeId: "contentTypeId";
|
|
291
|
+
snippetId: "snippetId";
|
|
292
|
+
taxonomyGroupId: "taxonomyGroupId";
|
|
293
|
+
hasUnsavedChanges: "hasUnsavedChanges";
|
|
294
|
+
contentModelListingSelection: "contentModelListingSelection";
|
|
295
|
+
contentModelListingFilter: "contentModelListingFilter";
|
|
254
296
|
}>>>;
|
|
255
297
|
}, z.core.$strip>>;
|
|
256
298
|
}, z.core.$strip>>;
|
|
@@ -309,7 +351,7 @@ export declare const ClientContextChangedV1Notification: z.ZodReadonly<z.ZodObje
|
|
|
309
351
|
path: z.ZodOptional<z.ZodString>;
|
|
310
352
|
pageTitle: z.ZodOptional<z.ZodString>;
|
|
311
353
|
validationErrors: z.ZodOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString>>>>>;
|
|
312
|
-
currentPage: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"itemEditor">, z.ZodLiteral<"contentInventory">, z.ZodLiteral<"other">]>>;
|
|
354
|
+
currentPage: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"itemEditor">, z.ZodLiteral<"contentInventory">, z.ZodLiteral<"contentTypeListing">, z.ZodLiteral<"contentTypeEditor">, z.ZodLiteral<"snippetListing">, z.ZodLiteral<"snippetEditor">, z.ZodLiteral<"taxonomyListing">, z.ZodLiteral<"taxonomyEditor">, z.ZodLiteral<"other">]>>;
|
|
313
355
|
itemListingFilter: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
314
356
|
selectedCollections: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
315
357
|
selectedContentItemStatus: z.ZodReadonly<z.ZodArray<z.ZodEnum<typeof VariantCompletionStatus>>>;
|
|
@@ -327,6 +369,16 @@ export declare const ClientContextChangedV1Notification: z.ZodReadonly<z.ZodObje
|
|
|
327
369
|
selectedItemIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
328
370
|
unselectedItemIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
329
371
|
}, z.core.$strip>>>;
|
|
372
|
+
contentTypeId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
373
|
+
snippetId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
374
|
+
taxonomyGroupId: z.ZodOptional<z.ZodString>;
|
|
375
|
+
hasUnsavedChanges: z.ZodOptional<z.ZodBoolean>;
|
|
376
|
+
contentModelListingSelection: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
377
|
+
selectedIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
378
|
+
}, z.core.$strip>>>;
|
|
379
|
+
contentModelListingFilter: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
380
|
+
searchPhrase: z.ZodString;
|
|
381
|
+
}, z.core.$strip>>>;
|
|
330
382
|
}, z.core.$strip>>>;
|
|
331
383
|
}, z.core.$strip>>;
|
|
332
384
|
}, z.core.$strip>>;
|
|
@@ -354,6 +406,12 @@ export declare const AllClientRequestMessages: z.ZodUnion<readonly [z.ZodReadonl
|
|
|
354
406
|
currentPage: "currentPage";
|
|
355
407
|
itemListingFilter: "itemListingFilter";
|
|
356
408
|
itemListingSelection: "itemListingSelection";
|
|
409
|
+
contentTypeId: "contentTypeId";
|
|
410
|
+
snippetId: "snippetId";
|
|
411
|
+
taxonomyGroupId: "taxonomyGroupId";
|
|
412
|
+
hasUnsavedChanges: "hasUnsavedChanges";
|
|
413
|
+
contentModelListingSelection: "contentModelListingSelection";
|
|
414
|
+
contentModelListingFilter: "contentModelListingFilter";
|
|
357
415
|
}>>>;
|
|
358
416
|
}, z.core.$strip>>;
|
|
359
417
|
}, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
|
|
@@ -395,6 +453,12 @@ export declare const AllClientRequestMessages: z.ZodUnion<readonly [z.ZodReadonl
|
|
|
395
453
|
currentPage: "currentPage";
|
|
396
454
|
itemListingFilter: "itemListingFilter";
|
|
397
455
|
itemListingSelection: "itemListingSelection";
|
|
456
|
+
contentTypeId: "contentTypeId";
|
|
457
|
+
snippetId: "snippetId";
|
|
458
|
+
taxonomyGroupId: "taxonomyGroupId";
|
|
459
|
+
hasUnsavedChanges: "hasUnsavedChanges";
|
|
460
|
+
contentModelListingSelection: "contentModelListingSelection";
|
|
461
|
+
contentModelListingFilter: "contentModelListingFilter";
|
|
398
462
|
}>>>;
|
|
399
463
|
}, z.core.$strip>>;
|
|
400
464
|
}, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
|
package/dist/iframeSchema.js
CHANGED
|
@@ -77,6 +77,12 @@ export const allCustomAppContextPropertyKeys = Object.keys({
|
|
|
77
77
|
currentPage: "",
|
|
78
78
|
itemListingFilter: "",
|
|
79
79
|
itemListingSelection: "",
|
|
80
|
+
contentTypeId: "",
|
|
81
|
+
snippetId: "",
|
|
82
|
+
taxonomyGroupId: "",
|
|
83
|
+
hasUnsavedChanges: "",
|
|
84
|
+
contentModelListingSelection: "",
|
|
85
|
+
contentModelListingFilter: "",
|
|
80
86
|
});
|
|
81
87
|
const ClientGetContextV2Request = z
|
|
82
88
|
.object({
|
|
@@ -111,7 +117,17 @@ const CustomAppContextPropertiesSchema = z
|
|
|
111
117
|
pageTitle: z.string().optional(),
|
|
112
118
|
validationErrors: z.record(z.string(), z.array(z.string()).readonly()).readonly().optional(),
|
|
113
119
|
currentPage: z
|
|
114
|
-
.union([
|
|
120
|
+
.union([
|
|
121
|
+
z.literal("itemEditor"),
|
|
122
|
+
z.literal("contentInventory"),
|
|
123
|
+
z.literal("contentTypeListing"),
|
|
124
|
+
z.literal("contentTypeEditor"),
|
|
125
|
+
z.literal("snippetListing"),
|
|
126
|
+
z.literal("snippetEditor"),
|
|
127
|
+
z.literal("taxonomyListing"),
|
|
128
|
+
z.literal("taxonomyEditor"),
|
|
129
|
+
z.literal("other"),
|
|
130
|
+
])
|
|
115
131
|
.optional(),
|
|
116
132
|
itemListingFilter: z
|
|
117
133
|
.object({
|
|
@@ -136,6 +152,22 @@ const CustomAppContextPropertiesSchema = z
|
|
|
136
152
|
})
|
|
137
153
|
.readonly()
|
|
138
154
|
.optional(),
|
|
155
|
+
contentTypeId: z.string().uuid().or(z.null()).optional(),
|
|
156
|
+
snippetId: z.string().uuid().or(z.null()).optional(),
|
|
157
|
+
taxonomyGroupId: z.string().uuid().optional(),
|
|
158
|
+
hasUnsavedChanges: z.boolean().optional(),
|
|
159
|
+
contentModelListingSelection: z
|
|
160
|
+
.object({
|
|
161
|
+
selectedIds: z.array(z.string()).readonly(),
|
|
162
|
+
})
|
|
163
|
+
.readonly()
|
|
164
|
+
.optional(),
|
|
165
|
+
contentModelListingFilter: z
|
|
166
|
+
.object({
|
|
167
|
+
searchPhrase: z.string(),
|
|
168
|
+
})
|
|
169
|
+
.readonly()
|
|
170
|
+
.optional(),
|
|
139
171
|
})
|
|
140
172
|
.readonly();
|
|
141
173
|
const ClientGetContextV2Response = z
|
package/dist/iframeSchema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iframeSchema.js","sourceRoot":"","sources":["../src/iframeSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,+CAAkC,CAAA;IAClC,2CAA8B,CAAA;AAChC,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAED,MAAM,CAAN,IAAY,uBAKX;AALD,WAAY,uBAAuB;IACjC,oDAAyB,CAAA;IACzB,0CAAe,CAAA;IACf,0DAA+B,CAAA;IAC/B,8CAAmB,CAAA;AACrB,CAAC,EALW,uBAAuB,KAAvB,uBAAuB,QAKlC;AAED,MAAM,CAAN,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,0CAAuB,CAAA;IACvB,8CAA2B,CAAA;IAC3B,gCAAa,CAAA;AACf,CAAC,EAJW,eAAe,KAAf,eAAe,QAI1B;AAED,MAAM,CAAC,MAAM,YAAY,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,yBAAyB;IACzB,2BAA2B;IAC3B,6BAA6B;IAC7B,iCAAiC;CAClC,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Context as CustomAppContext, ItemEditorContext as CustomAppItemEditorContext, ItemListingContext as CustomAppItemListingContext, OtherContext as CustomAppOtherContext, } from "./contexts";
|
|
1
|
+
export { ContentTypeEditorContext as CustomAppContentTypeEditorContext, ContentTypeListingContext as CustomAppContentTypeListingContext, Context as CustomAppContext, ItemEditorContext as CustomAppItemEditorContext, ItemListingContext as CustomAppItemListingContext, OtherContext as CustomAppOtherContext, SnippetEditorContext as CustomAppSnippetEditorContext, SnippetListingContext as CustomAppSnippetListingContext, TaxonomyEditorContext as CustomAppTaxonomyEditorContext, TaxonomyListingContext as CustomAppTaxonomyListingContext, } from "./contexts";
|
|
2
2
|
export { ErrorCode, getCustomAppContext, observeCustomAppContext, PopupSizeDimension, PublishingState, SerializedListingFilter, setPopupSize, Uuid, VariantCompletionStatus, } from "./customAppSdk";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAYA,OAAO,EACL,SAAS,EACT,mBAAmB,EACnB,uBAAuB,EAEvB,eAAe,EAEf,YAAY,EAEZ,uBAAuB,GACxB,MAAM,gBAAgB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kontent-ai/custom-app-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "The Kontent.ai Custom App SDK enhances the integration of your custom app with the Kontent.ai platform.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Kontent.ai",
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"zod": "^4.
|
|
23
|
+
"zod": "^4.3.6"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@biomejs/biome": "^2.
|
|
27
|
-
"@types/node": "^
|
|
28
|
-
"typescript": "^5.9.
|
|
29
|
-
"vitest": "^4.0.
|
|
26
|
+
"@biomejs/biome": "^2.4.4",
|
|
27
|
+
"@types/node": "^25.3.0",
|
|
28
|
+
"typescript": "^5.9.3",
|
|
29
|
+
"vitest": "^4.0.18"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "tsc",
|