@kortix/ui 0.16.3 → 0.16.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_vendor/kortix-shared.js +1 -4
- package/dist/customize/sections/view/review-center-connected.js +64 -71
- package/dist/customize/sections/view/secret-delivery.d.ts +11 -20
- package/dist/customize/sections/view/secret-delivery.js +20 -29
- package/dist/customize/sections/view/secrets-view.js +9 -24
- package/dist/customize/settings/rail-copy-context.d.ts +2 -0
- package/dist/customize/settings/rail-copy-context.js +2 -0
- package/dist/customize/settings/tabs/chrome-connections-tab.js +1 -1
- package/dist/files/renderers/show-content-renderer.js +3 -1
- package/dist/i18n/en.d.ts +130 -22
- package/dist/i18n/en.js +142 -34
- package/dist/i18n/ui-catalog/product-catalog-translation-keys.generated.js +2 -0
- package/dist/internal/auth/auth-card-shell.d.ts +24 -3
- package/dist/internal/auth/auth-card-shell.js +15 -8
- package/dist/internal/auth/auth-primitives.d.ts +15 -2
- package/dist/internal/auth/auth-primitives.js +22 -5
- package/dist/internal/chrome/chrome-connect.d.ts +3 -5
- package/dist/internal/chrome/chrome-connect.js +7 -10
- package/dist/internal/chrome/extension.d.ts +1 -8
- package/dist/internal/chrome/extension.js +1 -8
- package/dist/internal/chrome/use-chrome-offered.d.ts +6 -12
- package/dist/internal/chrome/use-chrome-offered.js +13 -15
- package/dist/internal/components/agent-mark.d.ts +2 -1
- package/dist/internal/components/agent-mark.js +14 -3
- package/dist/internal/hooks/use-review-session-summary.d.ts +1 -1
- package/dist/internal/hooks/use-review-session-summary.js +1 -1
- package/dist/internal/layout/project-nav-row.d.ts +3 -1
- package/dist/internal/layout/project-nav-row.js +2 -2
- package/dist/internal/layout/project-page-header.js +5 -4
- package/dist/internal/stores/user-preferences-store.d.ts +17 -0
- package/dist/internal/stores/user-preferences-store.js +5 -0
- package/dist/markdown/setup-links/secret-intake-form.d.ts +4 -1
- package/dist/markdown/setup-links/secret-intake-form.js +60 -16
- package/dist/markdown/setup-links/setup-link-button.js +6 -1
- package/dist/primitives/color-picker.d.ts +19 -0
- package/dist/primitives/color-picker.js +27 -0
- package/dist/primitives/faded-scroll-area.js +4 -0
- package/dist/primitives/glyph-picker.d.ts +11 -0
- package/dist/primitives/glyph-picker.js +10 -6
- package/dist/primitives/gradient-wallpaper-gl.d.ts +61 -0
- package/dist/primitives/gradient-wallpaper-gl.js +446 -0
- package/dist/primitives/gradient-wallpaper.d.ts +20 -0
- package/dist/primitives/gradient-wallpaper.js +242 -0
- package/dist/primitives/resizable.d.ts +1 -1
- package/dist/session/agents/agent-hover-card.d.ts +26 -0
- package/dist/session/agents/agent-hover-card.js +70 -0
- package/dist/session/agents/agent-strip.js +33 -7
- package/dist/session/agents/agent-surface.d.ts +26 -1
- package/dist/session/agents/agent-surface.js +57 -6
- package/dist/session/agents/held-messages.js +2 -2
- package/dist/session/agents/subagent-dialog-content.js +2 -2
- package/dist/session/composer/ComposerCard.js +4 -4
- package/dist/session/composer/composer-toolbar.d.ts +8 -1
- package/dist/session/composer/composer-toolbar.js +2 -2
- package/dist/session/composer/dictation/dictation-control.d.ts +10 -0
- package/dist/session/composer/dictation/dictation-control.js +28 -0
- package/dist/session/composer/dictation/dictation-state.d.ts +26 -0
- package/dist/session/composer/dictation/dictation-state.js +71 -0
- package/dist/session/composer/dictation/recorder.d.ts +30 -0
- package/dist/session/composer/dictation/recorder.js +129 -0
- package/dist/session/composer/dictation/use-composer-dictation.d.ts +25 -0
- package/dist/session/composer/dictation/use-composer-dictation.js +218 -0
- package/dist/session/composer/queued-prompt-list.js +5 -1
- package/dist/session/panel/easy/apps-card.js +3 -10
- package/dist/session/panel/easy/background-tasks-card.d.ts +23 -0
- package/dist/session/panel/easy/background-tasks-card.js +119 -0
- package/dist/session/panel/easy/change-requests-card.js +1 -1
- package/dist/session/panel/easy/changes-card.js +4 -6
- package/dist/session/panel/easy/context-card.js +8 -9
- package/dist/session/panel/easy/context-meter.d.ts +2 -0
- package/dist/session/panel/easy/context-meter.js +18 -4
- package/dist/session/panel/easy/detail-view.js +7 -4
- package/dist/session/panel/easy/easy-panel-logic.d.ts +4 -15
- package/dist/session/panel/easy/easy-panel-logic.js +4 -17
- package/dist/session/panel/easy/easy-panel.js +5 -4
- package/dist/session/panel/easy/outputs-card.d.ts +1 -13
- package/dist/session/panel/easy/outputs-card.js +14 -40
- package/dist/session/panel/easy/panel-card.d.ts +13 -40
- package/dist/session/panel/easy/panel-card.js +17 -55
- package/dist/session/panel/easy/plan-card.js +4 -7
- package/dist/session/panel/model-switch-event.d.ts +2 -2
- package/dist/session/panel/model-switch-event.js +13 -9
- package/dist/session/panel/session-panel-provider.d.ts +2 -1
- package/dist/session/panel/session-panel-provider.js +3 -3
- package/dist/session/panel/shared/collect-tool-parts.js +2 -2
- package/dist/session/panel/shared/derive-panels.js +14 -1
- package/dist/session/panel/shared/use-panel-handoffs.d.ts +0 -1
- package/dist/session/panel/shared/use-panel-handoffs.js +26 -17
- package/dist/session/thread/chat-minimap.js +7 -1
- package/dist/session/thread/session-body.js +1 -1
- package/dist/session/thread/session-chat.js +59 -15
- package/dist/session/tool/shared/infrastructure-contexts.d.ts +7 -0
- package/dist/session/tool/shared/infrastructure-contexts.js +9 -0
- package/dist/session/tool/shared/infrastructure-row-header.js +4 -1
- package/dist/session/tool/shared/infrastructure-rows.js +19 -19
- package/dist/session/tool/show-group-renderer.d.ts +5 -5
- package/dist/session/tool/show-group-renderer.js +7 -4
- package/dist/session/tool/tool-part-renderer.js +25 -9
- package/dist/session/tool/tool-renderers.d.ts +1 -1
- package/dist/session/tool/tool-renderers.js +1 -1
- package/dist/session/tool/tools/bash-tool.js +3 -2
- package/dist/session/tool/tools/codemode-tool.d.ts +15 -0
- package/dist/session/tool/tools/codemode-tool.js +54 -2
- package/dist/session/tool/tools/kortix-action-tool.d.ts +1 -0
- package/dist/session/tool/tools/kortix-action-tool.js +19 -8
- package/dist/session/tool/tools/multi-agent-tool-bodies.d.ts +8 -1
- package/dist/session/tool/tools/multi-agent-tool-bodies.js +76 -10
- package/dist/session/tool/tools/task-tool.js +17 -5
- package/dist/session/turn/peer-message-row.d.ts +3 -0
- package/dist/session/turn/peer-message-row.js +8 -2
- package/dist/session/turn/subagent-notice-row.js +5 -3
- package/dist/styles.css +1 -1
- package/dist/test-utils/intl.d.ts +130 -22
- package/dist/theme/index.d.ts +2 -1
- package/dist/theme/index.js +2 -1
- package/dist/theme/wallpaper-gradients.d.ts +106 -0
- package/dist/theme/wallpaper-gradients.js +347 -0
- package/dist/theme/wallpapers.d.ts +23 -3
- package/dist/theme/wallpapers.js +53 -29
- package/dist/workspace/admin/project-admin-dashboard.js +1 -1
- package/dist/workspace/layout/project-home.js +1 -1
- package/dist/workspace/new/use-create-workspace.d.ts +5 -3
- package/dist/workspace/new/use-create-workspace.js +1 -1
- package/dist/workspace/projects/modal/project-icon-field.d.ts +3 -1
- package/dist/workspace/projects/modal/project-icon-field.js +3 -3
- package/dist/workspace/review/review-center.d.ts +9 -1
- package/dist/workspace/review/review-center.js +107 -14
- package/dist/workspace/review/review-detail.d.ts +19 -0
- package/dist/workspace/review/review-detail.js +18 -3
- package/dist/workspace/review/review-swipe-deck.d.ts +27 -0
- package/dist/workspace/review/review-swipe-deck.js +304 -0
- package/dist/workspace/review/review-swipe.d.ts +17 -0
- package/dist/workspace/review/review-swipe.js +10 -0
- package/dist/workspace/session-spaces/space-picker.js +3 -3
- package/dist/workspace/setup/setup-banner-snooze.d.ts +10 -0
- package/dist/workspace/setup/setup-banner-snooze.js +44 -0
- package/dist/workspace/setup/setup-banner.js +19 -36
- package/dist/workspace/setup/setup-steps.d.ts +0 -5
- package/dist/workspace/setup/setup-steps.js +0 -7
- package/dist/workspace/setup/workspace-setup-modal.d.ts +39 -0
- package/dist/workspace/setup/workspace-setup-modal.js +202 -0
- package/dist/workspace/sidebar/footer/project-review-nav.d.ts +13 -0
- package/dist/workspace/sidebar/footer/project-review-nav.js +29 -0
- package/dist/workspace/sidebar/project-nav-items.d.ts +3 -1
- package/dist/workspace/sidebar/project-nav-items.js +24 -5
- package/dist/workspace/sidebar/project-session-list.js +2 -1
- package/dist/workspace/sidebar/project-sidebar.js +6 -5
- package/dist/workspace/sidebar/project-spaces-nav.js +3 -10
- package/dist/workspace/sidebar/sidebar-more-group.js +1 -1
- package/package.json +14 -10
- package/skills/kortix-ui/SKILL.md +1 -1
- package/skills/kortix-ui/references/modules.md +3 -1
- package/dist/primitives/toast-clearance.d.ts +0 -36
- package/dist/primitives/toast-clearance.js +0 -94
- package/dist/workspace/setup/workspace-setup-page.d.ts +0 -10
- package/dist/workspace/setup/workspace-setup-page.js +0 -91
|
@@ -362,6 +362,8 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
362
362
|
backToApp: string;
|
|
363
363
|
close: string;
|
|
364
364
|
docs: string;
|
|
365
|
+
search: string;
|
|
366
|
+
searchNoResults: string;
|
|
365
367
|
groups: {
|
|
366
368
|
workspace: string;
|
|
367
369
|
personal: string;
|
|
@@ -801,10 +803,6 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
801
803
|
permission: string;
|
|
802
804
|
updateFailed: string;
|
|
803
805
|
flags: {
|
|
804
|
-
secrets_egress: {
|
|
805
|
-
name: string;
|
|
806
|
-
description: string;
|
|
807
|
-
};
|
|
808
806
|
reminders: {
|
|
809
807
|
name: string;
|
|
810
808
|
description: string;
|
|
@@ -821,10 +819,6 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
821
819
|
name: string;
|
|
822
820
|
description: string;
|
|
823
821
|
};
|
|
824
|
-
workspace_volume: {
|
|
825
|
-
name: string;
|
|
826
|
-
description: string;
|
|
827
|
-
};
|
|
828
822
|
email_channel: {
|
|
829
823
|
name: string;
|
|
830
824
|
description: string;
|
|
@@ -837,10 +831,6 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
837
831
|
name: string;
|
|
838
832
|
description: string;
|
|
839
833
|
};
|
|
840
|
-
chrome: {
|
|
841
|
-
name: string;
|
|
842
|
-
description: string;
|
|
843
|
-
};
|
|
844
834
|
agent_teams: {
|
|
845
835
|
name: string;
|
|
846
836
|
description: string;
|
|
@@ -881,6 +871,10 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
881
871
|
name: string;
|
|
882
872
|
description: string;
|
|
883
873
|
};
|
|
874
|
+
review_swipe: {
|
|
875
|
+
name: string;
|
|
876
|
+
description: string;
|
|
877
|
+
};
|
|
884
878
|
};
|
|
885
879
|
channelsSwitch: {
|
|
886
880
|
onTitle: string;
|
|
@@ -1636,6 +1630,10 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
1636
1630
|
panel: {
|
|
1637
1631
|
outputNew: string;
|
|
1638
1632
|
outputUpdated: string;
|
|
1633
|
+
backgroundTasks: string;
|
|
1634
|
+
finished: string;
|
|
1635
|
+
finishedCount: string;
|
|
1636
|
+
running: string;
|
|
1639
1637
|
resizePane: string;
|
|
1640
1638
|
};
|
|
1641
1639
|
};
|
|
@@ -1746,6 +1744,7 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
1746
1744
|
hintCompact: string;
|
|
1747
1745
|
myKortixRoutes: string;
|
|
1748
1746
|
chatInputReset: string;
|
|
1747
|
+
queuedDisconnected: string;
|
|
1749
1748
|
};
|
|
1750
1749
|
auth: {
|
|
1751
1750
|
haveReferralCode: string;
|
|
@@ -1942,6 +1941,13 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
1942
1941
|
errorBody: string;
|
|
1943
1942
|
signIn: string;
|
|
1944
1943
|
};
|
|
1944
|
+
story: {
|
|
1945
|
+
label: string;
|
|
1946
|
+
outcome: string;
|
|
1947
|
+
repo: string;
|
|
1948
|
+
approve: string;
|
|
1949
|
+
worksWith: string;
|
|
1950
|
+
};
|
|
1945
1951
|
};
|
|
1946
1952
|
tools: {
|
|
1947
1953
|
executeCommand: string;
|
|
@@ -2177,6 +2183,17 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
2177
2183
|
failed: string;
|
|
2178
2184
|
stopped: string;
|
|
2179
2185
|
};
|
|
2186
|
+
card: {
|
|
2187
|
+
session: string;
|
|
2188
|
+
copyId: string;
|
|
2189
|
+
openNewTab: string;
|
|
2190
|
+
model: string;
|
|
2191
|
+
runsAs: string;
|
|
2192
|
+
inline: string;
|
|
2193
|
+
};
|
|
2194
|
+
notStarted: string;
|
|
2195
|
+
notStartedSentence: string;
|
|
2196
|
+
policyBlocked: string;
|
|
2180
2197
|
};
|
|
2181
2198
|
};
|
|
2182
2199
|
agentScope: {
|
|
@@ -2787,6 +2804,7 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
2787
2804
|
noModelAddProviderKey: string;
|
|
2788
2805
|
noModelUpgradePlan: string;
|
|
2789
2806
|
text03217276a5f1: string;
|
|
2807
|
+
text041fb4e77d8e: string;
|
|
2790
2808
|
text0b6a47661327: string;
|
|
2791
2809
|
text1a9030082a20: string;
|
|
2792
2810
|
text38e64d6a8162: string;
|
|
@@ -2907,6 +2925,7 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
2907
2925
|
text0af465ef42c0: string;
|
|
2908
2926
|
text0b1bdec38bf0: string;
|
|
2909
2927
|
text0b348466332c: string;
|
|
2928
|
+
text93d50ea93ca0: string;
|
|
2910
2929
|
textf83916135509: string;
|
|
2911
2930
|
texta251c18205f1: string;
|
|
2912
2931
|
text64cd989efc14: string;
|
|
@@ -5545,7 +5564,6 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
5545
5564
|
texte595f45dc6c9: string;
|
|
5546
5565
|
texte5974d3936df: string;
|
|
5547
5566
|
texte5985e84210e: string;
|
|
5548
|
-
texte5a718af362a: string;
|
|
5549
5567
|
texte5c253036018: string;
|
|
5550
5568
|
texte5dbdffb8816: string;
|
|
5551
5569
|
texte5ee1e7e84aa: string;
|
|
@@ -6439,6 +6457,16 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
6439
6457
|
grant: string;
|
|
6440
6458
|
allowlist: string;
|
|
6441
6459
|
};
|
|
6460
|
+
secretIntakeLogin: {
|
|
6461
|
+
delivery: string;
|
|
6462
|
+
username: string;
|
|
6463
|
+
password: string;
|
|
6464
|
+
missing: string;
|
|
6465
|
+
savedTitle: string;
|
|
6466
|
+
savedDescription: string;
|
|
6467
|
+
modalTitle: string;
|
|
6468
|
+
modalDescription: string;
|
|
6469
|
+
};
|
|
6442
6470
|
sessionEmbed: {
|
|
6443
6471
|
sectionTitle: string;
|
|
6444
6472
|
sectionDescription: string;
|
|
@@ -6482,6 +6510,37 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
6482
6510
|
emptyTitle: string;
|
|
6483
6511
|
emptyDescription: string;
|
|
6484
6512
|
};
|
|
6513
|
+
reviewDeck: {
|
|
6514
|
+
label: string;
|
|
6515
|
+
remaining: string;
|
|
6516
|
+
merge: string;
|
|
6517
|
+
close: string;
|
|
6518
|
+
approve: string;
|
|
6519
|
+
deny: string;
|
|
6520
|
+
dismiss: string;
|
|
6521
|
+
yes: string;
|
|
6522
|
+
no: string;
|
|
6523
|
+
skip: string;
|
|
6524
|
+
open: string;
|
|
6525
|
+
undo: string;
|
|
6526
|
+
staged: string;
|
|
6527
|
+
needsChoice: string;
|
|
6528
|
+
noVerdict: string;
|
|
6529
|
+
emptyTitle: string;
|
|
6530
|
+
emptyDescription: string;
|
|
6531
|
+
highRisk: string;
|
|
6532
|
+
files: string;
|
|
6533
|
+
conflicts: string;
|
|
6534
|
+
items: string;
|
|
6535
|
+
showCards: string;
|
|
6536
|
+
showList: string;
|
|
6537
|
+
sendBack: string;
|
|
6538
|
+
whatShouldChange: string;
|
|
6539
|
+
sendToAgent: string;
|
|
6540
|
+
cancel: string;
|
|
6541
|
+
reviews: string;
|
|
6542
|
+
questions: string;
|
|
6543
|
+
};
|
|
6485
6544
|
};
|
|
6486
6545
|
commandPalette: {
|
|
6487
6546
|
title: string;
|
|
@@ -7335,7 +7394,6 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
7335
7394
|
title: string;
|
|
7336
7395
|
description: string;
|
|
7337
7396
|
done: string;
|
|
7338
|
-
descriptionUnlisted: string;
|
|
7339
7397
|
};
|
|
7340
7398
|
connect: {
|
|
7341
7399
|
title: string;
|
|
@@ -7389,7 +7447,6 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
7389
7447
|
control: string;
|
|
7390
7448
|
own: string;
|
|
7391
7449
|
};
|
|
7392
|
-
howToInstall: string;
|
|
7393
7450
|
copyLink: string;
|
|
7394
7451
|
linkCopied: string;
|
|
7395
7452
|
copyFailed: string;
|
|
@@ -8495,6 +8552,32 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
8495
8552
|
};
|
|
8496
8553
|
};
|
|
8497
8554
|
artifacts: {
|
|
8555
|
+
folderIcon: string;
|
|
8556
|
+
docCreateFailed: string;
|
|
8557
|
+
newFolder: string;
|
|
8558
|
+
editFolder: string;
|
|
8559
|
+
folderName: string;
|
|
8560
|
+
folderCreateIn: string;
|
|
8561
|
+
folderSaved: string;
|
|
8562
|
+
folderCreated: string;
|
|
8563
|
+
folderSaveFailed: string;
|
|
8564
|
+
saveFolder: string;
|
|
8565
|
+
createFolder: string;
|
|
8566
|
+
folderActions: string;
|
|
8567
|
+
deleteFolder: string;
|
|
8568
|
+
deleteFolderTitle: string;
|
|
8569
|
+
deleteFolderHint: string;
|
|
8570
|
+
folderDeleted: string;
|
|
8571
|
+
folderDeleteFailed: string;
|
|
8572
|
+
folderNavigation: string;
|
|
8573
|
+
folderPathMore: string;
|
|
8574
|
+
folderUnavailable: string;
|
|
8575
|
+
folderLoadFailed: string;
|
|
8576
|
+
moveToFolder: string;
|
|
8577
|
+
movedToFolder: string;
|
|
8578
|
+
emptyUnfiled: string;
|
|
8579
|
+
emptyFolder: string;
|
|
8580
|
+
folderRoot: string;
|
|
8498
8581
|
title: string;
|
|
8499
8582
|
type: {
|
|
8500
8583
|
doc: string;
|
|
@@ -9592,6 +9675,25 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
9592
9675
|
turnNote: string;
|
|
9593
9676
|
close: string;
|
|
9594
9677
|
};
|
|
9678
|
+
dictation: {
|
|
9679
|
+
start: string;
|
|
9680
|
+
price: string;
|
|
9681
|
+
recording: string;
|
|
9682
|
+
discard: string;
|
|
9683
|
+
finish: string;
|
|
9684
|
+
transcribing: string;
|
|
9685
|
+
nothingHeard: string;
|
|
9686
|
+
retry: string;
|
|
9687
|
+
failed: string;
|
|
9688
|
+
busy: string;
|
|
9689
|
+
unavailable: string;
|
|
9690
|
+
limitReached: string;
|
|
9691
|
+
micDenied: string;
|
|
9692
|
+
micDeniedDesktop: string;
|
|
9693
|
+
micMissing: string;
|
|
9694
|
+
micBusy: string;
|
|
9695
|
+
micUnsupported: string;
|
|
9696
|
+
};
|
|
9595
9697
|
agentCapabilities: {
|
|
9596
9698
|
skillsTitle: string;
|
|
9597
9699
|
skillsDescription: string;
|
|
@@ -9777,6 +9879,7 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
9777
9879
|
};
|
|
9778
9880
|
workingFor: string;
|
|
9779
9881
|
runsAs: string;
|
|
9882
|
+
stateCount: string;
|
|
9780
9883
|
teamRole: string;
|
|
9781
9884
|
attention: {
|
|
9782
9885
|
question: string;
|
|
@@ -10622,27 +10725,32 @@ export declare const testUiTranslator: import("use-intl")._Translator<{
|
|
|
10622
10725
|
};
|
|
10623
10726
|
workspaceSetup: {
|
|
10624
10727
|
title: string;
|
|
10625
|
-
|
|
10626
|
-
|
|
10728
|
+
subtitle: string;
|
|
10729
|
+
progress: string;
|
|
10730
|
+
liveNote: string;
|
|
10731
|
+
later: string;
|
|
10627
10732
|
tryAgain: string;
|
|
10628
10733
|
loadFailed: string;
|
|
10629
10734
|
emptyTitle: string;
|
|
10630
10735
|
emptyDescription: string;
|
|
10631
|
-
openWorkspace: string;
|
|
10632
10736
|
completeTitle: string;
|
|
10633
10737
|
completeDescription: string;
|
|
10634
10738
|
slackName: string;
|
|
10635
|
-
|
|
10636
|
-
|
|
10637
|
-
kindSlack: string;
|
|
10739
|
+
sectionOpen: string;
|
|
10740
|
+
doneSummary: string;
|
|
10638
10741
|
done: string;
|
|
10639
10742
|
connect: string;
|
|
10743
|
+
connectShort: string;
|
|
10640
10744
|
reconnect: string;
|
|
10745
|
+
reconnectShort: string;
|
|
10641
10746
|
setSecret: string;
|
|
10747
|
+
setShort: string;
|
|
10642
10748
|
addSlack: string;
|
|
10643
10749
|
connectSlack: string;
|
|
10644
10750
|
bannerTitle: string;
|
|
10645
|
-
|
|
10751
|
+
bannerNamed: string;
|
|
10752
|
+
bannerStart: string;
|
|
10753
|
+
bannerContinue: string;
|
|
10646
10754
|
};
|
|
10647
10755
|
sessionSpaces: {
|
|
10648
10756
|
title: string;
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { THEME_COLOR_VARS, themeToCss, themeToCssVars, type KortixTheme, type ThemeColor, type ThemeColors, type ThemeCssVars, type ThemeDurationStep, type ThemeEasing, type ThemeShadowStep, type ThemeTextStep, } from './theme.js';
|
|
2
2
|
export { ThemeScope, type ThemeScopeProps } from './theme-scope.js';
|
|
3
|
-
export { DEFAULT_WALLPAPER_ID, WALLPAPERS, getWallpaperById, type Wallpaper, } from './wallpapers.js';
|
|
3
|
+
export { DEFAULT_WALLPAPER_ID, WALLPAPERS, getSelectableWallpaper, getWallpaperById, type PickerWallpaper, type PickerWallpaperId, type Wallpaper, } from './wallpapers.js';
|
|
4
|
+
export { CUSTOM_COLOR_PRESETS, CUSTOM_PALETTES, DEFAULT_CUSTOM_WALLPAPER, DEFAULT_WALLPAPER_OPACITY, GRADIENT_FINISHES, GRADIENT_MAX_COLORS, GRADIENT_MIN_COLORS, GRADIENT_PATTERNS, GRADIENT_PRESETS, OPACITY_LIMITS, customGradientConfig, gradientColors, nextCustomColor, normalizeCustomWallpaper, normalizePresetOverrides, presetWithOverride, randomCustomColors, randomCustomWallpaper, type CustomWallpaperConfig, type GradientConfig, type GradientFinish, type GradientPattern, type GradientWallpaperId, type PresetOverride, type PresetOverrides, } from './wallpaper-gradients.js';
|
package/dist/theme/index.js
CHANGED
|
@@ -2,4 +2,5 @@
|
|
|
2
2
|
// ThemeScope is a client component.
|
|
3
3
|
export { THEME_COLOR_VARS, themeToCss, themeToCssVars, } from './theme.js';
|
|
4
4
|
export { ThemeScope } from './theme-scope.js';
|
|
5
|
-
export { DEFAULT_WALLPAPER_ID, WALLPAPERS, getWallpaperById, } from './wallpapers.js';
|
|
5
|
+
export { DEFAULT_WALLPAPER_ID, WALLPAPERS, getSelectableWallpaper, getWallpaperById, } from './wallpapers.js';
|
|
6
|
+
export { CUSTOM_COLOR_PRESETS, CUSTOM_PALETTES, DEFAULT_CUSTOM_WALLPAPER, DEFAULT_WALLPAPER_OPACITY, GRADIENT_FINISHES, GRADIENT_MAX_COLORS, GRADIENT_MIN_COLORS, GRADIENT_PATTERNS, GRADIENT_PRESETS, OPACITY_LIMITS, customGradientConfig, gradientColors, nextCustomColor, normalizeCustomWallpaper, normalizePresetOverrides, presetWithOverride, randomCustomColors, randomCustomWallpaper, } from './wallpaper-gradients.js';
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gradient wallpapers: the data half. One WebGL fragment shader
|
|
3
|
+
* (`primitives/gradient-wallpaper-gl.ts`) draws every colored wallpaper and
|
|
4
|
+
* the user's custom one. A wallpaper is a `GradientConfig`: a pattern (where
|
|
5
|
+
* the color sits), a finish (ordered dither or film grain) and a palette.
|
|
6
|
+
*
|
|
7
|
+
* This file holds no DOM or WebGL code, so the presets and the custom-config
|
|
8
|
+
* normalizer are unit-testable and safe to import on the server.
|
|
9
|
+
*/
|
|
10
|
+
/** Where the color sits on the page. */
|
|
11
|
+
export declare const GRADIENT_PATTERNS: readonly ["bloom", "beam", "sheet", "bands", "horizon", "arc", "mesh", "clouds"];
|
|
12
|
+
export type GradientPattern = (typeof GRADIENT_PATTERNS)[number];
|
|
13
|
+
/** `dither` = ordered dots on a pixel grid; `grain` = smooth with film grain. */
|
|
14
|
+
export declare const GRADIENT_FINISHES: readonly ["dither", "grain"];
|
|
15
|
+
export type GradientFinish = (typeof GRADIENT_FINISHES)[number];
|
|
16
|
+
/**
|
|
17
|
+
* Ready-made palettes for the Custom wallpaper's Palette picker, warm to cool
|
|
18
|
+
* and then neutral. Each runs from the faint edge of the shape to its core,
|
|
19
|
+
* like a preset's `colors`.
|
|
20
|
+
*/
|
|
21
|
+
export declare const CUSTOM_PALETTES: readonly (readonly string[])[];
|
|
22
|
+
/** The preset dots of a Custom swatch's colour picker: one per hue family. */
|
|
23
|
+
export declare const CUSTOM_COLOR_PRESETS: readonly ["#ef4444", "#f97316", "#eab308", "#22c55e", "#14b8a6", "#3b82f6", "#8b5cf6", "#ec4899"];
|
|
24
|
+
export declare const GRADIENT_MIN_COLORS = 2;
|
|
25
|
+
export declare const GRADIENT_MAX_COLORS = 5;
|
|
26
|
+
export interface GradientConfig {
|
|
27
|
+
pattern: GradientPattern;
|
|
28
|
+
finish: GradientFinish;
|
|
29
|
+
/**
|
|
30
|
+
* 2–5 hex colors, ordered from the faint edge of the shape to its core.
|
|
31
|
+
* The page background shows through wherever the shape is absent, so a
|
|
32
|
+
* palette never names the background.
|
|
33
|
+
*/
|
|
34
|
+
colors: string[];
|
|
35
|
+
/** Colors for light themes. Falls back to `colors`. */
|
|
36
|
+
lightColors?: string[];
|
|
37
|
+
/** 0–1: how much of the shape is cleared behind the centered content. */
|
|
38
|
+
calm: number;
|
|
39
|
+
/** `bloom` and `sheet`: the corner the color grows from, in 0–1 page space. */
|
|
40
|
+
anchor?: [number, number];
|
|
41
|
+
/** 0.2–1, applied as CSS opacity on the canvas: costs the shader nothing.
|
|
42
|
+
* Unset, `DEFAULT_WALLPAPER_OPACITY`. */
|
|
43
|
+
opacity?: number;
|
|
44
|
+
}
|
|
45
|
+
export declare const OPACITY_LIMITS: readonly [0.2, 1];
|
|
46
|
+
/** Every gradient wallpaper draws at 50% until the person changes it. */
|
|
47
|
+
export declare const DEFAULT_WALLPAPER_OPACITY = 0.5;
|
|
48
|
+
/**
|
|
49
|
+
* The Custom wallpaper: 2–5 colours, a finish and a shape. The colour popover
|
|
50
|
+
* edits the colours and the finish; Shuffle rolls all three. Persisted in
|
|
51
|
+
* preferences.
|
|
52
|
+
*/
|
|
53
|
+
export interface CustomWallpaperConfig {
|
|
54
|
+
colors: string[];
|
|
55
|
+
finish: GradientFinish;
|
|
56
|
+
pattern: GradientPattern;
|
|
57
|
+
opacity: number;
|
|
58
|
+
}
|
|
59
|
+
export declare const DEFAULT_CUSTOM_WALLPAPER: CustomWallpaperConfig;
|
|
60
|
+
/**
|
|
61
|
+
* Persisted preferences are untyped JSON that may predate a field or hold a
|
|
62
|
+
* hand-edited value. Returns a config the shader can always draw. Fields an
|
|
63
|
+
* older build stored (shape, finish, placement) are dropped.
|
|
64
|
+
*/
|
|
65
|
+
export declare function normalizeCustomWallpaper(value: unknown): CustomWallpaperConfig;
|
|
66
|
+
/**
|
|
67
|
+
* The color the Custom wallpaper's + button adds: random, but from the
|
|
68
|
+
* palette's own temperature. It finds the palette's mean hue, weighted by
|
|
69
|
+
* saturation so a near-grey swatch does not pull it, then picks a hue within
|
|
70
|
+
* 30° of it and 45° of the first saturated color, a strong saturation and a mid lightness. Of 6 candidates it keeps
|
|
71
|
+
* the one least like the colors already there. A palette of greys gets a
|
|
72
|
+
* random hue. `random` is injectable for tests.
|
|
73
|
+
*/
|
|
74
|
+
export declare function nextCustomColor(colors: string[], random?: () => number): string;
|
|
75
|
+
/**
|
|
76
|
+
* Shuffle: a random Custom palette. A deep base colour, a brighter neighbour
|
|
77
|
+
* 25–60° along the hue wheel, then `nextCustomColor` up to 3 or 4 colours,
|
|
78
|
+
* so every result stays in one temperature. `random` is injectable for tests.
|
|
79
|
+
*/
|
|
80
|
+
export declare function randomCustomColors(random?: () => number): string[];
|
|
81
|
+
/**
|
|
82
|
+
* Shuffle: a whole new Custom wallpaper. A shape other than `previous`'s, a
|
|
83
|
+
* random finish and a `randomCustomColors` palette.
|
|
84
|
+
*/
|
|
85
|
+
export declare function randomCustomWallpaper(previous?: CustomWallpaperConfig, random?: () => number): CustomWallpaperConfig;
|
|
86
|
+
export declare function customGradientConfig(custom: CustomWallpaperConfig): GradientConfig;
|
|
87
|
+
export type GradientWallpaperId = 'ember' | 'prism' | 'tide' | 'aurora' | 'dusk' | 'eclipse' | 'lagoon' | 'cumulus' | 'moss' | 'iris';
|
|
88
|
+
export declare const GRADIENT_PRESETS: Record<GradientWallpaperId, GradientConfig>;
|
|
89
|
+
/** What the person changed on a preset: its colours, finish or opacity. */
|
|
90
|
+
export interface PresetOverride {
|
|
91
|
+
colors?: string[];
|
|
92
|
+
finish?: GradientFinish;
|
|
93
|
+
opacity?: number;
|
|
94
|
+
}
|
|
95
|
+
/** Overrides by preset id. Persisted. */
|
|
96
|
+
export type PresetOverrides = Partial<Record<GradientWallpaperId, PresetOverride>>;
|
|
97
|
+
/**
|
|
98
|
+
* Persisted overrides, cleaned: unknown ids, invalid palettes and unknown
|
|
99
|
+
* finishes are dropped, opacity is clamped, so a preset always draws.
|
|
100
|
+
*/
|
|
101
|
+
export declare function normalizePresetOverrides(value: unknown): PresetOverrides;
|
|
102
|
+
/** A preset with the person's override applied, or as shipped. Picked
|
|
103
|
+
* colours draw in both themes. */
|
|
104
|
+
export declare function presetWithOverride(config: GradientConfig, override?: PresetOverride): GradientConfig;
|
|
105
|
+
/** The palette a config draws with in the given theme. */
|
|
106
|
+
export declare function gradientColors(config: GradientConfig, isDark: boolean): string[];
|