🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@solid-devtools/debugger

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solid-devtools/debugger - npm Package Compare versions

Comparing version
0.24.2
to
0.24.3
+113
dist/chunk-NURNCQIN.js
// src/inspector/types.ts
var INFINITY = "Infinity";
var NEGATIVE_INFINITY = "NegativeInfinity";
var NAN = "NaN";
var UNDEFINED = "undefined";
var ValueType = /* @__PURE__ */ ((ValueType2) => {
ValueType2["Number"] = "number";
ValueType2["Boolean"] = "boolean";
ValueType2["String"] = "string";
ValueType2["Null"] = "null";
ValueType2["Symbol"] = "symbol";
ValueType2["Array"] = "array";
ValueType2["Object"] = "object";
ValueType2["Function"] = "function";
ValueType2["Getter"] = "getter";
ValueType2["Element"] = "element";
ValueType2["Instance"] = "instance";
ValueType2["Store"] = "store";
ValueType2["Unknown"] = "unknown";
return ValueType2;
})(ValueType || {});
var PropGetterState = /* @__PURE__ */ ((PropGetterState2) => {
PropGetterState2["Live"] = "live";
PropGetterState2["Stale"] = "stale";
return PropGetterState2;
})(PropGetterState || {});
// src/locator/types.ts
var WINDOW_PROJECTPATH_PROPERTY = "$sdt_projectPath";
var LOCATION_ATTRIBUTE_NAME = "data-source-loc";
// src/main/constants.ts
var DevtoolsMainView = /* @__PURE__ */ ((DevtoolsMainView2) => {
DevtoolsMainView2["Structure"] = "structure";
return DevtoolsMainView2;
})(DevtoolsMainView || {});
var DEFAULT_MAIN_VIEW = "structure" /* Structure */;
var DebuggerModule = /* @__PURE__ */ ((DebuggerModule2) => {
DebuggerModule2["Locator"] = "locator";
DebuggerModule2["Structure"] = "structure";
DebuggerModule2["Dgraph"] = "dgraph";
return DebuggerModule2;
})(DebuggerModule || {});
var TreeWalkerMode = /* @__PURE__ */ ((TreeWalkerMode2) => {
TreeWalkerMode2["Owners"] = "owners";
TreeWalkerMode2["Components"] = "components";
TreeWalkerMode2["DOM"] = "dom";
return TreeWalkerMode2;
})(TreeWalkerMode || {});
var DEFAULT_WALKER_MODE = "components" /* Components */;
var NodeType = /* @__PURE__ */ ((NodeType3) => {
NodeType3["Root"] = "root";
NodeType3["Component"] = "component";
NodeType3["Element"] = "element";
NodeType3["Effect"] = "effect";
NodeType3["Render"] = "render";
NodeType3["Memo"] = "memo";
NodeType3["Computation"] = "computation";
NodeType3["Refresh"] = "refresh";
NodeType3["Context"] = "context";
NodeType3["CatchError"] = "catchError";
NodeType3["Signal"] = "signal";
NodeType3["Store"] = "store";
return NodeType3;
})(NodeType || {});
var NODE_TYPE_NAMES = {
["root" /* Root */]: "Root",
["component" /* Component */]: "Component",
["element" /* Element */]: "Element",
["effect" /* Effect */]: "Effect",
["render" /* Render */]: "Render Effect",
["memo" /* Memo */]: "Memo",
["computation" /* Computation */]: "Computation",
["refresh" /* Refresh */]: "Refresh",
["context" /* Context */]: "Context",
["catchError" /* CatchError */]: "CatchError",
["signal" /* Signal */]: "Signal",
["store" /* Store */]: "Store"
};
var ValueItemType = /* @__PURE__ */ ((ValueItemType2) => {
ValueItemType2["Signal"] = "signal";
ValueItemType2["Prop"] = "prop";
ValueItemType2["Value"] = "value";
return ValueItemType2;
})(ValueItemType || {});
var UNKNOWN = "unknown";
// src/main/types.ts
var getValueItemId = (type, id) => {
if (type === "value" /* Value */) return "value" /* Value */;
return `${type}:${id}`;
};
export {
DevtoolsMainView,
DEFAULT_MAIN_VIEW,
DebuggerModule,
TreeWalkerMode,
DEFAULT_WALKER_MODE,
NodeType,
NODE_TYPE_NAMES,
ValueItemType,
UNKNOWN,
INFINITY,
NEGATIVE_INFINITY,
NAN,
UNDEFINED,
ValueType,
PropGetterState,
WINDOW_PROJECTPATH_PROPERTY,
LOCATION_ATTRIBUTE_NAME,
getValueItemId
};
export {};
//# sourceMappingURL=collect.test.d.ts.map
{"version":3,"file":"collect.test.d.ts","sourceRoot":"","sources":["../../../src/dependency/test/collect.test.ts"],"names":[],"mappings":""}
export {};
//# sourceMappingURL=index.test.d.ts.map
{"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../../../src/inspector/test/index.test.tsx"],"names":[],"mappings":""}
export {};
//# sourceMappingURL=serialize.test.d.ts.map
{"version":3,"file":"serialize.test.d.ts","sourceRoot":"","sources":["../../../src/inspector/test/serialize.test.ts"],"names":[],"mappings":""}
export {};
//# sourceMappingURL=store.test.d.ts.map
{"version":3,"file":"store.test.d.ts","sourceRoot":"","sources":["../../../src/inspector/test/store.test.ts"],"names":[],"mappings":""}
export {};
//# sourceMappingURL=index.test.d.ts.map
{"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../../../src/locator/test/index.test.ts"],"names":[],"mappings":""}
declare const setup: {
solid: NonNullable<typeof import("solid-js").DEV> & {
getOwner: typeof import("solid-js").getOwner;
getListener: typeof import("solid-js").getListener;
untrack: typeof import("solid-js").untrack;
$PROXY: typeof import("solid-js").$PROXY;
$TRACK: typeof import("solid-js").$TRACK;
$DEVCOMP: typeof import("solid-js").$DEVCOMP;
sharedConfig: typeof import("solid-js").sharedConfig;
};
store: NonNullable<typeof import("solid-js/store").DEV> & {
unwrap: typeof import("solid-js/store").unwrap;
$RAW: typeof import("solid-js/store").$RAW;
};
get_created_owners(): import("./types.ts").Solid.Owner[];
get_locator_options(): import("../types.ts").LocatorOptions | null;
versions: {
get_client(): string | null;
get_solid(): string | null;
get_expected_solid(): string | null;
};
get_owner_location(owner: import("./types.ts").Solid.Owner): string | null;
};
export default setup;
//# sourceMappingURL=setup.d.ts.map
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/main/setup.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;CAA6B,CAAA;AAExC,eAAe,KAAK,CAAA"}
export {};
//# sourceMappingURL=update.test.d.ts.map
{"version":3,"file":"update.test.d.ts","sourceRoot":"","sources":["../../../src/main/test/update.test.ts"],"names":[],"mappings":""}
export {};
//# sourceMappingURL=utils.test.d.ts.map
{"version":3,"file":"utils.test.d.ts","sourceRoot":"","sources":["../../../src/main/test/utils.test.ts"],"names":[],"mappings":""}
export {};
//# sourceMappingURL=walker.test.d.ts.map
{"version":3,"file":"walker.test.d.ts","sourceRoot":"","sources":["../../../src/structure/test/walker.test.tsx"],"names":[],"mappings":""}
+1
-1
export { useDebugger, useLocator } from './main/index.ts';
export { addSolidUpdateListener, interceptComputationRerun, makeValueUpdateListener, observeValueUpdate, removeValueUpdateObserver, } from './main/observe.ts';
export { attachDebugger, createInternalRoot, unobserveAllRoots } from './main/roots.ts';
export { attachDebugger, unobserveAllRoots } from './main/roots.ts';
export { getNodeName, getNodeType, getOwnerType, isSolidComputation, isSolidMemo, isSolidOwner, isSolidRoot, isSolidSignal, isSolidStore, lookupOwner, onOwnerCleanup, onParentCleanup, } from './main/utils.ts';
//# sourceMappingURL=index.d.ts.map

