@likec4/diagram 1.33.0 → 1.34.0
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/README.md +25 -0
- package/bundle/{chunk-DyFK-AJ5.js → chunk-Dd7et66b.js} +58 -40
- package/bundle/custom.js +2 -2
- package/bundle/index.js +157 -160
- package/dist/LikeC4Diagram.props.d.ts +1 -1
- package/dist/StaticLikeC4Diagram.d.ts +1 -1
- package/dist/bundle/LikeC4View.d.ts +1 -1
- package/dist/bundle/LikeC4View.props.d.ts +1 -1
- package/dist/bundle/ReactLikeC4.d.ts +1 -1
- package/dist/overlays/relationships-browser/custom/nodeTypes.d.ts +1 -1
- package/dist/styles-min.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css2.js +1 -1
- package/package.json +12 -12
- package/panda.buildinfo.json +821 -821
- package/src/LikeC4Diagram.props.ts +1 -1
- package/src/StaticLikeC4Diagram.tsx +1 -1
- package/src/bundle/LikeC4View.props.ts +1 -1
- package/src/bundle/LikeC4View.tsx +1 -1
- package/src/bundle/ReactLikeC4.tsx +1 -1
package/README.md
CHANGED
|
@@ -340,3 +340,28 @@ TODO: add example
|
|
|
340
340
|
## Local Development
|
|
341
341
|
|
|
342
342
|
Use [packages/likec4](../likec4/) workspace
|
|
343
|
+
|
|
344
|
+
## Getting help
|
|
345
|
+
|
|
346
|
+
We are always happy to help you get started:
|
|
347
|
+
|
|
348
|
+
- [Join Discord community](https://discord.gg/86ZSpjKAdA) – it is the easiest way to get help
|
|
349
|
+
- [GitHub Discussions](https://github.com/likec4/likec4/discussions) – ask anything about the project or give feedback
|
|
350
|
+
|
|
351
|
+
## Contributors
|
|
352
|
+
|
|
353
|
+
<a href="https://github.com/likec4/likec4/graphs/contributors">
|
|
354
|
+
<img src="https://contrib.rocks/image?repo=likec4/likec4" />
|
|
355
|
+
</a>
|
|
356
|
+
|
|
357
|
+
[Become a contributor](../../CONTRIBUTING.md)
|
|
358
|
+
|
|
359
|
+
## Support development
|
|
360
|
+
|
|
361
|
+
LikeC4 is a MIT-licensed open source project with its ongoing development made possible entirely by your support.\
|
|
362
|
+
If you like the project, please consider contributing financially to help grow and improve it.\
|
|
363
|
+
You can support us via [OpenCollective](https://opencollective.com/likec4) or [GitHub Sponsors](https://github.com/sponsors/likec4).
|
|
364
|
+
|
|
365
|
+
## License
|
|
366
|
+
|
|
367
|
+
This project is released under the [MIT License](LICENSE)
|
|
@@ -2357,6 +2357,7 @@ function extractStyleProps(others) {
|
|
|
2357
2357
|
pe,
|
|
2358
2358
|
ps,
|
|
2359
2359
|
bd,
|
|
2360
|
+
bdrs,
|
|
2360
2361
|
bg,
|
|
2361
2362
|
c,
|
|
2362
2363
|
opacity,
|
|
@@ -2444,6 +2445,7 @@ function extractStyleProps(others) {
|
|
|
2444
2445
|
inset: inset2,
|
|
2445
2446
|
display,
|
|
2446
2447
|
flex,
|
|
2448
|
+
bdrs,
|
|
2447
2449
|
hiddenFrom,
|
|
2448
2450
|
visibleFrom,
|
|
2449
2451
|
lightHidden,
|
|
@@ -5744,9 +5746,24 @@ function usePopover(options) {
|
|
|
5744
5746
|
strategy: options.strategy,
|
|
5745
5747
|
placement: options.preventPositionChangeWhenVisible ? options.positionRef.current : options.position,
|
|
5746
5748
|
middleware: getPopoverMiddlewares(options, () => floating, env),
|
|
5747
|
-
whileElementsMounted
|
|
5749
|
+
// Only use whileElementsMounted when elements are conditionally rendered (not keepMounted)
|
|
5750
|
+
// When keepMounted=true, elements are hidden with CSS and we need manual autoUpdate control
|
|
5751
|
+
whileElementsMounted: options.keepMounted ? void 0 : autoUpdate
|
|
5748
5752
|
});
|
|
5749
|
-
return
|
|
5753
|
+
return useEffect(() => {
|
|
5754
|
+
if (!(!options.keepMounted || !floating.refs.reference.current || !floating.refs.floating.current) && _opened)
|
|
5755
|
+
return autoUpdate(
|
|
5756
|
+
floating.refs.reference.current,
|
|
5757
|
+
floating.refs.floating.current,
|
|
5758
|
+
floating.update
|
|
5759
|
+
);
|
|
5760
|
+
}, [
|
|
5761
|
+
options.keepMounted,
|
|
5762
|
+
_opened,
|
|
5763
|
+
floating.refs.reference,
|
|
5764
|
+
floating.refs.floating,
|
|
5765
|
+
floating.update
|
|
5766
|
+
]), useDidUpdate(() => {
|
|
5750
5767
|
options.onPositionChange?.(floating.placement), options.positionRef.current = floating.placement;
|
|
5751
5768
|
}, [floating.placement]), useDidUpdate(() => {
|
|
5752
5769
|
_opened !== previouslyOpened.current && (_opened ? options.onOpen?.() : options.onClose?.()), previouslyOpened.current = _opened;
|
|
@@ -5872,7 +5889,8 @@ function Popover(_props) {
|
|
|
5872
5889
|
setDropdownVisible,
|
|
5873
5890
|
positionRef,
|
|
5874
5891
|
disabled,
|
|
5875
|
-
preventPositionChangeWhenVisible
|
|
5892
|
+
preventPositionChangeWhenVisible,
|
|
5893
|
+
keepMounted
|
|
5876
5894
|
});
|
|
5877
5895
|
useClickOutside(
|
|
5878
5896
|
() => {
|
|
@@ -21693,18 +21711,18 @@ export {
|
|
|
21693
21711
|
cx as b7,
|
|
21694
21712
|
useStore$1 as b8,
|
|
21695
21713
|
XSTATE_STOP as b9,
|
|
21696
|
-
|
|
21697
|
-
|
|
21698
|
-
|
|
21699
|
-
|
|
21700
|
-
|
|
21701
|
-
|
|
21702
|
-
|
|
21703
|
-
|
|
21704
|
-
|
|
21705
|
-
|
|
21706
|
-
|
|
21707
|
-
|
|
21714
|
+
evaluateGuard as bA,
|
|
21715
|
+
getCandidates as bB,
|
|
21716
|
+
NULL_EVENT as bC,
|
|
21717
|
+
createInvokeId as bD,
|
|
21718
|
+
getDelayedTransitions as bE,
|
|
21719
|
+
formatInitialTransition as bF,
|
|
21720
|
+
createErrorActorEvent as bG,
|
|
21721
|
+
XSTATE_ERROR as bH,
|
|
21722
|
+
cancel as bI,
|
|
21723
|
+
raise as bJ,
|
|
21724
|
+
spawnChild as bK,
|
|
21725
|
+
stopChild as bL,
|
|
21708
21726
|
deepEqual as bM,
|
|
21709
21727
|
ActionIcon as bN,
|
|
21710
21728
|
IconZoomScan as bO,
|
|
@@ -21721,31 +21739,31 @@ export {
|
|
|
21721
21739
|
Stack as bZ,
|
|
21722
21740
|
Group as b_,
|
|
21723
21741
|
cloneMachineSnapshot as ba,
|
|
21724
|
-
|
|
21725
|
-
|
|
21726
|
-
|
|
21727
|
-
|
|
21728
|
-
|
|
21729
|
-
|
|
21730
|
-
|
|
21731
|
-
|
|
21732
|
-
|
|
21733
|
-
|
|
21734
|
-
|
|
21735
|
-
|
|
21736
|
-
|
|
21737
|
-
|
|
21738
|
-
|
|
21739
|
-
|
|
21740
|
-
|
|
21741
|
-
|
|
21742
|
-
|
|
21743
|
-
|
|
21744
|
-
|
|
21745
|
-
|
|
21746
|
-
|
|
21747
|
-
|
|
21748
|
-
|
|
21742
|
+
ProcessingStatus as bb,
|
|
21743
|
+
resolveReferencedActor as bc,
|
|
21744
|
+
createActor as bd,
|
|
21745
|
+
resolveStateValue as be,
|
|
21746
|
+
getAllStateNodes as bf,
|
|
21747
|
+
getStateNodes as bg,
|
|
21748
|
+
createMachineSnapshot as bh,
|
|
21749
|
+
isInFinalState as bi,
|
|
21750
|
+
macrostep as bj,
|
|
21751
|
+
transitionNode as bk,
|
|
21752
|
+
resolveActionsAndContext as bl,
|
|
21753
|
+
createInitEvent as bm,
|
|
21754
|
+
microstep as bn,
|
|
21755
|
+
getInitialStateNodes as bo,
|
|
21756
|
+
toStatePath as bp,
|
|
21757
|
+
isStateId as bq,
|
|
21758
|
+
getStateNodeByPath as br,
|
|
21759
|
+
getPersistedSnapshot as bs,
|
|
21760
|
+
$$ACTOR_TYPE as bt,
|
|
21761
|
+
STATE_DELIMITER as bu,
|
|
21762
|
+
mapValues as bv,
|
|
21763
|
+
toArray as bw,
|
|
21764
|
+
formatTransitions as bx,
|
|
21765
|
+
toTransitionConfigArray as by,
|
|
21766
|
+
formatTransition as bz,
|
|
21749
21767
|
useMantineStyleNonce as c,
|
|
21750
21768
|
ActionIconGroup as c$,
|
|
21751
21769
|
IconCheck as c0,
|
package/bundle/custom.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cB as customNode, c2 as useLikeC4Model } from "./chunk-
|
|
2
|
-
import { dR, dU, cr, dV, dS, dW, cs, dX, cC, cD, dT, dY, dZ, ct, cz, d_, cI, d$, cu, cE, cF, c_, cH, cG, e0, d9, cW, dG, cg, e2, e3, e4, d0, d5, e1, cq, cy, bV, dO, bU, cc, cb, aZ, dP, bW, dQ, a_, ck, cm, d3, b4 } from "./chunk-
|
|
1
|
+
import { cB as customNode, c2 as useLikeC4Model } from "./chunk-Dd7et66b.js";
|
|
2
|
+
import { dR, dU, cr, dV, dS, dW, cs, dX, cC, cD, dT, dY, dZ, ct, cz, d_, cI, d$, cu, cE, cF, c_, cH, cG, e0, d9, cW, dG, cg, e2, e3, e4, d0, d5, e1, cq, cy, bV, dO, bU, cc, cb, aZ, dP, bW, dQ, a_, ck, cm, d3, b4 } from "./chunk-Dd7et66b.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
function customDiagramNode(Node) {
|
|
5
5
|
return customNode((props) => {
|