Files
hive/frontend/node_modules/storybook/dist/actions/index.js
anthonyrawlins e89f2f4b7b Add comprehensive development roadmap via GitHub Issues
Created 10 detailed GitHub issues covering:
- Project activation and management UI (#1-2)
- Worker node coordination and visualization (#3-4)
- Automated GitHub repository scanning (#5)
- Intelligent model-to-issue matching (#6)
- Multi-model task execution system (#7)
- N8N workflow integration (#8)
- Hive-Bzzz P2P bridge (#9)
- Peer assistance protocol (#10)

Each issue includes detailed specifications, acceptance criteria,
technical implementation notes, and dependency mapping.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 19:41:01 +10:00

106 lines
3.0 KiB
JavaScript

var w = Object.defineProperty;
var i = (o, n) => w(o, "name", { value: n, configurable: !0 });
// src/actions/constants.ts
var P = "actions", a = "storybook/actions", S = `${a}/panel`, f = `${a}/action-event`, I = `${a}/action-clear`, T = "$___storybook.isCyclic";
// src/actions/runtime/action.ts
import { ImplicitActionsDuringRendering as _ } from "storybook/internal/preview-errors";
import { global as d } from "@storybook/global";
import { addons as v } from "storybook/preview-api";
// src/actions/runtime/configureActions.ts
var c = {
depth: 10,
clearOnStoryChange: !0,
limit: 50
}, C = /* @__PURE__ */ i((o = {}) => {
Object.assign(c, o);
}, "configureActions");
// src/actions/runtime/action.ts
var u = /* @__PURE__ */ i((o, n) => {
let t = Object.getPrototypeOf(o);
return !t || n(t) ? t : u(t, n);
}, "findProto"), D = /* @__PURE__ */ i((o) => !!(typeof o == "object" && o && u(o, (n) => /^Synthetic(?:Base)?Event$/.test(n.constructor.name)) &&
typeof o.persist == "function"), "isReactSyntheticEvent"), x = /* @__PURE__ */ i((o) => {
if (D(o)) {
let n = Object.create(
o.constructor.prototype,
Object.getOwnPropertyDescriptors(o)
);
n.persist();
let t = Object.getOwnPropertyDescriptor(n, "view"), e = t?.value;
return typeof e == "object" && e?.constructor.name === "Window" && Object.defineProperty(n, "view", {
...t,
value: Object.create(e.constructor.prototype)
}), n;
}
return o;
}, "serializeArg");
function g(o, n = {}) {
let t = {
...c,
...n
}, e = /* @__PURE__ */ i(function(...r) {
if (n.implicit) {
let m = ("__STORYBOOK_PREVIEW__" in d ? d.__STORYBOOK_PREVIEW__ : void 0)?.storyRenders.find(
(s) => s.phase === "playing" || s.phase === "rendering"
);
if (m) {
let s = !globalThis?.FEATURES?.disallowImplicitActionsInRenderV8, y = new _({
phase: m.phase,
name: o,
deprecated: s
});
if (s)
console.warn(y);
else
throw y;
}
}
let A = v.getChannel(), O = Date.now().toString(36) + Math.random().toString(36).substring(2), h = 5, l = r.map(x), E = r.length > 1 ? l :
l[0], b = {
id: O,
count: 0,
data: { name: o, args: E },
options: {
...t,
maxDepth: h + (t.depth || 3)
}
};
A.emit(f, b);
}, "actionHandler");
return e.isAction = !0, e.implicit = n.implicit, e;
}
i(g, "action");
// src/actions/runtime/actions.ts
var L = /* @__PURE__ */ i((...o) => {
let n = c, t = o;
t.length === 1 && Array.isArray(t[0]) && ([t] = t), t.length !== 1 && typeof t[t.length - 1] != "string" && (n = {
...c,
...t.pop()
});
let e = t[0];
(t.length !== 1 || typeof e == "string") && (e = {}, t.forEach((r) => {
e[r] = r;
}));
let p = {};
return Object.keys(e).forEach((r) => {
p[r] = g(e[r], n);
}), p;
}, "actions");
export {
a as ADDON_ID,
I as CLEAR_ID,
T as CYCLIC_KEY,
f as EVENT_ID,
S as PANEL_ID,
P as PARAM_KEY,
g as action,
L as actions,
c as config,
C as configureActions
};