@dfosco/storyboard-core 4.0.0-beta.21 → 4.0.0-beta.23
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/storyboard-ui.js +25 -13
- package/dist/storyboard-ui.js.map +1 -1
- package/package.json +1 -1
- package/scaffold/deploy.yml +8 -6
- package/scaffold/manifest.json +10 -0
- package/scaffold/preview.yml +181 -0
- package/scaffold/snapshots.yml +50 -0
- package/src/cli/snapshots.js +173 -17
- package/src/tools/handlers/devtools.js +11 -0
package/dist/storyboard-ui.js
CHANGED
|
@@ -23023,7 +23023,7 @@ const Wk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
23023
23023
|
setup: $k
|
|
23024
23024
|
}, Symbol.toStringTag, { value: "Module" })), Gk = "devtools";
|
|
23025
23025
|
async function Kk(t) {
|
|
23026
|
-
let e = null, a = null, n = null, r = null;
|
|
23026
|
+
let e = null, a = null, n = null, r = null, l = null;
|
|
23027
23027
|
try {
|
|
23028
23028
|
e = await import("@dfosco/storyboard-core");
|
|
23029
23029
|
} catch {
|
|
@@ -23040,10 +23040,14 @@ async function Kk(t) {
|
|
|
23040
23040
|
r = await Promise.resolve().then(() => bE);
|
|
23041
23041
|
} catch {
|
|
23042
23042
|
}
|
|
23043
|
+
try {
|
|
23044
|
+
l = await import("@dfosco/storyboard-core");
|
|
23045
|
+
} catch {
|
|
23046
|
+
}
|
|
23043
23047
|
return {
|
|
23044
23048
|
getChildren: () => {
|
|
23045
|
-
const
|
|
23046
|
-
return r && typeof window < "u" && window.__SB_LOCAL_DEV__ === !0 &&
|
|
23049
|
+
const s = [];
|
|
23050
|
+
return r && typeof window < "u" && window.__SB_LOCAL_DEV__ === !0 && s.push({
|
|
23047
23051
|
id: "core/prod-mode",
|
|
23048
23052
|
label: "Production mode",
|
|
23049
23053
|
type: "toggle",
|
|
@@ -23051,27 +23055,27 @@ async function Kk(t) {
|
|
|
23051
23055
|
execute: () => {
|
|
23052
23056
|
r.toggleProdMode();
|
|
23053
23057
|
}
|
|
23054
|
-
}), e &&
|
|
23058
|
+
}), e && s.push({
|
|
23055
23059
|
id: "core/show-flow-info",
|
|
23056
23060
|
label: "Show flow info",
|
|
23057
23061
|
type: "default",
|
|
23058
23062
|
execute: () => {
|
|
23059
|
-
const
|
|
23063
|
+
const h = new URLSearchParams(window.location.search), c = h.get("flow") || h.get("scene") || "default";
|
|
23060
23064
|
try {
|
|
23061
|
-
const
|
|
23062
|
-
t.showFlowInfoDialog && t.showFlowInfoDialog(
|
|
23063
|
-
} catch (
|
|
23064
|
-
t.showFlowInfoDialog && t.showFlowInfoDialog(
|
|
23065
|
+
const d = e.loadFlow(c);
|
|
23066
|
+
t.showFlowInfoDialog && t.showFlowInfoDialog(c, JSON.stringify(d, null, 2), null);
|
|
23067
|
+
} catch (d) {
|
|
23068
|
+
t.showFlowInfoDialog && t.showFlowInfoDialog(c, "", d.message);
|
|
23065
23069
|
}
|
|
23066
23070
|
}
|
|
23067
|
-
}),
|
|
23071
|
+
}), s.push({
|
|
23068
23072
|
id: "core/reset-params",
|
|
23069
23073
|
label: "Reset all params",
|
|
23070
23074
|
type: "default",
|
|
23071
23075
|
execute: () => {
|
|
23072
23076
|
window.location.hash = "";
|
|
23073
23077
|
}
|
|
23074
|
-
}), a &&
|
|
23078
|
+
}), a && s.push({
|
|
23075
23079
|
id: "core/hide-mode",
|
|
23076
23080
|
label: "Hide mode",
|
|
23077
23081
|
type: "toggle",
|
|
@@ -23079,14 +23083,22 @@ async function Kk(t) {
|
|
|
23079
23083
|
execute: () => {
|
|
23080
23084
|
a.isHideMode() ? a.deactivateHideMode() : a.activateHideMode();
|
|
23081
23085
|
}
|
|
23082
|
-
}), n != null && n.isAuthenticated() &&
|
|
23086
|
+
}), n != null && n.isAuthenticated() && s.push({
|
|
23083
23087
|
id: "core/logout",
|
|
23084
23088
|
label: "Logout (remove token)",
|
|
23085
23089
|
type: "default",
|
|
23086
23090
|
execute: () => {
|
|
23087
23091
|
n.clearToken(), console.log("[storyboard] Token removed");
|
|
23088
23092
|
}
|
|
23089
|
-
}), l
|
|
23093
|
+
}), l && s.push({
|
|
23094
|
+
id: "core/dev-logs",
|
|
23095
|
+
label: "Dev logs",
|
|
23096
|
+
type: "toggle",
|
|
23097
|
+
active: l.getFlag("dev-logs"),
|
|
23098
|
+
execute: () => {
|
|
23099
|
+
l.toggleFlag("dev-logs");
|
|
23100
|
+
}
|
|
23101
|
+
}), s;
|
|
23090
23102
|
}
|
|
23091
23103
|
};
|
|
23092
23104
|
}
|