@kontent-ai/custom-app-sdk 2.0.0 → 2.1.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 CHANGED
@@ -35,12 +35,21 @@ if (response.isError) {
35
35
  console.error({ errorCode: response.code, description: response.description });
36
36
  } else {
37
37
  // TypeScript will narrow the type based on currentPage
38
- if (response.context.currentPage === "itemEditor") {
39
- console.log({
40
- contentItemId: response.context.contentItemId,
41
- languageId: response.context.languageId,
42
- validationErrors: response.context.validationErrors
43
- });
38
+ switch (response.context.currentPage) {
39
+ case "itemEditor":
40
+ console.log({
41
+ contentItemId: response.context.contentItemId,
42
+ languageId: response.context.languageId,
43
+ validationErrors: response.context.validationErrors
44
+ });
45
+ break;
46
+ case "contentInventory":
47
+ console.log({
48
+ languageId: response.context.languageId,
49
+ itemListingFilter: response.context.itemListingFilter,
50
+ itemListingSelection: response.context.itemListingSelection
51
+ });
52
+ break;
44
53
  }
45
54
  }
46
55
  ```
@@ -74,38 +83,49 @@ Returns a promise that resolves to a discriminated union type with two possible
74
83
 
75
84
  `CustomAppContext` is a discriminated union type based on the `currentPage` property. Each page type includes only the relevant properties for that specific page:
76
85
 
77
- ##### Item Editor Page Context
86
+ ##### Shared Properties
78
87
 
79
- When `currentPage` is `"itemEditor"`, the context includes:
88
+ All context types include the following shared properties:
80
89
 
81
90
  | Property | Type | Description |
82
91
  |-------------------------|---------------------------------------|----------------------------------------------------------------------|
83
- | `currentPage` | `"itemEditor"` | Identifies this as an item editor page |
84
92
  | `environmentId` | UUID | The environment's ID |
85
93
  | `userId` | string | The current user's ID |
86
94
  | `userEmail` | string | The current user's email |
87
- | `userRoles` | Array of UserRole | An array containing all the roles of the current user in the environment |
95
+ | `userRoles` | Array\<UserRole\> | An array containing all the roles of the current user in the environment |
88
96
  | `path` | string | The current path within the Kontent.ai application |
89
97
  | `pageTitle` | string | The title of the current page |
90
98
  | `appConfig` | unknown \| undefined | JSON object specified in the custom app configuration |
99
+
100
+ ##### Item Editor Page Context
101
+
102
+ When `currentPage` is `"itemEditor"`, the context includes the shared properties above plus:
103
+
104
+ | Property | Type | Description |
105
+ |-------------------------|---------------------------------------|----------------------------------------------------------------------|
106
+ | `currentPage` | `"itemEditor"` | Identifies this as an item editor page |
91
107
  | `contentItemId` | UUID | The ID of the content item being edited |
92
108
  | `languageId` | UUID | The ID of the current language |
93
- | `validationErrors` | Record<string, string[]> | A record of validation errors for content item fields |
109
+ | `validationErrors` | Record<string, Array<string>> | A record of validation errors for content item fields |
110
+
111
+ ##### Content Inventory Page Context
112
+
113
+ When `currentPage` is `"contentInventory"`, the context includes the shared properties above plus:
114
+
115
+ | Property | Type | Description |
116
+ |-------------------------|---------------------------------------|----------------------------------------------------------------------|
117
+ | `currentPage` | `"contentInventory"` | Identifies this as a content inventory (item listing) page |
118
+ | `languageId` | UUID | The ID of the current language |
119
+ | `itemListingFilter` | SerializedListingFilter | The current filter settings applied to the content item listing |
120
+ | `itemListingSelection` | ItemListingSelection | The current selection state of items in the listing |
94
121
 
95
122
  ##### Other Page Context
96
123
 
97
- When `currentPage` is `"other"`, the context includes:
124
+ When `currentPage` is `"other"`, the context includes the shared properties above plus:
98
125
 
99
126
  | Property | Type | Description |
100
127
  |-------------------------|---------------------------------------|----------------------------------------------------------------------|
101
128
  | `currentPage` | `"other"` | Identifies this as any other page type |
102
- | `environmentId` | UUID | The environment's ID |
103
- | `userId` | string | The current user's ID |
104
- | `userEmail` | string | The current user's email |
105
- | `userRoles` | Array of UserRole | An array containing all the roles of the current user in the environment |
106
- | `path` | string | The current path within the Kontent.ai application |
107
- | `pageTitle` | string | The title of the current page |
108
- | `appConfig` | unknown \| undefined | JSON object specified in the custom app configuration |
109
129
 
110
130
  #### UserRole
111
131
 
@@ -114,6 +134,54 @@ When `currentPage` is `"other"`, the context includes:
114
134
  | `id` | UUID | The role's ID |
115
135
  | `codename` | string | The role's codename - applicable only for the _Project manager_ role |
116
136
 
137
+ #### SerializedListingFilter
138
+
139
+ The filter settings applied to the content item listing.
140
+
141
+ | Property | Type | Description |
142
+ |-----------------------------|-----------------------------------------------------|--------------------------------------------------------------|
143
+ | `selectedCollections` | Array\<string\> | IDs of collections selected in the filter |
144
+ | `selectedContentItemStatus` | Array\<VariantCompletionStatus\> | Selected content item workflow status states |
145
+ | `selectedContentTypes` | Array\<string\> | IDs of content types selected in the filter |
146
+ | `selectedContributors` | Array\<string\> | IDs of contributors selected in the filter |
147
+ | `selectedPublishingStates` | Array\<PublishingState\> | Selected publishing states |
148
+ | `selectedSpaces` | Array\<string\> | IDs of spaces selected in the filter |
149
+ | `selectedTaxonomies` | Record\<string, Array\<string\>\> | Selected taxonomy terms grouped by taxonomy ID |
150
+ | `selectedWorkflows` | Record\<string, Array\<string\>\> | Selected workflow steps grouped by workflow ID |
151
+ | `searchPhrase` | string | The search phrase entered by the user |
152
+ | `searchScope` | Array\<string\> | The scope of the search (e.g., content item names, elements) |
153
+
154
+ ##### VariantCompletionStatus
155
+
156
+ An enum representing the possible workflow completion status states for content item variants.
157
+
158
+ | Value | Description |
159
+ |------------------|------------------------------------------------|
160
+ | `"unfinished"` | Content item variant is unfinished |
161
+ | `"ready"` | Content item variant is ready |
162
+ | `"notTranslated"`| Content item variant is not translated |
163
+ | `"allDone"` | Content item variant is all done |
164
+
165
+ ##### PublishingState
166
+
167
+ An enum representing the possible publishing states for content items.
168
+
169
+ | Value | Description |
170
+ |----------------|---------------------------------------------------|
171
+ | `"published"` | Content item is published |
172
+ | `"unpublished"`| Content item is unpublished |
173
+ | `"none"` | Content item has no publishing state |
174
+
175
+ #### ItemListingSelection
176
+
177
+ The current selection state of items in the content inventory listing.
178
+
179
+ | Property | Type | Description |
180
+ |-----------------------|----------------|----------------------------------------------------------------------------------|
181
+ | `selectAll` | boolean | Whether the "select all" option is active |
182
+ | `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) |
183
+ | `unselectedItemIds` | Array\<UUID\> | IDs of content items that are explicitly unselected (used when `selectAll` is true to exclude specific items) |
184
+
117
185
  ### observeCustomAppContext