@@ -1,1 +0,1 @@

{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,UAAU,EAAC,MAAM,iBAAiB,CAAA;AACvD,OAAO,EACH,sBAAsB,EACtB,yBAAyB,EACzB,uBAAuB,EACvB,kBAAkB,EAClB,yBAAyB,GAC5B,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAC,cAAc,EAAE,kBAAkB,EAAE,iBAAiB,EAAC,MAAM,iBAAiB,CAAA;AACrF,OAAO,EACH,WAAW,EACX,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,YAAY,EACZ,WAAW,EACX,aAAa,EACb,YAAY,EACZ,WAAW,EACX,cAAc,EACd,eAAe,GAClB,MAAM,iBAAiB,CAAA"}
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,UAAU,EAAC,MAAM,iBAAiB,CAAA;AACvD,OAAO,EACH,sBAAsB,EACtB,yBAAyB,EACzB,uBAAuB,EACvB,kBAAkB,EAClB,yBAAyB,GAC5B,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAC,cAAc,EAAE,iBAAiB,EAAC,MAAM,iBAAiB,CAAA;AACjE,OAAO,EACH,WAAW,EACX,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,YAAY,EACZ,WAAW,EACX,aAAa,EACb,YAAY,EACZ,WAAW,EACX,cAAc,EACd,eAAe,GAClB,MAAM,iBAAiB,CAAA"}

@@ -10,3 +10,3 @@ import {

WINDOW_PROJECTPATH_PROPERTY
} from "./chunk-LJJVSETA.js";
} from "./chunk-NURNCQIN.js";

@@ -60,5 +60,4 @@ // src/main/index.ts

