@adminide-stack/clock-tik-browser 12.0.33 → 12.0.34-alpha.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 (48) hide show
  1. package/lib/pages/Home/__tests__/TourOverlay.test.d.ts +2 -0
  2. package/lib/pages/Home/__tests__/TourOverlay.test.d.ts.map +1 -0
  3. package/lib/pages/Home/__tests__/chatTour.test.d.ts +2 -0
  4. package/lib/pages/Home/__tests__/chatTour.test.d.ts.map +1 -0
  5. package/lib/pages/Home/__tests__/tourGeometry.test.d.ts +2 -0
  6. package/lib/pages/Home/__tests__/tourGeometry.test.d.ts.map +1 -0
  7. package/lib/pages/Home/chat/ChoresChat.d.ts.map +1 -1
  8. package/lib/pages/Home/chat/ChoresChat.js +25 -2
  9. package/lib/pages/Home/chat/ChoresChat.js.map +1 -1
  10. package/lib/pages/Home/chat/thread.d.ts +5 -0
  11. package/lib/pages/Home/chat/thread.d.ts.map +1 -1
  12. package/lib/pages/Home/chat/thread.js +14 -1
  13. package/lib/pages/Home/chat/thread.js.map +1 -1
  14. package/lib/pages/Home/chat/tour/ChatTour.d.ts +11 -0
  15. package/lib/pages/Home/chat/tour/ChatTour.d.ts.map +1 -0
  16. package/lib/pages/Home/chat/tour/ChatTour.js +17 -0
  17. package/lib/pages/Home/chat/tour/ChatTour.js.map +1 -0
  18. package/lib/pages/Home/chat/tour/TourDemos.d.ts +20 -0
  19. package/lib/pages/Home/chat/tour/TourDemos.d.ts.map +1 -0
  20. package/lib/pages/Home/chat/tour/TourDemos.js +165 -0
  21. package/lib/pages/Home/chat/tour/TourDemos.js.map +1 -0
  22. package/lib/pages/Home/chat/tour/TourOverlay.d.ts +14 -0
  23. package/lib/pages/Home/chat/tour/TourOverlay.d.ts.map +1 -0
  24. package/lib/pages/Home/chat/tour/TourOverlay.js +1006 -0
  25. package/lib/pages/Home/chat/tour/TourOverlay.js.map +1 -0
  26. package/lib/pages/Home/chat/tour/index.d.ts +3 -0
  27. package/lib/pages/Home/chat/tour/index.d.ts.map +1 -0
  28. package/lib/pages/Home/chat/tour/tourDom.d.ts +36 -0
  29. package/lib/pages/Home/chat/tour/tourDom.d.ts.map +1 -0
  30. package/lib/pages/Home/chat/tour/tourDom.js +81 -0
  31. package/lib/pages/Home/chat/tour/tourDom.js.map +1 -0
  32. package/lib/pages/Home/chat/tour/tourGeometry.d.ts +106 -0
  33. package/lib/pages/Home/chat/tour/tourGeometry.d.ts.map +1 -0
  34. package/lib/pages/Home/chat/tour/tourGeometry.js +348 -0
  35. package/lib/pages/Home/chat/tour/tourGeometry.js.map +1 -0
  36. package/lib/pages/Home/chat/tour/tourSteps.d.ts +45 -0
  37. package/lib/pages/Home/chat/tour/tourSteps.d.ts.map +1 -0
  38. package/lib/pages/Home/chat/tour/tourSteps.js +87 -0
  39. package/lib/pages/Home/chat/tour/tourSteps.js.map +1 -0
  40. package/lib/pages/Home/chat/tour/tourStyles.d.ts +15 -0
  41. package/lib/pages/Home/chat/tour/tourStyles.d.ts.map +1 -0
  42. package/lib/pages/Home/chat/tour/tourStyles.js +156 -0
  43. package/lib/pages/Home/chat/tour/tourStyles.js.map +1 -0
  44. package/lib/pages/Home/chat/tour/useChatTour.d.ts +17 -0
  45. package/lib/pages/Home/chat/tour/useChatTour.d.ts.map +1 -0
  46. package/lib/pages/Home/chat/tour/useChatTour.js +75 -0
  47. package/lib/pages/Home/chat/tour/useChatTour.js.map +1 -0
  48. package/package.json +3 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tourGeometry.js","sources":["../../../../../src/pages/Home/chat/tour/tourGeometry.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;;;;;;AAUG;AAmDH;AACO,MAAM,IAAI,GAAG;AACpB;AACO,MAAM,GAAG,GAAG;AACnB;AACO,MAAM,WAAW,GAAG;AAC3B;AACO,MAAM,WAAW,GAAG;AAE3B,MAAM,aAAa,GAAoB,CAAC,QAAQ,EAAE,KAAK,EAAE,OAAO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AAA;AACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,45 @@
