likec4 1.32.1 → 1.32.2
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/__app__/src/main.js +97 -138
- package/dist/cli/index.mjs +3 -3
- package/dist/index.d.mts +1 -4
- package/dist/index.mjs +1 -1
- package/dist/shared/{likec4.CVzYPnDX.d.mts → likec4.BaQDJZ_m.d.mts} +224 -128
- package/dist/shared/{likec4.B20Ey-3l.mjs → likec4.D6SCXR05.mjs} +1 -1
- package/dist/shared/likec4.DDbeRd6k.mjs +2383 -0
- package/dist/vite-plugin/index.d.mts +2 -2
- package/dist/vite-plugin/index.mjs +1 -1
- package/package.json +24 -27
- package/dist/shared/likec4.CbTFhAsc.mjs +0 -2386
package/__app__/src/main.js
CHANGED
|
@@ -1300,8 +1300,8 @@ function useHover$1() {
|
|
|
1300
1300
|
[handleMouseEnter, handleMouseLeave]
|
|
1301
1301
|
), hovered };
|
|
1302
1302
|
}
|
|
1303
|
-
function useDisclosure(
|
|
1304
|
-
const [opened, setOpened] = useState(
|
|
1303
|
+
function useDisclosure(initialState2 = !1, options = {}) {
|
|
1304
|
+
const [opened, setOpened] = useState(initialState2), open = useCallback(() => {
|
|
1305
1305
|
setOpened((isOpened) => isOpened || (options.onOpen?.(), !0));
|
|
1306
1306
|
}, [options.onOpen]), close = useCallback(() => {
|
|
1307
1307
|
setOpened((isOpened) => isOpened && (options.onClose?.(), !1));
|
|
@@ -12646,7 +12646,7 @@ const defaultProps$8 = {
|
|
|
12646
12646
|
styles,
|
|
12647
12647
|
unstyled,
|
|
12648
12648
|
vars,
|
|
12649
|
-
initialState,
|
|
12649
|
+
initialState: initialState2,
|
|
12650
12650
|
maxHeight,
|
|
12651
12651
|
hideLabel,
|
|
12652
12652
|
showLabel,
|
|
@@ -12670,7 +12670,7 @@ const defaultProps$8 = {
|
|
|
12670
12670
|
varsResolver: varsResolver$5
|
|
12671
12671
|
}), _id = useId$2(id2), regionId = `${_id}-region`, [show, setShowState] = useUncontrolled({
|
|
12672
12672
|
value: expanded,
|
|
12673
|
-
defaultValue:
|
|
12673
|
+
defaultValue: initialState2,
|
|
12674
12674
|
finalValue: !1,
|
|
12675
12675
|
onChange: onExpandedChange
|
|
12676
12676
|
}), { ref: contentRef, height } = useElementSize(), spoilerMoreContent = show ? hideLabel : showLabel, spoiler = spoilerMoreContent !== null && maxHeight < height;
|
|
@@ -13255,14 +13255,14 @@ function isNodeIndeterminate(value, data, checkedState) {
|
|
|
13255
13255
|
return checkedState.length === 0 ? !1 : getAllCheckedNodes(data, checkedState).result.some((node2) => node2.value === value && node2.indeterminate);
|
|
13256
13256
|
}
|
|
13257
13257
|
const memoizedIsNodeIndeterminate = memoize(isNodeIndeterminate);
|
|
13258
|
-
function getInitialTreeExpandedState(
|
|
13258
|
+
function getInitialTreeExpandedState(initialState2, data, value, acc = {}) {
|
|
13259
13259
|
return data.forEach((node2) => {
|
|
13260
|
-
acc[node2.value] = node2.value in
|
|
13260
|
+
acc[node2.value] = node2.value in initialState2 ? initialState2[node2.value] : node2.value === value, Array.isArray(node2.children) && getInitialTreeExpandedState(initialState2, node2.children, value, acc);
|
|
13261
13261
|
}), acc;
|
|
13262
13262
|
}
|
|
13263
|
-
function getInitialCheckedState(
|
|
13263
|
+
function getInitialCheckedState(initialState2, data) {
|
|
13264
13264
|
const acc = [];
|
|
13265
|
-
return
|
|
13265
|
+
return initialState2.forEach((node2) => acc.push(...getChildrenNodesValues(node2, data))), Array.from(new Set(acc));
|
|
13266
13266
|
}
|
|
13267
13267
|
function useTree({
|
|
13268
13268
|
initialSelectedState = [],
|
|
@@ -13542,7 +13542,7 @@ function batch(fn) {
|
|
|
13542
13542
|
}
|
|
13543
13543
|
}
|
|
13544
13544
|
class Store {
|
|
13545
|
-
constructor(
|
|
13545
|
+
constructor(initialState2, options) {
|
|
13546
13546
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = (listener) => {
|
|
13547
13547
|
var _a, _b;
|
|
13548
13548
|
this.listeners.add(listener);
|
|
@@ -13553,7 +13553,7 @@ class Store {
|
|
|
13553
13553
|
}, this.setState = (updater) => {
|
|
13554
13554
|
var _a, _b, _c;
|
|
13555
13555
|
this.prevState = this.state, this.state = (_a = this.options) != null && _a.updateFn ? this.options.updateFn(this.prevState)(updater) : updater(this.prevState), (_c = (_b = this.options) == null ? void 0 : _b.onUpdate) == null || _c.call(_b), __flush(this);
|
|
13556
|
-
}, this.prevState =
|
|
13556
|
+
}, this.prevState = initialState2, this.state = initialState2, this.options = options;
|
|
13557
13557
|
}
|
|
13558
13558
|
}
|
|
13559
13559
|
class Derived {
|
|
@@ -26595,11 +26595,11 @@ const __vite_import_meta_env__ = {}, createStoreImpl = (createState2) => {
|
|
|
26595
26595
|
const previousState = state;
|
|
26596
26596
|
state = replace ?? (typeof nextState != "object" || nextState === null) ? nextState : Object.assign({}, state, nextState), listeners.forEach((listener) => listener(state, previousState));
|
|
26597
26597
|
}
|
|
26598
|
-
}, getState = () => state, api = { setState, getState, getInitialState: () =>
|
|
26598
|
+
}, getState = () => state, api = { setState, getState, getInitialState: () => initialState2, subscribe: (listener) => (listeners.add(listener), () => listeners.delete(listener)), destroy: () => {
|
|
26599
26599
|
(__vite_import_meta_env__ ? "production" : void 0) !== "production" && console.warn(
|
|
26600
26600
|
"[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
|
|
26601
26601
|
), listeners.clear();
|
|
26602
|
-
} },
|
|
26602
|
+
} }, initialState2 = state = createState2(setState, getState, api);
|
|
26603
26603
|
return api;
|
|
26604
26604
|
}, createStore$1 = (createState2) => createState2 ? createStoreImpl(createState2) : createStoreImpl, { useDebugValue } = React__default, { useSyncExternalStoreWithSelector } = useSyncExternalStoreExports, identity = (arg) => arg;
|
|
26605
26605
|
function useStoreWithEqualityFn(api, selector3 = identity, equalityFn) {
|
|
@@ -32466,8 +32466,8 @@ ${err.message}`);
|
|
|
32466
32466
|
}
|
|
32467
32467
|
function getInitialStateNodesWithTheirAncestors(stateNode) {
|
|
32468
32468
|
const states = getInitialStateNodes(stateNode);
|
|
32469
|
-
for (const
|
|
32470
|
-
for (const ancestor of getProperAncestors(
|
|
32469
|
+
for (const initialState2 of states)
|
|
32470
|
+
for (const ancestor of getProperAncestors(initialState2, stateNode))
|
|
32471
32471
|
states.add(ancestor);
|
|
32472
32472
|
return states;
|
|
32473
32473
|
}
|
|
@@ -32731,8 +32731,8 @@ ${err.message}`);
|
|
|
32731
32731
|
addProperAncestorStatesToEnter(s2, stateNode.parent, statesToEnter, historyValue, statesForDefaultEntry);
|
|
32732
32732
|
}
|
|
32733
32733
|
else if (stateNode.type === "compound") {
|
|
32734
|
-
const [
|
|
32735
|
-
isHistoryNode(
|
|
32734
|
+
const [initialState2] = stateNode.initial.target;
|
|
32735
|
+
isHistoryNode(initialState2) || (statesToEnter.add(initialState2), statesForDefaultEntry.add(initialState2)), addDescendantStatesToEnter(initialState2, historyValue, statesForDefaultEntry, statesToEnter), addProperAncestorStatesToEnter(initialState2, stateNode, statesToEnter, historyValue, statesForDefaultEntry);
|
|
32736
32736
|
} else if (stateNode.type === "parallel")
|
|
32737
32737
|
for (const child of getChildren2(stateNode).filter((sn) => !isHistoryNode(sn)))
|
|
32738
32738
|
[...statesToEnter].some((s2) => isDescendant(s2, child)) || (isHistoryNode(child) || (statesToEnter.add(child), statesForDefaultEntry.add(child)), addDescendantStatesToEnter(child, historyValue, statesForDefaultEntry, statesToEnter));
|
|
@@ -38379,131 +38379,90 @@ const select = (s2) => s2.children.search ?? null;
|
|
|
38379
38379
|
function useSearchActorRef() {
|
|
38380
38380
|
return useDiagramActorSnapshot(select, Object.is);
|
|
38381
38381
|
}
|
|
38382
|
-
|
|
38383
|
-
|
|
38384
|
-
|
|
38385
|
-
|
|
38386
|
-
|
|
38387
|
-
|
|
38388
|
-
|
|
38389
|
-
|
|
38390
|
-
|
|
38391
|
-
|
|
38392
|
-
|
|
38393
|
-
|
|
38382
|
+
const ErrorBoundaryContext = createContext(null), initialState = {
|
|
38383
|
+
didCatch: !1,
|
|
38384
|
+
error: null
|
|
38385
|
+
};
|
|
38386
|
+
class ErrorBoundary extends Component {
|
|
38387
|
+
constructor(props2) {
|
|
38388
|
+
super(props2), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = initialState;
|
|
38389
|
+
}
|
|
38390
|
+
static getDerivedStateFromError(error) {
|
|
38391
|
+
return {
|
|
38392
|
+
didCatch: !0,
|
|
38393
|
+
error
|
|
38394
|
+
};
|
|
38395
|
+
}
|
|
38396
|
+
resetErrorBoundary() {
|
|
38397
|
+
const {
|
|
38398
|
+
error
|
|
38399
|
+
} = this.state;
|
|
38400
|
+
if (error !== null) {
|
|
38401
|
+
for (var _this$props$onReset, _this$props, _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
|
|
38402
|
+
args[_key] = arguments[_key];
|
|
38403
|
+
(_this$props$onReset = (_this$props = this.props).onReset) === null || _this$props$onReset === void 0 || _this$props$onReset.call(_this$props, {
|
|
38404
|
+
args,
|
|
38405
|
+
reason: "imperative-api"
|
|
38406
|
+
}), this.setState(initialState);
|
|
38394
38407
|
}
|
|
38395
|
-
|
|
38396
|
-
|
|
38397
|
-
|
|
38398
|
-
|
|
38408
|
+
}
|
|
38409
|
+
componentDidCatch(error, info) {
|
|
38410
|
+
var _this$props$onError, _this$props2;
|
|
38411
|
+
(_this$props$onError = (_this$props2 = this.props).onError) === null || _this$props$onError === void 0 || _this$props$onError.call(_this$props2, error, info);
|
|
38412
|
+
}
|
|
38413
|
+
componentDidUpdate(prevProps, prevState) {
|
|
38414
|
+
const {
|
|
38415
|
+
didCatch
|
|
38416
|
+
} = this.state, {
|
|
38417
|
+
resetKeys
|
|
38418
|
+
} = this.props;
|
|
38419
|
+
if (didCatch && prevState.error !== null && hasArrayChanged(prevProps.resetKeys, resetKeys)) {
|
|
38420
|
+
var _this$props$onReset2, _this$props3;
|
|
38421
|
+
(_this$props$onReset2 = (_this$props3 = this.props).onReset) === null || _this$props$onReset2 === void 0 || _this$props$onReset2.call(_this$props3, {
|
|
38422
|
+
next: resetKeys,
|
|
38423
|
+
prev: prevProps.resetKeys,
|
|
38424
|
+
reason: "keys"
|
|
38425
|
+
}), this.setState(initialState);
|
|
38426
|
+
}
|
|
38427
|
+
}
|
|
38428
|
+
render() {
|
|
38429
|
+
const {
|
|
38430
|
+
children: children2,
|
|
38431
|
+
fallbackRender,
|
|
38432
|
+
FallbackComponent,
|
|
38433
|
+
fallback
|
|
38434
|
+
} = this.props, {
|
|
38435
|
+
didCatch,
|
|
38436
|
+
error
|
|
38437
|
+
} = this.state;
|
|
38438
|
+
let childToRender = children2;
|
|
38439
|
+
if (didCatch) {
|
|
38440
|
+
const props2 = {
|
|
38441
|
+
error,
|
|
38442
|
+
resetErrorBoundary: this.resetErrorBoundary
|
|
38399
38443
|
};
|
|
38444
|
+
if (typeof fallbackRender == "function")
|
|
38445
|
+
childToRender = fallbackRender(props2);
|
|
38446
|
+
else if (FallbackComponent)
|
|
38447
|
+
childToRender = createElement(FallbackComponent, props2);
|
|
38448
|
+
else if (fallback !== void 0)
|
|
38449
|
+
childToRender = fallback;
|
|
38450
|
+
else
|
|
38451
|
+
throw error;
|
|
38400
38452
|
}
|
|
38401
|
-
|
|
38402
|
-
|
|
38403
|
-
error
|
|
38404
|
-
} = this.state;
|
|
38405
|
-
if (error !== null) {
|
|
38406
|
-
for (var _this$props$onReset, _this$props, _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
|
|
38407
|
-
args[_key] = arguments[_key];
|
|
38408
|
-
(_this$props$onReset = (_this$props = this.props).onReset) === null || _this$props$onReset === void 0 || _this$props$onReset.call(_this$props, {
|
|
38409
|
-
args,
|
|
38410
|
-
reason: "imperative-api"
|
|
38411
|
-
}), this.setState(initialState);
|
|
38412
|
-
}
|
|
38413
|
-
}
|
|
38414
|
-
componentDidCatch(error, info) {
|
|
38415
|
-
var _this$props$onError, _this$props2;
|
|
38416
|
-
(_this$props$onError = (_this$props2 = this.props).onError) === null || _this$props$onError === void 0 || _this$props$onError.call(_this$props2, error, info);
|
|
38417
|
-
}
|
|
38418
|
-
componentDidUpdate(prevProps, prevState) {
|
|
38419
|
-
const {
|
|
38420
|
-
didCatch
|
|
38421
|
-
} = this.state, {
|
|
38422
|
-
resetKeys
|
|
38423
|
-
} = this.props;
|
|
38424
|
-
if (didCatch && prevState.error !== null && hasArrayChanged(prevProps.resetKeys, resetKeys)) {
|
|
38425
|
-
var _this$props$onReset2, _this$props3;
|
|
38426
|
-
(_this$props$onReset2 = (_this$props3 = this.props).onReset) === null || _this$props$onReset2 === void 0 || _this$props$onReset2.call(_this$props3, {
|
|
38427
|
-
next: resetKeys,
|
|
38428
|
-
prev: prevProps.resetKeys,
|
|
38429
|
-
reason: "keys"
|
|
38430
|
-
}), this.setState(initialState);
|
|
38431
|
-
}
|
|
38432
|
-
}
|
|
38433
|
-
render() {
|
|
38434
|
-
const {
|
|
38435
|
-
children: children2,
|
|
38436
|
-
fallbackRender,
|
|
38437
|
-
FallbackComponent,
|
|
38438
|
-
fallback
|
|
38439
|
-
} = this.props, {
|
|
38453
|
+
return createElement(ErrorBoundaryContext.Provider, {
|
|
38454
|
+
value: {
|
|
38440
38455
|
didCatch,
|
|
38441
|
-
error
|
|
38442
|
-
} = this.state;
|
|
38443
|
-
let childToRender = children2;
|
|
38444
|
-
if (didCatch) {
|
|
38445
|
-
const props2 = {
|
|
38446
|
-
error,
|
|
38447
|
-
resetErrorBoundary: this.resetErrorBoundary
|
|
38448
|
-
};
|
|
38449
|
-
if (typeof fallbackRender == "function")
|
|
38450
|
-
childToRender = fallbackRender(props2);
|
|
38451
|
-
else if (FallbackComponent)
|
|
38452
|
-
childToRender = react.createElement(FallbackComponent, props2);
|
|
38453
|
-
else if (fallback !== void 0)
|
|
38454
|
-
childToRender = fallback;
|
|
38455
|
-
else
|
|
38456
|
-
throw error;
|
|
38457
|
-
}
|
|
38458
|
-
return react.createElement(ErrorBoundaryContext.Provider, {
|
|
38459
|
-
value: {
|
|
38460
|
-
didCatch,
|
|
38461
|
-
error,
|
|
38462
|
-
resetErrorBoundary: this.resetErrorBoundary
|
|
38463
|
-
}
|
|
38464
|
-
}, childToRender);
|
|
38465
|
-
}
|
|
38466
|
-
}
|
|
38467
|
-
function hasArrayChanged() {
|
|
38468
|
-
let a2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], b2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
38469
|
-
return a2.length !== b2.length || a2.some((item, index2) => !Object.is(item, b2[index2]));
|
|
38470
|
-
}
|
|
38471
|
-
function assertErrorBoundaryContext(value) {
|
|
38472
|
-
if (value == null || typeof value.didCatch != "boolean" || typeof value.resetErrorBoundary != "function")
|
|
38473
|
-
throw new Error("ErrorBoundaryContext not found");
|
|
38474
|
-
}
|
|
38475
|
-
function useErrorBoundary() {
|
|
38476
|
-
const context2 = react.useContext(ErrorBoundaryContext);
|
|
38477
|
-
assertErrorBoundaryContext(context2);
|
|
38478
|
-
const [state, setState] = react.useState({
|
|
38479
|
-
error: null,
|
|
38480
|
-
hasError: !1
|
|
38481
|
-
}), memoized = react.useMemo(() => ({
|
|
38482
|
-
resetBoundary: () => {
|
|
38483
|
-
context2.resetErrorBoundary(), setState({
|
|
38484
|
-
error: null,
|
|
38485
|
-
hasError: !1
|
|
38486
|
-
});
|
|
38487
|
-
},
|
|
38488
|
-
showBoundary: (error) => setState({
|
|
38489
38456
|
error,
|
|
38490
|
-
|
|
38491
|
-
}
|
|
38492
|
-
}
|
|
38493
|
-
if (state.hasError)
|
|
38494
|
-
throw state.error;
|
|
38495
|
-
return memoized;
|
|
38496
|
-
}
|
|
38497
|
-
function withErrorBoundary(component, errorBoundaryProps) {
|
|
38498
|
-
const Wrapped = react.forwardRef((props2, ref) => react.createElement(ErrorBoundary, errorBoundaryProps, react.createElement(component, {
|
|
38499
|
-
...props2,
|
|
38500
|
-
ref
|
|
38501
|
-
}))), name = component.displayName || component.name || "Unknown";
|
|
38502
|
-
return Wrapped.displayName = "withErrorBoundary(".concat(name, ")"), Wrapped;
|
|
38457
|
+
resetErrorBoundary: this.resetErrorBoundary
|
|
38458
|
+
}
|
|
38459
|
+
}, childToRender);
|
|
38503
38460
|
}
|
|
38504
|
-
return reactErrorBoundary_cjs.ErrorBoundary = ErrorBoundary, reactErrorBoundary_cjs.ErrorBoundaryContext = ErrorBoundaryContext, reactErrorBoundary_cjs.useErrorBoundary = useErrorBoundary, reactErrorBoundary_cjs.withErrorBoundary = withErrorBoundary, reactErrorBoundary_cjs;
|
|
38505
38461
|
}
|
|
38506
|
-
|
|
38462
|
+
function hasArrayChanged() {
|
|
38463
|
+
let a2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], b2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
38464
|
+
return a2.length !== b2.length || a2.some((item, index2) => !Object.is(item, b2[index2]));
|
|
38465
|
+
}
|
|
38507
38466
|
function ErrorFallback({ error, resetErrorBoundary }) {
|
|
38508
38467
|
const errorString = error instanceof Error ? error.message : "Unknown error";
|
|
38509
38468
|
return /* @__PURE__ */ jsx(Box, { pos: "fixed", top: 0, left: 0, w: "100%", p: 0, style: { zIndex: 1e3 }, children: /* @__PURE__ */ jsxs(
|
|
@@ -44143,7 +44102,7 @@ function Overlays({ overlaysActorRef }) {
|
|
|
44143
44102
|
nonexhaustive(overlay2);
|
|
44144
44103
|
}
|
|
44145
44104
|
});
|
|
44146
|
-
return /* @__PURE__ */ jsx(DiagramFeatures.Overlays, { children: /* @__PURE__ */ jsx(
|
|
44105
|
+
return /* @__PURE__ */ jsx(DiagramFeatures.Overlays, { children: /* @__PURE__ */ jsx(ErrorBoundary, { FallbackComponent: ErrorFallback, onReset: () => overlaysActorRef.send({ type: "close.all" }), children: /* @__PURE__ */ jsx(LayoutGroup, { children: /* @__PURE__ */ jsx(AnimatePresence, { children: overlaysReact }) }) }) });
|
|
44147
44106
|
}
|
|
44148
44107
|
const [SearchActorContext, useSearchActor] = createSafeContext("SearchActorContext"), selectSearchValue = (s2) => s2.context.searchValue;
|
|
44149
44108
|
function useSearch() {
|
|
@@ -45158,7 +45117,7 @@ function Search({ searchActorRef }) {
|
|
|
45158
45117
|
["mod+f", openSearch, {
|
|
45159
45118
|
preventDefault: !0
|
|
45160
45119
|
}]
|
|
45161
|
-
]), /* @__PURE__ */ jsx(SearchActorContext, { value: searchActorRef, children: /* @__PURE__ */ jsx(DiagramFeatures.Overlays, { children: /* @__PURE__ */ jsx(
|
|
45120
|
+
]), /* @__PURE__ */ jsx(SearchActorContext, { value: searchActorRef, children: /* @__PURE__ */ jsx(DiagramFeatures.Overlays, { children: /* @__PURE__ */ jsx(ErrorBoundary, { FallbackComponent: ErrorFallback, onReset: close, children: /* @__PURE__ */ jsx(AnimatePresence, { children: isOpened && /* @__PURE__ */ jsx(
|
|
45162
45121
|
Overlay,
|
|
45163
45122
|
{
|
|
45164
45123
|
fullscreen: !0,
|
|
@@ -50101,7 +50060,7 @@ const cssWebcomponentView = css({
|
|
|
50101
50060
|
component: RouteComponent$2
|
|
50102
50061
|
});
|
|
50103
50062
|
function RouteComponent$2() {
|
|
50104
|
-
return /* @__PURE__ */ jsx(Box$1, { className: cssViewOutlet, children: /* @__PURE__ */ jsx(
|
|
50063
|
+
return /* @__PURE__ */ jsx(Box$1, { className: cssViewOutlet, children: /* @__PURE__ */ jsx(ErrorBoundary, { FallbackComponent: Fallback$1, children: /* @__PURE__ */ jsx(
|
|
50105
50064
|
LikeC4ModelContext,
|
|
50106
50065
|
{
|
|
50107
50066
|
likec4data: $likec4data,
|
|
@@ -50224,7 +50183,7 @@ const Route$h = createFileRoute("/project/$projectId")({
|
|
|
50224
50183
|
});
|
|
50225
50184
|
function RouteComponent() {
|
|
50226
50185
|
const { $likec4data: $likec4data2, $likec4model: $likec4model2, IconRenderer: IconRenderer2 } = Route$h.useLoaderData();
|
|
50227
|
-
return /* @__PURE__ */ jsx(Box$1, { className: cssViewOutlet, children: /* @__PURE__ */ jsx(
|
|
50186
|
+
return /* @__PURE__ */ jsx(Box$1, { className: cssViewOutlet, children: /* @__PURE__ */ jsx(ErrorBoundary, { FallbackComponent: Fallback$1, children: /* @__PURE__ */ jsx(LikeC4ModelContext, { likec4data: $likec4data2, likec4model: $likec4model2, children: /* @__PURE__ */ jsx(IconRendererProvider, { value: IconRenderer2, children: /* @__PURE__ */ jsx(Outlet, {}) }) }) }) });
|
|
50228
50187
|
}
|
|
50229
50188
|
const Route$g = createFileRoute("/project/$projectId/")({
|
|
50230
50189
|
component: () => {
|
package/dist/cli/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{k as Dh,o as tt,q as xh,r as at,s as qr,t as cr,v as oa,C as kh,e as Mh,d as Gt,u as K,w as aa,x as qh,y as Uh,z as ct,A as ca,B as As,D as Hh,E as At,F as Fh,h as ua,G as la,c as Vh,L as rt,j as fa,H as zh,I as nt,J as Gh,K as Bh,n as Wh,M as Bt,O as ur,P as Os,Q as da,R as Kh,S as Yh}from"../shared/likec4.
|
|
2
|
+
import{k as Dh,o as tt,q as xh,r as at,s as qr,t as cr,v as oa,C as kh,e as Mh,d as Gt,u as K,w as aa,x as qh,y as Uh,z as ct,A as ca,B as As,D as Hh,E as At,F as Fh,h as ua,G as la,c as Vh,L as rt,j as fa,H as zh,I as nt,J as Gh,K as Bh,n as Wh,M as Bt,O as ur,P as Os,Q as da,R as Kh,S as Yh}from"../shared/likec4.DDbeRd6k.mjs";import Se,{hrtime as Xh,cwd as Cs,exit as ha,stdout as Jh,argv as Qh}from"node:process";import{strictEqual as Zh,notStrictEqual as ep}from"assert";import Ps,{resolve as He,
|
|
3
3
|
dirname as Is,normalize as tp,relative as rp,extname as np,basename as sp}from"path";import{statSync as pa,readdirSync as ip,readFileSync as Ns,writeFile as op}from"fs";import ma,{format as ga,inspect as ap}from"util";import{fileURLToPath as cp}from"url";import me,{resolve as ye,dirname as Ot,join as lr,relative as gt,extname as fr,isAbsolute as Ts,basename as Ur}from"node:path";import pe,{existsSync as Ct,copyFileSync as ya,readdirSync as up,rmSync as js}from"node:fs";import $a,{mkdtemp as Hr,writeFile as Pt,
|
|
4
|
-
mkdir as ut,stat as Ls,copyFile as lp,rm as fp}from"node:fs/promises";import dr,{tmpdir as Fr}from"node:os";import{fileURLToPath as _a}from"node:url";import Ds from"@vitejs/plugin-react";import{C as va,t as xs,j as ba,e as wa,N as Wt,L as ks,g as dp,a as hp,b as pp}from"../shared/likec4.
|
|
5
|
-
import{chromium as Ra}from"playwright";import vp from"node:net";import{setTimeout as bp}from"node:timers/promises";import{promisify as Ie,isDeepStrictEqual as wp}from"node:util";import pr from"node:crypto";import Ep from"node:assert";import"tty";import"os";import"crypto";import"net";import"child_process";import"@likec4/core/types";import"events";import"@likec4/core/model";import"buffer";import"@
|
|
4
|
+
mkdir as ut,stat as Ls,copyFile as lp,rm as fp}from"node:fs/promises";import dr,{tmpdir as Fr}from"node:os";import{fileURLToPath as _a}from"node:url";import Ds from"@vitejs/plugin-react";import{C as va,t as xs,j as ba,e as wa,N as Wt,L as ks,g as dp,a as hp,b as pp}from"../shared/likec4.D6SCXR05.mjs";import{build as hr,createServer as mp,preview as gp}from"vite";import yp from"node:module";import{compareNatural as $p,sortNaturalByFqn as _p,invariant as Vr,hasAtLeast as Ms,nonexhaustive as Ea,delay as Sa}from"@likec4/core";
|
|
5
|
+
import{chromium as Ra}from"playwright";import vp from"node:net";import{setTimeout as bp}from"node:timers/promises";import{promisify as Ie,isDeepStrictEqual as wp}from"node:util";import pr from"node:crypto";import Ep from"node:assert";import"tty";import"os";import"crypto";import"net";import"child_process";import"@likec4/core/types";import"events";import"@hpcc-js/wasm-graphviz";import"@likec4/core/model";import"buffer";import"@likec4/core/compute-view";import"@likec4/core/utils";import"boxen";import"node:child_process";
|
|
6
6
|
import"node:events";import"node:stream/promises";import"node:readline/promises";import"fs/promises";function Sp(...t){return Dh(Rp,t)}var Rp=t=>`${t[0]?.toUpperCase()??""}${t.slice(1)}`;const Ap={right:Tp,center:jp},Op=0,zr=1,Cp=2,Gr=3;class Pp{constructor(e){var r;this.width=e.width,this.wrap=(r=e.wrap)!==null&&r!==void 0?r:!0,this.rows=[]}span(...e){const r=this.div(...e);r.span=!0}resetOutput(){this.rows=[]}div(...e){if(e.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...e)&&typeof e[0]==
|
|
7
7
|
"string")return this.applyLayoutDSL(e[0]);const r=e.map(n=>typeof n=="string"?this.colFromString(n):n);return this.rows.push(r),r}shouldApplyLayoutDSL(...e){return e.length===1&&typeof e[0]=="string"&&/[\t\n]/.test(e[0])}applyLayoutDSL(e){const r=e.split(`
|
|
8
8
|
`).map(s=>s.split(" "));let n=0;return r.forEach(s=>{s.length>1&&De.stringWidth(s[0])>n&&(n=Math.min(Math.floor(this.width*.5),De.stringWidth(s[0])))}),r.forEach(s=>{this.div(...s.map((i,o)=>({text:i.trim(),padding:this.measurePadding(i),width:o===0&&s.length>1?n:void 0})))}),this.rows[this.rows.length-1]}colFromString(e){return{text:e,padding:this.measurePadding(e)}}measurePadding(e){const r=De.stripAnsi(e);return[0,r.match(/\s*$/)[0].length,0,r.match(/^\s*/)[0].length]}toString(){const e=[];return this.
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LikeC4Model } from '@likec4/core/model';
|
|
2
2
|
import { UnknownLayouted } from './model/index.mjs';
|
|
3
|
-
import { W as WorkspaceFolder, a as LikeC4Services,
|
|
3
|
+
import { W as WorkspaceFolder, a as LikeC4Services, L as LikeC4LanguageServices, b as LikeC4Views, R as Range } from './shared/likec4.BaQDJZ_m.mjs';
|
|
4
4
|
import { ProjectId, NonEmptyArray } from '@likec4/core';
|
|
5
5
|
import { DiagramView } from '@likec4/core/types';
|
|
6
6
|
export * from '@likec4/core/types';
|
|
@@ -24,9 +24,6 @@ declare class CliWorkspace {
|
|
|
24
24
|
|
|
25
25
|
type CliAddedServices = {
|
|
26
26
|
logger: Logger;
|
|
27
|
-
likec4: {
|
|
28
|
-
Layouter: GraphvizLayouter;
|
|
29
|
-
};
|
|
30
27
|
cli: {
|
|
31
28
|
Workspace: CliWorkspace;
|
|
32
29
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{LikeC4Model as o}from"@likec4/core/model";export{L as LikeC4}from"./shared/likec4.
|
|
1
|
+
import{LikeC4Model as o}from"@likec4/core/model";export{L as LikeC4}from"./shared/likec4.DDbeRd6k.mjs";import"node:fs";import"node:path";import"node:url";import"tty";import"node:util";import"util";import"path";import"os";import"crypto";import"net";import"url";import"fs";import"child_process";import"@likec4/core";import"@likec4/core/types";import"events";import"@hpcc-js/wasm-graphviz";import"buffer";import"@likec4/core/compute-view";import"@likec4/core/utils";import"node:process";import"boxen";import"node:child_process";
|
|
2
2
|
import"node:events";import"node:fs/promises";import"node:stream/promises";import"node:readline/promises";import"node:os";import"fs/promises";function t(r){return o.create(r)}export{t as createLikeC4Model};
|