@dxos/shell 0.7.0 → 0.7.1-staging.8709ba7
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/bundle/shell.mjs +130 -130
- package/dist/bundle/shell.mjs.map +1 -1
- package/dist/bundle/shell.umd.js +2 -2
- package/dist/bundle/shell.umd.js.map +1 -1
- package/dist/bundle/style.css +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react.mjs +48 -39
- package/dist/lib/browser/react.mjs.map +3 -3
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/react.cjs +45 -36
- package/dist/lib/node/react.cjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/react.mjs +48 -39
- package/dist/lib/node-esm/react.mjs.map +3 -3
- package/dist/types/src/panels/IdentityPanel/useEdgeAgentsHandlers.d.ts.map +1 -1
- package/dist/types/src/panels/IdentityPanel/useEdgeAgentsHandlers.js +3 -1
- package/dist/types/src/panels/IdentityPanel/useEdgeAgentsHandlers.js.map +1 -1
- package/package.json +25 -25
- package/src/panels/IdentityPanel/useEdgeAgentsHandlers.ts +3 -1
package/dist/bundle/shell.mjs
CHANGED
|
@@ -31790,131 +31790,7 @@ var reflectiveRelation = {
|
|
|
31790
31790
|
_,
|
|
31791
31791
|
500
|
|
31792
31792
|
]
|
|
31793
|
-
}, $), {}),
|
|
31794
|
-
// NOTE: background styles for the main content area must have transparency otherwise they will mask the selection.
|
|
31795
|
-
axisSurface: {
|
|
31796
|
-
light: [
|
|
31797
|
-
"neutral",
|
|
31798
|
-
50
|
|
31799
|
-
],
|
|
31800
|
-
dark: [
|
|
31801
|
-
"neutral",
|
|
31802
|
-
800
|
|
31803
|
-
]
|
|
31804
|
-
},
|
|
31805
|
-
axisText: {
|
|
31806
|
-
light: [
|
|
31807
|
-
"neutral",
|
|
31808
|
-
800
|
|
31809
|
-
],
|
|
31810
|
-
dark: [
|
|
31811
|
-
"neutral",
|
|
31812
|
-
200
|
|
31813
|
-
]
|
|
31814
|
-
},
|
|
31815
|
-
axisSelectedSurface: {
|
|
31816
|
-
light: [
|
|
31817
|
-
"neutral",
|
|
31818
|
-
100
|
|
31819
|
-
],
|
|
31820
|
-
dark: [
|
|
31821
|
-
"neutral",
|
|
31822
|
-
900
|
|
31823
|
-
]
|
|
31824
|
-
},
|
|
31825
|
-
axisSelectedText: {
|
|
31826
|
-
light: [
|
|
31827
|
-
"neutral",
|
|
31828
|
-
100
|
|
31829
|
-
],
|
|
31830
|
-
dark: [
|
|
31831
|
-
"neutral",
|
|
31832
|
-
900
|
|
31833
|
-
]
|
|
31834
|
-
},
|
|
31835
|
-
gridCell: {
|
|
31836
|
-
// TODO(thure): Why override only dark?
|
|
31837
|
-
light: [
|
|
31838
|
-
"neutral",
|
|
31839
|
-
"50/0"
|
|
31840
|
-
],
|
|
31841
|
-
dark: [
|
|
31842
|
-
"neutral",
|
|
31843
|
-
850
|
|
31844
|
-
]
|
|
31845
|
-
},
|
|
31846
|
-
gridCellSelected: {
|
|
31847
|
-
// TODO(thure): Can this not just use `attention`?
|
|
31848
|
-
light: [
|
|
31849
|
-
"neutral",
|
|
31850
|
-
50
|
|
31851
|
-
],
|
|
31852
|
-
dark: [
|
|
31853
|
-
"neutral",
|
|
31854
|
-
900
|
|
31855
|
-
]
|
|
31856
|
-
},
|
|
31857
|
-
gridLine: {
|
|
31858
|
-
light: [
|
|
31859
|
-
"neutral",
|
|
31860
|
-
200
|
|
31861
|
-
],
|
|
31862
|
-
dark: [
|
|
31863
|
-
"neutral",
|
|
31864
|
-
700
|
|
31865
|
-
]
|
|
31866
|
-
},
|
|
31867
|
-
gridOverlay: {
|
|
31868
|
-
light: [
|
|
31869
|
-
"primary",
|
|
31870
|
-
"500/.5"
|
|
31871
|
-
],
|
|
31872
|
-
dark: [
|
|
31873
|
-
"primary",
|
|
31874
|
-
"500/.5"
|
|
31875
|
-
]
|
|
31876
|
-
},
|
|
31877
|
-
gridSelectionOverlay: {
|
|
31878
|
-
light: [
|
|
31879
|
-
"primary",
|
|
31880
|
-
"500/.2"
|
|
31881
|
-
],
|
|
31882
|
-
dark: [
|
|
31883
|
-
"primary",
|
|
31884
|
-
"500/.2"
|
|
31885
|
-
]
|
|
31886
|
-
},
|
|
31887
|
-
gridCommented: {
|
|
31888
|
-
light: [
|
|
31889
|
-
"emerald",
|
|
31890
|
-
"500/.12"
|
|
31891
|
-
],
|
|
31892
|
-
dark: [
|
|
31893
|
-
"emerald",
|
|
31894
|
-
"500/.12"
|
|
31895
|
-
]
|
|
31896
|
-
},
|
|
31897
|
-
gridCommentedActive: {
|
|
31898
|
-
light: [
|
|
31899
|
-
"emerald",
|
|
31900
|
-
"500/.24"
|
|
31901
|
-
],
|
|
31902
|
-
dark: [
|
|
31903
|
-
"emerald",
|
|
31904
|
-
"500/.24"
|
|
31905
|
-
]
|
|
31906
|
-
},
|
|
31907
|
-
gridHighlight: {
|
|
31908
|
-
light: [
|
|
31909
|
-
"amber",
|
|
31910
|
-
"200/.2"
|
|
31911
|
-
],
|
|
31912
|
-
dark: [
|
|
31913
|
-
"amber",
|
|
31914
|
-
"200/.2"
|
|
31915
|
-
]
|
|
31916
|
-
}
|
|
31917
|
-
}, surfaceCadence = {
|
|
31793
|
+
}, $), {}), surfaceCadence = {
|
|
31918
31794
|
dark: [
|
|
31919
31795
|
900,
|
|
31920
31796
|
800,
|
|
@@ -32162,6 +32038,130 @@ var reflectiveRelation = {
|
|
|
32162
32038
|
0
|
|
32163
32039
|
]
|
|
32164
32040
|
}
|
|
32041
|
+
}, sheetSememes = {
|
|
32042
|
+
// NOTE: background styles for the main content area must have transparency otherwise they will mask the selection.
|
|
32043
|
+
axisSurface: {
|
|
32044
|
+
light: [
|
|
32045
|
+
"neutral",
|
|
32046
|
+
50
|
|
32047
|
+
],
|
|
32048
|
+
dark: [
|
|
32049
|
+
"neutral",
|
|
32050
|
+
800
|
|
32051
|
+
]
|
|
32052
|
+
},
|
|
32053
|
+
axisText: {
|
|
32054
|
+
light: [
|
|
32055
|
+
"neutral",
|
|
32056
|
+
800
|
|
32057
|
+
],
|
|
32058
|
+
dark: [
|
|
32059
|
+
"neutral",
|
|
32060
|
+
200
|
|
32061
|
+
]
|
|
32062
|
+
},
|
|
32063
|
+
axisSelectedSurface: {
|
|
32064
|
+
light: [
|
|
32065
|
+
"neutral",
|
|
32066
|
+
100
|
|
32067
|
+
],
|
|
32068
|
+
dark: [
|
|
32069
|
+
"neutral",
|
|
32070
|
+
900
|
|
32071
|
+
]
|
|
32072
|
+
},
|
|
32073
|
+
axisSelectedText: {
|
|
32074
|
+
light: [
|
|
32075
|
+
"neutral",
|
|
32076
|
+
100
|
|
32077
|
+
],
|
|
32078
|
+
dark: [
|
|
32079
|
+
"neutral",
|
|
32080
|
+
900
|
|
32081
|
+
]
|
|
32082
|
+
},
|
|
32083
|
+
gridCell: {
|
|
32084
|
+
// TODO(thure): Why override only dark?
|
|
32085
|
+
light: [
|
|
32086
|
+
"neutral",
|
|
32087
|
+
"50/0"
|
|
32088
|
+
],
|
|
32089
|
+
dark: [
|
|
32090
|
+
"neutral",
|
|
32091
|
+
850
|
|
32092
|
+
]
|
|
32093
|
+
},
|
|
32094
|
+
gridCellSelected: {
|
|
32095
|
+
// TODO(thure): Can this not just use `attention`?
|
|
32096
|
+
light: [
|
|
32097
|
+
"neutral",
|
|
32098
|
+
50
|
|
32099
|
+
],
|
|
32100
|
+
dark: [
|
|
32101
|
+
"neutral",
|
|
32102
|
+
800
|
|
32103
|
+
]
|
|
32104
|
+
},
|
|
32105
|
+
gridLine: {
|
|
32106
|
+
light: [
|
|
32107
|
+
"neutral",
|
|
32108
|
+
surfaceCadence.light[4]
|
|
32109
|
+
],
|
|
32110
|
+
dark: [
|
|
32111
|
+
"neutral",
|
|
32112
|
+
surfaceCadence.dark[3]
|
|
32113
|
+
]
|
|
32114
|
+
},
|
|
32115
|
+
gridOverlay: {
|
|
32116
|
+
light: [
|
|
32117
|
+
"primary",
|
|
32118
|
+
"500/.5"
|
|
32119
|
+
],
|
|
32120
|
+
dark: [
|
|
32121
|
+
"primary",
|
|
32122
|
+
"500/.5"
|
|
32123
|
+
]
|
|
32124
|
+
},
|
|
32125
|
+
gridSelectionOverlay: {
|
|
32126
|
+
light: [
|
|
32127
|
+
"primary",
|
|
32128
|
+
"500/.2"
|
|
32129
|
+
],
|
|
32130
|
+
dark: [
|
|
32131
|
+
"primary",
|
|
32132
|
+
"500/.2"
|
|
32133
|
+
]
|
|
32134
|
+
},
|
|
32135
|
+
gridCommented: {
|
|
32136
|
+
light: [
|
|
32137
|
+
"emerald",
|
|
32138
|
+
"500/.12"
|
|
32139
|
+
],
|
|
32140
|
+
dark: [
|
|
32141
|
+
"emerald",
|
|
32142
|
+
"500/.12"
|
|
32143
|
+
]
|
|
32144
|
+
},
|
|
32145
|
+
gridCommentedActive: {
|
|
32146
|
+
light: [
|
|
32147
|
+
"emerald",
|
|
32148
|
+
"500/.24"
|
|
32149
|
+
],
|
|
32150
|
+
dark: [
|
|
32151
|
+
"emerald",
|
|
32152
|
+
"500/.24"
|
|
32153
|
+
]
|
|
32154
|
+
},
|
|
32155
|
+
gridHighlight: {
|
|
32156
|
+
light: [
|
|
32157
|
+
"amber",
|
|
32158
|
+
"200/.2"
|
|
32159
|
+
],
|
|
32160
|
+
dark: [
|
|
32161
|
+
"amber",
|
|
32162
|
+
"200/.2"
|
|
32163
|
+
]
|
|
32164
|
+
}
|
|
32165
32165
|
}, semanticColors = {
|
|
32166
32166
|
conditions: {
|
|
32167
32167
|
light: [
|
|
@@ -33344,7 +33344,7 @@ var hueTheme = {
|
|
|
33344
33344
|
root: iconRoot
|
|
33345
33345
|
}, iconButtonRoot = ($, ..._) => mx("ch-icon-button ch-focus-ring gap-2 text-sm", ..._), iconButtonTheme = {
|
|
33346
33346
|
root: iconButtonRoot
|
|
33347
|
-
}, neutralInputValence = "", successInputValence = "shadow-emerald-500/50 dark:shadow-emerald-600/50", infoInputValence = "shadow-cyan-500/50 dark:shadow-cyan-600/50", warningInputValence = "shadow-amber-500/50 dark:shadow-amber-600/50", errorInputValence = "shadow-rose-500/50 dark:shadow-rose-600/50", textInputSurfaceFocus = "transition-colors bg-input focus:bg-attention border-transparent focus:border-transparent", textInputSurfaceHover = "hover:bg-hoverSurface focus:hover:bg-attention", booleanInputSurface = "shadow-inner transition-colors bg-unAccent aria-checked:bg-accentSurface aria-[checked=mixed]:bg-accentSurface", booleanInputSurfaceHover = "hover:bg-unAccentHover hover:aria-checked:bg-accentSurfaceHover hover:aria-[checked=mixed]:bg-accentSurfaceHover", inputValence = ($) => {
|
|
33347
|
+
}, neutralInputValence = "", successInputValence = "shadow-emerald-500/50 dark:shadow-emerald-600/50", infoInputValence = "shadow-cyan-500/50 dark:shadow-cyan-600/50", warningInputValence = "shadow-amber-500/50 dark:shadow-amber-600/50", errorInputValence = "shadow-rose-500/50 dark:shadow-rose-600/50", textInputSurfaceFocus = "transition-colors bg-input focus:bg-attention border-transparent focus:border-transparent", textInputSurfaceHover = "hover:bg-hoverSurface focus:hover:bg-attention", booleanInputSurface = "shadow-inner transition-colors bg-unAccent aria-checked:bg-accentSurface aria-[checked=mixed]:bg-accentSurface", booleanInputSurfaceHover = "hover:bg-unAccentHover hover:aria-checked:bg-accentSurfaceHover hover:aria-[checked=mixed]:bg-accentSurfaceHover", inputTextLabel = "text-sm font-medium", inputValence = ($) => {
|
|
33348
33348
|
switch ($) {
|
|
33349
33349
|
case "success":
|
|
33350
33350
|
return successInputValence;
|
|
@@ -33387,7 +33387,7 @@ var hueTheme = {
|
|
|
33387
33387
|
"cursor-pointer shrink-0 rounded-full pli-1 mx-1 relative",
|
|
33388
33388
|
focusRing,
|
|
33389
33389
|
...I
|
|
33390
|
-
), inputSwitchThumb = ({ size: $ = 5 }, ..._) => mx(getSize($ === "px" ? "px" : $ - 2), "block bg-white rounded-full border-separator transition-transform duration-100 will-change-transform data-[state=checked]:translate-x-[100%]", ..._), inputWithSegmentsInput = ($, ..._) => mx("font-mono selection:bg-transparent mli-auto", $.disabled && "cursor-not-allowed", ..._), inputLabel = ($, ..._) => mx("block
|
|
33390
|
+
), inputSwitchThumb = ({ size: $ = 5 }, ..._) => mx(getSize($ === "px" ? "px" : $ - 2), "block bg-white rounded-full border-separator transition-transform duration-100 will-change-transform data-[state=checked]:translate-x-[100%]", ..._), inputWithSegmentsInput = ($, ..._) => mx("font-mono selection:bg-transparent mli-auto", $.disabled && "cursor-not-allowed", ..._), inputLabel = ($, ..._) => mx("block", inputTextLabel, $.srOnly && "sr-only", ..._), inputDescription = ($, ..._) => mx(descriptionText, $.srOnly && "sr-only", ..._), inputDescriptionAndValidation = ($, ..._) => mx("leading-none mlb-1", $.srOnly && "sr-only", ..._), inputValidation = ($, ..._) => mx(descriptionText, $.srOnly ? "sr-only" : valenceColorText($.validationValence), ..._), inputTheme = {
|
|
33391
33391
|
input: inputInput,
|
|
33392
33392
|
inputWithSegments: inputWithSegmentsInput,
|
|
33393
33393
|
checkbox: inputCheckbox,
|
|
@@ -33412,7 +33412,7 @@ var hueTheme = {
|
|
|
33412
33412
|
}
|
|
33413
33413
|
}, mainSidebar = ($, ..._) => mx("fixed block-start-0 block-end-0 is-[100vw] z-10 data-[side=ie]:z-20 overscroll-contain overflow-x-hidden overflow-y-auto", "transition-[inset-inline-start,inset-inline-end] duration-200 data-[resizing=false]:duration-200 ease-in-out-symmetric", "data-[side=is]:-inline-start-[100vw] sm:data-[side=is]:is-[--nav-sidebar-size] sm:data-[side=is]:-inline-start-[--nav-sidebar-size]", "data-[side=ie]:-inline-end-[100vw] sm:data-[side=ie]:is-[--complementary-sidebar-size] sm:data-[side=ie]:-inline-end-[--complementary-sidebar-size]", "data-[side=is]:data-[state=open]:inline-start-0 data-[side=ie]:data-[state=open]:inline-end-0", "data-[side=is]:border-ie data-[side=ie]:border-is", "ch-focus-ring-inset-over-all", fixedBorder, fixedSurface, ..._), mainPadding = mx("pis-0 scroll-ps-0 lg:data-[sidebar-inline-start-state=open]:pis-[--nav-sidebar-size]", "lg:data-[sidebar-inline-start-state=open]:scroll-ps-[--nav-sidebar-size]", "pie-0 scroll-pe-0 lg:data-[sidebar-inline-end-state=open]:pie-[--complementary-sidebar-size]", "lg:data-[sidebar-inline-end-state=open]:scroll-pe-[--complementary-sidebar-size]"), mainPaddingTransitions = "transition-[padding-inline-start,padding-inline-end,scroll-padding-start,scroll-padding-end] duration-200 ease-in-out-symmetric", mainContent = ({ bounce: $, handlesFocus: _ }, ...I) => mx(mainPadding, mainPaddingTransitions, _ && "ch-focus-ring-main", $ && bounceLayout, ...I);
|
|
33414
33414
|
mx("is-dvw transition-[inline-size] ease-in-out-symmetric duration-200 lg:data-[sidebar-inline-start-state=open]:is-[calc(100dvw-var(--nav-sidebar-size))]", "lg:data-[sidebar-inline-end-state=open]:is-[calc(100dvw-var(--complementary-sidebar-size))]", "lg:data-[sidebar-inline-start-state=open]:data-[sidebar-inline-end-state=open]:is-[calc(100dvw-var(--nav-sidebar-size)-var(--complementary-sidebar-size))]");
|
|
33415
|
-
var mainOverlay = ($, ..._) => mx("fixed inset-0 z-[9] bg-scrim", "transition-opacity duration-200 ease-in-out-symmetric", "opacity-0 data-[state=open]:opacity-100 lg:data-[state=open]:opacity-100", "hidden data-[state=open]:block lg:data-[state=open]:hidden", ..._), mainNotch = ($, ..._) => mx("fixed z-[11] block-end-0 inline-start-0 pbe-[env(safe-area-inset-bottom)] rounded-se-lg min-bs-[var(--rail-size)] is-fit border-separator bg-base", "transition-[border-width] box-content border-bs border-ie data-[nav-sidebar-state=open]:border-bs-0 data-[nav-sidebar-state=open]:border-ie-0", "
|
|
33415
|
+
var mainOverlay = ($, ..._) => mx("fixed inset-0 z-[9] bg-scrim", "transition-opacity duration-200 ease-in-out-symmetric", "opacity-0 data-[state=open]:opacity-100 lg:data-[state=open]:opacity-100", "hidden data-[state=open]:block lg:data-[state=open]:hidden", ..._), mainNotch = ($, ..._) => mx("fixed z-[11] block-end-0 inline-start-0 pbe-[env(safe-area-inset-bottom)] rounded-se-lg min-bs-[var(--rail-size)] is-fit border-separator bg-base", "transition-[border-width] box-content border-bs border-ie data-[nav-sidebar-state=open]:border-bs-0 data-[nav-sidebar-state=open]:border-ie-0", "pis-1 grid grid-cols-[repeat(auto-fit,var(--rail-action))]", "max-is-[--nav-sidebar-size] ch-focus-ring-inset focus-visible:!z-[11]", ..._), mainTheme = {
|
|
33416
33416
|
content: mainContent,
|
|
33417
33417
|
sidebar: mainSidebar,
|
|
33418
33418
|
overlay: mainOverlay,
|
|
@@ -85295,11 +85295,11 @@ const useEdgeAgentHandlers = ({
|
|
|
85295
85295
|
}
|
|
85296
85296
|
q("creating"), I("");
|
|
85297
85297
|
try {
|
|
85298
|
-
await oe.createAgent(), await Promise.all(
|
|
85298
|
+
await oe.createAgent(null, { timeout: 7500 }), await Promise.all(
|
|
85299
85299
|
K.spaces.get().map((se) => se == null ? void 0 : se.internal.setEdgeReplicationPreference(EdgeReplicationSetting.ENABLED))
|
|
85300
85300
|
), q("created");
|
|
85301
85301
|
} catch (se) {
|
|
85302
|
-
q("error"), I(`Error creating an agent: ${se.message}`);
|
|
85302
|
+
log$2.catch(se), q("error"), I(`Error creating an agent: ${se.message}`);
|
|
85303
85303
|
}
|
|
85304
85304
|
},
|
|
85305
85305
|
onAgentDestroy: async () => {
|