118
186
 
119
187
  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.
@@ -1,14 +1,19 @@
1
1
  import type { CustomAppContextProperties } from "./iframeSchema";
2
- export declare const itemEditorContextProperties: readonly ["path", "pageTitle", "environmentId", "userId", "userEmail", "userRoles", "appConfig", "contentItemId", "languageId", "validationErrors", "currentPage"];
2
+ declare const itemEditorContextProperties: readonly ["path", "pageTitle", "environmentId", "userId", "userEmail", "userRoles", "appConfig", "contentItemId", "languageId", "validationErrors", "currentPage"];
3
3
  type RawItemEditorContext = Pick<CustomAppContextProperties, (typeof itemEditorContextProperties)[number]>;
4
4
  export type ItemEditorContext = Required<WithSpecificPage<CustomAppContextProperties, "itemEditor">>;
5
5
  export declare const isItemEditorContext: (context: RawItemEditorContext) => context is ItemEditorContext;
6
- export declare const otherContextProperties: readonly ["path", "pageTitle", "environmentId", "userId", "userEmail", "userRoles", "appConfig", "currentPage"];
6
+ declare const itemListingContextProperties: readonly ["path", "pageTitle", "environmentId", "userId", "userEmail", "userRoles", "appConfig", "languageId", "itemListingFilter", "itemListingSelection", "currentPage"];
7
+ type RawItemListingContext = Pick<CustomAppContextProperties, (typeof itemListingContextProperties)[number]>;
8
+ export type ItemListingContext = Required<WithSpecificPage<CustomAppContextProperties, "contentInventory">>;
9
+ export declare const isItemListingContext: (context: RawItemListingContext) => context is ItemListingContext;
10
+ declare const otherContextProperties: readonly ["path", "pageTitle", "environmentId", "userId", "userEmail", "userRoles", "appConfig", "currentPage"];
7
11
  type RawOtherContext = Pick<CustomAppContextProperties, (typeof otherContextProperties)[number]>;
