@umbraco-ai/core 18.3.4 → 18.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
|
@@ -10,7 +10,6 @@ import { Observable as Observable_2 } from 'rxjs';
|
|
|
10
10
|
import { TemplateResult } from 'lit-html';
|
|
11
11
|
import { TemplateResult as TemplateResult_2 } from '@umbraco-cms/backoffice/external/lit';
|
|
12
12
|
import { UmbApi } from '@umbraco-cms/backoffice/extension-api';
|
|
13
|
-
import type { UmbApiClient } from '@umbraco-cms/backoffice/http-client';
|
|
14
13
|
import { UmbCollectionActionBase } from '@umbraco-cms/backoffice/collection';
|
|
15
14
|
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
|
|
16
15
|
import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
|
|
@@ -215,18 +214,12 @@ declare interface Config_2 {
|
|
|
215
214
|
* own host so the `UmbAuthSignalerContext` is registered at `umb-app`
|
|
216
215
|
* and emissions reach `UmbAuthContext` correctly.
|
|
217
216
|
*
|
|
218
|
-
* Additionally sets `throwOnError: true` — every product sharing this function
|
|
219
|
-
* relies on `tryExecute` to turn a failed request into a user-facing notification,
|
|
220
|
-
* which only happens when the underlying call throws. `setConfig` merges onto the
|
|
221
|
-
* config `authContext.configureClient` already applied, so this doesn't clobber
|
|
222
|
-
* `baseUrl`/`credentials`/`auth`.
|
|
223
|
-
*
|
|
224
217
|
* @param host The entry point's `host` parameter (`UmbElement`).
|
|
225
218
|
* @param client The generated hey-api client to configure.
|
|
226
219
|
* @returns A Promise that resolves once auth is configured on the client.
|
|
227
220
|
* @public
|
|
228
221
|
*/
|
|
229
|
-
export declare function configureAiClient(host: UmbElement, client:
|
|
222
|
+
export declare function configureAiClient(host: UmbElement, client: unknown): Promise<void>;
|
|
230
223
|
|
|
231
224
|
export declare const coreClientReady: Promise<void>;
|
|
232
225
|
|
|
@@ -249,12 +242,17 @@ export declare function createSelectionContextItem(selectedText: string): UaiReq
|
|
|
249
242
|
/**
|
|
250
243
|
* Dispatches an event through the action event context.
|
|
251
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
|
+
*
|
|
252
250
|
* Note: The host parameter uses `any` to avoid cross-package type coupling.
|
|
253
251
|
* When consumers import from different @umbraco-cms/backoffice instances,
|
|
254
252
|
* strict typing on UmbClassInterface causes TypeScript errors even with identical versions.
|
|
255
253
|
* @public
|
|
256
254
|
*/
|
|
257
|
-
export declare function dispatchActionEvent(host: any, event: Event): void
|
|
255
|
+
export declare function dispatchActionEvent(host: any, event: Event): Promise<void>;
|
|
258
256
|
|
|
259
257
|
declare type EntityVersionComparisonResponseModel = {
|
|
260
258
|
fromVersion: number;
|
|
@@ -927,6 +925,12 @@ export declare class UaiContextPickerElement extends UaiContextPickerElement_bas
|
|
|
927
925
|
* Readonly mode - cannot add or remove.
|
|
928
926
|
*/
|
|
929
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;
|
|
930
934
|
/**
|
|
931
935
|
* Minimum number of required contexts.
|
|
932
936
|
*/
|
|
@@ -1008,10 +1012,6 @@ export declare class UaiDocumentAdapter implements UaiEntityAdapterApi {
|
|
|
1008
1012
|
* Uses duck-typing to check for document-specific methods.
|
|
1009
1013
|
*/
|
|
1010
1014
|
canHandle(workspaceContext: unknown): boolean;
|
|
1011
|
-
/**
|
|
1012
|
-
* Extract entity identity from document workspace context.
|
|
1013
|
-
*/
|
|
1014
|
-
extractEntityContext(workspaceContext: unknown): UaiEntityContext;
|
|
1015
1015
|
/**
|
|
1016
1016
|
* Get the current display name for the document.
|
|
1017
1017
|
*/
|
|
@@ -1186,10 +1186,6 @@ export declare interface UaiEntityAdapterApi extends UmbApi {
|
|
|
1186
1186
|
* Check if this adapter can handle the given workspace context.
|
|
1187
1187
|
*/
|
|
1188
1188
|
canHandle(workspaceContext: unknown): boolean;
|
|
1189
|
-
/**
|
|
1190
|
-
* Extract entity identity from workspace context.
|
|
1191
|
-
*/
|
|
1192
|
-
extractEntityContext(workspaceContext: unknown): UaiEntityContext;
|
|
1193
1189
|
/**
|
|
1194
1190
|
* Get the current display name for the entity.
|
|
1195
1191
|
* Used for initial name population.
|