@steedos/webapp 3.0.3 → 3.0.4-beta.10
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./index-
|
|
1
|
+
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./index-BNGqBGBL.js";
|
|
2
2
|
function _mergeNamespaces(n, m) {
|
|
3
3
|
for (var i = 0; i < m.length; i++) {
|
|
4
4
|
const e = m[i];
|
|
@@ -29235,11 +29235,12 @@ function warnOnce(condition, message2) {
|
|
|
29235
29235
|
}
|
|
29236
29236
|
var USE_OPTIMISTIC = "useOptimistic";
|
|
29237
29237
|
var useOptimisticImpl = React4[USE_OPTIMISTIC];
|
|
29238
|
+
var stableUseOptimisticSetter = () => void 0;
|
|
29238
29239
|
function useOptimisticSafe(val) {
|
|
29239
29240
|
if (useOptimisticImpl) {
|
|
29240
29241
|
return useOptimisticImpl(val);
|
|
29241
29242
|
} else {
|
|
29242
|
-
return [val,
|
|
29243
|
+
return [val, stableUseOptimisticSetter];
|
|
29243
29244
|
}
|
|
29244
29245
|
}
|
|
29245
29246
|
function mapRouteProperties(route) {
|
|
@@ -30119,7 +30120,7 @@ var isBrowser$3 = typeof window !== "undefined" && typeof window.document !== "u
|
|
|
30119
30120
|
try {
|
|
30120
30121
|
if (isBrowser$3) {
|
|
30121
30122
|
window.__reactRouterVersion = // @ts-expect-error
|
|
30122
|
-
"7.10.
|
|
30123
|
+
"7.10.1";
|
|
30123
30124
|
}
|
|
30124
30125
|
} catch (e) {
|
|
30125
30126
|
}
|
|
@@ -54442,7 +54443,7 @@ const getHeaderSchema = (props) => {
|
|
|
54442
54443
|
body: [
|
|
54443
54444
|
{
|
|
54444
54445
|
"type": "wrapper",
|
|
54445
|
-
"className": "flex w-full px-4 py-0 h-[50px] justify-between items-center steedos-header-container-line-one
|
|
54446
|
+
"className": "flex w-full px-4 py-0 h-[50px] justify-between items-center steedos-header-container-line-one ",
|
|
54446
54447
|
"body": [
|
|
54447
54448
|
{
|
|
54448
54449
|
type: "service",
|
|
@@ -54533,7 +54534,7 @@ const getHeaderSchema = (props) => {
|
|
|
54533
54534
|
// "tpl": '',
|
|
54534
54535
|
// },
|
|
54535
54536
|
{
|
|
54536
|
-
"className": "w-auto ml-4 font-bold text-lg
|
|
54537
|
+
"className": "w-auto ml-4 font-bold text-lg inline-block align-middle",
|
|
54537
54538
|
"type": "tpl",
|
|
54538
54539
|
"hiddenOn": "${window:innerWidth < 768}",
|
|
54539
54540
|
"tpl": "${app.name}"
|
|
@@ -54558,7 +54559,7 @@ const getHeaderSchema = (props) => {
|
|
|
54558
54559
|
body: [
|
|
54559
54560
|
{
|
|
54560
54561
|
type: "wrapper",
|
|
54561
|
-
className: "sidebar-wrapper bg-white border-r px-2
|
|
54562
|
+
className: "sidebar-wrapper bg-white border-r px-2 pt-2 pb-16 fixed z-20 h-full h-fill flex flex-col overflow-y-auto block transition-all duration-300",
|
|
54562
54563
|
visibleOn: "${!!app}",
|
|
54563
54564
|
body: [
|
|
54564
54565
|
{
|
|
@@ -54623,6 +54624,30 @@ const AppHeader = () => {
|
|
|
54623
54624
|
if (window.innerWidth >= 768) {
|
|
54624
54625
|
document.body.classList.add("sidebar-open");
|
|
54625
54626
|
}
|
|
54627
|
+
if (appData.dark) {
|
|
54628
|
+
document.body.classList.add("dark");
|
|
54629
|
+
} else {
|
|
54630
|
+
document.body.classList.remove("dark");
|
|
54631
|
+
}
|
|
54632
|
+
const themeColor = appData.color || "sky";
|
|
54633
|
+
document.documentElement.style.setProperty("--colors-brand-main", `var(--color-${themeColor}-600)`);
|
|
54634
|
+
document.documentElement.style.setProperty("--colors-brand-1", `var(--color-${themeColor}-900)`);
|
|
54635
|
+
document.documentElement.style.setProperty("--colors-brand-2", `var(--color-${themeColor}-900)`);
|
|
54636
|
+
document.documentElement.style.setProperty("--colors-brand-3", `var(--color-${themeColor}-800)`);
|
|
54637
|
+
document.documentElement.style.setProperty("--colors-brand-4", `var(--color-${themeColor}-700)`);
|
|
54638
|
+
document.documentElement.style.setProperty("--colors-brand-5", `var(--color-${themeColor}-600)`);
|
|
54639
|
+
document.documentElement.style.setProperty("--colors-brand-6", `var(--color-${themeColor}-500)`);
|
|
54640
|
+
document.documentElement.style.setProperty("--colors-brand-7", `var(--color-${themeColor}-400)`);
|
|
54641
|
+
document.documentElement.style.setProperty("--colors-brand-8", `var(--color-${themeColor}-300)`);
|
|
54642
|
+
document.documentElement.style.setProperty("--colors-brand-9", `var(--color-${themeColor}-100)`);
|
|
54643
|
+
document.documentElement.style.setProperty("--colors-brand-10", `var(--color-${themeColor}-50)`);
|
|
54644
|
+
document.documentElement.style.setProperty("--colors-other-5", `var(--color-${themeColor}-600)`);
|
|
54645
|
+
document.documentElement.style.setProperty("--colors-other-6", `var(--color-${themeColor}-500)`);
|
|
54646
|
+
document.documentElement.style.setProperty("--colors-other-7", `var(--color-${themeColor}-400)`);
|
|
54647
|
+
document.documentElement.style.setProperty("--colors-link-4", `var(--color-${themeColor}-700)`);
|
|
54648
|
+
document.documentElement.style.setProperty("--colors-link-5", `var(--color-${themeColor}-600)`);
|
|
54649
|
+
document.documentElement.style.setProperty("--colors-link-6", `var(--color-${themeColor}-500)`);
|
|
54650
|
+
document.documentElement.style.setProperty("--colors-link-7", `var(--color-${themeColor}-400)`);
|
|
54626
54651
|
}
|
|
54627
54652
|
} catch (err) {
|
|
54628
54653
|
console.error("Failed to fetch app data:", err);
|
|
@@ -61322,7 +61347,7 @@ var NoObjectGeneratedError = class extends AISDKError {
|
|
|
61322
61347
|
}
|
|
61323
61348
|
};
|
|
61324
61349
|
_a6 = symbol6;
|
|
61325
|
-
var VERSION = "5.0.
|
|
61350
|
+
var VERSION = "5.0.109";
|
|
61326
61351
|
var dataContentSchema = union([
|
|
61327
61352
|
string$2(),
|
|
61328
61353
|
_instanceof(Uint8Array),
|
|
@@ -63237,12 +63262,11 @@ function useChat({
|
|
|
63237
63262
|
if (shouldRecreateChat) {
|
|
63238
63263
|
chatRef.current = "chat" in options ? options.chat : new Chat(options);
|
|
63239
63264
|
}
|
|
63240
|
-
const optionsId = "id" in options ? options.id : null;
|
|
63241
63265
|
const subscribeToMessages = reactExports.useCallback(
|
|
63242
63266
|
(update2) => chatRef.current["~registerMessagesCallback"](update2, throttleWaitMs),
|
|
63243
|
-
//
|
|
63267
|
+
// `chatRef.current.id` is required to trigger re-subscription when the chat ID changes
|
|
63244
63268
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
63245
|
-
[throttleWaitMs,
|
|
63269
|
+
[throttleWaitMs, chatRef.current.id]
|
|
63246
63270
|
);
|
|
63247
63271
|
const messages = reactExports.useSyncExternalStore(
|
|
63248
63272
|
subscribeToMessages,
|
|
@@ -81085,7 +81109,7 @@ if (typeof ActiveXObject === "function") {
|
|
|
81085
81109
|
if (typeof fetchApi !== "function") fetchApi = void 0;
|
|
81086
81110
|
if (!fetchApi && !XmlHttpRequestApi && !ActiveXObjectApi) {
|
|
81087
81111
|
try {
|
|
81088
|
-
__vitePreload(() => import("./browser-ponyfill-
|
|
81112
|
+
__vitePreload(() => import("./browser-ponyfill-0Q03cvbK.js").then((n) => n.b), true ? [] : void 0).then(function(mod) {
|
|
81089
81113
|
fetchApi = mod.default;
|
|
81090
81114
|
}).catch(function() {
|
|
81091
81115
|
});
|