1
+ /**
2
+ * What the chat tour says, and what each step points at.
3
+ *
4
+ * Lucy is the guide: her mark flies to each control and says what it does in a speech bubble. The
5
+ * tour follows the Yantra app's home tour (yantra-app, features/chat/tour), walking the controls
6
+ * Clockbook's chat has: the composer, the starters, the line about approvals, iMessage, New chat
7
+ * and the way back home, and ending on the composer with chores to hand over.
8
+ *
9
+ * A step names one or more targets; the first one on screen wins, and a step whose targets are all
10
+ * missing is skipped. That is how one script fits every chat: the starters only show while the
11
+ * chat is empty, and the iMessage button only where the page offers iMessage.
12
+ *
13
+ * The words describe what the chat does today (ChoresChat, and Lucy's brief in lucy.ts): there is
14
+ * no approve button on this chat, so Lucy asks for the yes in the conversation itself.
15
+ */
16
+ import { type Chore } from '../../content';
17
+ import type { TourDemoId } from './TourDemos';
18
+ import type { Side } from './tourGeometry';
19
+ /** The controls a step can point at. */
20
+ export type TourTarget = 'composer' | 'starters' | 'approve' | 'imessage' | 'new-chat' | 'home';
21
+ /**
22
+ * Where each one is. Clockbook's own controls carry a `data-tour` hook (ChoresChat); the composer
23
+ * and the line under it belong to the kit's chat, found by the classes it gives them.
24
+ */
25
+ export declare const TOUR_TARGETS: Record<TourTarget, string>;
26
+ export interface TourStep {
27
+ id: string;
28
+ /** The controls to point at, in order of preference. */
29
+ targets: readonly TourTarget[];
30
+ title: string;
31
+ body: string;
32
+ demo?: TourDemoId;
33
+ /** The sides of its target the bubble may sit on, in order (see placeCard). */
34
+ prefer?: readonly Side[];
35
+ /** Space between the control and the lit cut-out. */
36
+ pad?: number;
37
+ /** The control's own corner radius, where the element found is a wrapper with none. */
38
+ radius?: number;
39
+ /** The last step: chores to hand over instead of a demo, and done instead of next. */
40
+ finale?: boolean;
41
+ }
42
+ /** The finale's chores, three of the hero's: tapping one hands it to Lucy. */
43
+ export declare const TOUR_TRIES: readonly Chore[];
44
+ export declare const CHAT_TOUR_STEPS: readonly TourStep[];
45
+ //# sourceMappingURL=tourSteps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tourSteps.d.ts","sourceRoot":"","sources":["../../../../../src/pages/Home/chat/tour/tourSteps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAe,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAE3C,wCAAwC;AACxC,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,CAAC;AAEhG;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAOnD,CAAC;AAEF,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,wDAAwD;IACxD,OAAO,EAAE,SAAS,UAAU,EAAE,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,+EAA+E;IAC/E,MAAM,CAAC,EAAE,SAAS,IAAI,EAAE,CAAC;IACzB,qDAAqD;IACrD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,uFAAuF;IACvF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sFAAsF;IACtF,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,8EAA8E;AAC9E,eAAO,MAAM,UAAU,EAAE,SAAS,KAAK,EAA4B,CAAC;AAEpE,eAAO,MAAM,eAAe,EAAE,SAAS,QAAQ,EAiE9C,CAAC"}
@@ -0,0 +1,87 @@
1
+ import {HERO_CHORES}from'../../content.js';/**
2
+ * What the chat tour says, and what each step points at.
3
+ *
4
+ * Lucy is the guide: her mark flies to each control and says what it does in a speech bubble. The
5
+ * tour follows the Yantra app's home tour (yantra-app, features/chat/tour), walking the controls
6
+ * Clockbook's chat has: the composer, the starters, the line about approvals, iMessage, New chat
7
+ * and the way back home, and ending on the composer with chores to hand over.
8
+ *
9
+ * A step names one or more targets; the first one on screen wins, and a step whose targets are all
10
+ * missing is skipped. That is how one script fits every chat: the starters only show while the
11
+ * chat is empty, and the iMessage button only where the page offers iMessage.
12
+ *
13
+ * The words describe what the chat does today (ChoresChat, and Lucy's brief in lucy.ts): there is
14
+ * no approve button on this chat, so Lucy asks for the yes in the conversation itself.
15
+ */
16
+ /**
17
+ * Where each one is. Clockbook's own controls carry a `data-tour` hook (ChoresChat); the composer
18
+ * and the line under it belong to the kit's chat, found by the classes it gives them.
19
+ */
20
+ const TOUR_TARGETS = {
21
+ composer: '.cbh-chat .ysc-composer-root',
22
+ starters: '.cbh-chat [data-tour="starters"]',
23
+ approve: '.cbh-chat .ysc-footer-note',
24
+ imessage: '.cbh-chat [data-tour="imessage"]',
25
+ 'new-chat': '.cbh-chat [data-tour="new-chat"]',
26
+ home: '.cbh-chat [data-tour="home"]'
27
+ };
28
+ /** The finale's chores, three of the hero's: tapping one hands it to Lucy. */
29
+ const TOUR_TRIES = HERO_CHORES.slice(1, 4);
30
+ const CHAT_TOUR_STEPS = [{
31
+ id: 'composer',
32
+ targets: ['composer'],
33
+ title: 'Tell Lucy what you need',
34
+ body: 'Type it the way you’d text a friend: cancel the gym, lower a bill, book the dentist. Lucy does the steps.',
35
+ demo: 'typing',
36
+ prefer: ['top', 'bottom'],
37
+ pad: 6,
38
+ radius: 20
39
+ }, {
40
+ id: 'starters',
41
+ targets: ['starters'],
42
+ title: 'Or start with one of these',
43
+ body: 'The chores people hand over first. Tap one and Lucy gets going.',
44
+ prefer: ['bottom', 'top', 'right', 'left'],
45
+ pad: 8,
46
+ radius: 22
47
+ }, {
48
+ id: 'approve',
49
+ targets: ['approve'],
50
+ title: 'You approve what matters',
51
+ body: 'Lucy asks before she pays for anything or changes an account, and waits for your yes.',
52
+ demo: 'approve',
53
+ prefer: ['top'],
54
+ pad: 6,
55
+ radius: 10
56
+ }, {
57
+ id: 'imessage',
58
+ targets: ['imessage'],
59
+ title: 'Text Lucy from your phone',
60
+ body: 'Messages opens with your first text ready. Lucy answers right there, on your iPhone, iPad or Mac.',
61
+ demo: 'imessage',
62
+ prefer: ['bottom', 'left'],
63
+ pad: 4
64
+ }, {
65
+ id: 'new-chat',
66
+ targets: ['new-chat'],
67
+ title: 'Start fresh any time',
68
+ body: 'New chat clears this conversation. If Lucy is still on a chore, she checks with you first.',
69
+ prefer: ['bottom', 'left'],
70
+ pad: 4
71
+ }, {
72
+ id: 'home',
73
+ targets: ['home'],
74
+ title: 'Back to Clockbook',
75
+ body: 'Lucy keeps working while you look around. Open chat on the home page brings you right back.',
76
+ prefer: ['bottom', 'right'],
77
+ pad: 4
78
+ }, {
79
+ id: 'finish',
80
+ targets: ['composer'],
81
+ title: 'Your turn',
82
+ body: 'Type anything, or tap one of these to hand it over:',
83
+ prefer: ['top', 'bottom'],
84
+ pad: 6,
85
+ radius: 20,
86
+ finale: true
87
+ }];export{CHAT_TOUR_STEPS,TOUR_TARGETS,TOUR_TRIES};//# sourceMappingURL=tourSteps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tourSteps.js","sources":["../../../../../src/pages/Home/chat/tour/tourSteps.ts"],"sourcesContent":[null],"names":[],"mappings":"2CAAA;;;;;;;;;;;;;;AAcG;AAQH;;;AAGG;AACU,MAAA,YAAY,GAA+B;AACpD,EAAA,QAAA,EAAQ,8BAAgC;AACxC,EAAA,QAAA,EAAQ,kCAAoC;AAC5C,EAAA,OAAA,EAAO,4BAA8B;AACrC,EAAA,QAAA,EAAQ,kCAAoC;AAC5C,EAAA,UAAA,EAAU,kCAAoC;AAC9C,EAAA,IAAA,EAAI;;AAoBR;AACO,MAAM,UAAU,GAAqB,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AA,MAAA,CAAA;AACI,EAAA,GAAA,EAAA;;AAEA,EAAA,EAAA,EAAA,MAAA;AACA,EAAA,OAAA,EAAA,CAAI,MAA8F,CAAA;AAClG,EAAA,KAAA,EAAA;AACA,EAAA,IAAA,EAAA,6FAAM;AACT,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,OAAA,CAAA;AACD,EAAA,GAAA,EAAA;AACI,CAAA,EAAA;cACO;AACP,EAAA,OAAA,EAAA,CAAA,UAA0B,CAAA;AAC1B,EAAA,KAAA,EAAA,WAAmG;AACnG,EAAA,IAAA,EAAA,qDAA2B;AAC3B,EAAA,MAAA,EAAA,CAAG,KAAG,EAAA,QAAA,CAAA;AACT,EAAA,GAAA,EAAA,CAAA;AACD,EAAA,MAAA,EAAA,EAAA;AACI,EAAA,MAAA,EAAE;"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * The chat tour's stylesheet: the Yantra app's home tour (yantra-app, features/chat/tour/
3
+ * tourStyles.ts) in Clockbook's clothes - a warm frost instead of a grey one, an orange marker
4
+ * drawing the dotted box and arrow, Lucy's mark as the guide, the page's own ink and paper buttons,
5
+ * and Instrument Serif for what Lucy says. The welcome keeps Yantra's little desktop window and its
6
+ * name sticker; what floats round it here is chores Lucy has done.
7
+ *
8
+ * The tour renders outside both the page and the chat (a portal on <body>), so it names its own
9
+ * type and colours rather than borrowing their tokens.
10
+ *
11
+ * Every loop stops under `prefers-reduced-motion`, and each element's resting style is its finished
12
+ * state, so a still demo still reads.
13
+ */
14
+ export declare const CHAT_TOUR_CSS = "\n.cbt{--font-family:'Geist',ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;--cbt-serif:'Instrument Serif','Iowan Old Style','Palatino Linotype',Georgia,serif;--cbt-mono:ui-monospace,'SF Mono',SFMono-Regular,Menlo,Consolas,monospace;--cbt-orange:#FF5A00;--cbt-orange-2:#FF8A3D;--cbt-orange-text:#B84100;--cbt-glow:rgba(255,90,0,.3);--cbt-ink:#1A1714;--cbt-ink-2:#45403A;--cbt-muted:#6F675F;--cbt-line:rgba(26,23,20,.09);--cbt-line-2:rgba(26,23,20,.16);position:fixed;inset:0;z-index:1200;overflow:hidden;overflow:clip;font-family:var(--font-family);color:var(--cbt-ink);line-height:1.5;letter-spacing:-.01em;cursor:default;touch-action:none;-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased;color-scheme:light}\n.cbt *,.cbt *::before,.cbt *::after{box-sizing:border-box}\n.cbt :where(h2,p){margin:0}\n.cbt[data-exiting]{pointer-events:none}\n.cbt-veil{position:absolute;inset:0;background:rgba(255,250,245,.6);-webkit-backdrop-filter:blur(3px) saturate(.6);backdrop-filter:blur(3px) saturate(.6);animation:cbtFade .45s ease both}\n.cbt-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}\n.cbt[data-exiting] .cbt-veil,.cbt[data-exiting] .cbt-svg,.cbt[data-exiting] .cbt-card,.cbt[data-exiting] .cbt-buddy,.cbt[data-exiting] .cbt-deco{animation:cbtFadeOut .32s ease forwards}\n.cbt-ring{fill:none;stroke:var(--cbt-orange);stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:.1 8.4;filter:drop-shadow(0 0 5px var(--cbt-glow));animation:cbtDots 1.1s linear infinite}\n.cbt-ring-mask{fill:none;stroke:#fff;stroke-width:14;stroke-linecap:round}\n.cbt-ping{fill:none;stroke:var(--cbt-orange);stroke-width:2}\n.cbt-arrow{fill:none;stroke:var(--cbt-orange);stroke-width:3.6;stroke-linecap:round;stroke-dasharray:.1 9;filter:drop-shadow(0 0 5px var(--cbt-glow));animation:cbtFlow .7s linear infinite}\n.cbt-arrow-mask{fill:none;stroke:#fff;stroke-width:16;stroke-linecap:round}\n.cbt-head{fill:none;stroke:var(--cbt-orange);stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 5px var(--cbt-glow))}\n@keyframes cbtDots{to{stroke-dashoffset:-8.5}}\n@keyframes cbtFlow{to{stroke-dashoffset:-9.1}}\n@keyframes cbtFade{from{opacity:0}}\n@keyframes cbtFadeOut{to{opacity:0}}\n\n/* Lucy: her mark on a paper disc, flying from control to control. */\n.cbt-buddy{position:absolute;left:0;top:0;z-index:4;display:grid;place-items:center;width:52px;height:52px;margin:-26px 0 0 -26px;pointer-events:none;will-change:transform;animation:cbtFade .4s ease both}\n.cbt-buddy>span{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#fff;box-shadow:0 0 0 1px rgba(26,23,20,.08),0 10px 18px -8px rgba(48,28,8,.45);animation:cbtBob 2.6s ease-in-out infinite}\n@keyframes cbtBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}\n\n.cbt-card{position:absolute;left:0;top:0;overflow:hidden;will-change:transform,width,height;pointer-events:auto;touch-action:auto;animation:cbtFade .45s ease both}\n.cbt-card:focus{outline:none}\n.cbt-card[data-kind=\"bubble\"]{border-radius:24px;border:1px solid #EFD5C0;background:linear-gradient(180deg,#FFFFFF 0%,#FFF6EE 100%);box-shadow:0 18px 40px -16px rgba(48,28,8,.4),0 2px 6px rgba(48,28,8,.06)}\n.cbt-card[data-kind=\"welcome\"]{border-radius:16px;border:1px solid rgba(26,23,20,.14);background:#FFFDFB;box-shadow:0 34px 80px -24px rgba(48,28,8,.45),0 3px 10px rgba(48,28,8,.08)}\n.cbt-inner{position:relative;z-index:1;padding:18px 20px 16px}\n.cbt-card[data-side=\"right\"] .cbt-inner{padding-left:34px}\n.cbt-card[data-side=\"left\"] .cbt-inner{padding-right:34px}\n.cbt-card[data-kind=\"welcome\"] .cbt-inner{padding:0}\n.cbt[data-exiting] .cbt-inner{animation:cbtShrink .32s ease forwards}\n@keyframes cbtShrink{to{transform:scale(.96)}}\n.cbt-rise>*{animation:cbtRise .55s cubic-bezier(.16,1,.3,1) both}\n.cbt-rise>:nth-child(2){animation-delay:.06s}.cbt-rise>:nth-child(3){animation-delay:.12s}\n.cbt-rise>:nth-child(4){animation-delay:.18s}.cbt-rise>:nth-child(5){animation-delay:.24s}\n.cbt-rise>:nth-child(6){animation-delay:.3s}.cbt-rise>:nth-child(7){animation-delay:.36s}\n@keyframes cbtRise{from{opacity:0;transform:translateY(8px);filter:blur(4px)}to{opacity:1;transform:none;filter:none}}\n\n.cbt-bhead{display:flex;align-items:center;gap:10px;min-height:24px}\n.cbt-count{font-family:var(--cbt-mono);font-size:12px;letter-spacing:0;color:var(--cbt-muted);font-variant-numeric:tabular-nums}\n.cbt-x{display:inline-grid;place-items:center;flex:none;width:28px;height:28px;margin:0 -6px 0 auto;border:0;border-radius:999px;background:transparent;color:rgba(26,23,20,.45);cursor:pointer;transition:background-color .15s,color .15s}\n.cbt-x:hover{background:rgba(26,23,20,.06);color:var(--cbt-ink)}\n.cbt-title,.cbt-hello-title,.cbt-sticker em{--font-family:var(--cbt-serif);font-family:var(--cbt-serif);font-weight:400}\n.cbt-title{margin-top:6px;font-size:27px;line-height:1.08;letter-spacing:-.015em;color:var(--cbt-ink)}\n.cbt-body{margin-top:7px;font-size:15px;line-height:1.5;color:var(--cbt-ink-2)}\n.cbt-foot{display:flex;align-items:center;gap:8px;margin-top:16px}\n.cbt-spacer{flex:1}\n\n.cbt-win{position:relative;margin-top:14px;overflow:hidden;border-radius:12px;border:1px solid rgba(26,23,20,.12);background:#fff;box-shadow:0 8px 20px -12px rgba(48,28,8,.3)}\n.cbt-card[data-compact] .cbt-win{display:none}\n.cbt-win-bar,.cbt-titlebar{position:relative;display:flex;align-items:center;border-bottom:1px solid rgba(26,23,20,.07);background:linear-gradient(#FFFBF7,#F4ECE4)}\n.cbt-win-bar{height:24px;padding:0 9px}\n.cbt-win-name,.cbt-wintitle{position:absolute;left:0;right:0;text-align:center;color:rgba(26,23,20,.5);pointer-events:none}\n.cbt-win-name{font-size:11px}\n.cbt-win-body{padding:11px}\n.cbt-lights{display:inline-flex;gap:6px}\n.cbt-lights i{display:block;width:9px;height:9px;border-radius:50%;background:#FF5F57;box-shadow:inset 0 0 0 .5px rgba(0,0,0,.18)}\n.cbt-lights i:nth-child(2){background:#FEBC2E}\n.cbt-lights i:nth-child(3){background:#28C840}\n.cbt-titlebar{height:36px;padding:0 13px}\n.cbt-titlebar .cbt-lights i{width:12px;height:12px}\n.cbt-wintitle{font-size:13px}\n\n.cbt-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:36px;padding:0 16px;border:1px solid transparent;border-radius:999px;background:var(--cbt-ink);color:#fff;font:inherit;font-size:14.5px;font-weight:600;letter-spacing:-.01em;white-space:nowrap;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 8px 18px -10px rgba(26,23,20,.7);transition:transform .15s,background-color .15s,border-color .15s}\n.cbt-btn:hover{background:#000;transform:translateY(-1px)}\n.cbt-btn:active{transform:scale(.98)}\n.cbt-btn svg{width:16px;height:16px;flex:none}\n.cbt-btn-line{background:#fff;color:var(--cbt-ink);border-color:var(--cbt-line-2);box-shadow:0 1px 2px rgba(48,28,8,.06)}\n.cbt-btn-line:hover{background:#fff;border-color:rgba(26,23,20,.3)}\n.cbt-btn-lg{height:46px;padding:0 22px;font-size:16px}\n.cbt-x:focus-visible,.cbt-btn:focus-visible,.cbt-say:focus-visible{outline:2px solid var(--cbt-orange);outline-offset:3px}\n.cbt-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}\n\n.cbt-hello{padding:16px 30px 22px;text-align:center}\n.cbt-buddy-room{height:82px}\n.cbt-hello-title{font-size:46px;line-height:1;letter-spacing:-.02em;color:var(--cbt-ink)}\n.cbt-hello-title em{font-style:italic;padding-right:.06em;background:linear-gradient(100deg,var(--cbt-orange) 10%,var(--cbt-orange-2) 60%,var(--cbt-orange) 100%);-webkit-background-clip:text;background-clip:text;color:transparent}\n.cbt-hello-sub{margin-top:10px;font-size:18px;font-weight:500;letter-spacing:-.02em;color:var(--cbt-ink)}\n.cbt-hello-lede{max-width:40ch;margin:8px auto 0;font-size:15px;line-height:1.55;color:var(--cbt-muted)}\n.cbt-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:20px;text-align:left}\n.cbt-tile{padding:12px;border-radius:14px;border:1px solid var(--cbt-line);background:#fff;box-shadow:0 6px 16px -12px rgba(48,28,8,.35);transition:transform .25s cubic-bezier(.16,1,.3,1),box-shadow .25s}\n.cbt-tile:hover{transform:translateY(-2px) rotate(-.6deg);box-shadow:0 12px 22px -14px rgba(48,28,8,.4)}\n.cbt-tile-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:linear-gradient(160deg,#FFF1E6,#FFE0CC);color:var(--cbt-orange-text);box-shadow:inset 0 0 0 1px rgba(255,90,0,.14)}\n.cbt-tile-icon svg{width:16px;height:16px}\n.cbt-tile-title{display:block;margin-top:9px;font-size:14px;font-weight:600;line-height:1.25;letter-spacing:-.02em;color:var(--cbt-ink)}\n.cbt-tile-text{display:block;margin-top:3px;font-size:13px;line-height:1.4;color:var(--cbt-muted)}\n.cbt-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;margin-top:22px}\n.cbt-mono{margin-top:14px;font-family:var(--cbt-mono);font-size:11.5px;letter-spacing:0;color:rgba(26,23,20,.45)}\n.cbt-kbd{display:inline-grid;place-items:center;min-width:19px;height:19px;margin:0 1px;padding:0 4px;border-radius:5px;border:1px solid rgba(26,23,20,.15);background:linear-gradient(#fff,#F5EFE9);font-family:inherit;font-size:10.5px;color:rgba(26,23,20,.6);vertical-align:1px}\n.cbt-mono-touch{display:none}\n@media (pointer:coarse){.cbt-mono-keys{display:none}.cbt-mono-touch{display:inline}}\n\n.cbt-deco{position:absolute;left:0;top:0;z-index:2;pointer-events:none;will-change:transform}\n.cbt-float{position:absolute;display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px 0 7px;border-radius:999px;border:1px solid var(--cbt-line-2);background:#fff;box-shadow:0 12px 24px -14px rgba(48,28,8,.5);font-size:13.5px;font-weight:600;letter-spacing:-.01em;color:var(--cbt-ink);white-space:nowrap;animation:cbtFloatIn .7s cubic-bezier(.34,1.56,.64,1) both,cbtFloat 6s ease-in-out infinite alternate;animation-delay:var(--d,0s),calc(var(--d,0s) + .7s)}\n.cbt-float i{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#1FA855;color:#fff}\n.cbt-float i svg{width:13px;height:13px}\n@keyframes cbtFloatIn{from{opacity:0;transform:scale(.4) rotate(-12deg)}}\n@keyframes cbtFloat{from{transform:translateY(0) rotate(-2deg)}to{transform:translateY(-10px) rotate(2deg)}}\n.cbt-sticker{position:absolute;right:-30px;top:-22px;width:118px;overflow:hidden;border-radius:9px;background:#fff;box-shadow:0 10px 20px -10px rgba(48,28,8,.5),0 0 0 1px rgba(26,23,20,.08);transform:rotate(9deg);animation:cbtStick .7s cubic-bezier(.34,1.56,.64,1) .45s both;text-align:center}\n.cbt-sticker b{display:block;padding-top:6px;background:var(--cbt-orange);color:#fff;font-size:14px;font-weight:800;letter-spacing:.06em;line-height:1}\n.cbt-sticker small{display:block;padding:2px 0 5px;background:var(--cbt-orange);color:#fff;font-size:8px;font-weight:600;letter-spacing:.02em}\n.cbt-sticker em{display:block;padding:5px 0 7px;font-size:28px;font-style:italic;line-height:1;color:var(--cbt-ink)}\n@keyframes cbtStick{from{opacity:0;transform:rotate(30deg) scale(1.6)}}\n/* The chores float in the window's margins; below this they would hang off the screen. */\n@media (max-width:999.98px){.cbt-float{display:none}}\n@media (max-width:719.98px){.cbt-deco{display:none}}\n@media (max-width:639.98px){.cbt-tiles{grid-template-columns:1fr;gap:8px;margin-top:16px}.cbt-tile{display:grid;grid-template-columns:30px 1fr;column-gap:12px;align-items:center;padding:10px 12px}.cbt-tile-title{margin-top:0}.cbt-tile-icon{grid-row:span 2}.cbt-hello{padding:12px 18px 18px}.cbt-buddy-room{height:70px}.cbt-hello-title{font-size:36px}.cbt-hello-sub{font-size:16px}.cbt-hello-lede{font-size:14px}}\n\n.cbt-says{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}\n.cbt-says>*{animation:cbtRise .55s cubic-bezier(.16,1,.3,1) both}\n.cbt-says>:nth-child(1){animation-delay:.25s}.cbt-says>:nth-child(2){animation-delay:.35s}.cbt-says>:nth-child(3){animation-delay:.45s}\n.cbt-say{display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 13px 0 15px;border:1px solid var(--cbt-line-2);border-radius:999px;background:#fff;color:var(--cbt-ink);font:inherit;font-size:14px;font-weight:550;white-space:nowrap;cursor:pointer;box-shadow:0 1px 2px rgba(48,28,8,.06);transition:transform .2s cubic-bezier(.16,1,.3,1),border-color .2s,box-shadow .2s}\n.cbt-say svg{width:14px;height:14px;color:var(--cbt-orange)}\n.cbt-say:hover{transform:translateY(-2px);border-color:rgba(255,90,0,.36);box-shadow:0 12px 24px -16px rgba(255,90,0,.6)}\n.cbt-say:active{transform:scale(.98)}\n\n.cbt-burst{position:absolute;left:0;top:0;z-index:5;width:0;height:0;pointer-events:none}\n.cbt-burst i{position:absolute;left:0;top:0;width:var(--s);height:calc(var(--s) * var(--k));border-radius:2px;background:var(--c);opacity:0;animation:cbtBurst 1.3s cubic-bezier(.12,.75,.25,1) var(--d) forwards}\n@keyframes cbtBurst{0%{opacity:1;transform:translate(-50%,-50%) rotate(0) scale(.5)}75%{opacity:1}100%{opacity:0;transform:translate(calc(var(--dx) - 50%),calc(var(--dy) - 50%)) rotate(var(--r)) scale(1)}}\n\n.cbt-type{display:flex;align-items:flex-end;gap:8px;padding:9px 6px 6px 12px;border-radius:14px;border:1px solid var(--cbt-line-2);background:#fff;font-size:13px;line-height:1.45;color:var(--cbt-ink)}\n.cbt-type-text{flex:1;min-width:0;align-self:flex-start;height:2.9em;overflow:hidden}\n.cbt-caret{display:inline-block;width:1.5px;height:15px;margin-left:1px;vertical-align:-3px;background:var(--cbt-orange);animation:cbtBlink 1s steps(2,start) infinite}\n@keyframes cbtBlink{to{visibility:hidden}}\n.cbt-send{display:inline-grid;place-items:center;flex:none;width:28px;height:28px;border-radius:999px;background:rgba(26,23,20,.07);color:#A39890;transition:background-color .25s,color .25s,transform .2s}\n.cbt-send[data-ready]{background:linear-gradient(160deg,#FF7A2E,var(--cbt-orange));color:#fff;transform:scale(1.08)}\n\n.cbt-thread{display:flex;flex-direction:column;gap:6px;font-size:13px}\n.cbt-msg{max-width:86%;padding:7px 11px;border-radius:15px;line-height:1.38;animation:cbtMsg 6s ease infinite both;animation-delay:var(--d,0s)}\n.cbt-msg-lucy{align-self:flex-start;border-bottom-left-radius:5px;background:#F3EEE9;color:var(--cbt-ink)}\n.cbt-msg-you{align-self:flex-end;border-bottom-right-radius:5px;background:#FFE9DC;color:var(--cbt-ink)}\n.cbt-msg-me{align-self:flex-end;border-bottom-right-radius:5px;background:linear-gradient(#2D9BFF,#0A7CFF);color:#fff}\n.cbt-msg-them{align-self:flex-start;border-bottom-left-radius:5px;background:#E9E9EB;color:#111}\n@keyframes cbtMsg{0%{opacity:0;transform:translateY(6px) scale(.96)}8%,88%{opacity:1;transform:none}100%{opacity:0}}\n\n@media (prefers-reduced-motion:reduce){\n.cbt-veil,.cbt-card,.cbt-buddy,.cbt-buddy>span,.cbt[data-exiting] .cbt-veil,.cbt[data-exiting] .cbt-svg,.cbt[data-exiting] .cbt-card,.cbt[data-exiting] .cbt-buddy,.cbt[data-exiting] .cbt-deco,.cbt[data-exiting] .cbt-inner,.cbt-rise>*,.cbt-says>*,.cbt-ring,.cbt-arrow,.cbt-float,.cbt-sticker,.cbt-caret,.cbt-msg{animation:none}\n.cbt-burst{display:none}\n.cbt-send,.cbt-say,.cbt-tile,.cbt-btn,.cbt-x{transition:none}\n}\n";
15
+ //# sourceMappingURL=tourStyles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tourStyles.d.ts","sourceRoot":"","sources":["../../../../../src/pages/Home/chat/tour/tourStyles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,aAAa,o8dA8IzB,CAAC"}
@@ -0,0 +1,156 @@
1
+ /**
2
+ * The chat tour's stylesheet: the Yantra app's home tour (yantra-app, features/chat/tour/
3
+ * tourStyles.ts) in Clockbook's clothes - a warm frost instead of a grey one, an orange marker
4
+ * drawing the dotted box and arrow, Lucy's mark as the guide, the page's own ink and paper buttons,
5
+ * and Instrument Serif for what Lucy says. The welcome keeps Yantra's little desktop window and its
6
+ * name sticker; what floats round it here is chores Lucy has done.
7
+ *
8
+ * The tour renders outside both the page and the chat (a portal on <body>), so it names its own
9
+ * type and colours rather than borrowing their tokens.
10
+ *
11
+ * Every loop stops under `prefers-reduced-motion`, and each element's resting style is its finished
12
+ * state, so a still demo still reads.
13
+ */
14
+ const CHAT_TOUR_CSS = `
15
+ .cbt{--font-family:'Geist',ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;--cbt-serif:'Instrument Serif','Iowan Old Style','Palatino Linotype',Georgia,serif;--cbt-mono:ui-monospace,'SF Mono',SFMono-Regular,Menlo,Consolas,monospace;--cbt-orange:#FF5A00;--cbt-orange-2:#FF8A3D;--cbt-orange-text:#B84100;--cbt-glow:rgba(255,90,0,.3);--cbt-ink:#1A1714;--cbt-ink-2:#45403A;--cbt-muted:#6F675F;--cbt-line:rgba(26,23,20,.09);--cbt-line-2:rgba(26,23,20,.16);position:fixed;inset:0;z-index:1200;overflow:hidden;overflow:clip;font-family:var(--font-family);color:var(--cbt-ink);line-height:1.5;letter-spacing:-.01em;cursor:default;touch-action:none;-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased;color-scheme:light}
16
+ .cbt *,.cbt *::before,.cbt *::after{box-sizing:border-box}
17
+ .cbt :where(h2,p){margin:0}
18
+ .cbt[data-exiting]{pointer-events:none}
19
+ .cbt-veil{position:absolute;inset:0;background:rgba(255,250,245,.6);-webkit-backdrop-filter:blur(3px) saturate(.6);backdrop-filter:blur(3px) saturate(.6);animation:cbtFade .45s ease both}
20
+ .cbt-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
21
+ .cbt[data-exiting] .cbt-veil,.cbt[data-exiting] .cbt-svg,.cbt[data-exiting] .cbt-card,.cbt[data-exiting] .cbt-buddy,.cbt[data-exiting] .cbt-deco{animation:cbtFadeOut .32s ease forwards}
22
+ .cbt-ring{fill:none;stroke:var(--cbt-orange);stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:.1 8.4;filter:drop-shadow(0 0 5px var(--cbt-glow));animation:cbtDots 1.1s linear infinite}
23
+ .cbt-ring-mask{fill:none;stroke:#fff;stroke-width:14;stroke-linecap:round}
24
+ .cbt-ping{fill:none;stroke:var(--cbt-orange);stroke-width:2}
25
+ .cbt-arrow{fill:none;stroke:var(--cbt-orange);stroke-width:3.6;stroke-linecap:round;stroke-dasharray:.1 9;filter:drop-shadow(0 0 5px var(--cbt-glow));animation:cbtFlow .7s linear infinite}
26
+ .cbt-arrow-mask{fill:none;stroke:#fff;stroke-width:16;stroke-linecap:round}
27
+ .cbt-head{fill:none;stroke:var(--cbt-orange);stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 5px var(--cbt-glow))}
28
+ @keyframes cbtDots{to{stroke-dashoffset:-8.5}}
29
+ @keyframes cbtFlow{to{stroke-dashoffset:-9.1}}
30
+ @keyframes cbtFade{from{opacity:0}}
31
+ @keyframes cbtFadeOut{to{opacity:0}}
32
+
33
+ /* Lucy: her mark on a paper disc, flying from control to control. */
34
+ .cbt-buddy{position:absolute;left:0;top:0;z-index:4;display:grid;place-items:center;width:52px;height:52px;margin:-26px 0 0 -26px;pointer-events:none;will-change:transform;animation:cbtFade .4s ease both}
35
+ .cbt-buddy>span{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#fff;box-shadow:0 0 0 1px rgba(26,23,20,.08),0 10px 18px -8px rgba(48,28,8,.45);animation:cbtBob 2.6s ease-in-out infinite}
36
+ @keyframes cbtBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
37
+
38
+ .cbt-card{position:absolute;left:0;top:0;overflow:hidden;will-change:transform,width,height;pointer-events:auto;touch-action:auto;animation:cbtFade .45s ease both}
39
+ .cbt-card:focus{outline:none}
40
+ .cbt-card[data-kind="bubble"]{border-radius:24px;border:1px solid #EFD5C0;background:linear-gradient(180deg,#FFFFFF 0%,#FFF6EE 100%);box-shadow:0 18px 40px -16px rgba(48,28,8,.4),0 2px 6px rgba(48,28,8,.06)}
41
+ .cbt-card[data-kind="welcome"]{border-radius:16px;border:1px solid rgba(26,23,20,.14);background:#FFFDFB;box-shadow:0 34px 80px -24px rgba(48,28,8,.45),0 3px 10px rgba(48,28,8,.08)}
42
+ .cbt-inner{position:relative;z-index:1;padding:18px 20px 16px}
43
+ .cbt-card[data-side="right"] .cbt-inner{padding-left:34px}
44
+ .cbt-card[data-side="left"] .cbt-inner{padding-right:34px}
45
+ .cbt-card[data-kind="welcome"] .cbt-inner{padding:0}
46
+ .cbt[data-exiting] .cbt-inner{animation:cbtShrink .32s ease forwards}
47
+ @keyframes cbtShrink{to{transform:scale(.96)}}
48
+ .cbt-rise>*{animation:cbtRise .55s cubic-bezier(.16,1,.3,1) both}
49
+ .cbt-rise>:nth-child(2){animation-delay:.06s}.cbt-rise>:nth-child(3){animation-delay:.12s}
50
+ .cbt-rise>:nth-child(4){animation-delay:.18s}.cbt-rise>:nth-child(5){animation-delay:.24s}
51
+ .cbt-rise>:nth-child(6){animation-delay:.3s}.cbt-rise>:nth-child(7){animation-delay:.36s}
52
+ @keyframes cbtRise{from{opacity:0;transform:translateY(8px);filter:blur(4px)}to{opacity:1;transform:none;filter:none}}
53
+
54
+ .cbt-bhead{display:flex;align-items:center;gap:10px;min-height:24px}
55
+ .cbt-count{font-family:var(--cbt-mono);font-size:12px;letter-spacing:0;color:var(--cbt-muted);font-variant-numeric:tabular-nums}
56
+ .cbt-x{display:inline-grid;place-items:center;flex:none;width:28px;height:28px;margin:0 -6px 0 auto;border:0;border-radius:999px;background:transparent;color:rgba(26,23,20,.45);cursor:pointer;transition:background-color .15s,color .15s}
57
+ .cbt-x:hover{background:rgba(26,23,20,.06);color:var(--cbt-ink)}
58
+ .cbt-title,.cbt-hello-title,.cbt-sticker em{--font-family:var(--cbt-serif);font-family:var(--cbt-serif);font-weight:400}
59
+ .cbt-title{margin-top:6px;font-size:27px;line-height:1.08;letter-spacing:-.015em;color:var(--cbt-ink)}
60
+ .cbt-body{margin-top:7px;font-size:15px;line-height:1.5;color:var(--cbt-ink-2)}
61
+ .cbt-foot{display:flex;align-items:center;gap:8px;margin-top:16px}
62
+ .cbt-spacer{flex:1}
63
+
64
+ .cbt-win{position:relative;margin-top:14px;overflow:hidden;border-radius:12px;border:1px solid rgba(26,23,20,.12);background:#fff;box-shadow:0 8px 20px -12px rgba(48,28,8,.3)}
65
+ .cbt-card[data-compact] .cbt-win{display:none}
66
+ .cbt-win-bar,.cbt-titlebar{position:relative;display:flex;align-items:center;border-bottom:1px solid rgba(26,23,20,.07);background:linear-gradient(#FFFBF7,#F4ECE4)}
67
+ .cbt-win-bar{height:24px;padding:0 9px}
68
+ .cbt-win-name,.cbt-wintitle{position:absolute;left:0;right:0;text-align:center;color:rgba(26,23,20,.5);pointer-events:none}
69
+ .cbt-win-name{font-size:11px}
70
+ .cbt-win-body{padding:11px}
71
+ .cbt-lights{display:inline-flex;gap:6px}
72
+ .cbt-lights i{display:block;width:9px;height:9px;border-radius:50%;background:#FF5F57;box-shadow:inset 0 0 0 .5px rgba(0,0,0,.18)}
73
+ .cbt-lights i:nth-child(2){background:#FEBC2E}
74
+ .cbt-lights i:nth-child(3){background:#28C840}
75
+ .cbt-titlebar{height:36px;padding:0 13px}
76
+ .cbt-titlebar .cbt-lights i{width:12px;height:12px}
77
+ .cbt-wintitle{font-size:13px}
78
+
79
+ .cbt-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:36px;padding:0 16px;border:1px solid transparent;border-radius:999px;background:var(--cbt-ink);color:#fff;font:inherit;font-size:14.5px;font-weight:600;letter-spacing:-.01em;white-space:nowrap;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 8px 18px -10px rgba(26,23,20,.7);transition:transform .15s,background-color .15s,border-color .15s}
80
+ .cbt-btn:hover{background:#000;transform:translateY(-1px)}
81
+ .cbt-btn:active{transform:scale(.98)}
82
+ .cbt-btn svg{width:16px;height:16px;flex:none}
83
+ .cbt-btn-line{background:#fff;color:var(--cbt-ink);border-color:var(--cbt-line-2);box-shadow:0 1px 2px rgba(48,28,8,.06)}
84
+ .cbt-btn-line:hover{background:#fff;border-color:rgba(26,23,20,.3)}
85
+ .cbt-btn-lg{height:46px;padding:0 22px;font-size:16px}
86
+ .cbt-x:focus-visible,.cbt-btn:focus-visible,.cbt-say:focus-visible{outline:2px solid var(--cbt-orange);outline-offset:3px}
87
+ .cbt-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
88
+
89
+ .cbt-hello{padding:16px 30px 22px;text-align:center}
90
+ .cbt-buddy-room{height:82px}
91
+ .cbt-hello-title{font-size:46px;line-height:1;letter-spacing:-.02em;color:var(--cbt-ink)}
92
+ .cbt-hello-title em{font-style:italic;padding-right:.06em;background:linear-gradient(100deg,var(--cbt-orange) 10%,var(--cbt-orange-2) 60%,var(--cbt-orange) 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
93
+ .cbt-hello-sub{margin-top:10px;font-size:18px;font-weight:500;letter-spacing:-.02em;color:var(--cbt-ink)}
94
+ .cbt-hello-lede{max-width:40ch;margin:8px auto 0;font-size:15px;line-height:1.55;color:var(--cbt-muted)}
95
+ .cbt-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:20px;text-align:left}
96
+ .cbt-tile{padding:12px;border-radius:14px;border:1px solid var(--cbt-line);background:#fff;box-shadow:0 6px 16px -12px rgba(48,28,8,.35);transition:transform .25s cubic-bezier(.16,1,.3,1),box-shadow .25s}
97
+ .cbt-tile:hover{transform:translateY(-2px) rotate(-.6deg);box-shadow:0 12px 22px -14px rgba(48,28,8,.4)}
98
+ .cbt-tile-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:linear-gradient(160deg,#FFF1E6,#FFE0CC);color:var(--cbt-orange-text);box-shadow:inset 0 0 0 1px rgba(255,90,0,.14)}
99
+ .cbt-tile-icon svg{width:16px;height:16px}
100
+ .cbt-tile-title{display:block;margin-top:9px;font-size:14px;font-weight:600;line-height:1.25;letter-spacing:-.02em;color:var(--cbt-ink)}
101
+ .cbt-tile-text{display:block;margin-top:3px;font-size:13px;line-height:1.4;color:var(--cbt-muted)}
102
+ .cbt-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;margin-top:22px}
103
+ .cbt-mono{margin-top:14px;font-family:var(--cbt-mono);font-size:11.5px;letter-spacing:0;color:rgba(26,23,20,.45)}
104
+ .cbt-kbd{display:inline-grid;place-items:center;min-width:19px;height:19px;margin:0 1px;padding:0 4px;border-radius:5px;border:1px solid rgba(26,23,20,.15);background:linear-gradient(#fff,#F5EFE9);font-family:inherit;font-size:10.5px;color:rgba(26,23,20,.6);vertical-align:1px}
105
+ .cbt-mono-touch{display:none}
106
+ @media (pointer:coarse){.cbt-mono-keys{display:none}.cbt-mono-touch{display:inline}}
107
+
108
+ .cbt-deco{position:absolute;left:0;top:0;z-index:2;pointer-events:none;will-change:transform}
109
+ .cbt-float{position:absolute;display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px 0 7px;border-radius:999px;border:1px solid var(--cbt-line-2);background:#fff;box-shadow:0 12px 24px -14px rgba(48,28,8,.5);font-size:13.5px;font-weight:600;letter-spacing:-.01em;color:var(--cbt-ink);white-space:nowrap;animation:cbtFloatIn .7s cubic-bezier(.34,1.56,.64,1) both,cbtFloat 6s ease-in-out infinite alternate;animation-delay:var(--d,0s),calc(var(--d,0s) + .7s)}
110
+ .cbt-float i{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#1FA855;color:#fff}
111
+ .cbt-float i svg{width:13px;height:13px}
112
+ @keyframes cbtFloatIn{from{opacity:0;transform:scale(.4) rotate(-12deg)}}
113
+ @keyframes cbtFloat{from{transform:translateY(0) rotate(-2deg)}to{transform:translateY(-10px) rotate(2deg)}}
114
+ .cbt-sticker{position:absolute;right:-30px;top:-22px;width:118px;overflow:hidden;border-radius:9px;background:#fff;box-shadow:0 10px 20px -10px rgba(48,28,8,.5),0 0 0 1px rgba(26,23,20,.08);transform:rotate(9deg);animation:cbtStick .7s cubic-bezier(.34,1.56,.64,1) .45s both;text-align:center}
115
+ .cbt-sticker b{display:block;padding-top:6px;background:var(--cbt-orange);color:#fff;font-size:14px;font-weight:800;letter-spacing:.06em;line-height:1}
116
+ .cbt-sticker small{display:block;padding:2px 0 5px;background:var(--cbt-orange);color:#fff;font-size:8px;font-weight:600;letter-spacing:.02em}
117
+ .cbt-sticker em{display:block;padding:5px 0 7px;font-size:28px;font-style:italic;line-height:1;color:var(--cbt-ink)}
118
+ @keyframes cbtStick{from{opacity:0;transform:rotate(30deg) scale(1.6)}}
119
+ /* The chores float in the window's margins; below this they would hang off the screen. */
120
+ @media (max-width:999.98px){.cbt-float{display:none}}
121
+ @media (max-width:719.98px){.cbt-deco{display:none}}
122
+ @media (max-width:639.98px){.cbt-tiles{grid-template-columns:1fr;gap:8px;margin-top:16px}.cbt-tile{display:grid;grid-template-columns:30px 1fr;column-gap:12px;align-items:center;padding:10px 12px}.cbt-tile-title{margin-top:0}.cbt-tile-icon{grid-row:span 2}.cbt-hello{padding:12px 18px 18px}.cbt-buddy-room{height:70px}.cbt-hello-title{font-size:36px}.cbt-hello-sub{font-size:16px}.cbt-hello-lede{font-size:14px}}
123
+
124
+ .cbt-says{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
125
+ .cbt-says>*{animation:cbtRise .55s cubic-bezier(.16,1,.3,1) both}
126
+ .cbt-says>:nth-child(1){animation-delay:.25s}.cbt-says>:nth-child(2){animation-delay:.35s}.cbt-says>:nth-child(3){animation-delay:.45s}
127
+ .cbt-say{display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 13px 0 15px;border:1px solid var(--cbt-line-2);border-radius:999px;background:#fff;color:var(--cbt-ink);font:inherit;font-size:14px;font-weight:550;white-space:nowrap;cursor:pointer;box-shadow:0 1px 2px rgba(48,28,8,.06);transition:transform .2s cubic-bezier(.16,1,.3,1),border-color .2s,box-shadow .2s}
128
+ .cbt-say svg{width:14px;height:14px;color:var(--cbt-orange)}
129
+ .cbt-say:hover{transform:translateY(-2px);border-color:rgba(255,90,0,.36);box-shadow:0 12px 24px -16px rgba(255,90,0,.6)}
130
+ .cbt-say:active{transform:scale(.98)}
131
+
132
+ .cbt-burst{position:absolute;left:0;top:0;z-index:5;width:0;height:0;pointer-events:none}
133
+ .cbt-burst i{position:absolute;left:0;top:0;width:var(--s);height:calc(var(--s) * var(--k));border-radius:2px;background:var(--c);opacity:0;animation:cbtBurst 1.3s cubic-bezier(.12,.75,.25,1) var(--d) forwards}
134
+ @keyframes cbtBurst{0%{opacity:1;transform:translate(-50%,-50%) rotate(0) scale(.5)}75%{opacity:1}100%{opacity:0;transform:translate(calc(var(--dx) - 50%),calc(var(--dy) - 50%)) rotate(var(--r)) scale(1)}}
135
+
136
+ .cbt-type{display:flex;align-items:flex-end;gap:8px;padding:9px 6px 6px 12px;border-radius:14px;border:1px solid var(--cbt-line-2);background:#fff;font-size:13px;line-height:1.45;color:var(--cbt-ink)}
137
+ .cbt-type-text{flex:1;min-width:0;align-self:flex-start;height:2.9em;overflow:hidden}
138
+ .cbt-caret{display:inline-block;width:1.5px;height:15px;margin-left:1px;vertical-align:-3px;background:var(--cbt-orange);animation:cbtBlink 1s steps(2,start) infinite}
139
+ @keyframes cbtBlink{to{visibility:hidden}}
140
+ .cbt-send{display:inline-grid;place-items:center;flex:none;width:28px;height:28px;border-radius:999px;background:rgba(26,23,20,.07);color:#A39890;transition:background-color .25s,color .25s,transform .2s}
141
+ .cbt-send[data-ready]{background:linear-gradient(160deg,#FF7A2E,var(--cbt-orange));color:#fff;transform:scale(1.08)}
142
+
143
+ .cbt-thread{display:flex;flex-direction:column;gap:6px;font-size:13px}
144
+ .cbt-msg{max-width:86%;padding:7px 11px;border-radius:15px;line-height:1.38;animation:cbtMsg 6s ease infinite both;animation-delay:var(--d,0s)}
145
+ .cbt-msg-lucy{align-self:flex-start;border-bottom-left-radius:5px;background:#F3EEE9;color:var(--cbt-ink)}
146
+ .cbt-msg-you{align-self:flex-end;border-bottom-right-radius:5px;background:#FFE9DC;color:var(--cbt-ink)}
147
+ .cbt-msg-me{align-self:flex-end;border-bottom-right-radius:5px;background:linear-gradient(#2D9BFF,#0A7CFF);color:#fff}
148
+ .cbt-msg-them{align-self:flex-start;border-bottom-left-radius:5px;background:#E9E9EB;color:#111}
149
+ @keyframes cbtMsg{0%{opacity:0;transform:translateY(6px) scale(.96)}8%,88%{opacity:1;transform:none}100%{opacity:0}}
150
+
151
+ @media (prefers-reduced-motion:reduce){
152
+ .cbt-veil,.cbt-card,.cbt-buddy,.cbt-buddy>span,.cbt[data-exiting] .cbt-veil,.cbt[data-exiting] .cbt-svg,.cbt[data-exiting] .cbt-card,.cbt[data-exiting] .cbt-buddy,.cbt[data-exiting] .cbt-deco,.cbt[data-exiting] .cbt-inner,.cbt-rise>*,.cbt-says>*,.cbt-ring,.cbt-arrow,.cbt-float,.cbt-sticker,.cbt-caret,.cbt-msg{animation:none}
153
+ .cbt-burst{display:none}
154
+ .cbt-send,.cbt-say,.cbt-tile,.cbt-btn,.cbt-x{transition:none}
155
+ }
156
+ `;export{CHAT_TOUR_CSS};//# sourceMappingURL=tourStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tourStyles.js","sources":["../../../../../src/pages/Home/chat/tour/tourStyles.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;;;;;;;;AAYG;AACU,MAAA,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,17 @@
1
+ /** Long enough for the empty chat's welcome to rise in (chatTheme) before the frost covers it. */
2
+ export declare const CHAT_TOUR_DELAY_MS = 900;
3
+ /** This browser's mark that `account` has seen the tour. */
4
+ export declare function tourSeenKey(account: string): string;
5
+ /** True once this account has closed the tour in this browser, or when this browser cannot say. */
6
+ export declare function hasSeenTour(account: string, storage?: Storage | null): boolean;
7
+ export declare function markTourSeen(account: string, at: string, storage?: Storage | null): void;
8
+ export interface ChatTourGate {
9
+ open: boolean;
10
+ /** Opens it now (the header's ?), whatever the mark says. */
11
+ start: () => void;
12
+ /** Closes it and marks it seen for this account, finished or skipped. */
13
+ close: () => void;
14
+ }
15
+ /** `quiet`: the chat is on screen, empty and idle - the only time the tour opens by itself. */
16
+ export declare function useChatTour(account: string, quiet: boolean): ChatTourGate;
17
+ //# sourceMappingURL=useChatTour.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useChatTour.d.ts","sourceRoot":"","sources":["../../../../../src/pages/Home/chat/tour/useChatTour.ts"],"names":[],"mappings":"AAcA,kGAAkG;AAClG,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAItC,4DAA4D;AAC5D,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEnD;AAUD,mGAAmG;AACnG,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,OAAO,GAAG,IAAmB,GAAG,OAAO,CAM5F;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,GAAE,OAAO,GAAG,IAAmB,GAAG,IAAI,CAMtG;AAQD,MAAM,WAAW,YAAY;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,6DAA6D;IAC7D,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,yEAAyE;IACzE,KAAK,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,+FAA+F;AAC/F,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,YAAY,CAyBzE"}
@@ -0,0 +1,75 @@
1
+ import {useState,useEffect,useCallback}from'react';/**
2
+ * When the chat tour opens: once for each person, the first time their chat is on screen, empty and
3
+ * quiet - not hidden behind the landing, Lucy on no chore, nothing typed in the composer - and
4
+ * again whenever it is asked for (the ? in the chat's header). Modelled on the Yantra app's
5
+ * useHomeTour (yantra-app, features/chat/tour).
6
+ *
7
+ * "Once" is a mark in this browser, per account like the thread (thread.ts), so a second person
8
+ * signing in here still gets their own welcome. Clockbook's chat keeps nothing of its own on the
9
+ * server, so there is no account setting to hold it. A browser that keeps nothing (storage blocked)
10
+ * is never offered it unasked: there would be no way to stop offering it.
11
+ */
12
+ const SEEN_PREFIX = 'cbh-tour:v1:';
13
+ /** Long enough for the empty chat's welcome to rise in (chatTheme) before the frost covers it. */
14
+ const CHAT_TOUR_DELAY_MS = 900;
15
+ /** How often to look again while the person is typing. */
16
+ const BUSY_RETRY_MS = 3000;
17
+ /** This browser's mark that `account` has seen the tour. */
18
+ function tourSeenKey(account) {
19
+ return `${SEEN_PREFIX}${account || 'anonymous'}`;
20
+ }
21
+ function localStore() {
22
+ try {
23
+ return window.localStorage;
24
+ } catch {
25
+ return null;
26
+ }
27
+ }
28
+ /** True once this account has closed the tour in this browser, or when this browser cannot say. */
29
+ function hasSeenTour(account, storage = localStore()) {
30
+ try {
31
+ return !storage || Boolean(storage.getItem(tourSeenKey(account)));
32
+ } catch {
33
+ return true;
34
+ }
35
+ }
36
+ function markTourSeen(account, at, storage = localStore()) {
37
+ try {
38
+ storage?.setItem(tourSeenKey(account), at);
39
+ } catch {
40
+ // Storage blocked: hasSeenTour already treats this browser as one that keeps nothing.
41
+ }
42
+ }
43
+ /** Someone with text in the composer is about to send it; the tour waits for them. */
44
+ function personIsTyping() {
45
+ const active = document.activeElement;
46
+ return (active instanceof HTMLTextAreaElement || active instanceof HTMLInputElement) && active.value.trim() !== '';
47
+ }
48
+ /** `quiet`: the chat is on screen, empty and idle - the only time the tour opens by itself. */
49
+ function useChatTour(account, quiet) {
50
+ const [open, setOpen] = useState(false);
51
+ const eligible = quiet && !open && typeof window !== 'undefined' && !hasSeenTour(account);
52
+ useEffect(() => {
53
+ if (!eligible) return undefined;
54
+ let timer = 0;
55
+ const attempt = () => {
56
+ if (personIsTyping()) {
57
+ timer = window.setTimeout(attempt, BUSY_RETRY_MS);
58
+ return;
59
+ }
60
+ setOpen(true);
61
+ };
62
+ timer = window.setTimeout(attempt, CHAT_TOUR_DELAY_MS);
63
+ return () => window.clearTimeout(timer);
64
+ }, [eligible]);
65
+ const start = useCallback(() => setOpen(true), []);
66
+ const close = useCallback(() => {
67
+ setOpen(false);
68
+ markTourSeen(account, new Date().toISOString());
69
+ }, [account]);
70
+ return {
71
+ open,
72
+ start,
73
+ close
74
+ };
75
+ }export{CHAT_TOUR_DELAY_MS,hasSeenTour,markTourSeen,tourSeenKey,useChatTour};//# sourceMappingURL=useChatTour.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useChatTour.js","sources":["../../../../../src/pages/Home/chat/tour/useChatTour.ts"],"sourcesContent":[null],"names":[],"mappings":"mDAAA;;;;;;;;;;AAUG;AAGH,MAAM,WAAW,GAAG,cAAc;AAClC;AACO,MAAM,kBAAkB,GAAG;AAClC;AACA,MAAM,aAAa,GAAG,IAAI;AAE1B;AACM,SAAU,WAAW,CAAC,OAAe,EAAA;AACvC,EAAA,OAAA,CAAA,aAAqB,CAAA,EAAA,WAAc,WAAA,CAAA,CAAW;AAClD;AAEA,SAAS,UAAU,GAAA;AACf,EAAA,IAAA;WACW,MAAA,CAAA,YAAO;I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AAA,KAAA,CAAA;cACM,CAAA,CAAA;AACX,EAAA,MAAA,KAAE,GAAA,WAAA,CAAA,MAAA,OAAA,CAAA,IAAA,CAAA,EAAA,EAAA,CAAA;QACF,KAAK,GAAG,WAAO,CAAA,MAAW;WACnB,CAAA,KAAA,CAAG;AACd,IAAA,YAAY,CAAC,OAAE,EAAA,IAAA,IAAA,EAAA,CAAA,WAAA,EAAA,CAAA;AAEf,GAAA,EAAA,CAAA,OAAW,CAAA,CAAA;AACX,EAAA,OAAA;QACI;SACY;AAChB,IAAA;AAEA,GAAA;AACJ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminide-stack/clock-tik-browser",
3
- "version": "12.0.33",
3
+ "version": "12.0.34-alpha.0",
4
4
  "description": "Sample core for higher packages to depend on",
5
5
  "license": "ISC",
6
6
  "author": "CDMBase LLC",
@@ -31,7 +31,7 @@
31
31
  "openai": "^4.52.0"
32
32
  },
33
33
  "devDependencies": {
34
- "common": "12.0.29"
34
+ "common": "12.0.29-alpha.1"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@common-stack/client-react": "9.2.1-alpha.1",
@@ -72,5 +72,5 @@
72
72
  "typescript": {
73
73
  "definition": "lib/index.d.ts"
74
74
  },
75
- "gitHead": "6e79336ccfa160e77325670b83109f17f7af0abd"
75
+ "gitHead": "62928fc8f1da614728ad7904a3d612b83af19cb1"
76
76
  }