@burdenoff/fe-libs 2026.1118.3 → 2026.1118.5

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 (57) hide show
  1. package/dist/platform-pages/AppearanceSettingsPage.d.ts +9 -13
  2. package/dist/platform-pages/AppearanceSettingsPage.js +7 -4
  3. package/dist/platform-pages/index.d.ts +5 -1
  4. package/dist/platform-pages/oauth/AuthorizedAppsPage.d.ts +13 -0
  5. package/dist/platform-pages/oauth/AuthorizedAppsPage.js +154 -0
  6. package/dist/platform-pages/oauth/ConnectAuthorizePage.d.ts +23 -0
  7. package/dist/platform-pages/oauth/ConnectAuthorizePage.js +196 -0
  8. package/dist/platform-pages/oauth/operations.d.ts +49 -0
  9. package/dist/platform-pages/oauth/operations.js +55 -0
  10. package/dist/platform-pages.js +3 -1
  11. package/dist/shared/assistant/home/AssistantHomePage.d.ts +29 -1
  12. package/dist/shared/assistant/home/AssistantHomePage.js +63 -36
  13. package/dist/shared/assistant/home/AssistantHomeStart.d.ts +12 -0
  14. package/dist/shared/assistant/home/AssistantHomeStart.js +24 -15
  15. package/dist/shared/assistant/home.js +5 -5
  16. package/dist/shared/backgrounds/BackgroundEffect.d.ts +7 -0
  17. package/dist/shared/backgrounds/BackgroundEffect.js +24 -0
  18. package/dist/shared/backgrounds/BackgroundPicker.d.ts +49 -0
  19. package/dist/shared/backgrounds/BackgroundPicker.js +133 -0
  20. package/dist/shared/backgrounds/BackgroundRoot.d.ts +13 -0
  21. package/dist/shared/backgrounds/BackgroundRoot.js +44 -0
  22. package/dist/shared/backgrounds/CursorWave.d.ts +19 -0
  23. package/dist/shared/backgrounds/CursorWave.js +40 -0
  24. package/dist/shared/backgrounds/DottedWaves.d.ts +20 -0
  25. package/dist/shared/backgrounds/DottedWaves.js +36 -0
  26. package/dist/shared/backgrounds/Glimmer.d.ts +18 -0
  27. package/dist/shared/backgrounds/Glimmer.js +38 -0
  28. package/dist/shared/backgrounds/backgroundGround.d.ts +5 -0
  29. package/dist/shared/backgrounds/backgroundGround.js +16 -0
  30. package/dist/shared/backgrounds/backgroundTypes.d.ts +38 -0
  31. package/dist/shared/backgrounds/backgroundTypes.js +20 -0
  32. package/dist/shared/backgrounds/canvasEffect.d.ts +51 -0
  33. package/dist/shared/backgrounds/canvasEffect.js +97 -0
  34. package/dist/shared/backgrounds/color.d.ts +56 -0
  35. package/dist/shared/backgrounds/color.js +153 -0
  36. package/dist/shared/backgrounds/cursorWavePool.d.ts +7 -0
  37. package/dist/shared/backgrounds/cursorWavePool.js +14 -0
  38. package/dist/shared/backgrounds/cursorWaveRenderer.d.ts +43 -0
  39. package/dist/shared/backgrounds/cursorWaveRenderer.js +146 -0
  40. package/dist/shared/backgrounds/dottedWavesRenderer.d.ts +72 -0
  41. package/dist/shared/backgrounds/dottedWavesRenderer.js +176 -0
  42. package/dist/shared/backgrounds/glimmerRenderer.d.ts +65 -0
  43. package/dist/shared/backgrounds/glimmerRenderer.js +254 -0
  44. package/dist/shared/backgrounds/index.d.ts +31 -0
  45. package/dist/shared/backgrounds/noise.d.ts +19 -0
  46. package/dist/shared/backgrounds/noise.js +143 -0
  47. package/dist/shared/backgrounds/originalPalettes.d.ts +36 -0
  48. package/dist/shared/backgrounds/originalPalettes.js +24 -0
  49. package/dist/shared/backgrounds/useBackgroundColors.d.ts +40 -0
  50. package/dist/shared/backgrounds/useBackgroundColors.js +165 -0
  51. package/dist/shared/backgrounds/useBackgroundPreference.d.ts +26 -0
  52. package/dist/shared/backgrounds/useBackgroundPreference.js +109 -0
  53. package/dist/shared/config/shellRoutes.js +7 -0
  54. package/dist/shared-assistant.js +79 -79
  55. package/dist/shared-backgrounds.d.ts +2 -0
  56. package/dist/shared-backgrounds.js +16 -0
  57. package/package.json +9 -1
