@ag2/weave 0.17.0 → 0.19.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.
Files changed (37) hide show
  1. package/dist/components/account-card/AccountCard.css.d.ts +2 -0
  2. package/dist/components/account-card/AccountCard.d.ts +10 -0
  3. package/dist/components/account-card/index.d.ts +1 -0
  4. package/dist/components/activity-item/ActivityItem.css.d.ts +1 -1
  5. package/dist/components/activity-item/ActivityItem.d.ts +1 -0
  6. package/dist/components/color-swatch-picker/ColorSwatchPicker.css.d.ts +4 -0
  7. package/dist/components/color-swatch-picker/ColorSwatchPicker.d.ts +17 -0
  8. package/dist/components/color-swatch-picker/index.d.ts +1 -0
  9. package/dist/components/form/Form.d.ts +2 -0
  10. package/dist/components/index.d.ts +7 -0
  11. package/dist/components/media-frame/MediaFrame.css.d.ts +6 -0
  12. package/dist/components/media-frame/MediaFrame.d.ts +19 -0
  13. package/dist/components/media-frame/index.d.ts +1 -0
  14. package/dist/components/onboarding-key-button/OnboardingKeyButton.css.d.ts +4 -0
  15. package/dist/components/onboarding-key-button/OnboardingKeyButton.d.ts +12 -0
  16. package/dist/components/onboarding-key-button/index.d.ts +1 -0
  17. package/dist/components/onboarding-motion/OnboardingMotion.css.d.ts +6 -0
  18. package/dist/components/onboarding-motion/OnboardingMotion.d.ts +34 -0
  19. package/dist/components/onboarding-motion/index.d.ts +1 -0
  20. package/dist/components/onboarding-setup/OnboardingSetup.css.d.ts +13 -0
  21. package/dist/components/onboarding-setup/OnboardingSetup.d.ts +62 -0
  22. package/dist/components/onboarding-setup/index.d.ts +1 -0
  23. package/dist/components/option-card/OptionCard.css.d.ts +6 -0
  24. package/dist/components/option-card/OptionCard.d.ts +14 -0
  25. package/dist/components/option-card/index.d.ts +1 -0
  26. package/dist/components/orb-background/OrbBackground.d.ts +3 -2
  27. package/dist/components/orb-background/orbField.d.ts +16 -1
  28. package/dist/index.js +932 -128
  29. package/dist/index.js.map +1 -1
  30. package/dist/style.css +1698 -1225
  31. package/dist/theme/agentColors.d.ts +47 -0
  32. package/dist/theme/auraColors.d.ts +39 -0
  33. package/dist/theme/color.css.d.ts +3 -0
  34. package/dist/theme/index.d.ts +3 -0
  35. package/dist/theme/onboarding.d.ts +10 -0
  36. package/dist/theme/semantic.d.ts +26 -14
  37. package/package.json +1 -1
