@dudko.dev/agent-web-ui 0.0.5 → 0.0.7
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 +81 -3
- package/dist/{chunk-NHU6WQM5.js → chunk-3TMUUU3O.js} +424 -0
- package/dist/{chunk-627OXMFG.js → chunk-HIHUK7YA.js} +5 -0
- package/dist/{chunk-S5AHUAFG.js → chunk-JEW2ZWYX.js} +4 -0
- package/dist/{chunk-VZCQXE3P.js → chunk-UO2Q7AIV.js} +4 -0
- package/dist/{chunk-V33T6VX3.js → chunk-VG5NLFI5.js} +4 -0
- package/dist/controller.cjs +460 -16
- package/dist/controller.d.cts +53 -5
- package/dist/controller.d.ts +53 -5
- package/dist/controller.js +58 -17
- package/dist/{en-Dg2MtzcJ.d.cts → en-CPCAidve.d.cts} +4 -0
- package/dist/{en-Dg2MtzcJ.d.ts → en-CPCAidve.d.ts} +4 -0
- package/dist/index.cjs +447 -3
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +37 -1
- package/dist/{labels-ipy-ydkp.d.cts → labels-Dnh2tn8S.d.cts} +8 -0
- package/dist/{labels-CCPL7t17.d.ts → labels-h-grbo5N.d.ts} +8 -0
- package/dist/locales/be.cjs +9 -0
- package/dist/locales/be.d.cts +1 -1
- package/dist/locales/be.d.ts +1 -1
- package/dist/locales/be.js +5 -1
- package/dist/locales/bg.cjs +9 -0
- package/dist/locales/bg.d.cts +1 -1
- package/dist/locales/bg.d.ts +1 -1
- package/dist/locales/bg.js +5 -1
- package/dist/locales/ca.cjs +9 -0
- package/dist/locales/ca.d.cts +1 -1
- package/dist/locales/ca.d.ts +1 -1
- package/dist/locales/ca.js +5 -1
- package/dist/locales/cs.cjs +9 -0
- package/dist/locales/cs.d.cts +1 -1
- package/dist/locales/cs.d.ts +1 -1
- package/dist/locales/cs.js +5 -1
- package/dist/locales/da.cjs +9 -0
- package/dist/locales/da.d.cts +1 -1
- package/dist/locales/da.d.ts +1 -1
- package/dist/locales/da.js +5 -1
- package/dist/locales/de.cjs +9 -0
- package/dist/locales/de.d.cts +1 -1
- package/dist/locales/de.d.ts +1 -1
- package/dist/locales/de.js +5 -1
- package/dist/locales/el.cjs +9 -0
- package/dist/locales/el.d.cts +1 -1
- package/dist/locales/el.d.ts +1 -1
- package/dist/locales/el.js +5 -1
- package/dist/locales/en.cjs +9 -0
- package/dist/locales/en.d.cts +1 -1
- package/dist/locales/en.d.ts +1 -1
- package/dist/locales/en.js +5 -1
- package/dist/locales/es-419.cjs +9 -0
- package/dist/locales/es-419.d.cts +1 -1
- package/dist/locales/es-419.d.ts +1 -1
- package/dist/locales/es-419.js +2 -2
- package/dist/locales/es.cjs +9 -0
- package/dist/locales/es.d.cts +1 -1
- package/dist/locales/es.d.ts +1 -1
- package/dist/locales/es.js +2 -2
- package/dist/locales/fi.cjs +9 -0
- package/dist/locales/fi.d.cts +1 -1
- package/dist/locales/fi.d.ts +1 -1
- package/dist/locales/fi.js +5 -1
- package/dist/locales/fr-CA.cjs +9 -0
- package/dist/locales/fr-CA.d.cts +1 -1
- package/dist/locales/fr-CA.d.ts +1 -1
- package/dist/locales/fr-CA.js +2 -2
- package/dist/locales/fr.cjs +9 -0
- package/dist/locales/fr.d.cts +1 -1
- package/dist/locales/fr.d.ts +1 -1
- package/dist/locales/fr.js +2 -2
- package/dist/locales/gn.cjs +9 -0
- package/dist/locales/gn.d.cts +1 -1
- package/dist/locales/gn.d.ts +1 -1
- package/dist/locales/gn.js +5 -1
- package/dist/locales/hr.cjs +9 -0
- package/dist/locales/hr.d.cts +1 -1
- package/dist/locales/hr.d.ts +1 -1
- package/dist/locales/hr.js +5 -1
- package/dist/locales/ht.cjs +9 -0
- package/dist/locales/ht.d.cts +1 -1
- package/dist/locales/ht.d.ts +1 -1
- package/dist/locales/ht.js +5 -1
- package/dist/locales/hu.cjs +9 -0
- package/dist/locales/hu.d.cts +1 -1
- package/dist/locales/hu.d.ts +1 -1
- package/dist/locales/hu.js +5 -1
- package/dist/locales/index.cjs +5 -0
- package/dist/locales/index.d.cts +3 -3
- package/dist/locales/index.d.ts +3 -3
- package/dist/locales/index.js +1 -1
- package/dist/locales/it.cjs +9 -0
- package/dist/locales/it.d.cts +1 -1
- package/dist/locales/it.d.ts +1 -1
- package/dist/locales/it.js +5 -1
- package/dist/locales/nb.cjs +9 -0
- package/dist/locales/nb.d.cts +1 -1
- package/dist/locales/nb.d.ts +1 -1
- package/dist/locales/nb.js +5 -1
- package/dist/locales/nl.cjs +9 -0
- package/dist/locales/nl.d.cts +1 -1
- package/dist/locales/nl.d.ts +1 -1
- package/dist/locales/nl.js +5 -1
- package/dist/locales/pl.cjs +9 -0
- package/dist/locales/pl.d.cts +1 -1
- package/dist/locales/pl.d.ts +1 -1
- package/dist/locales/pl.js +5 -1
- package/dist/locales/pt-BR.cjs +9 -0
- package/dist/locales/pt-BR.d.cts +1 -1
- package/dist/locales/pt-BR.d.ts +1 -1
- package/dist/locales/pt-BR.js +5 -1
- package/dist/locales/pt.cjs +9 -0
- package/dist/locales/pt.d.cts +1 -1
- package/dist/locales/pt.d.ts +1 -1
- package/dist/locales/pt.js +5 -1
- package/dist/locales/qu.cjs +9 -0
- package/dist/locales/qu.d.cts +1 -1
- package/dist/locales/qu.d.ts +1 -1
- package/dist/locales/qu.js +5 -1
- package/dist/locales/ro.cjs +9 -0
- package/dist/locales/ro.d.cts +1 -1
- package/dist/locales/ro.d.ts +1 -1
- package/dist/locales/ro.js +5 -1
- package/dist/locales/ru.cjs +9 -0
- package/dist/locales/ru.d.cts +1 -1
- package/dist/locales/ru.d.ts +1 -1
- package/dist/locales/ru.js +5 -1
- package/dist/locales/sk.cjs +9 -0
- package/dist/locales/sk.d.cts +1 -1
- package/dist/locales/sk.d.ts +1 -1
- package/dist/locales/sk.js +5 -1
- package/dist/locales/sq.cjs +9 -0
- package/dist/locales/sq.d.cts +1 -1
- package/dist/locales/sq.d.ts +1 -1
- package/dist/locales/sq.js +5 -1
- package/dist/locales/sr-Latn.cjs +9 -0
- package/dist/locales/sr-Latn.d.cts +1 -1
- package/dist/locales/sr-Latn.d.ts +1 -1
- package/dist/locales/sr-Latn.js +2 -2
- package/dist/locales/sr.cjs +9 -0
- package/dist/locales/sr.d.cts +1 -1
- package/dist/locales/sr.d.ts +1 -1
- package/dist/locales/sr.js +2 -2
- package/dist/locales/sv.cjs +9 -0
- package/dist/locales/sv.d.cts +1 -1
- package/dist/locales/sv.d.ts +1 -1
- package/dist/locales/sv.js +5 -1
- package/dist/locales/tr.cjs +9 -0
- package/dist/locales/tr.d.cts +1 -1
- package/dist/locales/tr.d.ts +1 -1
- package/dist/locales/tr.js +5 -1
- package/dist/locales/uk.cjs +9 -0
- package/dist/locales/uk.d.cts +1 -1
- package/dist/locales/uk.d.ts +1 -1
- package/dist/locales/uk.js +5 -1
- package/dist/page-context-BAmw4p6d.d.cts +244 -0
- package/dist/page-context-BAmw4p6d.d.ts +244 -0
- package/dist/pipeline-format.cjs +842 -0
- package/dist/pipeline-format.d.cts +512 -0
- package/dist/pipeline-format.d.ts +512 -0
- package/dist/pipeline-format.js +788 -0
- package/dist/styles.css +55 -0
- package/dist/{types-CQquuZpl.d.cts → types-B5cyqkWY.d.cts} +1 -1
- package/dist/{types-CXZfZVP5.d.ts → types-BgNjWN5Z.d.ts} +1 -1
- package/package.json +12 -2
package/dist/locales/sk.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
labelsFromCatalog
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-HIHUK7YA.js";
|
|
4
4
|
|
|
5
5
|
// src/locales/catalogs/sk.ts
|
|
6
6
|
var catalog = {
|
|
@@ -172,6 +172,10 @@ var catalog = {
|
|
|
172
172
|
questionOther: "Iné…",
|
|
173
173
|
questionOtherLabel: "Vaša odpoveď",
|
|
174
174
|
questionSkip: "Preskočiť",
|
|
175
|
+
pageContextSharing: "Zdieľa sa",
|
|
176
|
+
pageContextNotSharing: "S touto správou sa nezdieľa",
|
|
177
|
+
pageContextDontShare: "Nezdieľať s touto správou",
|
|
178
|
+
pageContextAskedOnSend: "vyžiada sa pri odoslaní",
|
|
175
179
|
questionExpiresIn: "Ak neodpoviete, asistent rozhodne sám o {time}",
|
|
176
180
|
questionRemote: "Odpovedá sa na druhej karte, kde asistent pracuje.",
|
|
177
181
|
questionAutomatic: "Asistent pokračoval bez vašej odpovede: {reason}.",
|
package/dist/locales/sq.cjs
CHANGED
|
@@ -288,6 +288,11 @@ var labelsFromCatalog = (tag, catalog2) => {
|
|
|
288
288
|
questionOther: t("questionOther"),
|
|
289
289
|
questionOtherLabel: t("questionOtherLabel"),
|
|
290
290
|
questionSkip: t("questionSkip"),
|
|
291
|
+
// ── the page context the composer shares (its chip) ──
|
|
292
|
+
pageContextSharing: t("pageContextSharing"),
|
|
293
|
+
pageContextNotSharing: t("pageContextNotSharing"),
|
|
294
|
+
pageContextDontShare: t("pageContextDontShare"),
|
|
295
|
+
pageContextAskedOnSend: t("pageContextAskedOnSend"),
|
|
291
296
|
questionExpiresIn: (time) => t("questionExpiresIn", { time }),
|
|
292
297
|
questionRemote: t("questionRemote"),
|
|
293
298
|
questionAutomatic: (reason) => t("questionAutomatic", { reason }),
|
|
@@ -584,6 +589,10 @@ var catalog = {
|
|
|
584
589
|
questionOther: "Tjetër…",
|
|
585
590
|
questionOtherLabel: "Përgjigjja juaj",
|
|
586
591
|
questionSkip: "Kapërce",
|
|
592
|
+
pageContextSharing: "Po ndahet",
|
|
593
|
+
pageContextNotSharing: "Nuk ndahet me këtë mesazh",
|
|
594
|
+
pageContextDontShare: "Mos e ndaj me këtë mesazh",
|
|
595
|
+
pageContextAskedOnSend: "kërkohet kur dërgon",
|
|
587
596
|
questionExpiresIn: "Nëse nuk përgjigjeni, asistenti vendos vetë pas {time}",
|
|
588
597
|
questionRemote: "Përgjigjet në skedën tjetër, ku punon asistenti.",
|
|
589
598
|
questionAutomatic: "Asistenti vazhdoi pa përgjigjen tuaj: {reason}.",
|
package/dist/locales/sq.d.cts
CHANGED
|
@@ -5,7 +5,7 @@ import '../types-DnBCok3z.cjs';
|
|
|
5
5
|
import '../mcp-app.cjs';
|
|
6
6
|
import '../mcp-app-policy-DXKQ2jjM.cjs';
|
|
7
7
|
import '../questions-Dw--IEjT.cjs';
|
|
8
|
-
import '../en-
|
|
8
|
+
import '../en-CPCAidve.cjs';
|
|
9
9
|
|
|
10
10
|
/** Shqip (`sq`). */
|
|
11
11
|
declare const catalog: AgentLabelCatalog;
|
package/dist/locales/sq.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import '../types-DnBCok3z.js';
|
|
|
5
5
|
import '../mcp-app.js';
|
|
6
6
|
import '../mcp-app-policy-DXKQ2jjM.js';
|
|
7
7
|
import '../questions-Dw--IEjT.js';
|
|
8
|
-
import '../en-
|
|
8
|
+
import '../en-CPCAidve.js';
|
|
9
9
|
|
|
10
10
|
/** Shqip (`sq`). */
|
|
11
11
|
declare const catalog: AgentLabelCatalog;
|
package/dist/locales/sq.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
labelsFromCatalog
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-HIHUK7YA.js";
|
|
4
4
|
|
|
5
5
|
// src/locales/catalogs/sq.ts
|
|
6
6
|
var catalog = {
|
|
@@ -157,6 +157,10 @@ var catalog = {
|
|
|
157
157
|
questionOther: "Tjetër…",
|
|
158
158
|
questionOtherLabel: "Përgjigjja juaj",
|
|
159
159
|
questionSkip: "Kapërce",
|
|
160
|
+
pageContextSharing: "Po ndahet",
|
|
161
|
+
pageContextNotSharing: "Nuk ndahet me këtë mesazh",
|
|
162
|
+
pageContextDontShare: "Mos e ndaj me këtë mesazh",
|
|
163
|
+
pageContextAskedOnSend: "kërkohet kur dërgon",
|
|
160
164
|
questionExpiresIn: "Nëse nuk përgjigjeni, asistenti vendos vetë pas {time}",
|
|
161
165
|
questionRemote: "Përgjigjet në skedën tjetër, ku punon asistenti.",
|
|
162
166
|
questionAutomatic: "Asistenti vazhdoi pa përgjigjen tuaj: {reason}.",
|
package/dist/locales/sr-Latn.cjs
CHANGED
|
@@ -288,6 +288,11 @@ var labelsFromCatalog = (tag, catalog3) => {
|
|
|
288
288
|
questionOther: t("questionOther"),
|
|
289
289
|
questionOtherLabel: t("questionOtherLabel"),
|
|
290
290
|
questionSkip: t("questionSkip"),
|
|
291
|
+
// ── the page context the composer shares (its chip) ──
|
|
292
|
+
pageContextSharing: t("pageContextSharing"),
|
|
293
|
+
pageContextNotSharing: t("pageContextNotSharing"),
|
|
294
|
+
pageContextDontShare: t("pageContextDontShare"),
|
|
295
|
+
pageContextAskedOnSend: t("pageContextAskedOnSend"),
|
|
291
296
|
questionExpiresIn: (time) => t("questionExpiresIn", { time }),
|
|
292
297
|
questionRemote: t("questionRemote"),
|
|
293
298
|
questionAutomatic: (reason) => t("questionAutomatic", { reason }),
|
|
@@ -657,6 +662,10 @@ var catalog = {
|
|
|
657
662
|
questionOther: "Друго…",
|
|
658
663
|
questionOtherLabel: "Ваш одговор",
|
|
659
664
|
questionSkip: "Прескочи",
|
|
665
|
+
pageContextSharing: "Дели се",
|
|
666
|
+
pageContextNotSharing: "Не дели се са овом поруком",
|
|
667
|
+
pageContextDontShare: "Не дели са овом поруком",
|
|
668
|
+
pageContextAskedOnSend: "тражиће се при слању",
|
|
660
669
|
questionExpiresIn: "Ако не одговорите, асистент ће сам одлучити за {time}",
|
|
661
670
|
questionRemote: "Одговара се у другој картици, где асистент ради.",
|
|
662
671
|
questionAutomatic: "Асистент је наставио без вашег одговора: {reason}.",
|
|
@@ -5,7 +5,7 @@ import '../types-DnBCok3z.cjs';
|
|
|
5
5
|
import '../mcp-app.cjs';
|
|
6
6
|
import '../mcp-app-policy-DXKQ2jjM.cjs';
|
|
7
7
|
import '../questions-Dw--IEjT.cjs';
|
|
8
|
-
import '../en-
|
|
8
|
+
import '../en-CPCAidve.cjs';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Srpski (latinica) (`sr-Latn`): the Cyrillic catalog transliterated letter for letter (the two scripts
|
|
@@ -5,7 +5,7 @@ import '../types-DnBCok3z.js';
|
|
|
5
5
|
import '../mcp-app.js';
|
|
6
6
|
import '../mcp-app-policy-DXKQ2jjM.js';
|
|
7
7
|
import '../questions-Dw--IEjT.js';
|
|
8
|
-
import '../en-
|
|
8
|
+
import '../en-CPCAidve.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Srpski (latinica) (`sr-Latn`): the Cyrillic catalog transliterated letter for letter (the two scripts
|
package/dist/locales/sr-Latn.js
CHANGED
package/dist/locales/sr.cjs
CHANGED
|
@@ -288,6 +288,11 @@ var labelsFromCatalog = (tag, catalog2) => {
|
|
|
288
288
|
questionOther: t("questionOther"),
|
|
289
289
|
questionOtherLabel: t("questionOtherLabel"),
|
|
290
290
|
questionSkip: t("questionSkip"),
|
|
291
|
+
// ── the page context the composer shares (its chip) ──
|
|
292
|
+
pageContextSharing: t("pageContextSharing"),
|
|
293
|
+
pageContextNotSharing: t("pageContextNotSharing"),
|
|
294
|
+
pageContextDontShare: t("pageContextDontShare"),
|
|
295
|
+
pageContextAskedOnSend: t("pageContextAskedOnSend"),
|
|
291
296
|
questionExpiresIn: (time) => t("questionExpiresIn", { time }),
|
|
292
297
|
questionRemote: t("questionRemote"),
|
|
293
298
|
questionAutomatic: (reason) => t("questionAutomatic", { reason }),
|
|
@@ -588,6 +593,10 @@ var catalog = {
|
|
|
588
593
|
questionOther: "Друго…",
|
|
589
594
|
questionOtherLabel: "Ваш одговор",
|
|
590
595
|
questionSkip: "Прескочи",
|
|
596
|
+
pageContextSharing: "Дели се",
|
|
597
|
+
pageContextNotSharing: "Не дели се са овом поруком",
|
|
598
|
+
pageContextDontShare: "Не дели са овом поруком",
|
|
599
|
+
pageContextAskedOnSend: "тражиће се при слању",
|
|
591
600
|
questionExpiresIn: "Ако не одговорите, асистент ће сам одлучити за {time}",
|
|
592
601
|
questionRemote: "Одговара се у другој картици, где асистент ради.",
|
|
593
602
|
questionAutomatic: "Асистент је наставио без вашег одговора: {reason}.",
|
package/dist/locales/sr.d.cts
CHANGED
|
@@ -5,7 +5,7 @@ import '../types-DnBCok3z.cjs';
|
|
|
5
5
|
import '../mcp-app.cjs';
|
|
6
6
|
import '../mcp-app-policy-DXKQ2jjM.cjs';
|
|
7
7
|
import '../questions-Dw--IEjT.cjs';
|
|
8
|
-
import '../en-
|
|
8
|
+
import '../en-CPCAidve.cjs';
|
|
9
9
|
|
|
10
10
|
/** Српски (`sr`). */
|
|
11
11
|
declare const catalog: AgentLabelCatalog;
|
package/dist/locales/sr.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import '../types-DnBCok3z.js';
|
|
|
5
5
|
import '../mcp-app.js';
|
|
6
6
|
import '../mcp-app-policy-DXKQ2jjM.js';
|
|
7
7
|
import '../questions-Dw--IEjT.js';
|
|
8
|
-
import '../en-
|
|
8
|
+
import '../en-CPCAidve.js';
|
|
9
9
|
|
|
10
10
|
/** Српски (`sr`). */
|
|
11
11
|
declare const catalog: AgentLabelCatalog;
|
package/dist/locales/sr.js
CHANGED
package/dist/locales/sv.cjs
CHANGED
|
@@ -288,6 +288,11 @@ var labelsFromCatalog = (tag, catalog2) => {
|
|
|
288
288
|
questionOther: t("questionOther"),
|
|
289
289
|
questionOtherLabel: t("questionOtherLabel"),
|
|
290
290
|
questionSkip: t("questionSkip"),
|
|
291
|
+
// ── the page context the composer shares (its chip) ──
|
|
292
|
+
pageContextSharing: t("pageContextSharing"),
|
|
293
|
+
pageContextNotSharing: t("pageContextNotSharing"),
|
|
294
|
+
pageContextDontShare: t("pageContextDontShare"),
|
|
295
|
+
pageContextAskedOnSend: t("pageContextAskedOnSend"),
|
|
291
296
|
questionExpiresIn: (time) => t("questionExpiresIn", { time }),
|
|
292
297
|
questionRemote: t("questionRemote"),
|
|
293
298
|
questionAutomatic: (reason) => t("questionAutomatic", { reason }),
|
|
@@ -584,6 +589,10 @@ var catalog = {
|
|
|
584
589
|
questionOther: "Annat…",
|
|
585
590
|
questionOtherLabel: "Ditt svar",
|
|
586
591
|
questionSkip: "Hoppa över",
|
|
592
|
+
pageContextSharing: "Delas",
|
|
593
|
+
pageContextNotSharing: "Delas inte med det här meddelandet",
|
|
594
|
+
pageContextDontShare: "Dela inte med det här meddelandet",
|
|
595
|
+
pageContextAskedOnSend: "frågas när du skickar",
|
|
587
596
|
questionExpiresIn: "Om du inte svarar bestämmer assistenten själv om {time}",
|
|
588
597
|
questionRemote: "Besvaras i den andra fliken, där assistenten arbetar.",
|
|
589
598
|
questionAutomatic: "Assistenten fortsatte utan ditt svar: {reason}.",
|
package/dist/locales/sv.d.cts
CHANGED
|
@@ -5,7 +5,7 @@ import '../types-DnBCok3z.cjs';
|
|
|
5
5
|
import '../mcp-app.cjs';
|
|
6
6
|
import '../mcp-app-policy-DXKQ2jjM.cjs';
|
|
7
7
|
import '../questions-Dw--IEjT.cjs';
|
|
8
|
-
import '../en-
|
|
8
|
+
import '../en-CPCAidve.cjs';
|
|
9
9
|
|
|
10
10
|
/** Svenska (`sv`). */
|
|
11
11
|
declare const catalog: AgentLabelCatalog;
|
package/dist/locales/sv.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import '../types-DnBCok3z.js';
|
|
|
5
5
|
import '../mcp-app.js';
|
|
6
6
|
import '../mcp-app-policy-DXKQ2jjM.js';
|
|
7
7
|
import '../questions-Dw--IEjT.js';
|
|
8
|
-
import '../en-
|
|
8
|
+
import '../en-CPCAidve.js';
|
|
9
9
|
|
|
10
10
|
/** Svenska (`sv`). */
|
|
11
11
|
declare const catalog: AgentLabelCatalog;
|
package/dist/locales/sv.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
labelsFromCatalog
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-HIHUK7YA.js";
|
|
4
4
|
|
|
5
5
|
// src/locales/catalogs/sv.ts
|
|
6
6
|
var catalog = {
|
|
@@ -157,6 +157,10 @@ var catalog = {
|
|
|
157
157
|
questionOther: "Annat…",
|
|
158
158
|
questionOtherLabel: "Ditt svar",
|
|
159
159
|
questionSkip: "Hoppa över",
|
|
160
|
+
pageContextSharing: "Delas",
|
|
161
|
+
pageContextNotSharing: "Delas inte med det här meddelandet",
|
|
162
|
+
pageContextDontShare: "Dela inte med det här meddelandet",
|
|
163
|
+
pageContextAskedOnSend: "frågas när du skickar",
|
|
160
164
|
questionExpiresIn: "Om du inte svarar bestämmer assistenten själv om {time}",
|
|
161
165
|
questionRemote: "Besvaras i den andra fliken, där assistenten arbetar.",
|
|
162
166
|
questionAutomatic: "Assistenten fortsatte utan ditt svar: {reason}.",
|
package/dist/locales/tr.cjs
CHANGED
|
@@ -288,6 +288,11 @@ var labelsFromCatalog = (tag, catalog2) => {
|
|
|
288
288
|
questionOther: t("questionOther"),
|
|
289
289
|
questionOtherLabel: t("questionOtherLabel"),
|
|
290
290
|
questionSkip: t("questionSkip"),
|
|
291
|
+
// ── the page context the composer shares (its chip) ──
|
|
292
|
+
pageContextSharing: t("pageContextSharing"),
|
|
293
|
+
pageContextNotSharing: t("pageContextNotSharing"),
|
|
294
|
+
pageContextDontShare: t("pageContextDontShare"),
|
|
295
|
+
pageContextAskedOnSend: t("pageContextAskedOnSend"),
|
|
291
296
|
questionExpiresIn: (time) => t("questionExpiresIn", { time }),
|
|
292
297
|
questionRemote: t("questionRemote"),
|
|
293
298
|
questionAutomatic: (reason) => t("questionAutomatic", { reason }),
|
|
@@ -584,6 +589,10 @@ var catalog = {
|
|
|
584
589
|
questionOther: "Diğer…",
|
|
585
590
|
questionOtherLabel: "Yanıtınız",
|
|
586
591
|
questionSkip: "Geç",
|
|
592
|
+
pageContextSharing: "Paylaşılıyor",
|
|
593
|
+
pageContextNotSharing: "Bu mesajla paylaşılmıyor",
|
|
594
|
+
pageContextDontShare: "Bu mesajla paylaşma",
|
|
595
|
+
pageContextAskedOnSend: "gönderirken sorulur",
|
|
587
596
|
questionExpiresIn: "Yanıt vermezseniz asistan {time} içinde kendisi karar verecek",
|
|
588
597
|
questionRemote: "Yanıt, asistanın çalıştığı diğer sekmede verilir.",
|
|
589
598
|
questionAutomatic: "Asistan yanıtınızı beklemeden devam etti: {reason}.",
|
package/dist/locales/tr.d.cts
CHANGED
|
@@ -5,7 +5,7 @@ import '../types-DnBCok3z.cjs';
|
|
|
5
5
|
import '../mcp-app.cjs';
|
|
6
6
|
import '../mcp-app-policy-DXKQ2jjM.cjs';
|
|
7
7
|
import '../questions-Dw--IEjT.cjs';
|
|
8
|
-
import '../en-
|
|
8
|
+
import '../en-CPCAidve.cjs';
|
|
9
9
|
|
|
10
10
|
/** Türkçe (`tr`). */
|
|
11
11
|
declare const catalog: AgentLabelCatalog;
|
package/dist/locales/tr.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import '../types-DnBCok3z.js';
|
|
|
5
5
|
import '../mcp-app.js';
|
|
6
6
|
import '../mcp-app-policy-DXKQ2jjM.js';
|
|
7
7
|
import '../questions-Dw--IEjT.js';
|
|
8
|
-
import '../en-
|
|
8
|
+
import '../en-CPCAidve.js';
|
|
9
9
|
|
|
10
10
|
/** Türkçe (`tr`). */
|
|
11
11
|
declare const catalog: AgentLabelCatalog;
|
package/dist/locales/tr.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
labelsFromCatalog
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-HIHUK7YA.js";
|
|
4
4
|
|
|
5
5
|
// src/locales/catalogs/tr.ts
|
|
6
6
|
var catalog = {
|
|
@@ -157,6 +157,10 @@ var catalog = {
|
|
|
157
157
|
questionOther: "Diğer…",
|
|
158
158
|
questionOtherLabel: "Yanıtınız",
|
|
159
159
|
questionSkip: "Geç",
|
|
160
|
+
pageContextSharing: "Paylaşılıyor",
|
|
161
|
+
pageContextNotSharing: "Bu mesajla paylaşılmıyor",
|
|
162
|
+
pageContextDontShare: "Bu mesajla paylaşma",
|
|
163
|
+
pageContextAskedOnSend: "gönderirken sorulur",
|
|
160
164
|
questionExpiresIn: "Yanıt vermezseniz asistan {time} içinde kendisi karar verecek",
|
|
161
165
|
questionRemote: "Yanıt, asistanın çalıştığı diğer sekmede verilir.",
|
|
162
166
|
questionAutomatic: "Asistan yanıtınızı beklemeden devam etti: {reason}.",
|
package/dist/locales/uk.cjs
CHANGED
|
@@ -288,6 +288,11 @@ var labelsFromCatalog = (tag, catalog2) => {
|
|
|
288
288
|
questionOther: t("questionOther"),
|
|
289
289
|
questionOtherLabel: t("questionOtherLabel"),
|
|
290
290
|
questionSkip: t("questionSkip"),
|
|
291
|
+
// ── the page context the composer shares (its chip) ──
|
|
292
|
+
pageContextSharing: t("pageContextSharing"),
|
|
293
|
+
pageContextNotSharing: t("pageContextNotSharing"),
|
|
294
|
+
pageContextDontShare: t("pageContextDontShare"),
|
|
295
|
+
pageContextAskedOnSend: t("pageContextAskedOnSend"),
|
|
291
296
|
questionExpiresIn: (time) => t("questionExpiresIn", { time }),
|
|
292
297
|
questionRemote: t("questionRemote"),
|
|
293
298
|
questionAutomatic: (reason) => t("questionAutomatic", { reason }),
|
|
@@ -599,6 +604,10 @@ var catalog = {
|
|
|
599
604
|
questionOther: "Інше…",
|
|
600
605
|
questionOtherLabel: "Ваша відповідь",
|
|
601
606
|
questionSkip: "Пропустити",
|
|
607
|
+
pageContextSharing: "Передається",
|
|
608
|
+
pageContextNotSharing: "Не передається з цим повідомленням",
|
|
609
|
+
pageContextDontShare: "Не передавати з цим повідомленням",
|
|
610
|
+
pageContextAskedOnSend: "запитається під час надсилання",
|
|
602
611
|
questionExpiresIn: "Якщо ви не відповісте, асистент вирішить сам через {time}",
|
|
603
612
|
questionRemote: "Відповідь дають в іншій вкладці, де працює асистент.",
|
|
604
613
|
questionAutomatic: "Асистент продовжив без вашої відповіді: {reason}.",
|
package/dist/locales/uk.d.cts
CHANGED
|
@@ -5,7 +5,7 @@ import '../types-DnBCok3z.cjs';
|
|
|
5
5
|
import '../mcp-app.cjs';
|
|
6
6
|
import '../mcp-app-policy-DXKQ2jjM.cjs';
|
|
7
7
|
import '../questions-Dw--IEjT.cjs';
|
|
8
|
-
import '../en-
|
|
8
|
+
import '../en-CPCAidve.cjs';
|
|
9
9
|
|
|
10
10
|
/** Українська (`uk`). */
|
|
11
11
|
declare const catalog: AgentLabelCatalog;
|
package/dist/locales/uk.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import '../types-DnBCok3z.js';
|
|
|
5
5
|
import '../mcp-app.js';
|
|
6
6
|
import '../mcp-app-policy-DXKQ2jjM.js';
|
|
7
7
|
import '../questions-Dw--IEjT.js';
|
|
8
|
-
import '../en-
|
|
8
|
+
import '../en-CPCAidve.js';
|
|
9
9
|
|
|
10
10
|
/** Українська (`uk`). */
|
|
11
11
|
declare const catalog: AgentLabelCatalog;
|
package/dist/locales/uk.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
labelsFromCatalog
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-HIHUK7YA.js";
|
|
4
4
|
|
|
5
5
|
// src/locales/catalogs/uk.ts
|
|
6
6
|
var catalog = {
|
|
@@ -172,6 +172,10 @@ var catalog = {
|
|
|
172
172
|
questionOther: "Інше…",
|
|
173
173
|
questionOtherLabel: "Ваша відповідь",
|
|
174
174
|
questionSkip: "Пропустити",
|
|
175
|
+
pageContextSharing: "Передається",
|
|
176
|
+
pageContextNotSharing: "Не передається з цим повідомленням",
|
|
177
|
+
pageContextDontShare: "Не передавати з цим повідомленням",
|
|
178
|
+
pageContextAskedOnSend: "запитається під час надсилання",
|
|
175
179
|
questionExpiresIn: "Якщо ви не відповісте, асистент вирішить сам через {time}",
|
|
176
180
|
questionRemote: "Відповідь дають в іншій вкладці, де працює асистент.",
|
|
177
181
|
questionAutomatic: "Асистент продовжив без вашої відповіді: {reason}.",
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Page context collectors: what the person is looking at, read from the page at SEND time and
|
|
3
|
+
* passed with the message (the core's `run(goal, { context })` / `control.send(text, { context })`,
|
|
4
|
+
* a server agent's `POST /sessions/:id/messages { context }`).
|
|
5
|
+
*
|
|
6
|
+
* Every collector is its own switch and ALL are OFF by default: a host that turns none on sends
|
|
7
|
+
* nothing and the wire is what it was. What a collector reads is UNTRUSTED for the agent (the
|
|
8
|
+
* page, or a visitor of a public site, controls it) and can be PRIVATE for the person: the
|
|
9
|
+
* address can carry tokens, a selection or a field can hold anything they typed. So:
|
|
10
|
+
* - a form field's VALUE is read only with `focus: { includeValues: true }`, and NEVER for a
|
|
11
|
+
* password, a hidden field, an `autocomplete` `cc-*` (a card) or `one-time-code` field
|
|
12
|
+
* (`isSecretField`); anything editable (`isEditableElement`: an input, a textarea, a select,
|
|
13
|
+
* contenteditable - inherited too - or an editable role) is a field: its content is its value,
|
|
14
|
+
* never its label;
|
|
15
|
+
* - the location only with `geolocation` on - the browser's own permission prompt, only when a
|
|
16
|
+
* message is sent (never in a preview), rounded (`precision`, default 2 decimals: about 1 km),
|
|
17
|
+
* cached for `maxAgeMs`, and after a refusal never asked again for the page's life;
|
|
18
|
+
* - every value is capped here already (`PAGE_CONTEXT_VALUE_MAX`, the selection `selection.maxChars`),
|
|
19
|
+
* and the agent's core cleans and caps the whole again.
|
|
20
|
+
*
|
|
21
|
+
* Reads the DOM through an environment it is given (`PageContextEnv`, the page's by default), so
|
|
22
|
+
* every rule is tested on a fake (`tests/page-context.test.ts`); no import, no framework.
|
|
23
|
+
*/
|
|
24
|
+
/** One value: flat, a primitive (the core's `PageContextValue`). */
|
|
25
|
+
type PageContextValue = string | number | boolean | null;
|
|
26
|
+
/** What is passed with a message: a flat record (the core's `PageContext`). */
|
|
27
|
+
type PageContext = Record<string, PageContextValue>;
|
|
28
|
+
/** The location's settings. */
|
|
29
|
+
interface GeolocationCollect {
|
|
30
|
+
/** Decimals kept of latitude and longitude (0-6, default 2: about 1 km). */
|
|
31
|
+
precision?: number;
|
|
32
|
+
/** How long a position is reused before the browser is asked again, in ms (default 10 minutes). */
|
|
33
|
+
maxAgeMs?: number;
|
|
34
|
+
/** How long the browser may take, in ms (default 10 s); past it nothing is sent. */
|
|
35
|
+
timeoutMs?: number;
|
|
36
|
+
}
|
|
37
|
+
/** Which collectors are on. Every one is OFF unless set. */
|
|
38
|
+
interface PageContextCollect {
|
|
39
|
+
/** `url`: the page's address without its query and fragment (they can carry tokens). */
|
|
40
|
+
url?: boolean;
|
|
41
|
+
/** `path`: the page's path. */
|
|
42
|
+
path?: boolean;
|
|
43
|
+
/** `title`: the document's title. */
|
|
44
|
+
title?: boolean;
|
|
45
|
+
/** `language`: the document's language (`<html lang>`). */
|
|
46
|
+
language?: boolean;
|
|
47
|
+
/** `referrer`: the page the person came from, origin and path only. */
|
|
48
|
+
referrer?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* `focus.role`, `focus.label`, `focus.type`: the focused element (its role, accessible name,
|
|
51
|
+
* element type). `focus.value` - a form field's value - only with `includeValues`, and never
|
|
52
|
+
* for a password, a hidden, an `autocomplete` `cc-*` or `one-time-code` field.
|
|
53
|
+
*/
|
|
54
|
+
focus?: boolean | {
|
|
55
|
+
includeValues?: boolean;
|
|
56
|
+
};
|
|
57
|
+
/** `selection`: the text the person selected, capped (`maxChars`, default 500). */
|
|
58
|
+
selection?: boolean | {
|
|
59
|
+
maxChars?: number;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* `geo.latitude`, `geo.longitude`, `geo.accuracy` (m): `navigator.geolocation`, with the
|
|
63
|
+
* browser's permission prompt, when a message is sent. Rounded, cached, never asked again after
|
|
64
|
+
* a refusal.
|
|
65
|
+
*/
|
|
66
|
+
geolocation?: boolean | GeolocationCollect;
|
|
67
|
+
/** `viewport`: the window's inner size, "390x844". */
|
|
68
|
+
viewport?: boolean;
|
|
69
|
+
/** `scroll`: how far down the page is read, as a percentage, and the offset in px. */
|
|
70
|
+
scroll?: boolean;
|
|
71
|
+
/** `headings`: the h1-h3 in view, " / "-separated, capped. */
|
|
72
|
+
headings?: boolean;
|
|
73
|
+
/** `timeZone` and `localTime`: the person's time zone and the local time (ISO, with offset). */
|
|
74
|
+
time?: boolean;
|
|
75
|
+
/** `colorScheme`: "dark" or "light", as the person's system prefers. */
|
|
76
|
+
colorScheme?: boolean;
|
|
77
|
+
/** `device`: "phone", "tablet" or "desktop", from the pointer and the screen. */
|
|
78
|
+
device?: boolean;
|
|
79
|
+
}
|
|
80
|
+
/** A host's page context: which collectors, what it adds, which keys go. */
|
|
81
|
+
interface PageContextOptions {
|
|
82
|
+
collect?: PageContextCollect;
|
|
83
|
+
/** The host's own entries, merged ON TOP of the collected ones (a value `undefined` is skipped). */
|
|
84
|
+
extra?: () => Record<string, PageContextValue | undefined> | undefined;
|
|
85
|
+
/** Only these keys are sent (exact names). */
|
|
86
|
+
include?: string[];
|
|
87
|
+
/** These keys are never sent; wins over `include`. */
|
|
88
|
+
exclude?: string[];
|
|
89
|
+
/** The most the context takes, keys and values together (the agent's core caps it too). */
|
|
90
|
+
maxChars?: number;
|
|
91
|
+
}
|
|
92
|
+
/** The most one collected value takes, in characters. */
|
|
93
|
+
declare const PAGE_CONTEXT_VALUE_MAX = 500;
|
|
94
|
+
/** The selection's default cap. */
|
|
95
|
+
declare const PAGE_CONTEXT_SELECTION_MAX = 500;
|
|
96
|
+
/** The default total, keys and values together. */
|
|
97
|
+
declare const PAGE_CONTEXT_MAX_CHARS = 2000;
|
|
98
|
+
/** A DOM element, structurally: what the collectors read of one. */
|
|
99
|
+
interface PageContextElement {
|
|
100
|
+
tagName: string;
|
|
101
|
+
getAttribute(name: string): string | null;
|
|
102
|
+
textContent?: string | null;
|
|
103
|
+
/** A form field's. */
|
|
104
|
+
type?: string;
|
|
105
|
+
value?: unknown;
|
|
106
|
+
labels?: ArrayLike<{
|
|
107
|
+
textContent?: string | null;
|
|
108
|
+
}> | null;
|
|
109
|
+
getBoundingClientRect?(): {
|
|
110
|
+
top: number;
|
|
111
|
+
bottom: number;
|
|
112
|
+
};
|
|
113
|
+
isContentEditable?: boolean;
|
|
114
|
+
}
|
|
115
|
+
/** What the collectors read: the page's window, document and navigator by default. */
|
|
116
|
+
interface PageContextEnv {
|
|
117
|
+
location?: {
|
|
118
|
+
href: string;
|
|
119
|
+
pathname: string;
|
|
120
|
+
};
|
|
121
|
+
document?: {
|
|
122
|
+
title?: string;
|
|
123
|
+
referrer?: string;
|
|
124
|
+
documentElement?: {
|
|
125
|
+
lang?: string;
|
|
126
|
+
scrollHeight?: number;
|
|
127
|
+
};
|
|
128
|
+
activeElement?: PageContextElement | null;
|
|
129
|
+
querySelectorAll?(selector: string): ArrayLike<PageContextElement>;
|
|
130
|
+
getElementById?(id: string): PageContextElement | null;
|
|
131
|
+
};
|
|
132
|
+
getSelection?: () => {
|
|
133
|
+
toString(): string;
|
|
134
|
+
} | null;
|
|
135
|
+
innerWidth?: number;
|
|
136
|
+
innerHeight?: number;
|
|
137
|
+
scrollY?: number;
|
|
138
|
+
matchMedia?: (query: string) => {
|
|
139
|
+
matches: boolean;
|
|
140
|
+
};
|
|
141
|
+
geolocation?: {
|
|
142
|
+
getCurrentPosition(ok: (p: {
|
|
143
|
+
coords: {
|
|
144
|
+
latitude: number;
|
|
145
|
+
longitude: number;
|
|
146
|
+
accuracy: number;
|
|
147
|
+
};
|
|
148
|
+
}) => void, fail: (e: {
|
|
149
|
+
code: number;
|
|
150
|
+
}) => void, options?: {
|
|
151
|
+
timeout?: number;
|
|
152
|
+
maximumAge?: number;
|
|
153
|
+
enableHighAccuracy?: boolean;
|
|
154
|
+
}): void;
|
|
155
|
+
};
|
|
156
|
+
now?: () => number;
|
|
157
|
+
timeZone?: () => string | undefined;
|
|
158
|
+
screenWidth?: number;
|
|
159
|
+
}
|
|
160
|
+
/** True when NO collector is on and no `extra` is given: the host shares nothing. */
|
|
161
|
+
declare const pageContextOff: (options: PageContextOptions | undefined) => boolean;
|
|
162
|
+
/** An address without its query and fragment (they can carry tokens). */
|
|
163
|
+
declare const addressWithoutQuery: (href: string) => string | undefined;
|
|
164
|
+
/**
|
|
165
|
+
* A field whose VALUE is never read, whatever the host set: a password, a hidden field, a card
|
|
166
|
+
* (`autocomplete` `cc-*`), a one-time code, a password manager's `current-password` /
|
|
167
|
+
* `new-password`.
|
|
168
|
+
*/
|
|
169
|
+
declare const isSecretField: (el: PageContextElement) => boolean;
|
|
170
|
+
/**
|
|
171
|
+
* A FIELD: an element whose content is what the person typed or picked - an input of any kind, a
|
|
172
|
+
* textarea, a select, anything editable (`isContentEditable`, inherited by the nodes inside an
|
|
173
|
+
* editable region) or with an editable role. Its content is its VALUE: never its label.
|
|
174
|
+
*/
|
|
175
|
+
declare const isEditableElement: (el: PageContextElement) => boolean;
|
|
176
|
+
/** The focused element, as entries (`focus.*`). Nothing for the page's body. */
|
|
177
|
+
declare const focusEntries: (env: PageContextEnv, includeValues: boolean) => Record<string, string>;
|
|
178
|
+
/** The h1-h3 in the viewport (or, with no layout, the first ones), " / "-separated. */
|
|
179
|
+
declare const headingsInView: (env: PageContextEnv) => string | undefined;
|
|
180
|
+
/** Rounded to `precision` decimals (0-6). */
|
|
181
|
+
declare const roundCoordinate: (value: number, precision: number) => number;
|
|
182
|
+
/** Keys and values together within `max`; the entry that crosses is clipped, the rest dropped. */
|
|
183
|
+
declare const capPageContext: (context: PageContext, max: number) => PageContext;
|
|
184
|
+
interface PageContextCollector {
|
|
185
|
+
/**
|
|
186
|
+
* What goes with a message, read now. With `ask` (a send) the location may ask the browser
|
|
187
|
+
* (its permission prompt); without it (a preview) only a position already known is used, and a
|
|
188
|
+
* location not known yet is `PAGE_CONTEXT_ASK_ON_SEND`. `undefined` when nothing is on or left.
|
|
189
|
+
*/
|
|
190
|
+
collect(options?: {
|
|
191
|
+
ask?: boolean;
|
|
192
|
+
}): Promise<PageContext | undefined>;
|
|
193
|
+
/** The same, at once, never asking: for the composer's chip. */
|
|
194
|
+
preview(): PageContext | undefined;
|
|
195
|
+
/** Whether the person refused the location (then it is never asked again). */
|
|
196
|
+
readonly geolocationDenied: boolean;
|
|
197
|
+
/**
|
|
198
|
+
* Read the focus and the selection through a tracker (`trackPageFocus`) instead of the
|
|
199
|
+
* document: the chat's own composer has the focus when a message is sent, so a chat on the page
|
|
200
|
+
* gives one that remembers what was focused / selected OUTSIDE it. `undefined` takes it off.
|
|
201
|
+
*/
|
|
202
|
+
setTracker(tracker: PageFocusTracker | undefined): void;
|
|
203
|
+
}
|
|
204
|
+
/** What was focused and selected outside the chat (`trackPageFocus`). */
|
|
205
|
+
interface PageFocusTracker {
|
|
206
|
+
/** The element focused now, if outside the chat; else the last one that was (still in the page). */
|
|
207
|
+
element(): PageContextElement | null | undefined;
|
|
208
|
+
/** The text selected outside the chat, or the last such selection while the focus is in the chat. */
|
|
209
|
+
selection(): string | undefined;
|
|
210
|
+
stop(): void;
|
|
211
|
+
}
|
|
212
|
+
type TrackedDocument = {
|
|
213
|
+
activeElement: unknown;
|
|
214
|
+
addEventListener(type: string, fn: (e: Event) => void, capture?: boolean): void;
|
|
215
|
+
removeEventListener(type: string, fn: (e: Event) => void, capture?: boolean): void;
|
|
216
|
+
getSelection(): {
|
|
217
|
+
toString(): string;
|
|
218
|
+
anchorNode: unknown;
|
|
219
|
+
isCollapsed?: boolean;
|
|
220
|
+
} | null;
|
|
221
|
+
};
|
|
222
|
+
/**
|
|
223
|
+
* Remember what is focused and selected outside the chat (`isInside`: the chat's own nodes,
|
|
224
|
+
* shadow roots included - the event's composed path is read). Listens to `focusin` and
|
|
225
|
+
* `selectionchange` on `doc` until `stop()`.
|
|
226
|
+
*/
|
|
227
|
+
declare const trackPageFocus: (doc: TrackedDocument, isInside: (node: unknown) => boolean) => PageFocusTracker;
|
|
228
|
+
/** Stands in the preview for a location the browser is asked for only at send time. */
|
|
229
|
+
declare const PAGE_CONTEXT_ASK_ON_SEND: unique symbol;
|
|
230
|
+
/**
|
|
231
|
+
* A collector over `options` (its switches read at every call: the host may change them). One
|
|
232
|
+
* per chat: it keeps the location it was given and whether the person refused it.
|
|
233
|
+
*/
|
|
234
|
+
declare const createPageContextCollector: (options: () => PageContextOptions | undefined, env?: () => PageContextEnv) => PageContextCollector;
|
|
235
|
+
/** The page context's entries as text for the chip's details (`PAGE_CONTEXT_ASK_ON_SEND` → `askedOnSend`). */
|
|
236
|
+
declare const pageContextRows: (context: PageContext | undefined, askedOnSend: string) => {
|
|
237
|
+
key: string;
|
|
238
|
+
value: string;
|
|
239
|
+
}[];
|
|
240
|
+
/** A preview without its "asked when you send" stand-ins: what a send mid-run can carry at once. */
|
|
241
|
+
declare const withoutAskOnSend: (context: PageContext | undefined) => PageContext | undefined;
|
|
242
|
+
|
|
243
|
+
export { createPageContextCollector as c, PAGE_CONTEXT_ASK_ON_SEND as d, PAGE_CONTEXT_MAX_CHARS as e, PAGE_CONTEXT_SELECTION_MAX as f, PAGE_CONTEXT_VALUE_MAX as g, addressWithoutQuery as m, capPageContext as n, focusEntries as o, headingsInView as p, isEditableElement as q, isSecretField as r, pageContextOff as s, trackPageFocus as t, pageContextRows as u, roundCoordinate as v, withoutAskOnSend as w };
|
|
244
|
+
export type { GeolocationCollect as G, PageContextOptions as P, PageContext as a, PageContextCollector as b, PageContextCollect as h, PageContextElement as i, PageContextEnv as j, PageContextValue as k, PageFocusTracker as l };
|