8
12
  export type OtherContext = Required<WithSpecificPage<CustomAppContextProperties, "other">>;
9
13
  export declare const isOtherContext: (context: RawOtherContext) => context is OtherContext;
10
- export type Context = ItemEditorContext | OtherContext;
14
+ export type Context = ItemEditorContext | ItemListingContext | OtherContext;
11
15
  type WithSpecificPage<T extends CustomAppContextProperties, Page extends Context["currentPage"]> = T & {
12
16
  readonly currentPage: Page;
13
17
  };
18
+ export declare const getContextPropertiesForPage: (currentPage: Context["currentPage"] | undefined) => ReadonlyArray<keyof CustomAppContextProperties>;
14
19
  export {};
package/dist/contexts.js CHANGED
@@ -7,7 +7,7 @@ const sharedContextProperties = [
7
7
  "userRoles",
8
8
  "appConfig",
9
9
  ];
10
- export const itemEditorContextProperties = [
10
+ const itemEditorContextProperties = [
11
11
  ...sharedContextProperties,
12
12
  "contentItemId",
13
13
  "languageId",
@@ -23,7 +23,20 @@ export const isItemEditorContext = (context) => {
23
23
  .filter((property) => !optionalProperties.includes(property))
24
24
  .every((property) => property in context && context[property] !== undefined));
25
25
  };
26
- export const otherContextProperties = [
26
+ const itemListingContextProperties = [
27
+ ...sharedContextProperties,
28
+ "languageId",
29
+ "itemListingFilter",
30
+ "itemListingSelection",
31
+ "currentPage",
32
+ ];
33
+ export const isItemListingContext = (context) => {
34
+ return (context.currentPage === "contentInventory" &&
35
+ itemListingContextProperties
36
+ .filter((property) => !optionalProperties.includes(property))
37
+ .every((property) => property in context && context[property] !== undefined));
38
+ };
39
+ const otherContextProperties = [
27
40
  ...sharedContextProperties,
28
41
  "currentPage",
29
42
  ];
@@ -33,4 +46,16 @@ export const isOtherContext = (context) => {
33
46
  .filter((property) => !optionalProperties.includes(property))
34
47
  .every((property) => property in context && context[property] !== undefined));
35
48
  };
49
+ export const getContextPropertiesForPage = (currentPage) => {
50
+ switch (currentPage) {
51
+ case "itemEditor":
52
+ return itemEditorContextProperties;
53
+ case "contentInventory":
54
+ return itemListingContextProperties;
55
+ case "other":
56
+ return otherContextProperties;
57
+ case undefined:
58
+ return [];
59
+ }
60
+ };
36
61
  //# sourceMappingURL=contexts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"contexts.js","sourceRoot":"","sources":["../src/contexts.ts"],"names":[],"mappings":"AAEA,MAAM,uBAAuB,GAA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AE;IAClF,OAAO,CACL,OAAO,CAAC,WAAW,KAAK,OAAO;QAC/B,sBAAsB;aACnB,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,kBAAkB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;aAC5D,KAAK,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,IAAI,OAAO,IAAI,OAAO,CAAC,QAAQ,CAAC,KAAK,SAAS,CAAC,CAC/E,CAAC;AACJ,CAAC,CAAC;AASF,MAAM,CAAC,MAAM,2BAA2B,GAAG,CACzC,WAA+C,EACE,EAAE;IACnD,QAAQ,WAAW,EAAE,CAAC;QACpB,KAAK,YAAY;YACf,OAAO,2BAA2B,CAAC;QACrC,KAAK,kBAAkB;YACrB,OAAO,4BAA4B,CAAC;QACtC,KAAK,OAAO;YACV,OAAO,sBAAsB,CAAC;QAChC,KAAK,SAAS;YACZ,OAAO,EAAE,CAAC;IACd,CAAC;AACH,CAAC,CAAC"}
@@ -1,4 +1,7 @@
1
1
  import { type Context } from "./contexts";
2
+ import { PublishingState, type SerializedListingFilter, type Uuid, VariantCompletionStatus } from "./iframeSchema";
3
+ export { PublishingState, VariantCompletionStatus };
4
+ export type { SerializedListingFilter, Uuid };
2
5
  export declare enum ErrorCode {
3
6
  UnknownMessage = "unknown-message",
4
7
  NotSupported = "not-supported",
@@ -28,4 +31,3 @@ type Result<T> = ({
28
31
  code: ErrorCode;
29
32
  description: string;
30
33
  };
31
- export {};
@@ -1,7 +1,8 @@
1
- import { isItemEditorContext, isOtherContext, itemEditorContextProperties, otherContextProperties, } from "./contexts";
1
+ import { getContextPropertiesForPage, isItemEditorContext, isItemListingContext, isOtherContext, } from "./contexts";
2
2
  import { addNotificationCallback, removeNotificationCallback, sendMessage, } from "./iframeMessenger";
3
- import { ErrorMessage, } from "./iframeSchema";
3
+ import { ErrorMessage, PublishingState, VariantCompletionStatus, } from "./iframeSchema";
4
4
  import { matchesSchema } from "./matchesSchema";
5
+ export { PublishingState, VariantCompletionStatus };
5
6
  export var ErrorCode;
6
7
  (function (ErrorCode) {
7
8
  ErrorCode["UnknownMessage"] = "unknown-message";
@@ -24,7 +25,7 @@ export const getCustomAppContext = async () => {
24
25
  };
25
26
  }
26
27
  const currentPage = currentPageResponse.payload.properties.currentPage;
27
- const propertiesToFetch = currentPage === "itemEditor" ? itemEditorContextProperties : otherContextProperties;
28
+ const propertiesToFetch = getContextPropertiesForPage(currentPage);
28
29
  const response = await sendMessage({
29
30
  type: "get-context-request",
30
31
  version: "2.0.0",
@@ -72,7 +73,7 @@ export const observeCustomAppContext = async (callback) => {
72
73
  };
73
74
  }
74
75
  const currentPage = currentPageResponse.payload.properties.currentPage;
75
- const propertiesToObserve = currentPage === "itemEditor" ? itemEditorContextProperties : otherContextProperties;
76
+ const propertiesToObserve = getContextPropertiesForPage(currentPage);
76
77
  const observeResponse = await sendMessage({
77
78
  type: "observe-context-request",
78
79
  version: "1.0.0",
@@ -131,6 +132,10 @@ const getContextFromProperties = (properties) => {
131
132
  return isItemEditorContext(properties)
132
133
  ? { isError: false, context: properties }
133
134
  : outdatedContextError;
135
+ case "contentInventory":
136
+ return isItemListingContext(properties)
137
+ ? { isError: false, context: properties }
138
+ : outdatedContextError;
134
139
  case "other":
135
140
  return isOtherContext(properties)
136
141
  ? { isError: false, context: properties }
@@ -1 +1 @@
1
- {"version":3,"file":"customAppSdk.js","sourceRoot":"","sources":["../src/customAppSdk.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,mBAAmB,EACnB,cAAc,EACd,2BAA2B,EAC3B,sBAAsB,GACvB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,WAAW,GACZ,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAGL,YAAY,GACb,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,CAAN,IAAY,SAIX;AAJD,WAAY,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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;IACzC,MAAM,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC;IAE3C,QAAQ,WAAW,EAAE,CAAC;QACpB,KAAK,YAAY;YACf,OAAO,mBAAmB,CAAC,UAAU,CAAC;gBACpC,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE;gBACzC,CAAC,CAAC,oBAAoB,CAAC;QAC3B,KAAK,kBAAkB;YACrB,OAAO,oBAAoB,CAAC,UAAU,CAAC;gBACrC,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE;gBACzC,CAAC,CAAC,oBAAoB,CAAC;QAC3B,KAAK,OAAO;YACV,OAAO,cAAc,CAAC,UAAU,CAAC;gBAC/B,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE;gBACzC,CAAC,CAAC,oBAAoB,CAAC;QAC3B;YACE,OAAO,oBAAoB,CAAC;IAChC,CAAC;AACH,CAAC,CAAC"}
@@ -1,8 +1,20 @@
1
1
  import { z } from "zod";
2
+ export type Uuid = string;
2
3
  export declare enum ErrorCode {
3
4
  UnknownMessage = "unknown-message",
4
5
  NotSupported = "not-supported"
5
6
  }
7
+ export declare enum VariantCompletionStatus {
8
+ Unfinished = "Unfinished",
9
+ Ready = "Ready",
10
+ NotTranslated = "NotTranslated",
11
+ AllDone = "AllDone"
12
+ }
13
+ export declare enum PublishingState {
14
+ Published = "Published",
15
+ Unpublished = "Unpublished",
16
+ None = "None"
17
+ }
6
18
  export declare const ErrorMessage: z.ZodReadonly<z.ZodObject<{
7
19
  requestId: z.ZodUUID;
8
20
  isError: z.ZodLiteral<true>;
@@ -28,6 +40,18 @@ declare const CustomAppContextV1Schema: z.ZodReadonly<z.ZodObject<{
28
40
  config: z.ZodUnknown;
29
41
  }, z.core.$strip>>;
30
42
  export type CustomAppContextV1 = z.infer<typeof CustomAppContextV1Schema>;
43
+ export type SerializedListingFilter = {
44
+ readonly selectedCollections: ReadonlyArray<string>;
45
+ readonly selectedContentItemStatus: ReadonlyArray<VariantCompletionStatus>;
46
+ readonly selectedContentTypes: ReadonlyArray<string>;
47
+ readonly selectedContributors: ReadonlyArray<string>;
48
+ readonly selectedPublishingStates: ReadonlyArray<PublishingState>;
49
+ readonly selectedSpaces: ReadonlyArray<string>;
50
+ readonly selectedTaxonomies: Readonly<Record<string, ReadonlyArray<string>>>;
51
+ readonly selectedWorkflows: Readonly<Record<string, ReadonlyArray<string>>>;
52
+ readonly searchPhrase: string;
53
+ readonly searchScope: ReadonlyArray<string>;
54
+ };
31
55
  declare const ClientGetContextV1Response: z.ZodReadonly<z.ZodUnion<[z.ZodObject<{
32
56
  type: z.ZodLiteral<"get-context-response">;
33
57
  isError: z.ZodLiteral<false>;
@@ -65,9 +89,15 @@ export type CustomAppContextProperties = {
65
89
  readonly path?: string;
66
90
  readonly pageTitle?: string;
67
91
  readonly validationErrors?: Readonly<Record<string, ReadonlyArray<string>>>;
68
- readonly currentPage?: "itemEditor" | "other";
92
+ readonly currentPage?: "itemEditor" | "contentInventory" | "other";
93
+ readonly itemListingFilter?: SerializedListingFilter;
94
+ readonly itemListingSelection?: Readonly<{
95
+ readonly selectAll: boolean;
96
+ readonly selectedItemIds: ReadonlyArray<string>;
97
+ readonly unselectedItemIds: ReadonlyArray<string>;
98
+ }>;
69
99
  };
70
- export declare const allCustomAppContextPropertyKeys: readonly ("environmentId" | "userId" | "userEmail" | "userRoles" | "appConfig" | "contentItemId" | "languageId" | "path" | "pageTitle" | "validationErrors" | "currentPage")[];
100
+ export declare const allCustomAppContextPropertyKeys: readonly ("environmentId" | "userId" | "userEmail" | "userRoles" | "appConfig" | "contentItemId" | "languageId" | "path" | "pageTitle" | "validationErrors" | "currentPage" | "itemListingFilter" | "itemListingSelection")[];
71
101
  declare const ClientGetContextV2Request: z.ZodReadonly<z.ZodObject<{
72
102
  type: z.ZodLiteral<"get-context-request">;
73
103
  requestId: z.ZodString;
@@ -85,6 +115,8 @@ declare const ClientGetContextV2Request: z.ZodReadonly<z.ZodObject<{
85
115
  pageTitle: "pageTitle";
86
116
  validationErrors: "validationErrors";
87
117
  currentPage: "currentPage";
118
+ itemListingFilter: "itemListingFilter";
119
+ itemListingSelection: "itemListingSelection";
88
120
  }>>>;
89
121
  }, z.core.$strip>>;
90
122
  }, z.core.$strip>>;
@@ -102,7 +134,24 @@ declare const CustomAppContextPropertiesSchema: z.ZodReadonly<z.ZodObject<{
102
134
  path: z.ZodOptional<z.ZodString>;
103
135
  pageTitle: z.ZodOptional<z.ZodString>;
104
136
  validationErrors: z.ZodOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString>>>>>;
105
- currentPage: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"itemEditor">, z.ZodLiteral<"other">]>>;
137
+ currentPage: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"itemEditor">, z.ZodLiteral<"contentInventory">, z.ZodLiteral<"other">]>>;
138
+ itemListingFilter: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
139
+ selectedCollections: z.ZodReadonly<z.ZodArray<z.ZodString>>;
140
+ selectedContentItemStatus: z.ZodReadonly<z.ZodArray<z.ZodEnum<typeof VariantCompletionStatus>>>;
141
+ selectedContentTypes: z.ZodReadonly<z.ZodArray<z.ZodString>>;
142
+ selectedContributors: z.ZodReadonly<z.ZodArray<z.ZodString>>;
143
+ selectedPublishingStates: z.ZodReadonly<z.ZodArray<z.ZodEnum<typeof PublishingState>>>;
144
+ selectedSpaces: z.ZodReadonly<z.ZodArray<z.ZodString>>;
145
+ selectedTaxonomies: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString>>>>;
146
+ selectedWorkflows: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString>>>>;
147
+ searchPhrase: z.ZodString;
148
+ searchScope: z.ZodReadonly<z.ZodArray<z.ZodString>>;
149
+ }, z.core.$strip>>>;
150
+ itemListingSelection: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
151
+ selectAll: z.ZodBoolean;
152
+ selectedItemIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
153
+ unselectedItemIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
154
+ }, z.core.$strip>>>;
106
155
  }, z.core.$strip>>;
107
156
  export type CustomAppContext = z.infer<typeof CustomAppContextPropertiesSchema>;
108
157
  declare const ClientGetContextV2Response: z.ZodReadonly<z.ZodUnion<[z.ZodObject<{
@@ -123,7 +172,24 @@ declare const ClientGetContextV2Response: z.ZodReadonly<z.ZodUnion<[z.ZodObject<
123
172
  path: z.ZodOptional<z.ZodString>;
124
173
  pageTitle: z.ZodOptional<z.ZodString>;
125
174
  validationErrors: z.ZodOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString>>>>>;
126
- currentPage: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"itemEditor">, z.ZodLiteral<"other">]>>;
175
+ currentPage: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"itemEditor">, z.ZodLiteral<"contentInventory">, z.ZodLiteral<"other">]>>;
176
+ itemListingFilter: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
177
+ selectedCollections: z.ZodReadonly<z.ZodArray<z.ZodString>>;
178
+ selectedContentItemStatus: z.ZodReadonly<z.ZodArray<z.ZodEnum<typeof VariantCompletionStatus>>>;
179
+ selectedContentTypes: z.ZodReadonly<z.ZodArray<z.ZodString>>;
180
+ selectedContributors: z.ZodReadonly<z.ZodArray<z.ZodString>>;
181
+ selectedPublishingStates: z.ZodReadonly<z.ZodArray<z.ZodEnum<typeof PublishingState>>>;
182
+ selectedSpaces: z.ZodReadonly<z.ZodArray<z.ZodString>>;
183
+ selectedTaxonomies: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString>>>>;
184
+ selectedWorkflows: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString>>>>;
185
+ searchPhrase: z.ZodString;
186
+ searchScope: z.ZodReadonly<z.ZodArray<z.ZodString>>;
187
+ }, z.core.$strip>>>;
188
+ itemListingSelection: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
189
+ selectAll: z.ZodBoolean;
190
+ selectedItemIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
191
+ unselectedItemIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
192
+ }, z.core.$strip>>>;
127
193
  }, z.core.$strip>>>;
128
194
  }, z.core.$strip>>;
129
195
  requestId: z.ZodString;
@@ -183,6 +249,8 @@ export declare const ClientObserveContextV1Request: z.ZodReadonly<z.ZodObject<{
183
249
  pageTitle: "pageTitle";
184
250
  validationErrors: "validationErrors";
185
251
  currentPage: "currentPage";
252
+ itemListingFilter: "itemListingFilter";
253
+ itemListingSelection: "itemListingSelection";
186
254
  }>>>;
187
255
  }, z.core.$strip>>;
188
256
  }, z.core.$strip>>;
@@ -241,7 +309,24 @@ export declare const ClientContextChangedV1Notification: z.ZodReadonly<z.ZodObje
241
309
  path: z.ZodOptional<z.ZodString>;
242
310
  pageTitle: z.ZodOptional<z.ZodString>;
243
311
  validationErrors: z.ZodOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString>>>>>;
244
- currentPage: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"itemEditor">, z.ZodLiteral<"other">]>>;
312
+ currentPage: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"itemEditor">, z.ZodLiteral<"contentInventory">, z.ZodLiteral<"other">]>>;
313
+ itemListingFilter: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
314
+ selectedCollections: z.ZodReadonly<z.ZodArray<z.ZodString>>;
315
+ selectedContentItemStatus: z.ZodReadonly<z.ZodArray<z.ZodEnum<typeof VariantCompletionStatus>>>;
316
+ selectedContentTypes: z.ZodReadonly<z.ZodArray<z.ZodString>>;
317
+ selectedContributors: z.ZodReadonly<z.ZodArray<z.ZodString>>;
318
+ selectedPublishingStates: z.ZodReadonly<z.ZodArray<z.ZodEnum<typeof PublishingState>>>;
319
+ selectedSpaces: z.ZodReadonly<z.ZodArray<z.ZodString>>;
320
+ selectedTaxonomies: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString>>>>;
321
+ selectedWorkflows: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString>>>>;
322
+ searchPhrase: z.ZodString;
323
+ searchScope: z.ZodReadonly<z.ZodArray<z.ZodString>>;
324
+ }, z.core.$strip>>>;
325
+ itemListingSelection: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
326
+ selectAll: z.ZodBoolean;
327
+ selectedItemIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
328
+ unselectedItemIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
329
+ }, z.core.$strip>>>;
245
330
  }, z.core.$strip>>>;
