@burdenoff/fe-libs 2026.1004.4 → 2026.1004.6
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/chrome/ContextSwitcher.d.ts.map +1 -1
- package/dist/chrome/ContextSwitcher.js +73 -50
- package/dist/chrome/GlobalSearch.d.ts.map +1 -1
- package/dist/chrome/GlobalSearch.js +76 -72
- package/dist/chrome/LanguageSwitcher.d.ts.map +1 -1
- package/dist/chrome/LanguageSwitcher.js +61 -40
- package/dist/chrome/NotificationCenter.d.ts.map +1 -1
- package/dist/chrome/NotificationCenter.js +71 -68
- package/dist/chrome/ProfileSwitcher.d.ts.map +1 -1
- package/dist/chrome/ProfileSwitcher.js +87 -81
- package/dist/chrome/SideNavigation.d.ts.map +1 -1
- package/dist/chrome/SideNavigation.js +120 -76
- package/dist/shared/assistant/appControls/copy.d.ts +12 -0
- package/dist/shared/assistant/appControls/copy.d.ts.map +1 -0
- package/dist/shared/assistant/appControls/copy.js +98 -0
- package/dist/shared/assistant/appControls/grammar.d.ts +102 -0
- package/dist/shared/assistant/appControls/grammar.d.ts.map +1 -0
- package/dist/shared/assistant/appControls/grammar.js +236 -0
- package/dist/shared/assistant/appControls/languages.d.ts +6 -0
- package/dist/shared/assistant/appControls/languages.d.ts.map +1 -0
- package/dist/shared/assistant/appControls/languages.js +52 -0
- package/dist/shared/assistant/appControls/names.d.ts +22 -0
- package/dist/shared/assistant/appControls/names.d.ts.map +1 -0
- package/dist/shared/assistant/appControls/names.js +29 -0
- package/dist/shared/assistant/appControls/pageAdapters.d.ts +59 -0
- package/dist/shared/assistant/appControls/pageAdapters.d.ts.map +1 -0
- package/dist/shared/assistant/appControls/pageAdapters.js +87 -0
- package/dist/shared/assistant/appControls/plan.d.ts +148 -0
- package/dist/shared/assistant/appControls/plan.d.ts.map +1 -0
- package/dist/shared/assistant/appControls/plan.js +511 -0
- package/dist/shared/assistant/appControls/registry.d.ts +9 -0
- package/dist/shared/assistant/appControls/registry.d.ts.map +1 -0
- package/dist/shared/assistant/appControls/registry.js +38 -0
- package/dist/shared/assistant/appControls/snapshot.d.ts +42 -0
- package/dist/shared/assistant/appControls/snapshot.d.ts.map +1 -0
- package/dist/shared/assistant/appControls/snapshot.js +40 -0
- package/dist/shared/assistant/appControls/text.d.ts +7 -0
- package/dist/shared/assistant/appControls/text.d.ts.map +1 -0
- package/dist/shared/assistant/appControls/text.js +6 -0
- package/dist/shared/assistant/appControls/types.d.ts +183 -0
- package/dist/shared/assistant/appControls/types.d.ts.map +1 -0
- package/dist/shared/assistant/appControls/types.js +25 -0
- package/dist/shared/assistant/appControls/useAssistantControl.d.ts +24 -0
- package/dist/shared/assistant/appControls/useAssistantControl.d.ts.map +1 -0
- package/dist/shared/assistant/appControls/useAssistantControl.js +13 -0
- package/dist/shared/assistant/conversation.d.ts +12 -1
- package/dist/shared/assistant/conversation.d.ts.map +1 -1
- package/dist/shared/assistant/history/historyMapping.d.ts.map +1 -1
- package/dist/shared/assistant/history/historyMapping.js +130 -114
- package/dist/shared/assistant/i18nManifest.d.ts +74 -0
- package/dist/shared/assistant/i18nManifest.d.ts.map +1 -1
- package/dist/shared/assistant/i18nManifest.js +86 -12
- package/dist/shared/assistant/index.d.ts +16 -0
- package/dist/shared/assistant/index.d.ts.map +1 -1
- package/dist/shared/assistant/localUiCommandCopy.d.ts +7 -0
- package/dist/shared/assistant/localUiCommandCopy.d.ts.map +1 -1
- package/dist/shared/assistant/localUiCommandCopy.js +1 -1
- package/dist/shared/assistant/localUiCommands.d.ts +16 -0
- package/dist/shared/assistant/localUiCommands.d.ts.map +1 -1
- package/dist/shared/assistant/localUiCommands.js +92 -84
- package/dist/shared/assistant/store.d.ts +10 -0
- package/dist/shared/assistant/store.d.ts.map +1 -1
- package/dist/shared/assistant/store.js +52 -44
- package/dist/shared/assistant/ui/AIAssistantPanel.d.ts.map +1 -1
- package/dist/shared/assistant/ui/AIAssistantPanel.js +57 -49
- package/dist/shared/assistant/ui/AssistantChatArea.d.ts.map +1 -1
- package/dist/shared/assistant/ui/AssistantChatArea.js +1085 -1016
- package/dist/shared/assistant/ui/AssistantControlConfirmDialog.d.ts +38 -0
- package/dist/shared/assistant/ui/AssistantControlConfirmDialog.d.ts.map +1 -0
- package/dist/shared/assistant/ui/AssistantControlConfirmDialog.js +65 -0
- package/dist/shared/assistant/ui/AssistantMoreMenu.d.ts.map +1 -1
- package/dist/shared/assistant/ui/AssistantMoreMenu.js +58 -56
- package/dist/shared/assistant/ui/AssistantSpeechProvider.d.ts.map +1 -1
- package/dist/shared/assistant/ui/AssistantSpeechProvider.js +106 -105
- package/dist/shared/assistant/ui/composer/AssistantVoiceGraceSelector.d.ts +20 -0
- package/dist/shared/assistant/ui/composer/AssistantVoiceGraceSelector.d.ts.map +1 -0
- package/dist/shared/assistant/ui/composer/AssistantVoiceGraceSelector.js +39 -0
- package/dist/shared/assistant/ui/controlConfirmDialog.d.ts +30 -0
- package/dist/shared/assistant/ui/controlConfirmDialog.d.ts.map +1 -0
- package/dist/shared/assistant/ui/controlConfirmDialog.js +46 -0
- package/dist/shared/assistant/ui/useVoiceSession.d.ts +35 -2
- package/dist/shared/assistant/ui/useVoiceSession.d.ts.map +1 -1
- package/dist/shared/assistant/ui/useVoiceSession.js +232 -171
- package/dist/shared/assistant/ui/voice/AssistantVoiceSession.d.ts +15 -1
- package/dist/shared/assistant/ui/voice/AssistantVoiceSession.d.ts.map +1 -1
- package/dist/shared/assistant/ui/voice/AssistantVoiceSession.js +173 -150
- package/dist/shared/assistant/voice/handsFree.d.ts +160 -0
- package/dist/shared/assistant/voice/handsFree.d.ts.map +1 -0
- package/dist/shared/assistant/voice/handsFree.js +104 -0
- package/dist/shared/assistant/voice/supersededTurns.d.ts +29 -0
- package/dist/shared/assistant/voice/supersededTurns.d.ts.map +1 -0
- package/dist/shared/assistant/voice/supersededTurns.js +17 -0
- package/dist/shared/assistant/voice/useVoiceInput.d.ts +7 -0
- package/dist/shared/assistant/voice/useVoiceInput.d.ts.map +1 -1
- package/dist/shared/assistant/voice/useVoiceInput.js +13 -10
- package/dist/shared/assistant/voice/voiceSession.d.ts +64 -20
- package/dist/shared/assistant/voice/voiceSession.d.ts.map +1 -1
- package/dist/shared/assistant/voice/voiceSession.js +120 -67
- package/dist/shared/components/KeyboardHelpDialogWrapper.d.ts.map +1 -1
- package/dist/shared/components/KeyboardHelpDialogWrapper.js +11 -9
- package/dist/shared/providers/shell/GlobalUiProvider.d.ts +2 -0
- package/dist/shared/providers/shell/GlobalUiProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/GlobalUiProvider.js +4 -1
- package/dist/shared-assistant.js +219 -203
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { assistantTranslationKey as e } from "./i18n.js";
|
|
2
2
|
import { assistantModeFallbackLabel as t } from "./modeCopy.js";
|
|
3
3
|
import { isAssistantModeId as n } from "./modeIds.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
4
|
+
import { WRITE_REPLY_COPY as r } from "./writeReplyBinder.js";
|
|
5
|
+
import { TURN_OUTCOME_COPY as i } from "./turnOutcomeCopy.js";
|
|
6
|
+
import { INCOMPLETE_TURN_NOTICES as a } from "./streamBudget.js";
|
|
7
|
+
import { STAGE_COPY as o, THINKING_PHRASES as s } from "./stageCopy.js";
|
|
8
|
+
import { VOICE_MUTED_LABEL as c, VOICE_THINKING_LABEL as l } from "./voice/voiceStatus.js";
|
|
9
|
+
import { ATTACHMENT_SOURCES as u } from "./attachmentSources.js";
|
|
10
10
|
import { WRITE_PROPOSAL_ERROR_COPY as d } from "./writeProposalErrorCopy.js";
|
|
11
11
|
import { WRITE_PROPOSAL_VOICE_COPY as f } from "./writeProposalVoice.js";
|
|
12
12
|
//#region src/shared/assistant/i18nManifest.ts
|
|
@@ -16,6 +16,70 @@ var p = {
|
|
|
16
16
|
"apiCalls.consentCancel": "Stay in Ask",
|
|
17
17
|
"apiCalls.consentConfirm": "Enable Take action",
|
|
18
18
|
"apiCalls.consentTitle": "Switch to Take action mode?",
|
|
19
|
+
"appControl.ambiguous": "More than one {{what}} matches “{{name}}”: {{options}}. Say which one.",
|
|
20
|
+
"appControl.blockedPermission": "That isn't available to you here.",
|
|
21
|
+
"appControl.blockedVoice": "I can't open that while the voice screen is up. End the voice session, or use the button in the assistant's header.",
|
|
22
|
+
"appControl.dialog.cancel": "Cancel",
|
|
23
|
+
"appControl.dialog.logoutBody": "You'll be signed out of this account on this device.",
|
|
24
|
+
"appControl.dialog.logoutConfirm": "Log out",
|
|
25
|
+
"appControl.dialog.logoutTitle": "Log out?",
|
|
26
|
+
"appControl.dialog.workspaceBody": "You'll switch to {{name}}. The page may reload.",
|
|
27
|
+
"appControl.dialog.workspaceConfirm": "Switch",
|
|
28
|
+
"appControl.dialog.workspaceTitle": "Switch workspace?",
|
|
29
|
+
"appControl.directionAsc": "ascending",
|
|
30
|
+
"appControl.directionDesc": "descending",
|
|
31
|
+
"appControl.entryAlreadyCollapsed": "{{name}} is already collapsed.",
|
|
32
|
+
"appControl.entryAlreadyExpanded": "{{name}} is already expanded.",
|
|
33
|
+
"appControl.entryCollapsed": "Collapsed {{name}}.",
|
|
34
|
+
"appControl.entryExpanded": "Expanded {{name}}.",
|
|
35
|
+
"appControl.failed": "That didn't work. Nothing was changed.",
|
|
36
|
+
"appControl.filterAlready": "{{filter}}: {{option}} is already on.",
|
|
37
|
+
"appControl.filterChoose": "Which {{filter}}? Options: {{options}}.",
|
|
38
|
+
"appControl.filterCleared": "Cleared the {{filter}} filter.",
|
|
39
|
+
"appControl.filterSet": "Filtered by {{filter}}: {{option}}.",
|
|
40
|
+
"appControl.filtersCleared": "Cleared the filters.",
|
|
41
|
+
"appControl.formOpened": "Opened {{name}}. Nothing is saved until you submit it.",
|
|
42
|
+
"appControl.languageAlready": "The app is already in {{language}}.",
|
|
43
|
+
"appControl.languageNotOffered": "{{language}} isn't one of the languages this app offers.",
|
|
44
|
+
"appControl.languageSet": "The app language is now {{language}}. Assistant replies and voice keep their own settings.",
|
|
45
|
+
"appControl.logoutConfirm": "Log out of your account? Nothing changes until you choose Log out on screen.",
|
|
46
|
+
"appControl.logoutDone": "Logging you out.",
|
|
47
|
+
"appControl.notFound.filter": "{{page}} has no filter option called “{{name}}”. Filters: {{options}}.",
|
|
48
|
+
"appControl.notFound.filterOption": "The {{filter}} filter has no option called “{{name}}”. Options: {{options}}.",
|
|
49
|
+
"appControl.notFound.form": "There's no “{{name}}” form to open on {{page}}. Available: {{options}}.",
|
|
50
|
+
"appControl.notFound.sort": "{{page}} can't be sorted by “{{name}}”. Columns: {{options}}.",
|
|
51
|
+
"appControl.notFound.tab": "There's no tab called “{{name}}” on {{page}}. Tabs: {{options}}.",
|
|
52
|
+
"appControl.notFound.workspace": "I couldn't find a workspace called “{{name}}”. You can switch to: {{options}}.",
|
|
53
|
+
"appControl.opened.context": "Opened the workspace switcher.",
|
|
54
|
+
"appControl.opened.conversation": "Started a new conversation.",
|
|
55
|
+
"appControl.opened.help": "Opened help and keyboard shortcuts.",
|
|
56
|
+
"appControl.opened.history": "Opened your conversation history.",
|
|
57
|
+
"appControl.opened.notifications": "Opened your notifications.",
|
|
58
|
+
"appControl.opened.preview": "Opened the AI preview.",
|
|
59
|
+
"appControl.opened.transcript": "Opened the voice transcript.",
|
|
60
|
+
"appControl.searchCleared": "Cleared the search.",
|
|
61
|
+
"appControl.searchOpened": "Opened search.",
|
|
62
|
+
"appControl.searchOpenedFor": "Opened search for “{{query}}”.",
|
|
63
|
+
"appControl.searched": "Searched {{page}} for “{{query}}”.",
|
|
64
|
+
"appControl.sidebarAlreadyCollapsed": "The sidebar is already collapsed.",
|
|
65
|
+
"appControl.sidebarAlreadyExpanded": "The sidebar is already expanded.",
|
|
66
|
+
"appControl.sidebarCollapsed": "Collapsed the sidebar.",
|
|
67
|
+
"appControl.sidebarExpanded": "Expanded the sidebar.",
|
|
68
|
+
"appControl.sortNeedsField": "Say which column to sort by.",
|
|
69
|
+
"appControl.sorted": "Sorted {{page}} by {{field}}, {{direction}}.",
|
|
70
|
+
"appControl.sortedAlready": "{{page}} is already sorted by {{field}}, {{direction}}.",
|
|
71
|
+
"appControl.tabAlready": "You're already on the {{name}} tab.",
|
|
72
|
+
"appControl.tabOpened": "Opened the {{name}} tab.",
|
|
73
|
+
"appControl.what.column": "column",
|
|
74
|
+
"appControl.what.filter": "filter option",
|
|
75
|
+
"appControl.what.form": "form",
|
|
76
|
+
"appControl.what.menu": "menu",
|
|
77
|
+
"appControl.what.tab": "tab",
|
|
78
|
+
"appControl.what.workspace": "workspace",
|
|
79
|
+
"appControl.workspaceAlready": "You're already in {{name}}.",
|
|
80
|
+
"appControl.workspaceConfirm": "Switch to {{name}}? Nothing changes until you choose Switch on screen.",
|
|
81
|
+
"appControl.workspaceNone": "There is no other workspace to switch to.",
|
|
82
|
+
"appControl.workspaceSwitched": "Switching to {{name}}.",
|
|
19
83
|
"attachments.blockedMany": "{{count}} attachments didn't upload. Retry or remove them before sending.",
|
|
20
84
|
"attachments.blockedOne": "{{name}} didn't upload. Retry or remove it before sending.",
|
|
21
85
|
"attachments.empty": "That file is empty.",
|
|
@@ -232,6 +296,10 @@ var p = {
|
|
|
232
296
|
"tool.working": "Working on it…",
|
|
233
297
|
"voice.denied": "Microphone access is blocked. Allow it in your browser settings to dictate.",
|
|
234
298
|
"voice.failed": "Dictation stopped unexpectedly.",
|
|
299
|
+
"voice.graceHint": "How long the assistant waits in silence before it sends what you said. Start talking again and it carries on with the same message.",
|
|
300
|
+
"voice.graceLabel": "Wait after I stop talking",
|
|
301
|
+
"voice.graceOption": "{{seconds}} seconds",
|
|
302
|
+
"voice.graceOptionDefault": "{{seconds}} seconds (default)",
|
|
235
303
|
"voice.languageFollowApp": "Same as interface",
|
|
236
304
|
"voice.languageLabel": "Language you speak to the assistant",
|
|
237
305
|
"voice.languageNotSupported": "This browser cannot recognise spoken {{language}}. Try a different browser, or type instead.",
|
|
@@ -246,6 +314,7 @@ var p = {
|
|
|
246
314
|
"voiceSession.collapse": "Shrink to the compact controller",
|
|
247
315
|
"voiceSession.connecting": "Starting the microphone…",
|
|
248
316
|
"voiceSession.continueInChat": "Continue in chat",
|
|
317
|
+
"voiceSession.correcting": "Stopped that answer — listening to your correction",
|
|
249
318
|
"voiceSession.continuedIntro": "Continued from a voice conversation. You asked about:",
|
|
250
319
|
"voiceSession.continuedMore": "…and {{count}} more",
|
|
251
320
|
"voiceSession.continuedNothing": "Continued from a voice conversation.",
|
|
@@ -255,8 +324,13 @@ var p = {
|
|
|
255
324
|
"voiceSession.endpointGrace": "Still listening — take your time",
|
|
256
325
|
"voiceSession.expand": "Expand the conversation to full screen",
|
|
257
326
|
"voiceSession.expandPanel": "Show the conversation in the panel",
|
|
327
|
+
"voiceSession.holding": "Take your time — tap “I’m done” when you finish",
|
|
328
|
+
"voiceSession.imDone": "I’m done",
|
|
329
|
+
"voiceSession.imDoneHint": "Send what you said now",
|
|
258
330
|
"voiceSession.interrupt": "Stop the assistant and speak",
|
|
259
331
|
"voiceSession.interrupting": "Stopped — go ahead",
|
|
332
|
+
"voiceSession.letMeFinish": "Let me finish",
|
|
333
|
+
"voiceSession.letMeFinishHint": "Pause sending until you tap “I’m done”",
|
|
260
334
|
"voiceSession.listening": "Listening…",
|
|
261
335
|
"voiceSession.micDenied": "Microphone access is blocked. Allow it in your browser settings to talk.",
|
|
262
336
|
"voiceSession.mute": "Turn the microphone off",
|
|
@@ -341,15 +415,15 @@ var p = {
|
|
|
341
415
|
"writeProposal.variablesOmitted": "{{count}} more values not shown",
|
|
342
416
|
"writeProposal.waitForTurn": "You can confirm once the assistant finishes replying."
|
|
343
417
|
}, m = (e) => Object.fromEntries(e.map((e) => [e.key, e.fallback])), h = Object.freeze({
|
|
344
|
-
...m(Object.values(
|
|
345
|
-
...m(
|
|
346
|
-
...m([
|
|
347
|
-
...m(
|
|
418
|
+
...m(Object.values(o)),
|
|
419
|
+
...m(s),
|
|
420
|
+
...m([l, c]),
|
|
421
|
+
...m(a),
|
|
422
|
+
...m(Object.values(i)),
|
|
348
423
|
...m(Object.values(r)),
|
|
349
|
-
...m(Object.values(u)),
|
|
350
424
|
...m(Object.values(d)),
|
|
351
425
|
...m(Object.values(f)),
|
|
352
|
-
...Object.fromEntries(
|
|
426
|
+
...Object.fromEntries(u.map((e) => [e.labelKey, e.labelFallback]))
|
|
353
427
|
}), g = Object.freeze({ "outcome.usageDailyLimitReachedNoTime": "You've reached today's AI assistant limit. Try again tomorrow." }), _ = Object.freeze({
|
|
354
428
|
...p,
|
|
355
429
|
...h,
|
|
@@ -50,6 +50,8 @@ export * from './voice/voiceStageState';
|
|
|
50
50
|
export * from './voice/voiceStatus';
|
|
51
51
|
export * from './voice/rotationClock';
|
|
52
52
|
export * from './voice/voiceSession';
|
|
53
|
+
export * from './voice/handsFree';
|
|
54
|
+
export * from './voice/supersededTurns';
|
|
53
55
|
export * from './voice/speechVoices';
|
|
54
56
|
export * from './voice/voiceTranscript';
|
|
55
57
|
export * from './voice/speakableText';
|
|
@@ -139,6 +141,7 @@ export * from './ui/composer/AssistantLanguageSelector';
|
|
|
139
141
|
export * from './ui/composer/AssistantModeSelector';
|
|
140
142
|
export * from './ui/composer/AssistantVoiceButton';
|
|
141
143
|
export * from './ui/composer/AssistantVoiceSelector';
|
|
144
|
+
export * from './ui/composer/AssistantVoiceGraceSelector';
|
|
142
145
|
export * from './ui/voice/AssistantVoiceOrb';
|
|
143
146
|
export * from './ui/voice/AssistantVoiceSessionButton';
|
|
144
147
|
export * from './ui/voice/VoiceCaption';
|
|
@@ -159,6 +162,8 @@ export * from './ui/AssistantConversationFilters';
|
|
|
159
162
|
export * from './ui/AssistantHistorySearchBox';
|
|
160
163
|
export * from './ui/AssistantDeleteConversationDialog';
|
|
161
164
|
export * from './ui/conversationDeleteDialog';
|
|
165
|
+
export * from './ui/AssistantControlConfirmDialog';
|
|
166
|
+
export * from './ui/controlConfirmDialog';
|
|
162
167
|
export * from './ui/conversationDelete';
|
|
163
168
|
export * from './conversationDeleteCommand';
|
|
164
169
|
export * from './exportConversation';
|
|
@@ -212,6 +217,17 @@ export * from './uiActions/linkContext';
|
|
|
212
217
|
export * from './uiActions/deixis';
|
|
213
218
|
export * from './uiActions/recordNames';
|
|
214
219
|
export * from './uiActions/uiCatalogue';
|
|
220
|
+
export * from './appControls/types';
|
|
221
|
+
export * from './appControls/registry';
|
|
222
|
+
export * from './appControls/useAssistantControl';
|
|
223
|
+
export * from './appControls/snapshot';
|
|
224
|
+
export * from './appControls/grammar';
|
|
225
|
+
export * from './appControls/plan';
|
|
226
|
+
export * from './appControls/copy';
|
|
227
|
+
export * from './appControls/names';
|
|
228
|
+
export * from './appControls/pageAdapters';
|
|
229
|
+
export * from './appControls/languages';
|
|
230
|
+
export * from './appControls/text';
|
|
215
231
|
export * from './turnOutcomeCopy';
|
|
216
232
|
export * from './aiCredits';
|
|
217
233
|
export * from './usageReporting';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/assistant/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAGH,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AAGxB,cAAc,wBAAwB,CAAC;AAKvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAE9C,cAAc,qBAAqB,CAAC;AAGpC,cAAc,uBAAuB,C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|
@@ -17,6 +17,13 @@ export declare function themeCommandCopy(tr: AssistantTr, plan: {
|
|
|
17
17
|
alreadyApplied: boolean;
|
|
18
18
|
mode: ThemeModeValue;
|
|
19
19
|
}, familyRequest: boolean): LocalCommandCopy;
|
|
20
|
+
/**
|
|
21
|
+
* Product words (page labels, a parent's label) as literal markdown TEXT. They
|
|
22
|
+
* come from each product's nav registration and its SEEDED translations, and
|
|
23
|
+
* the reply renders as markdown: an unescaped "[Verify](https://…)" in a label
|
|
24
|
+
* became a live link in the assistant's own voice (review of #270).
|
|
25
|
+
*/
|
|
26
|
+
export declare const markdownText: (text: string) => string;
|
|
20
27
|
export declare function navigationCommandCopy(tr: AssistantTr, page: string, alreadyHere: boolean): LocalCommandCopy;
|
|
21
28
|
/**
|
|
22
29
|
* More than one place has that name: offer each as a link. The links route
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localUiCommandCopy.d.ts","sourceRoot":"","sources":["../../../src/shared/assistant/localUiCommandCopy.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE;;;;;;;GAOG;AACH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,OAAO,CAAC;CACrB;AA8CD,wBAAgB,gBAAgB,CAC9B,EAAE,EAAE,WAAW,EACf,IAAI,EAAE;IAAE,cAAc,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,cAAc,CAAA;CAAE,EACvD,aAAa,EAAE,OAAO,GACrB,gBAAgB,CAiClB;
|
|
1
|
+
{"version":3,"file":"localUiCommandCopy.d.ts","sourceRoot":"","sources":["../../../src/shared/assistant/localUiCommandCopy.ts"],"names":[],"mappings":"AACA,OAAO,KAAK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GAAG,gBAAgB,CAEnF;AAED,oFAAoF;AACpF,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,WAAW,GAAG,gBAAgB,CAErE;AAED,oEAAoE;AACpE,wBAAgB,gBAAgB,CAC9B,EAAE,EAAE,WAAW,EACf,UAAU,EAAE,SAAS,gBAAgB,EAAE,GACtC,gBAAgB,CAQlB;AAED,qDAAqD;AACrD,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,WAAW,GAAG,gBAAgB,CAElE;AA2BD;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,EAAE,EAAE,WAAW,EACf,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,UAAU,EAAE,SAAS,gBAAgB,EAAE,GACtC,gBAAgB,CAWlB;AAED,kDAAkD;AAClD,wBAAgB,gBAAgB,CAC9B,EAAE,EAAE,WAAW,EACf,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,SAAS,gBAAgB,EAAE,GACtC,gBAAgB,CAKlB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,EAAE,EAAE,WAAW,EACf,IAAI,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GACtC,MAAM,CAER"}
|
|
@@ -107,4 +107,4 @@ function j(e, t) {
|
|
|
107
107
|
return e(t.key, t.fallback);
|
|
108
108
|
}
|
|
109
109
|
//#endregion
|
|
110
|
-
export { x as backDoneCopy, c as chooseDestinationCopy, C as chooseLinkedCopy, j as entityNounText, S as linkNotOpenableCopy, s as navigationCommandCopy, b as navigationOutcomeCopy, w as pickFromListCopy, A as recordChoiceCopy, k as recordKindsCopy, i as themeCommandCopy };
|
|
110
|
+
export { x as backDoneCopy, c as chooseDestinationCopy, C as chooseLinkedCopy, j as entityNounText, S as linkNotOpenableCopy, a as markdownText, s as navigationCommandCopy, b as navigationOutcomeCopy, w as pickFromListCopy, A as recordChoiceCopy, k as recordKindsCopy, i as themeCommandCopy };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { AppControlRequest } from './appControls/grammar';
|
|
2
|
+
import { ControlSnapshot } from './appControls/snapshot';
|
|
1
3
|
import { AssistantEntityRoute } from './uiActions/entityRoutes';
|
|
2
4
|
import { NavigationContext, PendingChoice } from './uiActions/linkContext';
|
|
3
5
|
import { AssistantRecordAdapter, RecordRequest } from './uiActions/recordNames';
|
|
@@ -89,6 +91,15 @@ export type LocalUiCommand = {
|
|
|
89
91
|
| {
|
|
90
92
|
kind: "open-record";
|
|
91
93
|
request: RecordRequest;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* ★ BOFF-8060 (app-wide controls): a header, sidebar, language, assistant
|
|
97
|
+
* panel or page control the product REGISTERED a handler for
|
|
98
|
+
* (`appControls/registry.ts`). Never produced without one.
|
|
99
|
+
*/
|
|
100
|
+
| {
|
|
101
|
+
kind: "app-control";
|
|
102
|
+
request: AppControlRequest;
|
|
92
103
|
};
|
|
93
104
|
/**
|
|
94
105
|
* `canonical`, with courtesy words at either end removed, so "Could you switch
|
|
@@ -143,6 +154,11 @@ export interface LocalUiCommandContext {
|
|
|
143
154
|
navigation?: NavigationContext | null;
|
|
144
155
|
/** Skip the named-record grammar (the sentence already went through it once). */
|
|
145
156
|
skipRecords?: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* ★ BOFF-8060: the controls registered right now (`readControlSnapshot`).
|
|
159
|
+
* Absent: no app-control grammar runs, and the matcher is what it was.
|
|
160
|
+
*/
|
|
161
|
+
controls?: ControlSnapshot;
|
|
146
162
|
}
|
|
147
163
|
/**
|
|
148
164
|
* The command this whole utterance is, or null to send it to the model.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localUiCommands.d.ts","sourceRoot":"","sources":["../../../src/shared/assistant/localUiCommands.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;
|
|
1
|
+
{"version":3,"file":"localUiCommands.d.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,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,WAAW,CAAA;CAAE,GACpD;IAAE,cAAc,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,cAAc,CAAA;CAAE,CAOnD;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAapE;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,WAAW,EAAE,gBAAgB,EAC7B,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,SAAS,gBAAgB,EAAE,GACxC,OAAO,CAcT"}
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { navTargetPath as e } from "../navigation/navTargetPath.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { canonical as t } from "./appControls/text.js";
|
|
3
|
+
import { matchAppControl as n } from "./appControls/grammar.js";
|
|
4
|
+
import { isBackRequest as r, isThereRequest as i, parseChoice as a } from "./uiActions/deixis.js";
|
|
5
|
+
import { parseRecordRequest as o } from "./uiActions/recordNames.js";
|
|
4
6
|
//#region src/shared/assistant/localUiCommands.ts
|
|
5
|
-
var
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
function l(e, t = {}) {
|
|
10
|
-
let n = c(e).replace(/\b(?:um+|uh+|erm|er|hmm+)\b/g, " ").replace(/\s+/g, " ").replace(/\b(\w+)(?: \1\b)+/g, "$1").trim();
|
|
7
|
+
var s = /^(?:(?:hey|hi|so|now|and|then|you know|just|actually|basically)\b ?|(?:please|pls|kindly)\b ?|(?:can|could|would|will) (?:you|u)\b(?: please)? ?|i (?:want|would like|d like)(?: you)?(?: to)?\b ?|let s\b ?)/, c = /^(?:(?:hey|hi|so|ok|okay)\W+)*(?:please\W+)?(?:can|could|would|will) (?:you|u)\b/i, l = / (?:please|pls|for me|now|thanks|thank you|right now)$/;
|
|
8
|
+
function u(e, n = {}) {
|
|
9
|
+
let r = t(e).replace(/\b(?:um+|uh+|erm|er|hmm+)\b/g, " ").replace(/\s+/g, " ").replace(/\b(\w+)(?: \1\b)+/g, "$1").trim();
|
|
11
10
|
for (;;) {
|
|
12
|
-
let e =
|
|
13
|
-
if (
|
|
14
|
-
|
|
11
|
+
let e = r.replace(s, "");
|
|
12
|
+
if (n.keepEnding || (e = e.replace(l, "")), e = e.trim(), e === r) return r;
|
|
13
|
+
r = e;
|
|
15
14
|
}
|
|
16
15
|
}
|
|
17
|
-
var
|
|
16
|
+
var d = {
|
|
18
17
|
light: {
|
|
19
18
|
kind: "family",
|
|
20
19
|
family: "light"
|
|
@@ -55,27 +54,27 @@ var u = {
|
|
|
55
54
|
kind: "named",
|
|
56
55
|
theme: "system"
|
|
57
56
|
}
|
|
58
|
-
},
|
|
59
|
-
{ pattern: RegExp(`^(?:${
|
|
60
|
-
{ pattern: RegExp(`^${
|
|
57
|
+
}, f = "(light|dark|forest|ocean|sunset|high contrast|highcontrast|system|device)", p = "(?:(?:the|my) )?(?:(?:app|ui|screen|display|interface|site) )?(?:theme|colou?r scheme|colou?r mode|appearance)", m = "(mode|theme|colou?r scheme|colou?r mode|appearance)", h = "(?:switch|change|set|turn|put|make|flip)", g = [
|
|
58
|
+
{ pattern: RegExp(`^(?:${h}(?: (?:over|back))? (?:to|into) |go (?:back )?to |(?:turn|switch) on |(?:use|enable|activate|apply|try|turn|switch|set) )?(?:(?:the|a) )?${f} ${m}(?: on)?$`) },
|
|
59
|
+
{ pattern: RegExp(`^${h} ${p} (?:to|into|back to) (?:(?:the|a) )?${f}(?: ${m})?$`) },
|
|
61
60
|
{ pattern: /^(?:switch|change|go)(?: back)? to (light|dark)()$/ },
|
|
62
61
|
{
|
|
63
|
-
pattern: RegExp(`^(?:(?:turn|switch) off|disable|deactivate|exit|leave) (?:the )?(light|dark) ${
|
|
62
|
+
pattern: RegExp(`^(?:(?:turn|switch) off|disable|deactivate|exit|leave) (?:the )?(light|dark) ${m}$`),
|
|
64
63
|
invert: !0
|
|
65
64
|
},
|
|
66
65
|
{
|
|
67
|
-
pattern: RegExp(`^(?:(?:turn|switch|set) )?(?:the )?(light|dark) ${
|
|
66
|
+
pattern: RegExp(`^(?:(?:turn|switch|set) )?(?:the )?(light|dark) ${m} off$`),
|
|
68
67
|
invert: !0
|
|
69
68
|
},
|
|
70
69
|
{ pattern: /^(?:set|make|change) (?:the |my )?(?:theme|appearance) (?:to )?(?:follow|match|use) (?:my|the) (device|system|os)()(?: (?:theme|appearance))?$/ },
|
|
71
70
|
{ pattern: /^(?:follow|match|use) (?:my|the) (device|system|os)() (?:theme|appearance)$/ },
|
|
72
71
|
{ pattern: /^(?:turn on|switch on|enable|use|activate|switch to) (?:the )?(high contrast|highcontrast)()$/ }
|
|
73
72
|
];
|
|
74
|
-
function
|
|
75
|
-
for (let { pattern: t, invert: n } of
|
|
73
|
+
function _(e) {
|
|
74
|
+
for (let { pattern: t, invert: n } of g) {
|
|
76
75
|
let r = t.exec(e);
|
|
77
76
|
if (!r) continue;
|
|
78
|
-
let i =
|
|
77
|
+
let i = d[r[1] ?? ""];
|
|
79
78
|
if (i) return i.kind === "named" && i.theme === "system" && r[2] === "mode" ? null : n ? i.kind === "family" ? {
|
|
80
79
|
kind: "family",
|
|
81
80
|
family: i.family === "dark" ? "light" : "dark"
|
|
@@ -83,21 +82,21 @@ function g(e) {
|
|
|
83
82
|
}
|
|
84
83
|
return null;
|
|
85
84
|
}
|
|
86
|
-
var
|
|
87
|
-
function
|
|
88
|
-
let
|
|
85
|
+
var v = /^(?:delete|remove|erase) (?:this|the|my|the current) conversation$/, y = /^(?:(?:(?:go|navigate|take me|bring me|jump|head|get me|move|switch)(?: back| over)?|back) (?:to|too)|open(?: up)?|(?:pull|bring) up|visit|show me)\s+(.+)$/, b = /^(?:the )?(.+) (?:page|screen)$/, x = /(?:^| )(?:tasks?|issues?|tickets?|orders?|invoices?|alerts?|requests?|jobs?|incidents?|bugs?|cases?|deals?|items?|questions?|sessions?|positions?|pull requests?|prs?|work orders?|approvals?|actions?|applications?)$/, S = /^(?:ai|a i|api|a p i|id|data|source|access|banking|graph|search|telemetry|stack|house|field|fields|space|market|mic)$/, C = / (?:page|screen|section|tab)$/;
|
|
86
|
+
function w(e) {
|
|
87
|
+
let n = /* @__PURE__ */ new Map(), r = (e, t) => {
|
|
89
88
|
if (!e) return;
|
|
90
|
-
let r =
|
|
91
|
-
r.some((e) => e.path ===
|
|
89
|
+
let r = n.get(e) ?? [];
|
|
90
|
+
r.some((e) => e.path === t.path) || r.push(t), n.set(e, r);
|
|
92
91
|
};
|
|
93
|
-
for (let
|
|
94
|
-
let e =
|
|
95
|
-
|
|
92
|
+
for (let n of e) {
|
|
93
|
+
let e = t(n.label);
|
|
94
|
+
r(e, n), n.context && r(`${t(n.context)} ${e}`, n), n.group && r(`${t(n.group)} ${e}`, n);
|
|
96
95
|
}
|
|
97
|
-
for (let [e,
|
|
98
|
-
return
|
|
96
|
+
for (let [e, t] of [...n]) for (let n of t) r(`\u0000${e.replace(/ /g, "")}`, n);
|
|
97
|
+
return n;
|
|
99
98
|
}
|
|
100
|
-
var
|
|
99
|
+
var T = new Set([
|
|
101
100
|
"news",
|
|
102
101
|
"series",
|
|
103
102
|
"species",
|
|
@@ -116,18 +115,18 @@ var w = new Set([
|
|
|
116
115
|
"process",
|
|
117
116
|
"progress"
|
|
118
117
|
]);
|
|
119
|
-
function
|
|
118
|
+
function E(e) {
|
|
120
119
|
let t = e.split(" "), n = t.pop() ?? "";
|
|
121
120
|
if (n.length < 3) return [];
|
|
122
121
|
let r = /* @__PURE__ */ new Set();
|
|
123
|
-
return
|
|
122
|
+
return T.has(n) || (/[^aeiou]ies$/.test(n) && n.length > 4 ? r.add(`${n.slice(0, -3)}y`) : /(?:sses|shes|ches|xes|zes)$/.test(n) ? r.add(n.slice(0, -2)) : n.length >= 4 && /s$/.test(n) && !/(?:ss|us|is)$/.test(n) && r.add(n.slice(0, -1))), [...r].map((e) => [...t, e].join(" "));
|
|
124
123
|
}
|
|
125
|
-
function
|
|
126
|
-
let r =
|
|
124
|
+
function D(e, t, n) {
|
|
125
|
+
let r = y.exec(e) ?? b.exec(e);
|
|
127
126
|
if (!r) return null;
|
|
128
|
-
let i = r[1] ?? "", a = e.startsWith("show me "), o = /^open /.test(e), s = i.replace(/^(?:the|my|our) /, ""), c = s.replace(
|
|
129
|
-
if (a && !l || o && s === i && !l && (
|
|
130
|
-
let u =
|
|
127
|
+
let i = r[1] ?? "", a = e.startsWith("show me "), o = /^open /.test(e), s = i.replace(/^(?:the|my|our) /, ""), c = s.replace(C, ""), l = c !== s || b.test(e);
|
|
128
|
+
if (a && !l || o && s === i && !l && (x.test(s) || S.test(s) || /^\w{1,3}$/.test(s))) return null;
|
|
129
|
+
let u = w(t), d = (e) => {
|
|
131
130
|
let t = u.get(e);
|
|
132
131
|
if (t) return {
|
|
133
132
|
key: e,
|
|
@@ -139,7 +138,7 @@ function E(e, t, n) {
|
|
|
139
138
|
list: r
|
|
140
139
|
} : void 0;
|
|
141
140
|
}, f = c === s ? [s] : [s, c], p = f.reduce((e, t) => e ?? d(t), void 0);
|
|
142
|
-
if (!p && n && (p = f.flatMap(
|
|
141
|
+
if (!p && n && (p = f.flatMap(E).reduce((e, t) => e ?? d(t), void 0)), !p || p.list.length === 0) return null;
|
|
143
142
|
let m = p.list;
|
|
144
143
|
return m.length === 1 ? {
|
|
145
144
|
kind: "navigate",
|
|
@@ -150,27 +149,36 @@ function E(e, t, n) {
|
|
|
150
149
|
candidates: m
|
|
151
150
|
};
|
|
152
151
|
}
|
|
153
|
-
var
|
|
154
|
-
function
|
|
152
|
+
var O = (e) => e === void 0 || /^en(?:[-_]|$)/i.test(e.trim());
|
|
153
|
+
function k(e, t, i = {}, a = {}) {
|
|
155
154
|
let s = e.normalize("NFKC").trim();
|
|
156
|
-
if (/[\p{Extended_Pictographic}\p{So}]/u.test(s) || /(?:^|\s)>?[:;=][-'^]?[()[\]/\\|pPdDoO3*@$]+(?=\s|$)/.test(s) || /(?:^|\s)(?:xD|XD|-_-|T_T|<\/?3)(?=\s|$)/.test(s) || /[?¿؟][^\p{L}\p{N}]*$/u.test(s) && !
|
|
157
|
-
let
|
|
158
|
-
if (!
|
|
159
|
-
if (
|
|
160
|
-
let
|
|
161
|
-
if (
|
|
155
|
+
if (/[\p{Extended_Pictographic}\p{So}]/u.test(s) || /(?:^|\s)>?[:;=][-'^]?[()[\]/\\|pPdDoO3*@$]+(?=\s|$)/.test(s) || /(?:^|\s)(?:xD|XD|-_-|T_T|<\/?3)(?=\s|$)/.test(s) || /[?¿؟][^\p{L}\p{N}]*$/u.test(s) && !c.test(s)) return null;
|
|
156
|
+
let l = u(e);
|
|
157
|
+
if (!l || l.length > 80) return null;
|
|
158
|
+
if (v.test(l)) return { kind: "conversation-delete" };
|
|
159
|
+
let d = _(l);
|
|
160
|
+
if (d) return i.themeWords === "mode-only" && /\b(?:theme|appearance|colou?r scheme)\b/.test(l) && !/\b(?:app|ui|interface)\b/.test(l) ? null : {
|
|
162
161
|
kind: "theme",
|
|
163
|
-
request:
|
|
162
|
+
request: d
|
|
164
163
|
};
|
|
165
|
-
if (a.backRunnable &&
|
|
166
|
-
let
|
|
167
|
-
if (p) return p;
|
|
168
|
-
let m = E(l(e, { keepEnding: !0 }), n, d) ?? E(c, n, d), h = f ? M(c, f) : null;
|
|
169
|
-
if (h && m) return N(h, m);
|
|
170
|
-
if (h) return h;
|
|
164
|
+
if (a.backRunnable && r(l)) return { kind: "back" };
|
|
165
|
+
let f = O(i.locale), p = f ? a.navigation ?? null : null, m = p ? M(l, p) : null;
|
|
171
166
|
if (m) return m;
|
|
172
|
-
|
|
173
|
-
|
|
167
|
+
let h = f && a.controls ? n(l, s, a.controls) : null;
|
|
168
|
+
if (h && !h.weak) return {
|
|
169
|
+
kind: "app-control",
|
|
170
|
+
request: h.request
|
|
171
|
+
};
|
|
172
|
+
let g = D(u(e, { keepEnding: !0 }), t, f) ?? D(l, t, f), y = p ? N(l, p) : null;
|
|
173
|
+
if (y && g) return P(y, g);
|
|
174
|
+
if (y) return y;
|
|
175
|
+
if (g) return g;
|
|
176
|
+
if (h) return {
|
|
177
|
+
kind: "app-control",
|
|
178
|
+
request: h.request
|
|
179
|
+
};
|
|
180
|
+
if (!a.skipRecords && f && i.records?.length) {
|
|
181
|
+
let e = o(l, i.records);
|
|
174
182
|
if (e) return {
|
|
175
183
|
kind: "open-record",
|
|
176
184
|
request: e
|
|
@@ -178,28 +186,28 @@ function O(e, n, r = {}, a = {}) {
|
|
|
178
186
|
}
|
|
179
187
|
return null;
|
|
180
188
|
}
|
|
181
|
-
var
|
|
182
|
-
function
|
|
189
|
+
var A = 4, j = (e) => ` ${t(e)} `;
|
|
190
|
+
function M(e, t) {
|
|
183
191
|
let n = t.pendingChoice;
|
|
184
192
|
if (!n) return null;
|
|
185
|
-
let
|
|
186
|
-
if (!
|
|
187
|
-
let
|
|
188
|
-
if (
|
|
193
|
+
let r = a(e);
|
|
194
|
+
if (!r) return null;
|
|
195
|
+
let i = n.candidates;
|
|
196
|
+
if (i === null) return {
|
|
189
197
|
kind: "pick-from-list",
|
|
190
198
|
candidates: null,
|
|
191
199
|
candidateIds: n.candidateIds
|
|
192
200
|
};
|
|
193
201
|
let o;
|
|
194
|
-
if (
|
|
195
|
-
else if (
|
|
202
|
+
if (r.kind === "ordinal") o = i[r.position - 1];
|
|
203
|
+
else if (r.kind === "last") o = i[i.length - 1];
|
|
196
204
|
else {
|
|
197
|
-
let e =
|
|
205
|
+
let e = j(r.context), t = i.filter((t) => t !== null && [t.context, t.group].some((t) => t !== void 0 && j(t).includes(e)));
|
|
198
206
|
o = t.length === 1 ? t[0] : void 0;
|
|
199
207
|
}
|
|
200
208
|
return o === void 0 ? {
|
|
201
209
|
kind: "pick-from-list",
|
|
202
|
-
candidates:
|
|
210
|
+
candidates: i,
|
|
203
211
|
candidateIds: n.candidateIds
|
|
204
212
|
} : o === null ? { kind: "link-not-openable" } : {
|
|
205
213
|
kind: "navigate",
|
|
@@ -207,24 +215,24 @@ function j(e, t) {
|
|
|
207
215
|
via: "choice"
|
|
208
216
|
};
|
|
209
217
|
}
|
|
210
|
-
function
|
|
211
|
-
if (!
|
|
218
|
+
function N(e, t) {
|
|
219
|
+
if (!i(e)) return null;
|
|
212
220
|
if (t.pendingChoice) return {
|
|
213
221
|
kind: "pick-from-list",
|
|
214
222
|
candidates: t.pendingChoice.candidates,
|
|
215
223
|
candidateIds: t.pendingChoice.candidateIds
|
|
216
224
|
};
|
|
217
|
-
let { targets:
|
|
218
|
-
return a ?
|
|
225
|
+
let { targets: n, unresolved: r } = t.links, [a] = n;
|
|
226
|
+
return a ? n.length === 1 ? {
|
|
219
227
|
kind: "navigate",
|
|
220
228
|
destination: a,
|
|
221
229
|
via: "link"
|
|
222
230
|
} : {
|
|
223
231
|
kind: "choose-linked",
|
|
224
|
-
candidates:
|
|
225
|
-
} :
|
|
232
|
+
candidates: n.slice(0, 4)
|
|
233
|
+
} : r > 0 ? { kind: "link-not-openable" } : null;
|
|
226
234
|
}
|
|
227
|
-
function
|
|
235
|
+
function P(e, t) {
|
|
228
236
|
let n = (e) => e.kind === "navigate" ? [e.destination] : e.kind === "choose-linked" || e.kind === "choose-destination" ? e.candidates : null, r = n(e), i = n(t);
|
|
229
237
|
if (!r || !i) return t;
|
|
230
238
|
let a = [];
|
|
@@ -239,11 +247,11 @@ function N(e, t) {
|
|
|
239
247
|
candidates: a.slice(0, 4)
|
|
240
248
|
};
|
|
241
249
|
}
|
|
242
|
-
var
|
|
243
|
-
function
|
|
250
|
+
var F = /^__nav_more__:/;
|
|
251
|
+
function I(t, n) {
|
|
244
252
|
let r = [];
|
|
245
253
|
for (let i of t) {
|
|
246
|
-
let t =
|
|
254
|
+
let t = F.test(i.id), a = e(i);
|
|
247
255
|
!t && i.path.startsWith("/") && !i.path.startsWith("//") && a.startsWith("/") && !a.startsWith("//") && i.label.trim() && r.push({
|
|
248
256
|
id: i.id,
|
|
249
257
|
label: i.label,
|
|
@@ -251,11 +259,11 @@ function F(t, n) {
|
|
|
251
259
|
...a === i.path ? {} : { aliases: [i.path] },
|
|
252
260
|
...n ? { context: n } : {},
|
|
253
261
|
...i.group ? { group: i.group } : {}
|
|
254
|
-
}), i.children?.length && r.push(...
|
|
262
|
+
}), i.children?.length && r.push(...I(i.children, t ? n : i.label));
|
|
255
263
|
}
|
|
256
264
|
return r;
|
|
257
265
|
}
|
|
258
|
-
function
|
|
266
|
+
function L(e, t) {
|
|
259
267
|
return e.kind === "family" ? {
|
|
260
268
|
alreadyApplied: t.resolvedTheme === e.family,
|
|
261
269
|
mode: e.family
|
|
@@ -264,7 +272,7 @@ function I(e, t) {
|
|
|
264
272
|
mode: e.theme
|
|
265
273
|
};
|
|
266
274
|
}
|
|
267
|
-
function
|
|
275
|
+
function R(e, t) {
|
|
268
276
|
let n = (e) => {
|
|
269
277
|
let [t = ""] = e.split("#"), [n = "", r = ""] = t.split("?"), i = n.length > 1 ? n.replace(/\/+$/, "") : n, a = new URLSearchParams(r);
|
|
270
278
|
return a.sort(), {
|
|
@@ -274,11 +282,11 @@ function L(e, t) {
|
|
|
274
282
|
}, r = n(e), i = n(t);
|
|
275
283
|
return r.pathname === i.pathname ? r.query === "" || r.query === i.query : !1;
|
|
276
284
|
}
|
|
277
|
-
function
|
|
278
|
-
let r = [e.path, ...e.aliases ?? []].find((e) =>
|
|
279
|
-
return r === void 0 ? !1 : r.includes("?") ? !0 : !n.some((e) => e.path !== r && e.path.includes("?") &&
|
|
285
|
+
function z(e, t, n) {
|
|
286
|
+
let r = [e.path, ...e.aliases ?? []].find((e) => R(e, t));
|
|
287
|
+
return r === void 0 ? !1 : r.includes("?") ? !0 : !n.some((e) => e.path !== r && e.path.includes("?") && B(e.path, t));
|
|
280
288
|
}
|
|
281
|
-
function
|
|
289
|
+
function B(e, t) {
|
|
282
290
|
let n = (e) => {
|
|
283
291
|
let [t = ""] = e.split("#"), [n = "", r = ""] = t.split("?");
|
|
284
292
|
return {
|
|
@@ -291,4 +299,4 @@ function z(e, t) {
|
|
|
291
299
|
return !0;
|
|
292
300
|
}
|
|
293
301
|
//#endregion
|
|
294
|
-
export {
|
|
302
|
+
export { A as LINKED_CHOICE_MAX, z as isAlreadyThere, R as isCurrentPath, k as matchLocalUiCommand, I as navDestinations, u as normaliseUtterance, L as planThemeChange, E as singularVariants };
|