@@ -0,0 +1,165 @@
1
+ import { fromOklabInGamut as e, lightness as t, mixOklab as n, parseColor as r, readColor as i, resolveColor as a, toInk as o, toOklab as s, withLightness as c } from "./color.js";
2
+ import { CURSOR_WAVE_COLORS as l, DOTTED_WAVES_COLORS as u, FALLBACK_INK as d, GLIMMER_COLORS as f } from "./originalPalettes.js";
3
+ import { useEffect as p, useMemo as m, useState as h } from "react";
4
+ // src/shared/backgrounds/useBackgroundColors.ts
5
+ var g = (e) => {
6
+ let t = r(e);
7
+ if (!t) throw Error(`not a colour: ${e}`);
8
+ return t;
9
+ }, _ = [g(u[0]), g(u[1])], v = [g(f[0]), g(f[1])], y = l.map((e) => typeof e == "string" ? g(e) : { stops: [g(e.stops[0]), g(e.stops[1])] });
10
+ function b(t, n) {
11
+ let r = s(t), i = n * Math.PI / 180, a = Math.cos(i), o = Math.sin(i);
12
+ return e({
13
+ L: r.L,
14
+ a: r.a * a - r.b * o,
15
+ b: r.a * o + r.b * a
16
+ }, t.a);
17
+ }
18
+ var x = (e, t) => ({ stops: [e, t] });
19
+ function S(e, t) {
20
+ let { light: r } = t;
21
+ if (e === "original") return {
22
+ light: r,
23
+ dottedWaves: r ? [_[1], _[0]] : _,
24
+ glimmer: r ? [o(v[0]), o(v[1])] : v,
25
+ cursorWave: y
26
+ };
27
+ if (e === "mono") {
28
+ let e = t.text ?? g(r ? d.onLight : d.onDark), n = (t) => c(e, t, .12);
29
+ return r ? {
30
+ light: r,
31
+ dottedWaves: [n(.84), n(.3)],
32
+ glimmer: [n(.18), n(.46)],
33
+ cursorWave: [
34
+ n(.26),
35
+ n(.36),
36
+ n(.46),
37
+ n(.56),
38
+ n(.64),
39
+ x(n(.3), n(.58))
40
+ ]
41
+ } : {
42
+ light: r,
43
+ dottedWaves: [n(.46), n(.92)],
44
+ glimmer: [n(.99), n(.76)],
45
+ cursorWave: [
46
+ n(.95),
47
+ n(.85),
48
+ n(.75),
49
+ n(.65),
50
+ n(.56),
51
+ x(n(.95), n(.66))
52
+ ]
53
+ };
54
+ }
55
+ let i = t.accent ?? _[0], a = t.accentAlt ?? b(i, 40), s = n(i, a, .5);
56
+ return r ? {
57
+ light: r,
58
+ dottedWaves: [c(i, .86, .5), c(i, .5, 1.05)],
59
+ glimmer: [c(i, .22, .3), c(i, .46, .95)],
60
+ cursorWave: [
61
+ c(i, .56),
62
+ c(i, .47),
63
+ c(a, .56),
64
+ c(a, .47),
65
+ c(s, .52),
66
+ c(i, .64, .85),
67
+ c(a, .64, .85),
68
+ x(c(i, .62), c(i, .46)),
69
+ x(c(a, .62), c(a, .46)),
70
+ x(c(i, .6), c(a, .48))
71
+ ]
72
+ } : {
73
+ light: r,
74
+ dottedWaves: [c(i, .56, 1.1), c(i, .8, .55)],
75
+ glimmer: [c(i, .985, .04), c(i, .8, .6)],
76
+ cursorWave: [
77
+ c(i, .74),
78
+ c(i, .64),
79
+ c(a, .74),
80
+ c(a, .64),
81
+ c(s, .7),
82
+ c(i, .84, .7),
83
+ c(a, .84, .7),
84
+ x(c(i, .82), c(i, .62)),
85
+ x(c(a, .82), c(a, .62)),
86
+ x(c(i, .8), c(a, .64))
87
+ ]
88
+ };
89
+ }
90
+ var C = "(prefers-color-scheme: dark)";
91
+ function w(e) {
92
+ if (!e || typeof getComputedStyle != "function") return {
93
+ light: !1,
94
+ accent: null,
95
+ accentAlt: null,
96
+ text: null
97
+ };
98
+ let n = getComputedStyle(e), r = (e) => {
99
+ let t = n.getPropertyValue(e).trim();
100
+ if (!t) return null;
101
+ let r = a(t);
102
+ return r && r.a > 0 ? r : null;
103
+ }, i = r("--color-bg-canvas"), o = typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia(C)?.matches === !0, s = i ? t(i) > .6 : !e.classList.contains("dark") && e.getAttribute("data-theme") !== "dark" && !o, c = e.getAttribute("data-accent") === "custom";
104
+ return {
105
+ light: s,
106
+ accent: c ? r("--color-action-primary-bg") : r("--color-accent-glow") ?? r("--color-accent-primary") ?? r("--color-action-primary-bg"),
107
+ accentAlt: c ? null : r("--color-accent-glow-alt"),
108
+ text: r("--color-text-primary")
109
+ };
110
+ }
111
+ var T = (e, t) => e === t || e !== null && t !== null && e.r === t.r && e.g === t.g && e.b === t.b && e.a === t.a;
112
+ function E(e, t) {
113
+ return e.light === t.light && T(e.accent, t.accent) && T(e.accentAlt, t.accentAlt) && T(e.text, t.text);
114
+ }
115
+ function D(e, t) {
116
+ let n = [];
117
+ if (typeof MutationObserver < "u") {
118
+ let r = new MutationObserver(t);
119
+ r.observe(e, {
120
+ attributes: !0,
121
+ attributeFilter: [
122
+ "class",
123
+ "style",
124
+ "data-theme",
125
+ "data-brand",
126
+ "data-accent",
127
+ "data-accent-label"
128
+ ]
129
+ }), n.push(() => r.disconnect());
130
+ }
131
+ if (typeof window < "u" && typeof window.matchMedia == "function") {
132
+ let e = window.matchMedia(C);
133
+ typeof e?.addEventListener == "function" && (e.addEventListener("change", t), n.push(() => e.removeEventListener("change", t)));
134
+ }
135
+ return () => {
136
+ for (let e of n) e();
137
+ };
138
+ }
139
+ function O() {
140
+ let [e, t] = h(() => w(typeof document > "u" ? null : document.documentElement));
141
+ return p(() => {
142
+ if (typeof document > "u") return;
143
+ let e = document.documentElement, n = () => t((t) => {
144
+ let n = w(e);
145
+ return E(t, n) ? t : n;
146
+ });
147
+ return n(), D(e, n);
148
+ }, []), e;
149
+ }
150
+ function k(e, n) {
151
+ let r = O(), a = m(() => {
152
+ if (!n) return null;
153
+ let e = i(n);
154
+ return e && e.a >= .99 ? t(e) > .6 : null;
155
+ }, [n]);
156
+ return m(() => S(e, a === null ? r : {
157
+ ...r,
158
+ light: a
159
+ }), [
160
+ e,
161
+ r,
162
+ a
163
+ ]);
164
+ }
165
+ export { S as backgroundPalette, w as readBackgroundTheme, D as subscribeBackgroundTheme, b as turnHue, k as useBackgroundColors, O as useBackgroundTheme };
@@ -0,0 +1,26 @@
1
+ import { BackgroundColorMode, BackgroundEffectName, BackgroundStrength } from './backgroundTypes';
2
+ export interface BackgroundPreference {
3
+ effect: BackgroundEffectName;
4
+ colors: BackgroundColorMode;
5
+ strength: BackgroundStrength;
6
+ }
7
+ export declare const DEFAULT_BACKGROUND_PREFERENCE: Readonly<BackgroundPreference>;
8
+ /** The storage namespace when none is given. */
9
+ export declare const BACKGROUND_PREFERENCE_KEY = "boff-background";
10
+ export interface UseBackgroundPreferenceOptions {
11
+ /** The keys' namespace (default `boff-background`). */
12
+ storageKey?: string;
13
+ }
14
+ export interface BackgroundPreferenceControls extends BackgroundPreference {
15
+ setEffect(effect: BackgroundEffectName): void;
16
+ setColors(colors: BackgroundColorMode): void;
17
+ setStrength(strength: BackgroundStrength): void;
18
+ /** Back to the default. */
19
+ reset(): void;
20
+ }
21
+ /** The stored choice (each field validated; anything else is the default). */
22
+ export declare function readBackgroundPreference(storageKey?: string): BackgroundPreference;
23
+ /** The person's background choice and its setters. */
24
+ export declare function useBackgroundPreference({ storageKey, }?: UseBackgroundPreferenceOptions): BackgroundPreferenceControls;
25
+ /** Tests only: forget the in-memory channels (the stored values stay). */
26
+ export declare function resetBackgroundPreferenceChannels(): void;
@@ -0,0 +1,109 @@
1
+ import { BACKGROUND_COLOR_MODES as e, BACKGROUND_EFFECTS as t, BACKGROUND_STRENGTHS as n } from "./backgroundTypes.js";
2
+ import { useCallback as r, useMemo as i, useSyncExternalStore as a } from "react";
3
+ // src/shared/backgrounds/useBackgroundPreference.ts
4
+ var o = {
5
+ effect: "dotted-waves",
6
+ colors: "accent",
7
+ strength: "subtle"
8
+ }, s = "boff-background", c = [
9
+ "effect",
10
+ "colors",
11
+ "strength"
12
+ ], l = {
13
+ effect: t,
14
+ colors: e,
15
+ strength: n
16
+ };
17
+ function u() {
18
+ try {
19
+ return typeof window > "u" ? null : window.localStorage;
20
+ } catch {
21
+ return null;
22
+ }
23
+ }
24
+ function d(e, t) {
25
+ return l[e].includes(t);
26
+ }
27
+ function f(e = s) {
28
+ let t = u(), n = (n) => {
29
+ let r = null;
30
+ try {
31
+ r = t?.getItem(`${e}-${n}`) ?? null;
32
+ } catch {
33
+ r = null;
34
+ }
35
+ return d(n, r) ? r : o[n];
36
+ };
37
+ return {
38
+ effect: n("effect"),
39
+ colors: n("colors"),
40
+ strength: n("strength")
41
+ };
42
+ }
43
+ var p = /* @__PURE__ */ new Map(), m = (e, t) => c.every((n) => e[n] === t[n]);
44
+ function h(e) {
45
+ let t = p.get(e);
46
+ if (!t) t = {
47
+ value: f(e),
48
+ listeners: /* @__PURE__ */ new Set(),
49
+ unpersisted: !1
50
+ }, p.set(e, t);
51
+ else if (t.listeners.size === 0 && !t.unpersisted) {
52
+ let n = f(e);
53
+ m(n, t.value) || (t.value = n);
54
+ }
55
+ return t;
56
+ }
57
+ function g(e, t) {
58
+ let n = h(e);
59
+ if (!m(n.value, t)) {
60
+ n.value = t;
61
+ for (let e of [...n.listeners]) e();
62
+ }
63
+ }
64
+ function _(e, t) {
65
+ let n = u(), r = n !== null;
66
+ for (let i of c) try {
67
+ n?.setItem(`${e}-${i}`, t[i]);
68
+ } catch {
69
+ r = !1;
70
+ }
71
+ h(e).unpersisted = !r, g(e, t);
72
+ }
73
+ var v = 0;
74
+ function y(e) {
75
+ for (let [t, n] of p) (e.key === null || e.key.startsWith(`${t}-`)) && (n.unpersisted = !1, g(t, f(t)));
76
+ }
77
+ function b() {
78
+ if (typeof window > "u") return () => void 0;
79
+ v === 0 && window.addEventListener("storage", y), v += 1;
80
+ let e = !1;
81
+ return () => {
82
+ e || (e = !0, --v, v === 0 && window.removeEventListener("storage", y));
83
+ };
84
+ }
85
+ function x({ storageKey: e = s } = {}) {
86
+ let t = r((t) => {
87
+ let n = b(), r = h(e);
88
+ return r.listeners.add(t), () => {
89
+ r.listeners.delete(t), n();
90
+ };
91
+ }, [e]), n = r(() => h(e).value, [e]), c = a(t, n, () => o), l = r((t, n) => {
92
+ d(t, n) && _(e, {
93
+ ...h(e).value,
94
+ [t]: n
95
+ });
96
+ }, [e]);
97
+ return i(() => ({
98
+ ...c,
99
+ setEffect: (e) => l("effect", e),
100
+ setColors: (e) => l("colors", e),
101
+ setStrength: (e) => l("strength", e),
102
+ reset: () => _(e, { ...o })
103
+ }), [
104
+ c,
105
+ l,
106
+ e
107
+ ]);
108
+ }
109
+ export { s as BACKGROUND_PREFERENCE_KEY, o as DEFAULT_BACKGROUND_PREFERENCE, f as readBackgroundPreference, x as useBackgroundPreference };
@@ -131,6 +131,13 @@ var e = {
131
131
  showFooter: !1,
132
132
  showBreadcrumb: !1
133
133
  },
134
+ {
135
+ pattern: /^\/connect\//,
136
+ showHeader: !1,
137
+ showSidebar: !1,
138
+ showFooter: !1,
139
+ showBreadcrumb: !1
140
+ },
134
141
  {
135
142
  pattern: /^\/public\//,
136
143
  showHeader: !0,