@umbraco-ai/core 1.14.0 → 18.0.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umbraco-ai/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "18.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./types/umbraco-ai-public-types.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"README.md"
|
|
9
9
|
],
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"@umbraco-cms/backoffice": "^
|
|
11
|
+
"@umbraco-cms/backoffice": "^18.0.0",
|
|
12
12
|
"chart.js": "^4.5.1",
|
|
13
13
|
"diff": "^9.0.0"
|
|
14
14
|
}
|
|
@@ -10,6 +10,7 @@ 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 { UmbCollectionActionBase } from '@umbraco-cms/backoffice/collection';
|
|
13
14
|
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
|
|
14
15
|
import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
|
|
15
16
|
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
|
|
@@ -22,7 +23,7 @@ import { UmbFormControlMixinElement } from '@umbraco-cms/backoffice/validation';
|
|
|
22
23
|
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
|
|
23
24
|
import { UmbModalBaseElement } from '@umbraco-cms/backoffice/modal';
|
|
24
25
|
import { UmbModalToken } from '@umbraco-cms/backoffice/modal';
|
|
25
|
-
import { UUIFormControlMixinElement } from '@umbraco-ui/uui
|
|
26
|
+
import { UUIFormControlMixinElement } from '@umbraco-ui/uui';
|
|
26
27
|
|
|
27
28
|
export declare type AiDocumentMetadataModel = {
|
|
28
29
|
contentTypeKey: string;
|
|
@@ -1492,6 +1493,31 @@ export declare class UaiModelEditorElement extends UmbLitElement {
|
|
|
1492
1493
|
static styles: CSSResult[];
|
|
1493
1494
|
}
|
|
1494
1495
|
|
|
1496
|
+
/**
|
|
1497
|
+
* No-op `collectionAction` api.
|
|
1498
|
+
*
|
|
1499
|
+
* v18's `collectionAction` extension type is registered via `umb-extension-with-api-slot`, which only
|
|
1500
|
+
* instantiates the element once *both* an element and an api are present (CMS PR #21974). When a
|
|
1501
|
+
* collection action's behaviour is entirely driven by its custom element (popovers, navigation,
|
|
1502
|
+
* dropdowns), there's nothing meaningful for the framework's `execute()` callback to do — but the
|
|
1503
|
+
* api still has to be there for the slot to render. This class is that placeholder.
|
|
1504
|
+
*
|
|
1505
|
+
* Pair it with a custom `element` in the manifest:
|
|
1506
|
+
*
|
|
1507
|
+
* ```ts
|
|
1508
|
+
* {
|
|
1509
|
+
* type: "collectionAction",
|
|
1510
|
+
* alias: "...",
|
|
1511
|
+
* element: () => import("./my-create-action.element.js"),
|
|
1512
|
+
* api: UaiNoOpCollectionAction,
|
|
1513
|
+
* meta: { label: "Create ..." },
|
|
1514
|
+
* }
|
|
1515
|
+
* ```
|
|
1516
|
+
*/
|
|
1517
|
+
export declare class UaiNoOpCollectionAction extends UmbCollectionActionBase {
|
|
1518
|
+
execute(): Promise<void>;
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1495
1521
|
/**
|
|
1496
1522
|
* A command that updates a receiver object with a partial set of properties.
|
|
1497
1523
|
* @public
|