@likec4/diagram 1.33.0 → 1.34.1

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 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: autoUpdate
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 useDidUpdate(() => {
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
- $$ACTOR_TYPE as bA,
21697
- STATE_DELIMITER as bB,
21698
- mapValues as bC,
21699
- toArray as bD,
21700
- formatTransitions as bE,
21701
- toTransitionConfigArray as bF,
21702
- formatTransition as bG,
21703
- getCandidates as bH,
21704
- NULL_EVENT as bI,
21705
- createInvokeId as bJ,
21706
- getDelayedTransitions as bK,
21707
- formatInitialTransition as bL,
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
- evaluateGuard as bb,
21725
- createErrorActorEvent as bc,
21726
- XSTATE_ERROR as bd,
21727
- ProcessingStatus as be,
21728
- resolveReferencedActor as bf,
21729
- createActor as bg,
21730
- cancel as bh,
21731
- raise as bi,
21732
- spawnChild as bj,
21733
- stopChild as bk,
21734
- resolveStateValue as bl,
21735
- getAllStateNodes as bm,
21736
- getStateNodes as bn,
21737
- createMachineSnapshot as bo,
21738
- isInFinalState as bp,
21739
- macrostep as bq,
21740
- transitionNode as br,
21741
- resolveActionsAndContext as bs,
21742
- createInitEvent as bt,
21743
- microstep as bu,
21744
- getInitialStateNodes as bv,
21745
- toStatePath as bw,
21746
- isStateId as bx,
21747
- getStateNodeByPath as by,
21748
- getPersistedSnapshot as bz,
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-DyFK-AJ5.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-DyFK-AJ5.js";
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) => {