246
331
  }, z.core.$strip>>;
247
332
  }, z.core.$strip>>;
@@ -267,6 +352,8 @@ export declare const AllClientRequestMessages: z.ZodUnion<readonly [z.ZodReadonl
267
352
  pageTitle: "pageTitle";
268
353
  validationErrors: "validationErrors";
269
354
  currentPage: "currentPage";
355
+ itemListingFilter: "itemListingFilter";
356
+ itemListingSelection: "itemListingSelection";
270
357
  }>>>;
271
358
  }, z.core.$strip>>;
272
359
  }, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
@@ -306,6 +393,8 @@ export declare const AllClientRequestMessages: z.ZodUnion<readonly [z.ZodReadonl
306
393
  pageTitle: "pageTitle";
307
394
  validationErrors: "validationErrors";
308
395
  currentPage: "currentPage";
396
+ itemListingFilter: "itemListingFilter";
397
+ itemListingSelection: "itemListingSelection";
309
398
  }>>>;
310
399
  }, z.core.$strip>>;
311
400
  }, z.core.$strip>>, z.ZodReadonly<z.ZodObject<{
@@ -4,6 +4,19 @@ export var ErrorCode;
4
4
  ErrorCode["UnknownMessage"] = "unknown-message";
5
5
  ErrorCode["NotSupported"] = "not-supported";
6
6
  })(ErrorCode || (ErrorCode = {}));
