@umbraco-ai/core 18.3.0 → 18.4.0-rc.1

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": "18.3.0",
3
+ "version": "18.4.0-rc.1",
4
4
  "type": "module",
5
5
  "types": "./types/umbraco-ai-public-types.d.ts",
6
6
  "files": [
@@ -242,12 +242,17 @@ export declare function createSelectionContextItem(selectedText: string): UaiReq
242
242
  /**
243
243
  * Dispatches an event through the action event context.
244
244
  *
245
+ * The context is resolved asynchronously, so the dispatch lands a tick after this is called. Callers that
246
+ * guard against reacting to their own write (a "self write" counter released when the request settles) must
247
+ * await the returned promise before releasing that guard, or the event arrives after the guard is gone and
248
+ * they refetch what they just wrote. Fire-and-forget callers can ignore it.
249
+ *
245
250
  * Note: The host parameter uses `any` to avoid cross-package type coupling.
246
251
  * When consumers import from different @umbraco-cms/backoffice instances,
247
252
  * strict typing on UmbClassInterface causes TypeScript errors even with identical versions.
248
253
  * @public
249
254
  */
250
- export declare function dispatchActionEvent(host: any, event: Event): void;
255
+ export declare function dispatchActionEvent(host: any, event: Event): Promise<void>;
251
256
 
252
257
  declare type EntityVersionComparisonResponseModel = {
253
258
  fromVersion: number;
@@ -920,6 +925,12 @@ export declare class UaiContextPickerElement extends UaiContextPickerElement_bas
920
925
  * Readonly mode - cannot add or remove.
921
926
  */
922
927
  readonly: boolean;
928
+ /**
929
+ * Optional hint for readonly items. When set, each readonly row shows a disabled "no-entry" icon
930
+ * where the remove button would be (keeping tags aligned with editable rows) using this text as
931
+ * its tooltip — e.g. to explain the items are inherited and can't be removed here.
932
+ */
933
+ readonlyHint?: string;
923
934
  /**
924
935
  * Minimum number of required contexts.
925
936
  */
@@ -1001,10 +1012,6 @@ export declare class UaiDocumentAdapter implements UaiEntityAdapterApi {
1001
1012
  * Uses duck-typing to check for document-specific methods.
1002
1013
  */
1003
1014
  canHandle(workspaceContext: unknown): boolean;
1004
- /**
1005
- * Extract entity identity from document workspace context.
1006
- */
1007
- extractEntityContext(workspaceContext: unknown): UaiEntityContext;
1008
1015
  /**
1009
1016
  * Get the current display name for the document.
1010
1017
  */
@@ -1179,10 +1186,6 @@ export declare interface UaiEntityAdapterApi extends UmbApi {
1179
1186
  * Check if this adapter can handle the given workspace context.
1180
1187
  */
1181
1188
  canHandle(workspaceContext: unknown): boolean;
1182
- /**
1183
- * Extract entity identity from workspace context.
1184
- */
1185
- extractEntityContext(workspaceContext: unknown): UaiEntityContext;
1186
1189
  /**
1187
1190
  * Get the current display name for the entity.
1188
1191
  * Used for initial name population.