import { throttle } from "@solid-primitives/scheduled";
import { $PROXY } from "solid-js";
// src/main/solid-api.ts
// src/main/setup.ts
if (!globalThis.SolidDevtools$$) {

@@ -69,7 +68,6 @@ throw new Error(

}
var SolidApi = globalThis.SolidDevtools$$;
var solid_api_default = SolidApi;
var setup = globalThis.SolidDevtools$$;
var setup_default = setup;
// src/main/utils.ts
var $NODE = solid_api_default.STORE_DEV.$NODE;
var isObject = (o) => typeof o === "object" && !!o;

@@ -82,4 +80,4 @@ var isSolidOwner = (o) => "owned" in o;

var isSolidComponent = (o) => "component" in o;
var isStoreNode = (o) => $NODE in o;
var isSolidStore = (o) => !("observers" in o) && "value" in o && isObject(o.value) && $PROXY in o.value;
var isStoreNode = (o) => setup_default.store.$NODE in o;
var isSolidStore = (o) => !("observers" in o) && "value" in o && isObject(o.value) && setup_default.solid.$PROXY in o.value;
var isSolidSignal = (o) => "value" in o && "observers" in o && "observerSlots" in o && "comparator" in o;

@@ -130,2 +128,9 @@ function getNodeType(o) {

}
function onCleanup(fn) {
let owner = setup_default.solid.getOwner();
if (owner) {
if (owner.cleanups === null) owner.cleanups = [fn];
else owner.cleanups.push(fn);
}
}
function getComponentRefreshNode(owner) {

@@ -327,5 +332,3 @@ const { owned } = owner;

}
var InternalRootCount = 0;
function attachDebugger(owner = solid_api_default.getOwner()) {
if (InternalRootCount) return;
function attachDebugger(owner = setup_default.solid.getOwner()) {
if (!owner)

@@ -377,12 +380,2 @@ return warn("reatachOwner helper should be called synchronously in a reactive owner.");

}
var createInternalRoot = (fn, detachedOwner) => {
InternalRootCount++;
const r = solid_api_default.createRoot((dispose) => {
;
solid_api_default.getOwner().isInternal = true;
return fn(dispose);
}, detachedOwner);
InternalRootCount--;
return r;
};
function getTopRoot(owner) {

@@ -412,6 +405,6 @@ let root = null;

// src/main/observe.ts
for (const e of solid_api_default.getDevEvents()) {
attachDebugger(e.data);
for (const e of setup_default.get_created_owners()) {
attachDebugger(e);
}
solid_api_default.DEV.hooks.afterCreateOwner = function(owner) {
setup_default.solid.hooks.afterCreateOwner = function(owner) {
if (isSolidRoot(owner)) {

@@ -422,3 +415,3 @@ attachDebugger(owner);

var GraphUpdateListeners = /* @__PURE__ */ new Set();
solid_api_default.DEV.hooks.afterUpdate = chain(GraphUpdateListeners);
setup_default.solid.hooks.afterUpdate = chain(GraphUpdateListeners);
function addSolidUpdateListener(onUpdate) {

@@ -617,3 +610,3 @@ GraphUpdateListeners.add(onUpdate);

import { scheduleIdle as scheduleIdle2, throttle as throttle3 } from "@solid-primitives/scheduled";
import { createEffect as createEffect3, onCleanup as onCleanup2 } from "solid-js";
import { createEffect as createEffect3, onCleanup as onCleanup3 } from "solid-js";

@@ -637,3 +630,3 @@ // src/inspector/inspector.ts

getOwner as getOwner2,
onCleanup,
onCleanup as onCleanup2,
runWithOwner as runWithOwner2

@@ -889,3 +882,3 @@ } from "solid-js";

makeHoverElementListener((el) => setHoverTarget(el));
onCleanup(() => setHoverTarget(null));
onCleanup2(() => setHoverTarget(null));
makeEventListener(

@@ -924,4 +917,5 @@ window,

}
if (solid_api_default.locatorOptions) {
useLocator2(solid_api_default.locatorOptions);
let locator_options = setup_default.get_locator_options();
if (locator_options) {
useLocator2(locator_options);
}

@@ -999,3 +993,3 @@ return {

} else if (!ignoreNextStore && isStoreNode(value)) {
const node = solid_api_default.unwrap(value);
const node = setup_default.store.unwrap(value);
if (node !== value) Seen.set(node, index);

@@ -1116,4 +1110,4 @@ const id = getSdtId(node, "store-node" /* StoreNode */);

const value = get();
if (solid_api_default.getListener()) {
solid_api_default.onCleanup(
if (setup_default.solid.getListener()) {
onCleanup(
() => --o.n === 0 && self.onPropStateChange?.(key, "stale" /* Stale */)

@@ -1184,3 +1178,3 @@ );

function mapProps(props) {
const isProxy = !!props[solid_api_default.$PROXY];
const isProxy = !!props[setup_default.solid.$PROXY];
const record = {};

@@ -1254,3 +1248,3 @@ let checkProxyProps;

typeof location === "string" && (location = parseLocationString(location)) || // get location from the babel plugin marks
(location = solid_api_default.getOwnerLocation(owner)) && (location = parseLocationString(location))
(location = setup_default.get_owner_location(owner)) && (location = parseLocationString(location))
) {

@@ -1289,3 +1283,2 @@ details.location = location;

// src/inspector/store.ts
var { isWrappable } = solid_api_default.STORE_DEV;
var Nodes = /* @__PURE__ */ new WeakMap();

@@ -1296,3 +1289,3 @@ var OnNodeUpdate2 = null;

}
solid_api_default.STORE_DEV.hooks.onStoreNodeUpdate = (node, property, value, prev) => solid_api_default.untrack(() => {
setup_default.store.hooks.onStoreNodeUpdate = (node, property, value, prev) => {
if (!OnNodeUpdate2 || !Nodes.has(node) || typeof property === "symbol") return;

@@ -1307,3 +1300,3 @@ property = property.toString();

}
isWrappable(prev) && untrackStore(prev, storeProperty);
setup_default.store.isWrappable(prev) && untrackStore(prev, storeProperty);
if (value === void 0) {

@@ -1313,12 +1306,10 @@ OnNodeUpdate2(storeProperty, void 0);

OnNodeUpdate2(storeProperty, { value });
isWrappable(value) && trackStore(value, storeProperty);
setup_default.store.isWrappable(value) && trackStore(value, storeProperty);
}
});
};
function observeStoreNode(rootNode) {
rootNode = solid_api_default.unwrap(rootNode);
rootNode = setup_default.store.unwrap(rootNode);
const symbol = Symbol("inspect-store");
return solid_api_default.untrack(() => {
trackStore(rootNode, symbol);
return () => untrackStore(rootNode, symbol);
});
trackStore(rootNode, symbol);
return () => untrackStore(rootNode, symbol);
}

@@ -1346,3 +1337,3 @@ function trackStore(node, parent) {

const child = node[i];
isWrappable(child) && fn(i.toString(), child);
setup_default.store.isWrappable(child) && fn(i.toString(), child);
}

@@ -1352,3 +1343,3 @@ } else {

const { value, get } = Object.getOwnPropertyDescriptor(node, key);
if (!get && isWrappable(value)) fn(key, value);
if (!get && setup_default.store.isWrappable(value)) fn(key, value);
}

@@ -1473,3 +1464,3 @@ }

if (!props.enabled()) return;
onCleanup2(addSolidUpdateListener(() => checkProxyProps && triggerPropsCheck()));
onCleanup3(addSolidUpdateListener(() => checkProxyProps && triggerPropsCheck()));
});

@@ -1749,168 +1740,161 @@ return {

// src/main/index.ts
var plugin = createInternalRoot(() => {
const hub = {
output: createGlobalEmitter(),
input: createGlobalEmitter()
};
const [modules, toggleModules] = createStaticStore({
debugger: false,
locator: false,
dgraph: false,
locatorKeyPressSignal: () => false
var hub = {
output: createGlobalEmitter(),
input: createGlobalEmitter()
};
var [modules, toggleModules] = createStaticStore({
debugger: false,
locator: false,
dgraph: false,
locatorKeyPressSignal: () => false
});
var debuggerEnabled = createMemo4(() => modules.debugger || modules.locatorKeyPressSignal());
var dgraphEnabled = createMemo4(() => modules.dgraph && debuggerEnabled());
var locatorEnabled = createMemo4(
() => (modules.locatorKeyPressSignal() || modules.locator) && debuggerEnabled()
);
createEffect4(
defer3(debuggerEnabled, (enabled) => {
hub.output.emit("DebuggerEnabled", enabled);
})
);
var currentView = DEFAULT_MAIN_VIEW;
var viewChange = createEventBus();
function setView(view) {
batch(() => {
viewChange.emit(currentView = view);
});
const debuggerEnabled = createMemo4(() => modules.debugger || modules.locatorKeyPressSignal());
const dgraphEnabled = createMemo4(() => modules.dgraph && debuggerEnabled());
const locatorEnabled = createMemo4(
() => (modules.locatorKeyPressSignal() || modules.locator) && debuggerEnabled()
);
createEffect4(
defer3(debuggerEnabled, (enabled) => {
hub.output.emit("DebuggerEnabled", enabled);
})
);
let currentView = DEFAULT_MAIN_VIEW;
const viewChange = createEventBus();
function setView(view) {
batch(() => {
viewChange.emit(currentView = view);
});
}
function toggleModule(data) {
switch (data.module) {
case "structure" /* Structure */:
break;
case "dgraph" /* Dgraph */:
toggleModules("dgraph", data.enabled);
break;
case "locator" /* Locator */:
toggleModules("locator", data.enabled);
break;
}
function toggleModule(data) {
switch (data.module) {
case "structure" /* Structure */:
break;
case "dgraph" /* Dgraph */:
toggleModules("dgraph", data.enabled);
break;
case "locator" /* Locator */:
toggleModules("locator", data.enabled);
break;
}
}
const INITIAL_INSPECTED_STATE = {
ownerId: null,
signalId: null,
treeWalkerOwnerId: null
};
const [inspectedState, setInspectedState] = createSignal2(INITIAL_INSPECTED_STATE, { equals: false });
const inspectedOwnerId = createMemo4(() => inspectedState().ownerId);
createEffect4(() => hub.output.emit("InspectedState", inspectedState()));
function getTreeWalkerOwnerId(ownerId) {
const owner = ownerId && getObjectById(ownerId, "owner" /* Owner */);
const treeWalkerOwner = owner && structure.getClosestIncludedOwner(owner);
return treeWalkerOwner ? getSdtId(treeWalkerOwner, "owner" /* Owner */) : null;
}
function updateInspectedNode() {
setInspectedState((p) => ({
...p,
treeWalkerOwnerId: getTreeWalkerOwnerId(p.treeWalkerOwnerId)
}));
}
function resetInspectedNode() {
setInspectedState(INITIAL_INSPECTED_STATE);
}
function setInspectedNode(data) {
let { ownerId, signalId } = data ?? { ownerId: null, signalId: null };
if (ownerId && !getObjectById(ownerId, "owner" /* Owner */)) ownerId = null;
if (signalId && !getObjectById(signalId, "signal" /* Signal */)) signalId = null;
setInspectedState({
ownerId,
signalId,
treeWalkerOwnerId: getTreeWalkerOwnerId(ownerId)
});
}
createComputed(
defer3(debuggerEnabled, (enabled) => {
if (!enabled) resetInspectedNode();
})
);
const pushNodeUpdate = createBatchedUpdateEmitter((updates) => {
hub.output.emit("NodeUpdates", updates);
}
var INITIAL_INSPECTED_STATE = {
ownerId: null,
signalId: null,
treeWalkerOwnerId: null
};
var [inspectedState, setInspectedState] = createSignal2(INITIAL_INSPECTED_STATE, { equals: false });
var inspectedOwnerId = createMemo4(() => inspectedState().ownerId);
createEffect4(() => hub.output.emit("InspectedState", inspectedState()));
function getTreeWalkerOwnerId(ownerId) {
const owner = ownerId && getObjectById(ownerId, "owner" /* Owner */);
const treeWalkerOwner = owner && structure.getClosestIncludedOwner(owner);
return treeWalkerOwner ? getSdtId(treeWalkerOwner, "owner" /* Owner */) : null;
}
function updateInspectedNode() {
setInspectedState((p) => ({
...p,
treeWalkerOwnerId: getTreeWalkerOwnerId(p.treeWalkerOwnerId)
}));
}
function resetInspectedNode() {
setInspectedState(INITIAL_INSPECTED_STATE);
}
function setInspectedNode(data) {
let { ownerId, signalId } = data ?? { ownerId: null, signalId: null };
if (ownerId && !getObjectById(ownerId, "owner" /* Owner */)) ownerId = null;
if (signalId && !getObjectById(signalId, "signal" /* Signal */)) signalId = null;
setInspectedState({
ownerId,
signalId,
treeWalkerOwnerId: getTreeWalkerOwnerId(ownerId)
});
const structure = createStructure({
onStructureUpdate(updates) {
hub.output.emit("StructureUpdates", updates);
updateInspectedNode();
},
onNodeUpdate: pushNodeUpdate,
enabled: debuggerEnabled,
listenToViewChange: viewChange.listen
});
const inspector = createInspector({
emit: hub.output.emit,
enabled: debuggerEnabled,
inspectedOwnerId,
resetInspectedNode
});
createDependencyGraph({
emit: hub.output.emit,
enabled: dgraphEnabled,
listenToViewChange: viewChange.listen,
onNodeUpdate: pushNodeUpdate,
inspectedState
});
const locator = createLocator({
emit: hub.output.emit,
locatorEnabled,
setLocatorEnabledSignal: (signal) => toggleModules("locatorKeyPressSignal", () => signal),
onComponentClick(componentId, next) {
modules.debugger ? hub.output.emit("InspectedComponent", componentId) : next();
}
});
function openInspectedNodeLocation() {
const details = inspector.getLastDetails();
details?.location && locator.openElementSourceCode(details.location, details.name);
}
createComputed(
defer3(debuggerEnabled, (enabled) => {
if (!enabled) resetInspectedNode();
})
);
var pushNodeUpdate = createBatchedUpdateEmitter((updates) => {
hub.output.emit("NodeUpdates", updates);
});
var structure = createStructure({
onStructureUpdate(updates) {
hub.output.emit("StructureUpdates", updates);
updateInspectedNode();
},
onNodeUpdate: pushNodeUpdate,
enabled: debuggerEnabled,
listenToViewChange: viewChange.listen
});
var inspector = createInspector({
emit: hub.output.emit,
enabled: debuggerEnabled,
inspectedOwnerId,
resetInspectedNode
});
createDependencyGraph({
emit: hub.output.emit,
enabled: dgraphEnabled,
listenToViewChange: viewChange.listen,
onNodeUpdate: pushNodeUpdate,
inspectedState
});
var locator = createLocator({
emit: hub.output.emit,
locatorEnabled,
setLocatorEnabledSignal: (signal) => toggleModules("locatorKeyPressSignal", () => signal),
onComponentClick(componentId, next) {
modules.debugger ? hub.output.emit("InspectedComponent", componentId) : next();
}
createEffect4(
defer3(modules.locatorKeyPressSignal, (state) => hub.output.emit("LocatorModeChange", state))
);
hub.input.listen((e) => {
switch (e.name) {
case "ResetState": {
batch(() => {
resetInspectedNode();
currentView = DEFAULT_MAIN_VIEW;
structure.resetTreeWalkerMode();
locator.setDevtoolsHighlightTarget(null);
});
break;
}
case "HighlightElementChange":
return locator.setDevtoolsHighlightTarget(e.details);
case "InspectNode":
return setInspectedNode(e.details);
case "InspectValue":
return inspector.toggleValueNode(e.details);
case "OpenLocation":
return openInspectedNodeLocation();
case "TreeViewModeChange":
return structure.setTreeWalkerMode(e.details);
case "ViewChange":
return setView(e.details);
case "ToggleModule":
return toggleModule(e.details);
});
function openInspectedNodeLocation() {
const details = inspector.getLastDetails();
details?.location && locator.openElementSourceCode(details.location, details.name);
}
createEffect4(
defer3(modules.locatorKeyPressSignal, (state) => hub.output.emit("LocatorModeChange", state))
);
hub.input.listen((e) => {
switch (e.name) {
case "ResetState": {
batch(() => {
resetInspectedNode();
currentView = DEFAULT_MAIN_VIEW;
structure.resetTreeWalkerMode();
locator.setDevtoolsHighlightTarget(null);
});
break;
}
});
function useDebugger2() {
return {
meta: {
versions: solid_api_default.versions
},
enabled: debuggerEnabled,
toggleEnabled: (enabled) => void toggleModules("debugger", enabled),
on: hub.output.on,
listen: hub.output.listen,
emit: hub.input.emit
};
case "HighlightElementChange":
return locator.setDevtoolsHighlightTarget(e.details);
case "InspectNode":
return setInspectedNode(e.details);
case "InspectValue":
return inspector.toggleValueNode(e.details);
case "OpenLocation":
return openInspectedNodeLocation();
case "TreeViewModeChange":
return structure.setTreeWalkerMode(e.details);
case "ViewChange":
return setView(e.details);
case "ToggleModule":
return toggleModule(e.details);
}
});
function useDebugger() {
return {
useDebugger: useDebugger2,
useLocator: locator.useLocator
meta: {
versions: setup_default.versions
},
enabled: debuggerEnabled,
toggleEnabled: (enabled) => void toggleModules("debugger", enabled),
on: hub.output.on,
listen: hub.output.listen,
emit: hub.input.emit
};
});
var { useDebugger, useLocator } = plugin;
}
var useLocator = locator.useLocator;
export {
addSolidUpdateListener,
attachDebugger,
createInternalRoot,
getNodeName,

@@ -1917,0 +1901,0 @@ getNodeType,

@@ -1,1 +0,1 @@

{"version":3,"file":"inspector.d.ts","sourceRoot":"","sources":["../../src/inspector/inspector.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAC,MAAM,EAAU,KAAK,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAA;AAYxE,OAAO,EAAC,KAAK,kBAAkB,EAAE,eAAe,EAAC,MAAM,YAAY,CAAA;AAEnE,qBAAa,SAAS;IAGC,QAAQ,EAAE,CAAC,MAAM,OAAO,CAAC,GAAG,SAAS;IAFxD,OAAO,CAAC,aAAa,CAAqB;IAC1C,OAAO,CAAC,QAAQ,CAAQ;gBACL,QAAQ,EAAE,CAAC,MAAM,OAAO,CAAC,GAAG,SAAS;IACxD,gBAAgB,CAAC,KAAK,EAAE,YAAY;IAGpC,OAAO,CAAC,WAAW;IAInB,KAAK;IAIL,UAAU;IAGV,WAAW,CAAC,QAAQ,EAAE,OAAO;CAIhC;AAED,qBAAa,YAAY;IACrB,OAAO,CAAC,MAAM,CAAuC;IACrD,GAAG,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AAC,OAAO,oBAAoB,CAAC;CAoJrE,CAAA"}

@@ -1,1 +0,1 @@

{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/inspector/store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,MAAM,EAAE,KAAK,EAAC,MAAM,aAAa,CAAA;AAI9C,MAAM,MAAM,iBAAiB,GAAG,GAAG,MAAM,IAAI,MAAM,EAAE,CAAA;AACrD;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG;IAAC,KAAK,EAAE,OAAO,CAAA;CAAC,GAAG,MAAM,GAAG,SAAS,CAAA;AASnE,MAAM,MAAM,YAAY,GAAG,CAAC,QAAQ,EAAE,iBAAiB,EAAE,IAAI,EAAE,eAAe,KAAK,IAAI,CAAA;AAEvF,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,YAAY,GAAG,IAAI,CAE3D;AA4BD,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,YAAY,CASxE"}
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/inspector/store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,MAAM,EAAE,KAAK,EAAC,MAAM,aAAa,CAAA;AAE9C,MAAM,MAAM,iBAAiB,GAAG,GAAG,MAAM,IAAI,MAAM,EAAE,CAAA;AACrD;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG;IAAC,KAAK,EAAE,OAAO,CAAA;CAAC,GAAG,MAAM,GAAG,SAAS,CAAA;AASnE,MAAM,MAAM,YAAY,GAAG,CAAC,QAAQ,EAAE,iBAAiB,EAAE,IAAI,EAAE,eAAe,KAAK,IAAI,CAAA;AAEvF,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,YAAY,GAAG,IAAI,CAE3D;AA2BD,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,YAAY,CAOxE"}

@@ -1,1 +0,1 @@

{"version":3,"file":"index.d.ts","sourceRo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tB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAC,KAAK,uBAAuB,EAAE,KAAK,cAAc,EAAC,MAAM,YAAY,CAAA;AAE5E,OAAO,EAAC,mBAAmB,EAAC,MAAM,sBAAsB,CAAA;AAExD,wBAAgB,aAAa,CAAC,KAAK,EAAE;IACjC,IAAI,EAAE,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAA;IAC1C,cAAc,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IACjC,uBAAuB,CAAC,MAAM,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,IAAI,CAAA;IACxD,gBAAgB,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,GAAG,IAAI,CAAA;CAClE;0BAgHgC,cAAc,KAAG,IAAI;uCAoBX,uBAAuB;oCAG1B,cAAc,WAAW,cAAc,CAAC,SAAS,CAAC;EAWzF"}

@@ -52,8 +52,11 @@ import { type GlobalEmitter } from '@solid-primitives/event-bus';

};
export declare const useDebugger: () => {
/**
* Used for connecting debugger to devtools
*/
export declare function useDebugger(): {
meta: {
versions: {
readonly client: string | null;
readonly solid: string | null;
readonly expectedSolid: string | null;
get_client(): string | null;
get_solid(): string | null;
get_expected_solid(): string | null;
};

@@ -66,3 +69,4 @@ };

emit: <K extends keyof Debugger.InputChannels>(event: K, ..._: void extends Debugger.InputChannels[K] ? [payload?: Debugger.InputChannels[K] | undefined] : [payload: Debugger.InputChannels[K]]) => void;
}, useLocator: (options: import("../locator/types.ts").LocatorOptions) => void;
};
export declare const useLocator: (options: import("../locator/types.ts").LocatorOptions) => void;
//# sourceMappingURL=index.d.ts.map

@@ -1,1 +0,1 @@

{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/main/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,KAAK,aAAa,EAAC,MAAM,6BAA6B,CAAA;AAInG,OAAO,EAAwB,KAAK,YAAY,EAAC,MAAM,wBAAwB,CAAA;AAC/E,OAA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;EAKvC;AAED,eAAO,MAAM,UAAU,iEAAqB,CAAA"}

@@ -1,2 +0,1 @@

import SolidAPI from './solid-api.ts';
import { type NodeID, type Solid } from './types.ts';

@@ -30,6 +29,2 @@ export declare const getCurrentRoots: () => Iterable<Solid.Root>;

/**
* Sold's `createRoot` primitive that won't be tracked by the debugger.
*/
export declare const createInternalRoot: typeof SolidAPI.createRoot;
/**
* Finds the top-level root owner of a given owner.

@@ -36,0 +31,0 @@ */

@@ -1,1 +0,1 @@

{"version":3,"file":"roots.d.ts","sourceRoot":"","sources":["../../src/main/roots.ts"],"names":[],"mappings":"AAIA,OAAO,QAAQ,MAAM,gBAAgB,CAAA;AACrC,OAAO,EAAC,KAAK,MAAM,EAAE,KAAK,KAAK,EAAC,MAAM,YAAY,CAAA;AAMlD,eAAO,MAAM,eAAe,QAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAqB,CAAA;AAE3E,QAAA,IAAI,kBAAkB,EAAE,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;AAClF,4EAA4E;AAC5E,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,OAAO,kBAAkB,QAElE;AACD,QAAA,IAAI,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;AACzD,yCAAyC;AACzC,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,OAAO,aAAa,QAExD;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,GAAG,IAAI,CAIrD;AAsCD;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,KAAK,kCAAsB,GAAG,IAAI,CA2DhE;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,IAAI,IAAI,CAGxC;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,OAAO,QAAQ,CAAC,UAQhD,CAA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C,KAAK,GAAG,KAAK,CAAC,IAAI,GAAG,IAAI,CAQhE;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAClC,KAAK,EAAE,KAAK,CAAC,KAAK,GACnB;IAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;IAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAA;CAAC,GAAG;IAAC,KAAK,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,IAAI,CAAA;CAAC,CAapE"}

@@ -1,47 +0,4 @@

import type * as SolidAPI from 'solid-js';
import type { $PROXY, DEV, getListener, getOwner, onCleanup, untrack } from 'solid-js';
import type * as StoreAPI from 'solid-js/store';
import type { DEV as STORE_DEV, unwrap } from 'solid-js/store';
import type * as WebAPI from 'solid-js/web';
import type { EncodedValue, PropGetterState } from '../inspector/types.ts';
import type { LocatorOptions, SourceLocation } from '../locator/types.ts';
import type { SourceLocation } from '../locator/types.ts';
import { NodeType, ValueItemType } from './constants.ts';
export declare const enum DevEventType {
RootCreated = "RootCreated"
}
export type DevEventDataMap = {
[DevEventType.RootCreated]: Solid.Owner;
};
export type StoredDevEvent = {
[K in keyof DevEventDataMap]: {
timestamp: number;
type: K;
data: DevEventDataMap[K];
};
}[keyof DevEventDataMap];
declare global {
/** Solid DEV APIs exposed to the debugger by the setup script */
var SolidDevtools$$: {
readonly Solid: typeof SolidAPI;
readonly Store: typeof StoreAPI;
readonly Web: typeof WebAPI;
readonly DEV: NonNullable<typeof DEV>;
readonly getOwner: typeof getOwner;
readonly createRoot: typeof SolidAPI.createRoot;
readonly getListener: typeof getListener;
readonly onCleanup: typeof onCleanup;
readonly $PROXY: typeof $PROXY;
readonly untrack: typeof untrack;
readonly STORE_DEV: NonNullable<typeof STORE_DEV>;
readonly unwrap: typeof unwrap;
readonly getDevEvents: () => StoredDevEvent[];
readonly locatorOptions: LocatorOptions | null;
readonly versions: {
readonly client: string | null;
readonly solid: string | null;
readonly expectedSolid: string | null;
};
readonly getOwnerLocation: (owner: Solid.Owner) => string | null;
} | undefined;
}
export type NodeID = `#${string}`;

@@ -48,0 +5,0 @@ export type ValueItemID = `${ValueItemType.Signal}:${NodeID}` | `${ValueItemType.Prop}:${string}` | ValueItemType.Value;

@@ -1,1 +0,1 @@

{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/main/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,QAAQ,MAAM,UAAU,CAAA;AACzC,OAAO,KAAK,EAAC,MAAM,EAAE,GAAG,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAC,MAAM,UAAU,CAAA;AACpF,OAAO,KAAK,KAAK,QAAQ,MAAM,gBAAgB,CAAA;AAC/C,OAAO,KAAK,EAAC,GAAG,IAAI,SAAS,EAAE,MAAM,EAAC,MAAM,gBAAgB,CAAA;AAC5D,OAAO,KAAK,KAAK,MAAM,MAAM,cAAc,CAAA;AAC3C,OAAO,KAAK,EAAC,YAAY,EAAE,eAAe,EAAC,MAAM,uBAAuB,CAAA;AACxE,OAAO,KAAK,EAAC,cAAc,EAAE,cAAc,EAAC,MAAM,qBAAqB,CAAA;AACvE,OAAO,EAAC,QAAQ,EAAE,aAAa,EAAC,MAAM,gBAAgB,CAAA;AAMtD,0BAAkB,YAAY;IAC1B,WAAW,gBAAgB;CAC9B;AAED,MAAM,MAAM,eAAe,GAAG;IAC1B,CAAC,YAAY,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC,KAAK,CAAA;CAC1C,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;KACxB,CAAC,IAAI,MAAM,eAAe,GAAG;QAC1B,SAAS,EAAE,MAAM,CAAA;QACjB,IAAI,EAAE,CAAC,CAAA;QACP,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,CAAA;KAC3B;CACJ,CAAC,MAAM,eAAe,CAAC,CAAA;AAExB,OAAO,CAAC,MAAM,CAAC;IACX,iEAAiE;IACjE,IAAI,eAAe,EACb;QACI,QAAQ,CAAC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AAA;KAChB;IAED,UAAiB,MAAM;QACnB,IAAI,EAAE,QAAQ,CAAC,MAAM,GAAG,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAA;QACtD,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,EAAE,EAAE,MAAM,CAAA;QACV,KAAK,EAAE,YAAY,EAAE,CAAA;KACxB;IAED,KAAY,KAAK,GAAG;QAChB,KAAK,EAAE,OAAO,CAAA;QACd,MAAM,EAAE;YACJ,CAAC,GAAG,EAAE,MAAM,GAAG;gBAAC,MAAM,EAAE,KAAK,GAAG,eAAe,CAAC;gBAAC,KAAK,EAAE,YAAY,EAAE,GAAG,IAAI,CAAA;aAAC,CAAA;SACjF,CAAA;KACJ,CAAA;IAED,UAAiB,YAAY;QACzB,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,IAAI,EAAE,QAAQ,CAAA;QACd,KAAK,CAAC,EAAE,KAAK,CAAA;QACb,OAAO,EAAE,MAAM,EAAE,CAAA;QACjB,uBAAuB;QACvB,KAAK,CAAC,EAAE,YAAY,EAAE,CAAA;QAEtB,QAAQ,CAAC,EAAE,cAAc,CAAA;KAC5B;CACJ"}

@@ -24,2 +24,3 @@ import { type Emit } from '@solid-primitives/event-bus';

export declare function isDisposed(o: Readonly<Solid.Owner>): boolean;
export declare function onCleanup(fn: () => void): void;
export declare function getComponentRefreshNode(owner: Readonly<Solid.Component>): Solid.Memo | null;

@@ -26,0 +27,0 @@ export declare function resolveElements(value: unknown): HTMLElement[] | null;

@@ -1,1 +0,1 @@

{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/main/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,KAAK,IAAI,EAAC,MAAM,6BAA6B,CAAA;AAGrD,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAA;AAEvC,OAAO,EAAC,KAAK,KAAK,EAAC,MAAM,YAAY,CAAA;AAIrC,eAAO,M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AAI,EAAE,KAAK,CAAC,KAAK,EACjB,SAAS,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,KAAK,OAAO,GAC3C,KAAK,CAAC,KAAK,GAAG,IAAI,CAOpB;AAED,wBAAgB,WAAW,CACvB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,SAAS,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,KAAK,OAAO,GAC3C,KAAK,CAAC,KAAK,GAAG,IAAI,CAMpB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAC1B,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,EAAE,EAAE,YAAY,EAChB,OAAO,UAAQ,EACf,MAAM,CAAC,EAAE,MAAM,GAChB,YAAY,CAiBd;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAC3B,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,EAAE,EAAE,YAAY,EAChB,OAAO,UAAQ,EACf,MAAM,CAAC,EAAE,MAAM,GAChB,YAAY,CAKd;AAED;;GAEG;AACH,wBAAgB,cAAc,CAC1B,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,EAAE,EAAE,YAAY,EAChB,OAAO,UAAQ,EACf,MAAM,CAAC,EAAE,MAAM,GAChB,YAAY,CAGd;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAYlF"}

@@ -0,3 +1,5 @@

import * as s from 'solid-js';
import * as store from 'solid-js/store';
import type { LocatorOptions } from './locator/types.ts';
import { type Solid } from './main/types.ts';
import type { Solid } from './main/types.ts';
/**

@@ -12,2 +14,28 @@ * Set the location of the owner in source code.

export declare function setSolidVersion(version: string, expected: string): void;
declare global {
/** Solid DEV APIs exposed to the debugger by the setup script */
var SolidDevtools$$: undefined | {
solid: NonNullable<typeof s.DEV> & {
getOwner: typeof s.getOwner;
getListener: typeof s.getListener;
untrack: typeof s.untrack;
$PROXY: typeof s.$PROXY;
$TRACK: typeof s.$TRACK;
$DEVCOMP: typeof s.$DEVCOMP;
sharedConfig: typeof s.sharedConfig;
};
store: NonNullable<typeof store.DEV> & {
unwrap: typeof store.unwrap;
$RAW: typeof store.$RAW;
};
get_created_owners(): Solid.Owner[];
get_locator_options(): LocatorOptions | null;
versions: {
get_client(): string | null;
get_solid(): string | null;
get_expected_solid(): string | null;
};
get_owner_location(owner: Solid.Owner): string | null;
};
}
//# sourceMappingURL=setup.d.ts.map

@@ -1,1 +0,1 @@

{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,oBAAoB,CAAA;AACtD,OAAO,EAAe,KAAK,KAAK,EAAsB,MAAM,iBAAiB,CAAA;AAI7E;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,QAGhD;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,iBAElD;AAGD,wBAAgB,UAAU,CAAC,OAAO,EAAE,cAAc,QAEjD;AAMD,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,QAE/C;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,QAGhE"}
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,CAAC,MAAU,UAAU,CAAA;AACjC,OAAO,KAAK,KAAK,MAAM,gBAAgB,CAAA;AAEvC,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,oBAAoB,CAAA;AACtD,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,iBAAiB,CAAA;AAI1C;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,QAGhD;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE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AAA;CACJ"}
// src/setup.ts
import * as s from "solid-js";
import * as store from "solid-js/store";
import { error } from "@solid-devtools/shared/utils";
import * as SolidAPI from "solid-js";
import { $PROXY, DEV, createRoot, getListener, getOwner, onCleanup, untrack } from "solid-js";
import * as StoreAPI from "solid-js/store";
import { DEV as STORE_DEV, unwrap } from "solid-js/store";
import * as WebAPI from "solid-js/web";
var OwnerLocationMap = /* @__PURE__ */ new WeakMap();
function setOwnerLocation(location) {
const owner = getOwner();
const owner = s.getOwner();
owner && OwnerLocationMap.set(owner, location);

@@ -30,50 +27,48 @@ }

}
var DevEvents = [];
if (window.SolidDevtools$$) {
error("Debugger is already setup");
}
if (!DEV || !STORE_DEV) {
if (!s.DEV || !store.DEV) {
error("SolidJS in not in development mode!");
} else {
let created_owners = [];
window.SolidDevtools$$ = {
Solid: SolidAPI,
Store: StoreAPI,
Web: WebAPI,
DEV,
getOwner,
createRoot,
getListener,
onCleanup,
$PROXY,
untrack,
STORE_DEV,
unwrap,
getDevEvents() {
const events = DevEvents ?? [];
DevEvents = null;
solid: {
...s.DEV,
getOwner: s.getOwner,
getListener: s.getListener,
untrack: s.untrack,
$PROXY: s.$PROXY,
$TRACK: s.$TRACK,
$DEVCOMP: s.$DEVCOMP,
sharedConfig: s.sharedConfig
},
store: {
...store.DEV,
unwrap: store.unwrap,
$RAW: store.$RAW
},
get_created_owners() {
const events = created_owners ?? [];
created_owners = null;
return events;
},
get locatorOptions() {
get_locator_options() {
return PassedLocatorOptions;
},
versions: {
get client() {
get_client() {
return ClientVersion;
},
get solid() {
get_solid() {
return SolidVersion;
},
get expectedSolid() {
get_expected_solid() {
return ExpectedSolidVersion;
}
},
getOwnerLocation
get_owner_location: getOwnerLocation
};
DEV.hooks.afterCreateOwner = function(owner) {
if (!DevEvents) return;
DevEvents.push({
timestamp: Date.now(),
type: "RootCreated" /* RootCreated */,
data: owner
});
s.DEV.hooks.afterCreateOwner = (owner) => {
created_owners?.push(owner);
};

@@ -80,0 +75,0 @@ }

@@ -5,3 +5,2 @@ import {

DebuggerModule,
DevEventType,
DevtoolsMainView,

@@ -22,3 +21,3 @@ INFINITY,

getValueItemId
} from "./chunk-LJJVSETA.js";
} from "./chunk-NURNCQIN.js";
export {

@@ -28,3 +27,2 @@ DEFAULT_MAIN_VIEW,

DebuggerModule,
DevEventType,
DevtoolsMainView,

@@ -31,0 +29,0 @@ INFINITY,

{
"name": "@solid-devtools/debugger",
"version": "0.24.2",
"version": "0.24.3",
"description": "Debugger of the Solid's reactivity graph — a cornerstone of all solid-devtools.",

@@ -17,3 +17,3 @@ "license": "MIT",

"private": false,
"sideEffects": false,
"sideEffects": true,
"publishConfig": {

@@ -72,5 +72,2 @@ "access": "public"

},
"devDependencies": {
"solid-js": "^1.9.3"
},
"keywords": [

@@ -77,0 +74,0 @@ "solid",

// src/inspector/types.ts
var INFINITY = "Infinity";
var NEGATIVE_INFINITY = "NegativeInfinity";
var NAN = "NaN";
var UNDEFINED = "undefined";
var ValueType = /* @__PURE__ */ ((ValueType2) => {
ValueType2["Number"] = "number";
ValueType2["Boolean"] = "boolean";
ValueType2["String"] = "string";
ValueType2["Null"] = "null";
ValueType2["Symbol"] = "symbol";
ValueType2["Array"] = "array";
ValueType2["Object"] = "object";
ValueType2["Function"] = "function";
ValueType2["Getter"] = "getter";
ValueType2["Element"] = "element";
ValueType2["Instance"] = "instance";
ValueType2["Store"] = "store";
ValueType2["Unknown"] = "unknown";
return ValueType2;
})(ValueType || {});
var PropGetterState = /* @__PURE__ */ ((PropGetterState2) => {
PropGetterState2["Live"] = "live";
PropGetterState2["Stale"] = "stale";
return PropGetterState2;
})(PropGetterState || {});
// src/locator/types.ts
var WINDOW_PROJECTPATH_PROPERTY = "$sdt_projectPath";
var LOCATION_ATTRIBUTE_NAME = "data-source-loc";
// src/main/constants.ts
var DevtoolsMainView = /* @__PURE__ */ ((DevtoolsMainView2) => {
DevtoolsMainView2["Structure"] = "structure";
return DevtoolsMainView2;
})(DevtoolsMainView || {});
var DEFAULT_MAIN_VIEW = "structure" /* Structure */;
var DebuggerModule = /* @__PURE__ */ ((DebuggerModule2) => {
DebuggerModule2["Locator"] = "locator";
DebuggerModule2["Structure"] = "structure";
DebuggerModule2["Dgraph"] = "dgraph";
return DebuggerModule2;
})(DebuggerModule || {});
var TreeWalkerMode = /* @__PURE__ */ ((TreeWalkerMode2) => {
TreeWalkerMode2["Owners"] = "owners";
TreeWalkerMode2["Components"] = "components";
TreeWalkerMode2["DOM"] = "dom";
return TreeWalkerMode2;
})(TreeWalkerMode || {});
var DEFAULT_WALKER_MODE = "components" /* Components */;
var NodeType = /* @__PURE__ */ ((NodeType2) => {
NodeType2["Root"] = "root";
NodeType2["Component"] = "component";
NodeType2["Element"] = "element";
NodeType2["Effect"] = "effect";
NodeType2["Render"] = "render";
NodeType2["Memo"] = "memo";
NodeType2["Computation"] = "computation";
NodeType2["Refresh"] = "refresh";
NodeType2["Context"] = "context";
NodeType2["CatchError"] = "catchError";
NodeType2["Signal"] = "signal";
NodeType2["Store"] = "store";
return NodeType2;
})(NodeType || {});
var NODE_TYPE_NAMES = {
["root" /* Root */]: "Root",
["component" /* Component */]: "Component",
["element" /* Element */]: "Element",
["effect" /* Effect */]: "Effect",
["render" /* Render */]: "Render Effect",
["memo" /* Memo */]: "Memo",
["computation" /* Computation */]: "Computation",
["refresh" /* Refresh */]: "Refresh",
["context" /* Context */]: "Context",
["catchError" /* CatchError */]: "CatchError",
["signal" /* Signal */]: "Signal",
["store" /* Store */]: "Store"
};
var ValueItemType = /* @__PURE__ */ ((ValueItemType2) => {
ValueItemType2["Signal"] = "signal";
ValueItemType2["Prop"] = "prop";
ValueItemType2["Value"] = "value";
return ValueItemType2;
})(ValueItemType || {});
var UNKNOWN = "unknown";
// src/main/types.ts
var DevEventType = /* @__PURE__ */ ((DevEventType2) => {
DevEventType2["RootCreated"] = "RootCreated";
return DevEventType2;
})(DevEventType || {});
var getValueItemId = (type, id) => {
if (type === "value" /* Value */) return "value" /* Value */;
return `${type}:${id}`;
};
export {
DevtoolsMainView,
DEFAULT_MAIN_VIEW,
DebuggerModule,
TreeWalkerMode,
DEFAULT_WALKER_MODE,
NodeType,
NODE_TYPE_NAMES,
ValueItemType,
UNKNOWN,
INFINITY,
NEGATIVE_INFINITY,
NAN,
UNDEFINED,
ValueType,
PropGetterState,
WINDOW_PROJECTPATH_PROPERTY,
LOCATION_ATTRIBUTE_NAME,
DevEventType,
getValueItemId
};
declare const SolidApi: {
readonly Solid: typeof import("solid-js");
readonly Store: typeof import("solid-js/store");
readonly Web: typeof import("solid-js/web");
readonly DEV: NonNullable<typeof import("solid-js").DEV>;
readonly getOwner: typeof import("solid-js").getOwner;
readonly createRoot: typeof import("solid-js").createRoot;
readonly getListener: typeof import("solid-js").getListener;
readonly onCleanup: typeof import("solid-js").onCleanup;
readonly $PROXY: typeof import("solid-js").$PROXY;
readonly untrack: typeof import("solid-js").untrack;
readonly STORE_DEV: NonNullable<typeof import("solid-js/store").DEV>;
readonly unwrap: typeof import("solid-js/store").unwrap;
readonly getDevEvents: () => import("./types.ts").StoredDevEvent[];
readonly locatorOptions: import("../types.ts").LocatorOptions | null;
readonly versions: {
readonly client: string | null;
readonly solid: string | null;
readonly expectedSolid: string | null;
};
readonly getOwnerLocation: (owner: import("./types.ts").Solid.Owner) => string | null;
};
export default SolidApi;
//# sourceMappingURL=solid-api.d.ts.map
{"version":3,"file":"solid-api.d.ts","sourceRoot":"","sources":["../../src/main/solid-api.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;CAA6B,CAAA;AAE3C,eAAe,QAAQ,CAAA"}

Sorry, the diff of this file is too big to display