@syntrologie/adapt-faq 2.8.0-canary.581 → 2.8.0-canary.583
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/dist/cdn.js +2 -2
- package/dist/{chunk-4XMEZWJ3.js → chunk-4T3DWFIG.js} +2 -2
- package/dist/{chunk-2MFRUYFN.js → chunk-QHBUPB2N.js} +79 -64
- package/dist/{chunk-2MFRUYFN.js.map → chunk-QHBUPB2N.js.map} +3 -3
- package/dist/runtime.js +2 -2
- package/dist/schema.d.ts +84 -84
- package/dist/schema.js +1 -1
- package/package.json +1 -1
- /package/dist/{chunk-4XMEZWJ3.js.map → chunk-4T3DWFIG.js.map} +0 -0
package/dist/cdn.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
dispatchDiveDeeper,
|
|
3
3
|
resolveColorScheme,
|
|
4
4
|
stripMountPlumbing
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QHBUPB2N.js";
|
|
6
6
|
import {
|
|
7
7
|
getAnswerText,
|
|
8
8
|
purple,
|
|
@@ -1667,4 +1667,4 @@ export {
|
|
|
1667
1667
|
runtime,
|
|
1668
1668
|
runtime_default
|
|
1669
1669
|
};
|
|
1670
|
-
//# sourceMappingURL=chunk-
|
|
1670
|
+
//# sourceMappingURL=chunk-4T3DWFIG.js.map
|
|
@@ -4348,69 +4348,6 @@ function n(n2) {
|
|
|
4348
4348
|
// ../../sdk-contracts/dist/canvas-context.js
|
|
4349
4349
|
var canvasRuntimeContext = n("syntrologie:canvas-runtime");
|
|
4350
4350
|
|
|
4351
|
-
// ../../sdk-contracts/dist/color-scheme.js
|
|
4352
|
-
function normalize(value) {
|
|
4353
|
-
const scheme = (value || "").trim().toLowerCase();
|
|
4354
|
-
return scheme === "dark" || scheme === "light" ? scheme : null;
|
|
4355
|
-
}
|
|
4356
|
-
function declaredByDocument() {
|
|
4357
|
-
if (typeof document === "undefined")
|
|
4358
|
-
return null;
|
|
4359
|
-
const root = document.documentElement;
|
|
4360
|
-
if (!root)
|
|
4361
|
-
return null;
|
|
4362
|
-
if (typeof getComputedStyle === "function") {
|
|
4363
|
-
const computed = normalize(getComputedStyle(root).colorScheme);
|
|
4364
|
-
if (computed)
|
|
4365
|
-
return computed;
|
|
4366
|
-
}
|
|
4367
|
-
const inline = normalize(root.style?.colorScheme);
|
|
4368
|
-
if (inline)
|
|
4369
|
-
return inline;
|
|
4370
|
-
const attr = normalize(root.getAttribute?.("data-theme"));
|
|
4371
|
-
if (attr)
|
|
4372
|
-
return attr;
|
|
4373
|
-
if (root.classList?.contains("dark"))
|
|
4374
|
-
return "dark";
|
|
4375
|
-
return null;
|
|
4376
|
-
}
|
|
4377
|
-
function resolveColorScheme(declared) {
|
|
4378
|
-
if (declared === "dark")
|
|
4379
|
-
return "dark";
|
|
4380
|
-
if (declared === "light")
|
|
4381
|
-
return "light";
|
|
4382
|
-
const fromDocument = declaredByDocument();
|
|
4383
|
-
if (fromDocument)
|
|
4384
|
-
return fromDocument;
|
|
4385
|
-
if (typeof window !== "undefined" && typeof window.matchMedia === "function") {
|
|
4386
|
-
return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
4387
|
-
}
|
|
4388
|
-
return "light";
|
|
4389
|
-
}
|
|
4390
|
-
|
|
4391
|
-
// ../../sdk-contracts/dist/detector-events.js
|
|
4392
|
-
var DETECTOR_EVENT_NAMES = [
|
|
4393
|
-
"ui.hover",
|
|
4394
|
-
"ui.idle",
|
|
4395
|
-
"ui.hesitate",
|
|
4396
|
-
"ui.rage_click",
|
|
4397
|
-
"ui.scroll_thrash",
|
|
4398
|
-
"ui.focus_bounce"
|
|
4399
|
-
];
|
|
4400
|
-
var CANONICAL_BUS_EVENT_NAMES = [
|
|
4401
|
-
...DETECTOR_EVENT_NAMES,
|
|
4402
|
-
"nav.section_viewed",
|
|
4403
|
-
"nav.scroll_depth"
|
|
4404
|
-
];
|
|
4405
|
-
|
|
4406
|
-
// ../../sdk-contracts/dist/dive-deeper.js
|
|
4407
|
-
var DIVE_DEEPER_EVENT = "syntro:chat:dive-deeper";
|
|
4408
|
-
function dispatchDiveDeeper(detail) {
|
|
4409
|
-
if (typeof window === "undefined")
|
|
4410
|
-
return;
|
|
4411
|
-
window.dispatchEvent(new CustomEvent(DIVE_DEEPER_EVENT, { detail }));
|
|
4412
|
-
}
|
|
4413
|
-
|
|
4414
4351
|
// ../../sdk-contracts/dist/telemetry-events.js
|
|
4415
4352
|
var entry = (e2) => e2;
|
|
4416
4353
|
var TELEMETRY_EVENTS = {
|
|
@@ -4588,10 +4525,88 @@ var TELEMETRY_EVENTS = {
|
|
|
4588
4525
|
scope: "plan",
|
|
4589
4526
|
props: ["variant", "reason"]
|
|
4590
4527
|
// variant: SearchVariant, reason: SearchDismissReason
|
|
4528
|
+
}),
|
|
4529
|
+
// --- chat-app card lifecycle (2026-09-24) --------------------------------
|
|
4530
|
+
// One row per stage a card reached, from `reportCardStage` in
|
|
4531
|
+
// card-lifecycle.ts. Plan scope: most stages happen before a config is
|
|
4532
|
+
// served and none happen inside a concierge open. `stage` is a
|
|
4533
|
+
// CardLifecycleStage; `since_shell_ms` is the card shell's own clock, so a
|
|
4534
|
+
// card's rows order themselves from the first byte of the page. The same
|
|
4535
|
+
// stages reach the connector through the shell's beacon, which is the only
|
|
4536
|
+
// record of a card whose SDK never booted.
|
|
4537
|
+
syntro_card_lifecycle_seen: entry({
|
|
4538
|
+
subject: "card_lifecycle",
|
|
4539
|
+
verb: "seen",
|
|
4540
|
+
scope: "plan",
|
|
4541
|
+
props: ["stage", "since_shell_ms"]
|
|
4542
|
+
// stage: CardLifecycleStage
|
|
4591
4543
|
})
|
|
4592
4544
|
};
|
|
4593
4545
|
var TELEMETRY_EVENT_NAMES = Object.keys(TELEMETRY_EVENTS);
|
|
4594
4546
|
|
|
4547
|
+
// ../../sdk-contracts/dist/color-scheme.js
|
|
4548
|
+
function normalize(value) {
|
|
4549
|
+
const scheme = (value || "").trim().toLowerCase();
|
|
4550
|
+
return scheme === "dark" || scheme === "light" ? scheme : null;
|
|
4551
|
+
}
|
|
4552
|
+
function declaredByDocument() {
|
|
4553
|
+
if (typeof document === "undefined")
|
|
4554
|
+
return null;
|
|
4555
|
+
const root = document.documentElement;
|
|
4556
|
+
if (!root)
|
|
4557
|
+
return null;
|
|
4558
|
+
if (typeof getComputedStyle === "function") {
|
|
4559
|
+
const computed = normalize(getComputedStyle(root).colorScheme);
|
|
4560
|
+
if (computed)
|
|
4561
|
+
return computed;
|
|
4562
|
+
}
|
|
4563
|
+
const inline = normalize(root.style?.colorScheme);
|
|
4564
|
+
if (inline)
|
|
4565
|
+
return inline;
|
|
4566
|
+
const attr = normalize(root.getAttribute?.("data-theme"));
|
|
4567
|
+
if (attr)
|
|
4568
|
+
return attr;
|
|
4569
|
+
if (root.classList?.contains("dark"))
|
|
4570
|
+
return "dark";
|
|
4571
|
+
return null;
|
|
4572
|
+
}
|
|
4573
|
+
function resolveColorScheme(declared) {
|
|
4574
|
+
if (declared === "dark")
|
|
4575
|
+
return "dark";
|
|
4576
|
+
if (declared === "light")
|
|
4577
|
+
return "light";
|
|
4578
|
+
const fromDocument = declaredByDocument();
|
|
4579
|
+
if (fromDocument)
|
|
4580
|
+
return fromDocument;
|
|
4581
|
+
if (typeof window !== "undefined" && typeof window.matchMedia === "function") {
|
|
4582
|
+
return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
4583
|
+
}
|
|
4584
|
+
return "light";
|
|
4585
|
+
}
|
|
4586
|
+
|
|
4587
|
+
// ../../sdk-contracts/dist/detector-events.js
|
|
4588
|
+
var DETECTOR_EVENT_NAMES = [
|
|
4589
|
+
"ui.hover",
|
|
4590
|
+
"ui.idle",
|
|
4591
|
+
"ui.hesitate",
|
|
4592
|
+
"ui.rage_click",
|
|
4593
|
+
"ui.scroll_thrash",
|
|
4594
|
+
"ui.focus_bounce"
|
|
4595
|
+
];
|
|
4596
|
+
var CANONICAL_BUS_EVENT_NAMES = [
|
|
4597
|
+
...DETECTOR_EVENT_NAMES,
|
|
4598
|
+
"nav.section_viewed",
|
|
4599
|
+
"nav.scroll_depth"
|
|
4600
|
+
];
|
|
4601
|
+
|
|
4602
|
+
// ../../sdk-contracts/dist/dive-deeper.js
|
|
4603
|
+
var DIVE_DEEPER_EVENT = "syntro:chat:dive-deeper";
|
|
4604
|
+
function dispatchDiveDeeper(detail) {
|
|
4605
|
+
if (typeof window === "undefined")
|
|
4606
|
+
return;
|
|
4607
|
+
window.dispatchEvent(new CustomEvent(DIVE_DEEPER_EVENT, { detail }));
|
|
4608
|
+
}
|
|
4609
|
+
|
|
4595
4610
|
export {
|
|
4596
4611
|
resolveColorScheme,
|
|
4597
4612
|
dispatchDiveDeeper,
|
|
@@ -4631,4 +4646,4 @@ export {
|
|
|
4631
4646
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4632
4647
|
*)
|
|
4633
4648
|
*/
|
|
4634
|
-
//# sourceMappingURL=chunk-
|
|
4649
|
+
//# sourceMappingURL=chunk-QHBUPB2N.js.map
|