@umbraco-ai/core 17.3.1 → 17.4.0-rc.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbraco-ai/core",
3
- "version": "17.3.1",
3
+ "version": "17.4.0-rc.2",
4
4
  "type": "module",
5
5
  "types": "./types/umbraco-ai-public-types.d.ts",
6
6
  "files": [
@@ -260,12 +260,17 @@ export declare function createSelectionContextItem(selectedText: string): UaiReq
260
260
  /**
261
261
  * Dispatches an event through the action event context.
262
262
  *
263
+ * The context is resolved asynchronously, so the dispatch lands a tick after this is called. Callers that
264
+ * guard against reacting to their own write (a "self write" counter released when the request settles) must
265
+ * await the returned promise before releasing that guard, or the event arrives after the guard is gone and
266
+ * they refetch what they just wrote. Fire-and-forget callers can ignore it.
267
+ *
263
268
  * Note: The host parameter uses `any` to avoid cross-package type coupling.
264
269
  * When consumers import from different @umbraco-cms/backoffice instances,
265
270
  * strict typing on UmbClassInterface causes TypeScript errors even with identical versions.
266
271
  * @public
267
272
  */
268
- export declare function dispatchActionEvent(host: any, event: Event): void;
273
+ export declare function dispatchActionEvent(host: any, event: Event): Promise<void>;
269
274
 
270
275
  declare type EntityVersionComparisonResponseModel = {
271
276
  fromVersion: number;
@@ -947,6 +952,12 @@ export declare class UaiContextPickerElement extends UaiContextPickerElement_bas
947
952
  * Readonly mode - cannot add or remove.
948
953
  */
949
954
  readonly: boolean;
955
+ /**
956
+ * Optional hint for readonly items. When set, each readonly row shows a disabled "no-entry" icon
957
+ * where the remove button would be (keeping tags aligned with editable rows) using this text as
958
+ * its tooltip — e.g. to explain the items are inherited and can't be removed here.
959
+ */
960
+ readonlyHint?: string;
950
961
  /**
951
962
  * Minimum number of required contexts.
952
963
  */
@@ -1028,10 +1039,6 @@ export declare class UaiDocumentAdapter implements UaiEntityAdapterApi {
1028
1039
  * Uses duck-typing to check for document-specific methods.
1029
1040
  */
1030
1041
  canHandle(workspaceContext: unknown): boolean;
1031
- /**
1032
- * Extract entity identity from document workspace context.
1033
- */
1034
- extractEntityContext(workspaceContext: unknown): UaiEntityContext;
1035
1042
  /**
1036
1043
  * Get the current display name for the document.
1037
1044
  */
@@ -1206,10 +1213,6 @@ export declare interface UaiEntityAdapterApi extends UmbApi {
1206
1213
  * Check if this adapter can handle the given workspace context.
1207
1214
  */
1208
1215
  canHandle(workspaceContext: unknown): boolean;
1209
- /**
1210
- * Extract entity identity from workspace context.
1211
- */
1212
- extractEntityContext(workspaceContext: unknown): UaiEntityContext;
1213
1216
  /**
1214
1217
  * Get the current display name for the entity.
1215
1218
  * Used for initial name population.