7
+ export var VariantCompletionStatus;
8
+ (function (VariantCompletionStatus) {
9
+ VariantCompletionStatus["Unfinished"] = "Unfinished";
10
+ VariantCompletionStatus["Ready"] = "Ready";
11
+ VariantCompletionStatus["NotTranslated"] = "NotTranslated";
12
+ VariantCompletionStatus["AllDone"] = "AllDone";
13
+ })(VariantCompletionStatus || (VariantCompletionStatus = {}));
14
+ export var PublishingState;
15
+ (function (PublishingState) {
16
+ PublishingState["Published"] = "Published";
17
+ PublishingState["Unpublished"] = "Unpublished";
18
+ PublishingState["None"] = "None";
19
+ })(PublishingState || (PublishingState = {}));
7
20
  export const ErrorMessage = z
8
21
  .object({
9
22
  requestId: z.uuid(),
@@ -62,6 +75,8 @@ export const allCustomAppContextPropertyKeys = Object.keys({
62
75
  pageTitle: "",
63
76
  validationErrors: "",
64
77
  currentPage: "",
78
+ itemListingFilter: "",
79
+ itemListingSelection: "",
65
80
  });
66
81
  const ClientGetContextV2Request = z
67
82
  .object({
@@ -95,7 +110,32 @@ const CustomAppContextPropertiesSchema = z
95
110
  path: z.string().optional(),
96
111
  pageTitle: z.string().optional(),
97
112
  validationErrors: z.record(z.string(), z.array(z.string()).readonly()).readonly().optional(),
98
- currentPage: z.union([z.literal("itemEditor"), z.literal("other")]).optional(),
113
+ currentPage: z
114
+ .union([z.literal("itemEditor"), z.literal("contentInventory"), z.literal("other")])
115
+ .optional(),
116
+ itemListingFilter: z
117
+ .object({
118
+ selectedCollections: z.array(z.string()).readonly(),
119
+ selectedContentItemStatus: z.array(z.nativeEnum(VariantCompletionStatus)).readonly(),
120
+ selectedContentTypes: z.array(z.string()).readonly(),
121
+ selectedContributors: z.array(z.string()).readonly(),
122
+ selectedPublishingStates: z.array(z.nativeEnum(PublishingState)).readonly(),
123
+ selectedSpaces: z.array(z.string()).readonly(),
124
+ selectedTaxonomies: z.record(z.string(), z.array(z.string()).readonly()).readonly(),
125
+ selectedWorkflows: z.record(z.string(), z.array(z.string()).readonly()).readonly(),
126
+ searchPhrase: z.string(),
127
+ searchScope: z.array(z.string()).readonly(),
128
+ })
129
+ .readonly()
130
+ .optional(),
131
+ itemListingSelection: z
132
+ .object({
133
+ selectAll: z.boolean(),
134
+ selectedItemIds: z.array(z.string()).readonly(),
135
+ unselectedItemIds: z.array(z.string()).readonly(),
136
+ })
137
+ .readonly()
138
+ .optional(),
99
139
  })
100
140
  .readonly();
101
141
  const ClientGetContextV2Response = z
@@ -1 +1 @@
1
- {"version":3,"file":"iframeSchema.js","sourceRoot":"","sources":["../src/iframeSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,+CAAkC,CAAA;IAClC,2CAA8B,CAAA;AAChC,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC;KAC1B,MAAM,CAAC;IACN,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE;IACnB,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,I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AAC,CAAC,IAAI,EAAE;KACzB,CAAC;SACD,QAAQ,EAAE;CACd,CAAC;KACD,QAAQ,EAAE,CAAC;AAEd,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC;KAChD,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,8BAA8B,CAAC;IAC/C,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IACzB,OAAO,EAAE,CAAC;SACP,MAAM,CAAC;QACN,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;KACrB,CAAC;SACD,QAAQ,EAAE;IACb,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE;IACnB,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;CAC5B,CAAC;KACD,EAAE,CAAC,YAAY,CAAC;KAChB,QAAQ,EAAE,CAAC;AAEd,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC;KAChD,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,8BAA8B,CAAC;IAC/C,cAAc,EAAE,CAAC,CAAC,IAAI,EAAE;IACxB,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IAC3B,OAAO,EAAE,CAAC;SACP,MAAM,CAAC;QACN,UAAU,EAAE,gCAAgC,CAAC,QAAQ,EAAE;KACxD,CAAC;SACD,QAAQ,EAAE;CACd,CAAC;KACD,QAAQ,EAAE,CAAC;AAEd,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC;IAC9C,yBAAyB;IACzB,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, OtherContext as CustomAppOtherContext, } from "./contexts";
2
- export { ErrorCode, getCustomAppContext, observeCustomAppContext, PopupSizeDimension, setPopupSize, } from "./customAppSdk";
1
+ export { Context as CustomAppContext, ItemEditorContext as CustomAppItemEditorContext, ItemListingContext as CustomAppItemListingContext, OtherContext as CustomAppOtherContext, } from "./contexts";
2
+ export { ErrorCode, getCustomAppContext, observeCustomAppContext, PopupSizeDimension, PublishingState, SerializedListingFilter, setPopupSize, Uuid, VariantCompletionStatus, } from "./customAppSdk";
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { ErrorCode, getCustomAppContext, observeCustomAppContext, setPopupSize, } from "./customAppSdk";
1
+ export { ErrorCode, getCustomAppContext, observeCustomAppContext, PublishingState, setPopupSize, VariantCompletionStatus, } from "./customAppSdk";
2
2
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,SAAS,EACT,mBAAmB,EACnB,uBAAuB,EAEvB,YAAY,GACb,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,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.0.0",
3
+ "version": "2.1.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",