@ui5/webcomponents-ai 2.28.1 → 2.29.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/CHANGELOG.md +16 -0
- package/README.md +12 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/css/themes/sap_horizon/parameters-bundle.css +1 -0
- package/dist/css/themes/sap_horizon_dark/parameters-bundle.css +1 -0
- package/dist/css/themes/sap_horizon_hcb/parameters-bundle.css +1 -0
- package/dist/css/themes/sap_horizon_hcw/parameters-bundle.css +1 -0
- package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json +1 -1
- package/dist/generated/themes/sap_horizon/parameters-bundle.css.d.ts +1 -1
- package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.d.ts +1 -1
- package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.d.ts +1 -1
- package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.d.ts +1 -1
- package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js.map +1 -1
- package/dist/web-types.json +1 -1
- package/llms.txt +61 -0
- package/package.json +11 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:host {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:host {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:host {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:host {}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
""
|
|
1
|
+
":host {}"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
""
|
|
1
|
+
":host {}"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
""
|
|
1
|
+
":host {}"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
""
|
|
1
|
+
":host {}"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "";
|
|
1
|
+
declare const _default: ":host {}";
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default
|
|
1
|
+
export default `:host {}`;
|
|
2
2
|
//# sourceMappingURL=parameters-bundle.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parameters-bundle.css.js","sourceRoot":"","sources":["../../../../src/generated/themes/sap_horizon/parameters-bundle.css.ts"],"names":[],"mappings":"AAAA,eAAe,
|
|
1
|
+
{"version":3,"file":"parameters-bundle.css.js","sourceRoot":"","sources":["../../../../src/generated/themes/sap_horizon/parameters-bundle.css.ts"],"names":[],"mappings":"AAAA,eAAe,UAAU,CAAA","sourcesContent":["export default `:host {}`"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "";
|
|
1
|
+
declare const _default: ":host {}";
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default
|
|
1
|
+
export default `:host {}`;
|
|
2
2
|
//# sourceMappingURL=parameters-bundle.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parameters-bundle.css.js","sourceRoot":"","sources":["../../../../src/generated/themes/sap_horizon_dark/parameters-bundle.css.ts"],"names":[],"mappings":"AAAA,eAAe,
|
|
1
|
+
{"version":3,"file":"parameters-bundle.css.js","sourceRoot":"","sources":["../../../../src/generated/themes/sap_horizon_dark/parameters-bundle.css.ts"],"names":[],"mappings":"AAAA,eAAe,UAAU,CAAA","sourcesContent":["export default `:host {}`"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "";
|
|
1
|
+
declare const _default: ":host {}";
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default
|
|
1
|
+
export default `:host {}`;
|
|
2
2
|
//# sourceMappingURL=parameters-bundle.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parameters-bundle.css.js","sourceRoot":"","sources":["../../../../src/generated/themes/sap_horizon_hcb/parameters-bundle.css.ts"],"names":[],"mappings":"AAAA,eAAe,
|
|
1
|
+
{"version":3,"file":"parameters-bundle.css.js","sourceRoot":"","sources":["../../../../src/generated/themes/sap_horizon_hcb/parameters-bundle.css.ts"],"names":[],"mappings":"AAAA,eAAe,UAAU,CAAA","sourcesContent":["export default `:host {}`"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "";
|
|
1
|
+
declare const _default: ":host {}";
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default
|
|
1
|
+
export default `:host {}`;
|
|
2
2
|
//# sourceMappingURL=parameters-bundle.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parameters-bundle.css.js","sourceRoot":"","sources":["../../../../src/generated/themes/sap_horizon_hcw/parameters-bundle.css.ts"],"names":[],"mappings":"AAAA,eAAe,
|
|
1
|
+
{"version":3,"file":"parameters-bundle.css.js","sourceRoot":"","sources":["../../../../src/generated/themes/sap_horizon_hcw/parameters-bundle.css.ts"],"names":[],"mappings":"AAAA,eAAe,UAAU,CAAA","sourcesContent":["export default `:host {}`"]}
|
package/dist/web-types.json
CHANGED
package/llms.txt
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# @ui5/webcomponents-ai
|
|
2
|
+
|
|
3
|
+
> Consumer guidance for applications using this npm package.
|
|
4
|
+
|
|
5
|
+
Version: 2.29.0-rc.1
|
|
6
|
+
|
|
7
|
+
Components for AI-related interactions. This package is experimental and supports Horizon themes only; check the installed API before use.
|
|
8
|
+
|
|
9
|
+
## Read the installed API
|
|
10
|
+
|
|
11
|
+
- [Public API manifest](./dist/custom-elements.json): component tags, module paths, properties, attributes, events, slots, methods, CSS parts, and deprecations.
|
|
12
|
+
- [Package metadata](./package.json): installed version, dependencies, and exports.
|
|
13
|
+
- [Package README](./README.md): assets and package-specific setup.
|
|
14
|
+
- TypeScript declarations next to each component in dist provide additional type information.
|
|
15
|
+
- [Online documentation and examples](https://ui5.github.io/webcomponents/): check that examples apply to the installed version. Prefer the local manifest and declarations when versions differ.
|
|
16
|
+
|
|
17
|
+
Read the relevant component declaration before writing code. Do not invent properties, event names, slots, or methods. This index lists components in this package; inspect the corresponding installed package for other components.
|
|
18
|
+
|
|
19
|
+
## Usage conventions
|
|
20
|
+
|
|
21
|
+
- Import a component's JavaScript module to register its custom element, using the /dist/ paths below. Import child components used in your markup explicitly rather than assuming they are registered transitively.
|
|
22
|
+
- These are native web components. JSX wrappers from @ui5/webcomponents-react have a separate API and package; do not substitute wrapper props for native APIs.
|
|
23
|
+
- HTML attributes and JavaScript properties can have different names (for example, accessible-name and accessibleName). Use the manifest's attribute mapping. Boolean attributes are true when present; remove them for false rather than writing disabled="false". Assign arrays and objects through JavaScript properties or your framework's property binding.
|
|
24
|
+
- Use addEventListener with the documented DOM event name; read documented custom event payloads from event.detail. In frameworks, check their custom-element event binding syntax.
|
|
25
|
+
- Place children in the documented default or named slots. Use slot="name" for a named slot and the documented child component types.
|
|
26
|
+
- Import icons separately, for example import "@ui5/webcomponents-icons/dist/save.js" before using icon="save". Check the icon exists in the installed icon package.
|
|
27
|
+
- For themes and translations, follow the README's Assets.js setup and the application's bundler configuration.
|
|
28
|
+
- Use stable attribute selectors such as [ui5-button] in CSS and DOM queries to support tag-name scoping. Under scoping, create markup with the application's configured scoped tag names.
|
|
29
|
+
- Style with supported theme variables and documented CSS parts. Avoid depending on private shadow DOM structure.
|
|
30
|
+
- In TypeScript, use import type for component types when a separate side-effect import registers the element.
|
|
31
|
+
|
|
32
|
+
## Minimal registration example
|
|
33
|
+
|
|
34
|
+
```js
|
|
35
|
+
import "@ui5/webcomponents-ai/dist/Button.js";
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
```html
|
|
39
|
+
<ui5-ai-button>Generate</ui5-ai-button>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Component index
|
|
43
|
+
|
|
44
|
+
Generated from the public manifest. Descriptions are abbreviated; consult the manifest for complete usage constraints and API details.
|
|
45
|
+
|
|
46
|
+
| Component | Tag | Import module | Purpose |
|
|
47
|
+
| --- | --- | --- | --- |
|
|
48
|
+
| Button | `ui5-ai-button` | `@ui5/webcomponents-ai/dist/Button.js` | The ui5-ai-button component serves as a button for AI-related scenarios. Users can trigger actions by clicking or tapping the ui5-ai-button or by pressing keyboard keys like [Enter] or [Space]. |
|
|
49
|
+
| ButtonState | `ui5-ai-button-state` | `@ui5/webcomponents-ai/dist/ButtonState.js` | ui5-ai-button-state is the item to use for defining states of ui5-ai-button components. |
|
|
50
|
+
| Input | `ui5-ai-input` | `@ui5/webcomponents-ai/dist/Input.js` | The ui5-ai-input component extends the standard ui5-input with **AI Writing Assistant** capabilities. |
|
|
51
|
+
| PromptInput | `ui5-ai-prompt-input` | `@ui5/webcomponents-ai/dist/PromptInput.js` | The ui5-ai-prompt-input component allows the user to write custom instructions in natural language, so that AI is guided to generate content tailored to user needs. |
|
|
52
|
+
| TextArea | `ui5-ai-textarea` | `@ui5/webcomponents-ai/dist/TextArea.js` | The ui5-ai-textarea component extends the standard TextArea with Writing Assistant capabilities. It provides AI-powered text generation, editing suggestions, and version management functionality. |
|
|
53
|
+
| ToolbarLabel | `ui5-ai-toolbar-label` | `@ui5/webcomponents-ai/dist/ToolbarLabel.js` | The ui5-ai-toolbar-label represents a text label, used in the ui5-toolbar. |
|
|
54
|
+
| Versioning | `ui5-ai-versioning` | `@ui5/webcomponents-ai/dist/Versioning.js` | The ui5-ai-versioning component provides navigation controls for AI-generated content versions. It displays the current version index and total versions, with previous/next navigation buttons. This component extends ToolbarItem to… |
|
|
55
|
+
| WritingAssistant | `ui5-ai-writing-assistant` | `@ui5/webcomponents-ai/dist/WritingAssistant.js` | The ui5-ai-writing-assistant component provides a specialized toolbar for AI TextArea functionality. It manages different states of the AI assistant and provides version navigation capabilities. |
|
|
56
|
+
|
|
57
|
+
## Discovering this file
|
|
58
|
+
|
|
59
|
+
Package documentation is not automatically loaded by every coding assistant. In your application's agent instructions, point to this installed package's llms.txt and ask the assistant to read it before using these components. Tools can resolve @ui5/webcomponents-ai/llms.txt and read it as text.
|
|
60
|
+
|
|
61
|
+
Generated by @ui5/webcomponents-tools from the installed package metadata and public manifest. This file is a build artifact shipped in npm and ignored by Git. Maintainers: run yarn generateAPI from the repository root to refresh after API changes; edit packages/tools/lib/cem/llms.mjs for usage guidance.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ui5/webcomponents-ai",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.29.0-rc.1",
|
|
4
4
|
"description": "UI5 Web Components: webcomponents.ai",
|
|
5
5
|
"ui5": {
|
|
6
6
|
"webComponentsPackage": true
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"generate": "wc-dev generate",
|
|
25
25
|
"generateCEM": "wc-dev generateAPI.generateCEM",
|
|
26
26
|
"mergeCEM": "wc-dev generateAPI.mergeCEM",
|
|
27
|
+
"generateLLMs": "wc-dev generateAPI.generateLLMs",
|
|
27
28
|
"validateCEM": "wc-dev generateAPI.validateCEM",
|
|
28
29
|
"bundle": "wc-dev build.bundle",
|
|
29
30
|
"test": "yarn test:cypress",
|
|
@@ -32,12 +33,14 @@
|
|
|
32
33
|
"test:cypress:open": "wc-dev test-cy-open",
|
|
33
34
|
"test:ssr": "node -e \"import('./test/ssr/component-imports.js')\"",
|
|
34
35
|
"create-ui5-element": "wc-create-ui5-element",
|
|
35
|
-
"prepublishOnly": "tsc -b"
|
|
36
|
+
"prepublishOnly": "tsc -b",
|
|
37
|
+
"prepack": "yarn generateLLMs"
|
|
36
38
|
},
|
|
37
39
|
"exports": {
|
|
38
40
|
"./src/*": "./src/*",
|
|
39
41
|
"./dist/*": "./dist/*",
|
|
40
42
|
"./package.json": "./package.json",
|
|
43
|
+
"./llms.txt": "./llms.txt",
|
|
41
44
|
"./bundle.esm.js": "./bundle.esm.js",
|
|
42
45
|
"./bundle.scoped.esm.js": "./bundle.scoped.esm.js",
|
|
43
46
|
"./*": "./dist/*"
|
|
@@ -48,17 +51,17 @@
|
|
|
48
51
|
"directory": "packages/ai"
|
|
49
52
|
},
|
|
50
53
|
"dependencies": {
|
|
51
|
-
"@ui5/webcomponents": "2.
|
|
52
|
-
"@ui5/webcomponents-base": "2.
|
|
53
|
-
"@ui5/webcomponents-icons": "2.
|
|
54
|
-
"@ui5/webcomponents-theming": "2.
|
|
54
|
+
"@ui5/webcomponents": "2.29.0-rc.1",
|
|
55
|
+
"@ui5/webcomponents-base": "2.29.0-rc.1",
|
|
56
|
+
"@ui5/webcomponents-icons": "2.29.0-rc.1",
|
|
57
|
+
"@ui5/webcomponents-theming": "2.29.0-rc.1"
|
|
55
58
|
},
|
|
56
59
|
"devDependencies": {
|
|
57
60
|
"@custom-elements-manifest/analyzer": "^0.10.10",
|
|
58
61
|
"@ui5/cypress-internal": "0.1.0",
|
|
59
|
-
"@ui5/webcomponents-tools": "2.
|
|
62
|
+
"@ui5/webcomponents-tools": "2.29.0-rc.1",
|
|
60
63
|
"cypress": "15.18.1",
|
|
61
64
|
"vite": "5.4.21"
|
|
62
65
|
},
|
|
63
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "87edd7e1a7e71ff6b967b6102d5b31ae9c2b8287"
|
|
64
67
|
}
|