@8wave/ai-elements 0.121.0-beta.63 → 0.121.0-beta.64
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/README.md +7 -3
- package/dist/ai-elements.es.js +2389 -2354
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/apps/web-component/src/composables/usePagePresence.d.ts +5 -1
- package/dist-vue/apps/web-component/src/pageTools/index.d.ts +2 -0
- package/dist-vue/packages/components/src/chat/PkAgentPresence.d.ts +7 -2
- package/package.json +1 -1
|
@@ -4,14 +4,18 @@
|
|
|
4
4
|
* before acting on it, for `PkAgentPresence`. `point` resolves once the
|
|
5
5
|
* cursor clicked there, or after a short while at most; the last element
|
|
6
6
|
* stays the target between two actions, until control of the page ends.
|
|
7
|
-
* `
|
|
7
|
+
* `toward` makes the next element the target ahead of its action, `heading`
|
|
8
|
+
* there with no click. `clicks` counts the cursor's clicks, for the aurora's
|
|
9
|
+
* glints.
|
|
8
10
|
*/
|
|
9
11
|
export declare function usePagePresence(active: () => boolean): {
|
|
10
12
|
target: globalThis.ShallowRef<{
|
|
11
13
|
element: Element;
|
|
12
14
|
name: string;
|
|
15
|
+
heading?: boolean;
|
|
13
16
|
} | undefined>;
|
|
14
17
|
clicks: globalThis.Ref<number, number>;
|
|
15
18
|
point: (element: Element, name: string) => Promise<void>;
|
|
19
|
+
toward: (element: Element, name: string) => void;
|
|
16
20
|
arrived: (clicked: boolean) => void;
|
|
17
21
|
};
|
|
@@ -7,6 +7,8 @@ import { RegisteredHostTool } from '../../../../packages/composable/src';
|
|
|
7
7
|
export type PagePresence = {
|
|
8
8
|
/** Points at the element, named as the snapshot names it; resolves once the user can see it there. */
|
|
9
9
|
point: (element: Element, name: string) => Promise<void>;
|
|
10
|
+
/** Heads for the element the next action points at, while the page settles: no click, nothing waits. */
|
|
11
|
+
toward?: (element: Element, name: string) => void;
|
|
10
12
|
};
|
|
11
13
|
/**
|
|
12
14
|
* A page of the site the app declares to the widget (`registerPages`, spec
|
|
@@ -5,7 +5,7 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
|
|
|
5
5
|
* and the name of what it acts on, as in a shared editor, and a ring on
|
|
6
6
|
* that element, drawn as the system draws keyboard focus. The cursor
|
|
7
7
|
* leaves the chat, glides to the element and clicks; the ring settles
|
|
8
|
-
* there and
|
|
8
|
+
* there at the click, and on the next element at the next. A layer of its own
|
|
9
9
|
* over the page, its dialogs too, letting every click through.
|
|
10
10
|
* Decoration only, hidden from assistive technology: the chat says what
|
|
11
11
|
* the agent does.
|
|
@@ -13,10 +13,15 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
|
|
|
13
13
|
type __VLS_Props = {
|
|
14
14
|
/** Shown while true: the agent controls the page. */
|
|
15
15
|
active: boolean;
|
|
16
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* The element the agent acts on, and its name; the last one between
|
|
18
|
+
* two actions. `heading`: the next one, before its action, which the
|
|
19
|
+
* cursor glides to without clicking.
|
|
20
|
+
*/
|
|
17
21
|
target?: {
|
|
18
22
|
element: Element;
|
|
19
23
|
name: string;
|
|
24
|
+
heading?: boolean;
|
|
20
25
|
};
|
|
21
26
|
/** The agent's name, beside the cursor. */
|
|
22
27
|
agentName?: string;
|