@@ -0,0 +1,47 @@
1
+ import { identityFamilies } from "./identity";
2
+ /** Named onboarding accents; the identity belongs to the agent, not the surrounding chrome. */
3
+ export declare const agentColorTokens: {
4
+ readonly ember: {
5
+ readonly label: "Ember";
6
+ readonly center: "oklch(0.787009699 0.136442307 59.826136225)";
7
+ readonly rim: "oklch(0.527119098 0.109407543 54.339303924)";
8
+ };
9
+ readonly pink: {
10
+ readonly label: "Pink";
11
+ readonly center: "oklch(0.903800376 0.079694210 323.525249668)";
12
+ readonly rim: "oklch(0.628482741 0.059538517 323.525249668)";
13
+ };
14
+ readonly sky: {
15
+ readonly label: "Sky";
16
+ readonly center: "oklch(0.873307324 0.069002135 240.773146555)";
17
+ readonly rim: "oklch(0.522871788 0.167994038 270.119438779)";
18
+ };
19
+ readonly mint: {
20
+ readonly label: "Mint";
21
+ readonly center: "oklch(0.857770418 0.084263041 161.517741975)";
22
+ readonly rim: "oklch(0.528376478 0.141024154 150.772194033)";
23
+ };
24
+ readonly lemon: {
25
+ readonly label: "Lemon";
26
+ readonly center: "oklch(0.957225457 0.076968671 109.359087060)";
27
+ readonly rim: "oklch(0.899728131 0.169532284 104.561072571)";
28
+ };
29
+ readonly lilac: {
30
+ readonly label: "Lilac";
31
+ readonly center: "oklch(0.939834472 0.020443981 270.119438779)";
32
+ readonly rim: "oklch(0.799172362 0.070219904 270.119438779)";
33
+ };
34
+ readonly peach: {
35
+ readonly label: "Peach";
36
+ readonly center: "oklch(0.861424801 0.062583788 43.322761008)";
37
+ readonly rim: "oklch(0.787009699 0.136442307 59.826136225)";
38
+ };
39
+ };
40
+ export declare type AgentColor = keyof typeof agentColorTokens;
41
+ export declare const agentColors: ("pink" | "ember" | "sky" | "mint" | "lemon" | "lilac" | "peach")[];
42
+ /** Persist the AgentColor; use this family for non-aura avatars across the app. */
43
+ export declare const agentIdentityFamilies: Record<AgentColor, typeof identityFamilies[number]>;
44
+ /** Index into identityValues.light/dark, whose ordering is shared by identity avatars. */
45
+ export declare const agentIdentityIndex: (color: AgentColor) => number;
46
+ /** Validate colours received from storage or another client version. */
47
+ export declare const isAgentColor: (value: unknown) => value is "pink" | "ember" | "sky" | "mint" | "lemon" | "lilac" | "peach";
@@ -0,0 +1,39 @@
1
+ /** G Aura prototype colours. Bright rims are tuned for the blurred field, not UI controls. */
2
+ export declare const auraColorTokens: {
3
+ readonly ember: {
4
+ readonly center: "#f9a358";
5
+ readonly rim: "#f2661e";
6
+ };
7
+ readonly pink: {
8
+ readonly center: "#f8cefe";
9
+ readonly rim: "#e58af0";
10
+ };
11
+ readonly sky: {
12
+ readonly center: "#addbff";
13
+ readonly rim: "#4a5fd0";
14
+ };
15
+ readonly mint: {
16
+ readonly center: "#a0e2bf";
17
+ readonly rim: "#2e8f5e";
18
+ };
19
+ readonly lemon: {
20
+ readonly center: "#f0e345";
21
+ readonly rim: "#8dbf3a";
22
+ };
23
+ readonly lilac: {
24
+ readonly center: "#f2d4ff";
25
+ readonly rim: "#9aa6ff";
26
+ };
27
+ readonly peach: {
28
+ readonly center: "#ffe0cd";
29
+ readonly rim: "#f9a358";
30
+ };
31
+ readonly forest: {
32
+ readonly center: "#0a8a44";
33
+ readonly rim: "#045a2c";
34
+ };
35
+ readonly cream: {
36
+ readonly center: "#f4f6ba";
37
+ readonly rim: "#c9a14a";
38
+ };
39
+ };
@@ -77,6 +77,9 @@ export declare const color: {
77
77
  Fill: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
78
78
  OnFill: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
79
79
  };
80
+ Attention: {
81
+ NeedsYou: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
82
+ };
80
83
  Reason: {
81
84
  you: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
82
85
  agent: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
@@ -9,3 +9,6 @@ export * from "./identity";
9
9
  export * from "./colorValue";
10
10
  export * from "./brand";
11
11
  export * from "./reading";
12
+ export * from "./onboarding";
13
+ export * from "./agentColors";
14
+ export * from "./auraColors";
@@ -0,0 +1,10 @@
1
+ /** G · Aura uses a fixed white content surface, including inside dark app chrome. */
2
+ export declare const onboardingTokens: {
3
+ readonly surface: "oklch(1 0 0)";
4
+ readonly ink: "oklch(0.215703550 0.003145551 17.400595087)";
5
+ readonly keyFill: "oklch(0.215703550 0.003145551 17.400595087)";
6
+ readonly keyInk: "oklch(1 0 0)";
7
+ readonly keyPressedInk: "oklch(0.215703550 0.003145551 17.400595087)";
8
+ readonly keyGradient: "linear-gradient(105deg, oklch(0.873307324 0.069002135 240.773146555), oklch(0.903800376 0.079694210 323.525249668) 52%, oklch(0.787009699 0.136442307 59.826136225))";
9
+ readonly cardShadow: "0 8px 32px color-mix(in srgb, oklch(0.215703550 0.003145551 17.400595087) 9%, transparent)";
10
+ };
@@ -73,11 +73,14 @@ export declare const lightColorValues: {
73
73
  readonly Number: "oklch(0.459065516 0.083828645 51.346486305)";
74
74
  };
75
75
  readonly Notification: {
76
- readonly Indicator: string;
77
- readonly Text: "oklch(0.488642537 0.143031796 27.468921581)";
78
- readonly Fill: string;
76
+ readonly Indicator: "oklch(0.522871788 0.167994038 270.119438779)";
77
+ readonly Text: "oklch(0.455712867 0.156013882 269.358076328)";
78
+ readonly Fill: "oklch(0.522871788 0.167994038 270.119438779)";
79
79
  readonly OnFill: "oklch(1 0 0)";
80
80
  };
81
+ readonly Attention: {
82
+ readonly NeedsYou: "oklch(0.527119098 0.109407543 54.339303924)";
83
+ };
81
84
  readonly Reason: {
82
85
  readonly you: "oklch(0.431470453 0.153163604 21.276148413)";
83
86
  readonly agent: "oklch(0.448403841 0.133495528 270.119438779)";
@@ -319,10 +322,13 @@ export declare const darkColorValues: {
319
322
  readonly Number: "oklch(0.875744033 0.022587987 51.346486305)";
320
323
  };
321
324
  readonly Notification: {
322
- readonly Indicator: "oklch(0.685379687 0.148098752 27.468921581)";
323
- readonly Text: "oklch(0.772265781 0.106069127 27.468921581)";
324
- readonly Fill: string;
325
- readonly OnFill: "oklch(1 0 0)";
325
+ readonly Indicator: "oklch(0.873307324 0.069002135 240.773146555)";
326
+ readonly Text: "oklch(0.873307324 0.069002135 240.773146555)";
327
+ readonly Fill: "oklch(0.873307324 0.069002135 240.773146555)";
328
+ readonly OnFill: "oklch(0.254236102 0.120073415 267.073988973)";
329
+ };
330
+ readonly Attention: {
331
+ readonly NeedsYou: "oklch(0.787009699 0.136442307 59.826136225)";
326
332
  };
327
333
  readonly Reason: {
328
334
  readonly you: "oklch(0.834316763 0.104827504 338.077947414)";
@@ -566,11 +572,14 @@ export declare const colorValues: {
566
572
  readonly Number: "oklch(0.459065516 0.083828645 51.346486305)";
567
573
  };
568
574
  readonly Notification: {
569
- readonly Indicator: string;
570
- readonly Text: "oklch(0.488642537 0.143031796 27.468921581)";
571
- readonly Fill: string;
575
+ readonly Indicator: "oklch(0.522871788 0.167994038 270.119438779)";
576
+ readonly Text: "oklch(0.455712867 0.156013882 269.358076328)";
577
+ readonly Fill: "oklch(0.522871788 0.167994038 270.119438779)";
572
578
  readonly OnFill: "oklch(1 0 0)";
573
579
  };
580
+ readonly Attention: {
581
+ readonly NeedsYou: "oklch(0.527119098 0.109407543 54.339303924)";
582
+ };
574
583
  readonly Reason: {
575
584
  readonly you: "oklch(0.431470453 0.153163604 21.276148413)";
576
585
  readonly agent: "oklch(0.448403841 0.133495528 270.119438779)";
@@ -812,10 +821,13 @@ export declare const colorValues: {
812
821
  readonly Number: "oklch(0.875744033 0.022587987 51.346486305)";
813
822
  };
814
823
  readonly Notification: {
815
- readonly Indicator: "oklch(0.685379687 0.148098752 27.468921581)";
816
- readonly Text: "oklch(0.772265781 0.106069127 27.468921581)";
817
- readonly Fill: string;
818
- readonly OnFill: "oklch(1 0 0)";
824
+ readonly Indicator: "oklch(0.873307324 0.069002135 240.773146555)";
825
+ readonly Text: "oklch(0.873307324 0.069002135 240.773146555)";
826
+ readonly Fill: "oklch(0.873307324 0.069002135 240.773146555)";
827
+ readonly OnFill: "oklch(0.254236102 0.120073415 267.073988973)";
828
+ };
829
+ readonly Attention: {
830
+ readonly NeedsYou: "oklch(0.787009699 0.136442307 59.826136225)";
819
831
  };
820
832
  readonly Reason: {
821
833
  readonly you: "oklch(0.834316763 0.104827504 338.077947414)";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ag2/weave",
3
- "version": "0.17.0",
3
+ "version": "0.19.0",
4
4
  "author": "Ajay Bura (ajbura)",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",