@likec4/diagram 1.46.4 → 1.48.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.
Files changed (337) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +1 -1
  3. package/bundle/index.js +7332 -5799
  4. package/dist/LikeC4Diagram.d.ts +1 -1
  5. package/dist/LikeC4Diagram.js +20 -14
  6. package/dist/LikeC4Diagram.props.d.ts +2 -6
  7. package/dist/LikeC4ProjectsOverview.d.ts +7 -0
  8. package/dist/LikeC4ProjectsOverview.js +32 -0
  9. package/dist/LikeC4ProjectsProvider.js +7 -5
  10. package/dist/LikeC4Styles.d.ts +2 -6
  11. package/dist/LikeC4Styles.js +44 -43
  12. package/dist/LikeC4View.d.ts +9 -1
  13. package/dist/LikeC4View.js +10 -8
  14. package/dist/ReactLikeC4.d.ts +12 -2
  15. package/dist/ReactLikeC4.js +5 -3
  16. package/dist/adhoc-editor/ActorProvider.d.ts +7 -0
  17. package/dist/adhoc-editor/ActorProvider.js +41 -0
  18. package/dist/adhoc-editor/EditorNavigationPanel.d.ts +1 -0
  19. package/dist/adhoc-editor/EditorNavigationPanel.js +32 -0
  20. package/dist/adhoc-editor/LikeC4AdHocViewEditor.d.ts +4 -0
  21. package/dist/adhoc-editor/LikeC4AdHocViewEditor.js +71 -0
  22. package/dist/adhoc-editor/SelectElementOverlay.d.ts +1 -0
  23. package/dist/adhoc-editor/SelectElementOverlay.js +124 -0
  24. package/dist/adhoc-editor/actor.d.ts +131 -0
  25. package/dist/adhoc-editor/actor.editor.d.ts +54 -0
  26. package/dist/adhoc-editor/actor.editor.js +96 -0
  27. package/dist/adhoc-editor/actor.js +20 -0
  28. package/dist/adhoc-editor/actor.layouter.d.ts +48 -0
  29. package/dist/adhoc-editor/actor.layouter.js +66 -0
  30. package/dist/adhoc-editor/actor.types.d.ts +57 -0
  31. package/dist/adhoc-editor/actor.types.js +22 -0
  32. package/dist/adhoc-editor/hooks.d.ts +14 -0
  33. package/dist/adhoc-editor/hooks.js +47 -0
  34. package/dist/adhoc-editor/index.d.ts +2 -0
  35. package/dist/adhoc-editor/viewrules/ViewRulesPanel.d.ts +6 -0
  36. package/dist/adhoc-editor/viewrules/ViewRulesPanel.js +104 -0
  37. package/dist/base/const.d.ts +1 -0
  38. package/dist/base/const.js +2 -1
  39. package/dist/base/updateEdges.js +26 -3
  40. package/dist/base/updateNodes.js +8 -5
  41. package/dist/base-primitives/Markdown.js +1 -1
  42. package/dist/base-primitives/NodeHandles.d.ts +4 -2
  43. package/dist/base-primitives/NodeHandles.js +46 -19
  44. package/dist/base-primitives/compound/CompoundActionButton.js +3 -1
  45. package/dist/base-primitives/compound/CompoundDetailsButton.js +3 -1
  46. package/dist/base-primitives/compound/CompoundNodeContainer.d.ts +4 -3
  47. package/dist/base-primitives/compound/CompoundNodeContainer.js +6 -4
  48. package/dist/base-primitives/compound/CompoundTitle.js +1 -2
  49. package/dist/base-primitives/edge/EdgeActionButton.js +1 -1
  50. package/dist/base-primitives/edge/EdgeContainer.js +5 -2
  51. package/dist/base-primitives/edge/EdgeLabelContainer.js +5 -1
  52. package/dist/base-primitives/element/ElementActionButtons.js +31 -58
  53. package/dist/base-primitives/element/ElementData.d.ts +7 -7
  54. package/dist/base-primitives/element/ElementData.js +61 -48
  55. package/dist/base-primitives/element/ElementDetailsButton.js +2 -1
  56. package/dist/base-primitives/element/ElementNodeContainer.d.ts +2 -2
  57. package/dist/base-primitives/element/ElementNodeContainer.js +3 -3
  58. package/dist/base-primitives/element/ElementShape.js +109 -20
  59. package/dist/base-primitives/element/ElementTags.d.ts +6 -2
  60. package/dist/base-primitives/element/ElementTags.js +55 -32
  61. package/dist/base-primitives/index.d.ts +1 -1
  62. package/dist/base-primitives/memoEdge.js +1 -1
  63. package/dist/base-primitives/memoNode.js +1 -1
  64. package/dist/components/ErrorFallback.js +1 -1
  65. package/dist/components/Link.js +2 -2
  66. package/dist/components/Logo.js +1 -1
  67. package/dist/components/NavigationPanel.d.ts +11 -0
  68. package/dist/components/NavigationPanel.js +50 -0
  69. package/dist/components/RootContainer.js +5 -8
  70. package/dist/context/DefaultMantineProvider.d.ts +2 -0
  71. package/dist/context/DefaultMantineProvider.js +66 -0
  72. package/dist/context/DiagramEventHandlers.js +1 -1
  73. package/dist/context/DiagramFeatures.js +12 -11
  74. package/dist/context/EnsureMantine.d.ts +0 -3
  75. package/dist/context/EnsureMantine.js +3 -4
  76. package/dist/context/IconRenderer.d.ts +14 -0
  77. package/dist/context/IconRenderer.js +11 -8
  78. package/dist/context/TagStylesContext.js +12 -4
  79. package/dist/custom/hooks.d.ts +2 -2
  80. package/dist/custom/index.d.ts +1 -1
  81. package/dist/custom/index.js +2 -2
  82. package/dist/editor/LikeC4EditorCallbacks.d.ts +18 -0
  83. package/dist/editor/LikeC4EditorCallbacks.js +5 -0
  84. package/dist/editor/LikeC4EditorProvider.d.ts +30 -18
  85. package/dist/editor/LikeC4EditorProvider.js +2 -2
  86. package/dist/editor/applyChangesToManualLayout.js +1 -0
  87. package/dist/editor/editorActor.actions.d.ts +25 -25
  88. package/dist/editor/editorActor.actions.js +2 -2
  89. package/dist/editor/editorActor.setup.d.ts +84 -0
  90. package/dist/editor/editorActor.setup.js +38 -0
  91. package/dist/editor/editorActor.states.d.ts +9 -0
  92. package/dist/editor/{editorActor.js → editorActor.states.js} +22 -64
  93. package/dist/editor/index.d.ts +4 -3
  94. package/dist/editor/useEditorActorLogic.d.ts +2 -564
  95. package/dist/editor/useEditorActorLogic.js +8 -12
  96. package/dist/hooks/index.d.ts +1 -1
  97. package/dist/hooks/useCallbackRef.d.ts +6 -0
  98. package/dist/hooks/useCurrentViewModel.d.ts +10 -0
  99. package/dist/hooks/useDiagram.js +2 -2
  100. package/dist/hooks/useDiagramCompareLayout.d.ts +1 -1
  101. package/dist/hooks/useDiagramCompareLayout.js +1 -1
  102. package/dist/hooks/useLikeC4ElementsTree.js +1 -1
  103. package/dist/hooks/useLikeC4Model.js +2 -2
  104. package/dist/hooks/useLikeC4Project.js +10 -2
  105. package/dist/hooks/useLikeC4Styles.js +0 -3
  106. package/dist/hooks/useSetState.d.ts +6 -1
  107. package/dist/hooks/useSetState.js +7 -4
  108. package/dist/hooks/useXYFlow.d.ts +7 -1
  109. package/dist/hooks/useXYFlow.js +4 -4
  110. package/dist/index.d.ts +9 -5
  111. package/dist/index.js +6 -3
  112. package/dist/likec4diagram/DiagramUI.js +1 -3
  113. package/dist/likec4diagram/DiagramXYFlow.js +26 -12
  114. package/dist/likec4diagram/convert-to-xyflow.d.ts +2 -1
  115. package/dist/likec4diagram/convert-to-xyflow.js +2 -6
  116. package/dist/likec4diagram/custom/edges/RelationshipEdge.js +13 -14
  117. package/dist/likec4diagram/custom/edges/useControlPoints.js +3 -3
  118. package/dist/likec4diagram/custom/edges/useRelationshipEdgePath.d.ts +3 -0
  119. package/dist/likec4diagram/custom/edges/useRelationshipEdgePath.js +68 -35
  120. package/dist/likec4diagram/custom/nodes/ElementActions.d.ts +1 -2
  121. package/dist/likec4diagram/custom/nodes/ElementActions.js +7 -10
  122. package/dist/likec4diagram/custom/nodes/SequenceActorNode.js +7 -5
  123. package/dist/likec4diagram/custom/nodes/nodes.js +25 -6
  124. package/dist/likec4diagram/custom/nodes/toolbar/ColorButton.js +8 -7
  125. package/dist/likec4diagram/custom/nodes/toolbar/CompoundToolbar.js +1 -38
  126. package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.d.ts +6 -1
  127. package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.js +35 -19
  128. package/dist/likec4diagram/custom/nodes/toolbar/Toolbar.js +9 -5
  129. package/dist/likec4diagram/custom/nodes/toolbar/_shared.d.ts +6 -1
  130. package/dist/likec4diagram/custom/nodes/toolbar/_shared.js +46 -10
  131. package/dist/likec4diagram/custom/nodes/toolbar/styles.css.js +2 -2
  132. package/dist/likec4diagram/relationship-popover/RelationshipPopover.js +15 -15
  133. package/dist/likec4diagram/relationship-popover/components.d.ts +7 -0
  134. package/dist/likec4diagram/relationship-popover/components.js +39 -0
  135. package/dist/likec4diagram/state/DiagramActorProvider.d.ts +4 -3
  136. package/dist/likec4diagram/state/DiagramActorProvider.js +14 -15
  137. package/dist/likec4diagram/state/assign.d.ts +1 -1
  138. package/dist/likec4diagram/state/createViewChange.js +16 -4
  139. package/dist/likec4diagram/state/machine.actions.d.ts +65 -0
  140. package/dist/likec4diagram/state/machine.actions.js +51 -39
  141. package/dist/likec4diagram/state/machine.actions.layout.d.ts +22 -2
  142. package/dist/likec4diagram/state/machine.actions.layout.js +32 -14
  143. package/dist/likec4diagram/state/machine.d.ts +1 -1
  144. package/dist/likec4diagram/state/machine.js +31 -30
  145. package/dist/likec4diagram/state/machine.setup.d.ts +21 -5
  146. package/dist/likec4diagram/state/machine.setup.js +13 -4
  147. package/dist/likec4diagram/state/machine.state.initializing.d.ts +32 -2
  148. package/dist/likec4diagram/state/machine.state.navigating.d.ts +1 -1
  149. package/dist/likec4diagram/state/machine.state.navigating.js +81 -49
  150. package/dist/likec4diagram/state/machine.state.ready.d.ts +508 -582
  151. package/dist/likec4diagram/state/machine.state.ready.focused.d.ts +17 -148
  152. package/dist/likec4diagram/state/machine.state.ready.focused.js +6 -14
  153. package/dist/likec4diagram/state/machine.state.ready.idle.d.ts +11 -96
  154. package/dist/likec4diagram/state/machine.state.ready.idle.js +7 -12
  155. package/dist/likec4diagram/state/machine.state.ready.js +80 -69
  156. package/dist/likec4diagram/state/machine.state.ready.printing.d.ts +4 -0
  157. package/dist/likec4diagram/state/machine.state.ready.printing.js +4 -3
  158. package/dist/likec4diagram/state/machine.state.ready.walkthrough.d.ts +145 -2
  159. package/dist/likec4diagram/state/machine.state.ready.walkthrough.js +29 -21
  160. package/dist/likec4diagram/state/types.d.ts +1 -1
  161. package/dist/likec4diagram/state/utils.d.ts +13 -14
  162. package/dist/likec4diagram/state/utils.js +11 -3
  163. package/dist/likec4diagram/types.d.ts +9 -1
  164. package/dist/likec4diagram/ui/notation/NotationPanel.css.js +1 -1
  165. package/dist/likec4diagram/ui/notation/NotationPanel.js +3 -3
  166. package/dist/likec4diagram/useLayoutConstraints.js +4 -1
  167. package/dist/likec4diagram/xyflow-diagram/diagram-view.d.ts +11 -3
  168. package/dist/likec4diagram/xyflow-diagram/diagram-view.js +5 -3
  169. package/dist/likec4diagram/xyflow-sequence/sequence-layout.d.ts +7 -3
  170. package/dist/likec4diagram/xyflow-sequence/sequence-layout.js +10 -8
  171. package/dist/likec4diagram/xyflow-sequence/utils.d.ts +1 -1
  172. package/dist/navigationpanel/NavigationPanel.js +2 -1
  173. package/dist/navigationpanel/NavigationPanelControls.js +6 -4
  174. package/dist/navigationpanel/NavigationPanelDropdown.js +7 -7
  175. package/dist/navigationpanel/_common.js +1 -2
  176. package/dist/navigationpanel/comparepanel/CompareActionsMenu.js +2 -2
  177. package/dist/navigationpanel/comparepanel/ComparePanelControls.js +1 -1
  178. package/dist/navigationpanel/comparepanel/LayoutTypeSwitcher.js +4 -5
  179. package/dist/navigationpanel/controls/DetailsControls.js +5 -5
  180. package/dist/navigationpanel/controls/LayoutWarning.js +2 -2
  181. package/dist/navigationpanel/controls/LogoButton.d.ts +1 -0
  182. package/dist/navigationpanel/controls/{BurgerButton.js → LogoButton.js} +5 -5
  183. package/dist/navigationpanel/controls/NavigationButtons.js +2 -2
  184. package/dist/navigationpanel/controls/OpenSource.js +1 -1
  185. package/dist/navigationpanel/controls/SearchControl.d.ts +1 -2
  186. package/dist/navigationpanel/controls/SearchControl.js +8 -12
  187. package/dist/navigationpanel/controls/ToggleReadonly.js +4 -5
  188. package/dist/navigationpanel/controls/index.d.ts +1 -1
  189. package/dist/navigationpanel/dropdown/ProjectsMenu.js +12 -6
  190. package/dist/navigationpanel/editorpanel/CenterCamera.js +1 -1
  191. package/dist/navigationpanel/editorpanel/ChangeAutoLayoutButton.js +1 -1
  192. package/dist/navigationpanel/editorpanel/ManualLayoutToolsButton.js +9 -9
  193. package/dist/navigationpanel/editorpanel/ToggleReadonly.js +1 -1
  194. package/dist/navigationpanel/editorpanel/styles.js +4 -4
  195. package/dist/navigationpanel/styles.css.js +1 -1
  196. package/dist/navigationpanel/walkthrough/ActiveWalkthroughControls.js +3 -3
  197. package/dist/navigationpanel/walkthrough/DynamicViewControls.d.ts +67 -67
  198. package/dist/navigationpanel/walkthrough/DynamicViewControls.js +1 -1
  199. package/dist/navigationpanel/walkthrough/WalkthroughPanel.js +1 -1
  200. package/dist/node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconCirclePlus.js +14 -0
  201. package/dist/node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconFileText.js +14 -0
  202. package/dist/node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.js +14 -0
  203. package/dist/overlays/element-details/ElementDetailsCard.css.js +4 -4
  204. package/dist/overlays/element-details/ElementDetailsCard.js +4 -4
  205. package/dist/overlays/element-details/MetadataValue.js +6 -7
  206. package/dist/overlays/element-details/TabPanelDeployments.js +7 -5
  207. package/dist/overlays/element-details/TabPanelRelationships.css.js +5 -25
  208. package/dist/overlays/element-details/TabPanelRelationships.js +3 -3
  209. package/dist/overlays/element-details/TabPanelStructure.js +3 -2
  210. package/dist/overlays/overlaysActor.js +18 -0
  211. package/dist/overlays/relationship-details/RelationshipDetails.d.ts +0 -5
  212. package/dist/overlays/relationship-details/RelationshipDetails.js +4 -4
  213. package/dist/overlays/relationship-details/SelectEdge.css.js +2 -2
  214. package/dist/overlays/relationship-details/SelectEdge.js +2 -2
  215. package/dist/overlays/relationship-details/compute.js +1 -1
  216. package/dist/overlays/relationship-details/custom/ElementActions.js +3 -3
  217. package/dist/overlays/relationship-details/custom/nodeTypes.js +14 -1
  218. package/dist/overlays/relationship-details/layout.js +1 -1
  219. package/dist/overlays/relationships-browser/RelationshipsBrowser.d.ts +0 -5
  220. package/dist/overlays/relationships-browser/RelationshipsBrowser.js +116 -21
  221. package/dist/overlays/relationships-browser/SelectElement.js +2 -2
  222. package/dist/overlays/relationships-browser/custom/ElementActions.js +3 -3
  223. package/dist/overlays/relationships-browser/custom/EmptyNode.js +21 -6
  224. package/dist/overlays/relationships-browser/custom/edgeTypes.js +0 -1
  225. package/dist/overlays/relationships-browser/custom/nodeTypes.js +14 -1
  226. package/dist/overlays/relationships-browser/layout.d.ts +1 -1
  227. package/dist/overlays/relationships-browser/layout.js +1 -1
  228. package/dist/projects-overview/ProjectsOverview.d.ts +13 -0
  229. package/dist/projects-overview/ProjectsOverview.js +57 -0
  230. package/dist/projects-overview/ProjectsOverviewXY.d.ts +17 -0
  231. package/dist/projects-overview/ProjectsOverviewXY.js +98 -0
  232. package/dist/projects-overview/_types.d.ts +34 -0
  233. package/dist/projects-overview/actor.d.ts +121 -0
  234. package/dist/projects-overview/actor.js +359 -0
  235. package/dist/projects-overview/context.d.ts +4 -0
  236. package/dist/projects-overview/context.js +9 -0
  237. package/dist/projects-overview/custom/edgeTypes.d.ts +3 -0
  238. package/dist/projects-overview/custom/edgeTypes.js +23 -0
  239. package/dist/projects-overview/custom/index.d.ts +2 -0
  240. package/dist/projects-overview/custom/nodeTypes.d.ts +2 -0
  241. package/dist/projects-overview/custom/nodeTypes.js +45 -0
  242. package/dist/projects-overview/hooks.d.ts +5 -0
  243. package/dist/projects-overview/hooks.js +14 -0
  244. package/dist/projects-overview/index.d.ts +1 -0
  245. package/dist/projects-overview/layouted-to-xyflow.d.ts +6 -0
  246. package/dist/projects-overview/layouted-to-xyflow.js +49 -0
  247. package/dist/projects-overview/panel/ProjectsOverviewPanel.d.ts +1 -0
  248. package/dist/projects-overview/panel/ProjectsOverviewPanel.js +11 -0
  249. package/dist/projects-overview/persistence.d.ts +5 -0
  250. package/dist/projects-overview/persistence.js +24 -0
  251. package/dist/search/Search.d.ts +1 -4
  252. package/dist/search/Search.js +89 -87
  253. package/dist/search/components/ElementsColumn.css.js +3 -3
  254. package/dist/search/components/ElementsColumn.js +3 -4
  255. package/dist/search/components/PickView.d.ts +3 -1
  256. package/dist/search/components/PickView.js +5 -4
  257. package/dist/search/components/SearchByTags.js +1 -1
  258. package/dist/search/components/SearchInput.js +1 -1
  259. package/dist/search/components/ViewsColum.js +2 -2
  260. package/dist/search/components/_shared.css.js +1 -1
  261. package/dist/search/components/utils.js +1 -1
  262. package/dist/search/hooks.d.ts +1 -6
  263. package/dist/search/hooks.js +12 -9
  264. package/dist/search/searchActor.d.ts +1 -1
  265. package/dist/shadowroot/ShadowRoot.js +20 -19
  266. package/dist/shadowroot/styles.css.d.ts +0 -2
  267. package/dist/shadowroot/styles.css.js +1 -34
  268. package/dist/styles-font.css2.js +1 -1
  269. package/dist/styles.css2.js +1 -1
  270. package/dist/utils/view-bounds.js +9 -5
  271. package/dist/utils/xyflow.d.ts +19 -3
  272. package/dist/utils/xyflow.js +52 -9
  273. package/package.json +23 -22
  274. package/panda.buildinfo.json +93 -84
  275. package/styles-font.css +1 -1
  276. package/styles-min.css +1 -1
  277. package/styles.css +1 -1
  278. package/dist/base-primitives/element/ElementNodeContainer.css.d.ts +0 -1
  279. package/dist/base-primitives/element/ElementNodeContainer.css.js +0 -39
  280. package/dist/editor/__tests__/fixture.d.ts +0 -205
  281. package/dist/editor/editorActor.d.ts +0 -653
  282. package/dist/likec4diagram/relationship-popover/styles.css.d.ts +0 -2
  283. package/dist/likec4diagram/relationship-popover/styles.css.js +0 -28
  284. package/dist/navigationpanel/controls/BurgerButton.d.ts +0 -1
  285. package/dist/overlays/relationships-browser/custom/styles.css.js +0 -14
  286. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/createReactComponent.js +0 -0
  287. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.js +0 -0
  288. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertTriangle.js +0 -0
  289. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowDownRight.js +0 -0
  290. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowLeft.js +0 -0
  291. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.js +0 -0
  292. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconBolt.js +0 -0
  293. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconBrowser.js +0 -0
  294. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.js +0 -0
  295. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.js +0 -0
  296. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.js +0 -0
  297. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.js +0 -0
  298. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.js +0 -0
  299. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconCylinder.js +0 -0
  300. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceMobile.js +0 -0
  301. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconDirectionSignFilled.js +0 -0
  302. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconExternalLink.js +0 -0
  303. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.js +0 -0
  304. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconFocusCentered.js +0 -0
  305. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconFolderFilled.js +0 -0
  306. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconHelpCircle.js +0 -0
  307. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconId.js +0 -0
  308. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.js +0 -0
  309. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignBottom.js +0 -0
  310. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignCenter.js +0 -0
  311. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignLeft.js +0 -0
  312. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignMiddle.js +0 -0
  313. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignRight.js +0 -0
  314. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignTop.js +0 -0
  315. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutBoardSplit.js +0 -0
  316. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutCollage.js +0 -0
  317. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutDashboard.js +0 -0
  318. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLink.js +0 -0
  319. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLock.js +0 -0
  320. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen2.js +0 -0
  321. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerPlayFilled.js +0 -0
  322. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipBackFilled.js +0 -0
  323. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipForwardFilled.js +0 -0
  324. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStopFilled.js +0 -0
  325. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconRectangularPrism.js +0 -0
  326. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconReorder.js +0 -0
  327. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconRouteOff.js +0 -0
  328. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.js +0 -0
  329. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconSelector.js +0 -0
  330. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconStack2.js +0 -0
  331. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconStarFilled.js +0 -0
  332. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconTarget.js +0 -0
  333. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconTransform.js +0 -0
  334. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconUser.js +0 -0
  335. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconX.js +0 -0
  336. /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.36.0_react@19.2.3 → @tabler_icons-react@3.36.0_react@19.2.4}/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.js +0 -0
  337. /package/dist/{overlays/relationships-browser → projects-overview}/custom/styles.css.d.ts +0 -0
@@ -0,0 +1,24 @@
1
+ const key = `likec4:projects-overview:lastViewport`;
2
+ const ProjectsOverviewViewportPersistence = {
3
+ read() {
4
+ try {
5
+ let fromStorage = sessionStorage.getItem(key);
6
+ if (fromStorage) {
7
+ return JSON.parse(fromStorage);
8
+ }
9
+ return null;
10
+ } catch (e) {
11
+ console.error(`Error reading fromStorage ${key}:`, e);
12
+ return null;
13
+ }
14
+ },
15
+ write(viewport) {
16
+ if (!viewport) {
17
+ sessionStorage.removeItem(key);
18
+ return;
19
+ }
20
+ sessionStorage.setItem(key, JSON.stringify(viewport));
21
+ }
22
+ };
23
+
24
+ export { ProjectsOverviewViewportPersistence };
@@ -1,4 +1 @@
1
- import { SearchActorRef } from './searchActor';
2
- export declare function Search({ searchActorRef }: {
3
- searchActorRef: SearchActorRef;
4
- }): import("react/jsx-runtime").JSX.Element;
1
+ export declare function Search(): import("react/jsx-runtime").JSX.Element | null;
@@ -6,12 +6,10 @@ import { useHotkeys } from '@mantine/hooks';
6
6
  import { useTimeoutEffect } from '@react-hookz/web';
7
7
  import { useSelector } from '@xstate/react';
8
8
  import { AnimatePresence, LayoutGroup } from 'motion/react';
9
- import { useRef } from 'react';
10
- import { ErrorBoundary } from 'react-error-boundary';
9
+ import { memo, useRef } from 'react';
11
10
  import { isTruthy } from 'remeda';
12
- import { ErrorFallback } from '../components/ErrorFallback.js';
13
- import { DiagramFeatures } from '../context/DiagramFeatures.js';
14
11
  import { useCallbackRef } from '../hooks/useCallbackRef.js';
12
+ import { useSearchActorRef } from '../hooks/useSearchActor.js';
15
13
  import { Overlay } from '../overlays/overlay/Overlay.js';
16
14
  import { ElementsColumn } from './components/ElementsColumn.js';
17
15
  import { PickView } from './components/PickView.js';
@@ -19,7 +17,6 @@ import { SearchByTags } from './components/SearchByTags.js';
19
17
  import { LikeC4SearchInput } from './components/SearchInput.js';
20
18
  import { focusToFirstFoundElement, moveFocusToSearchInput } from './components/utils.js';
21
19
  import { ViewsColumn } from './components/ViewsColum.js';
22
- import { SearchActorContext, usePickViewFor } from './hooks.js';
23
20
 
24
21
  const dialog = css({
25
22
  backgroundColor: `[rgb(34 34 34 / var(--_opacity, 95%))]`,
@@ -51,15 +48,43 @@ const body = css({
51
48
  paddingLeft: "md",
52
49
  paddingRight: "md",
53
50
  paddingBottom: "sm",
54
- background: "[transparent]"
51
+ background: "transparent"
55
52
  // backgroundColor: {
56
53
  // _dark: `[rgb(34 34 34 / 0.95)]`,
57
54
  // _light: `[rgb(255 255 255/ 0.95)]`,
58
55
  // },
59
56
  });
57
+ const scrollArea = css({
58
+ height: [
59
+ "100%",
60
+ "100cqh"
61
+ ],
62
+ "& .mantine-ScrollArea-viewport": {
63
+ minHeight: "100%",
64
+ "& > div": {
65
+ minHeight: "100%",
66
+ height: "100%"
67
+ }
68
+ }
69
+ });
60
70
  const selectIsOpened = (s) => !s.matches("inactive");
61
- function Search({ searchActorRef }) {
71
+ function Search() {
72
+ const searchActorRef = useSearchActorRef();
73
+ if (!searchActorRef) {
74
+ return null;
75
+ }
76
+ return /* @__PURE__ */ jsx(SearchOverlayCtx, { searchActorRef });
77
+ }
78
+ const selectPickViewFor = (s) => s.context.pickViewFor ?? null;
79
+ const SearchOverlayCtx = memo(({ searchActorRef }) => {
62
80
  const isOpened = useSelector(searchActorRef, selectIsOpened);
81
+ const ref = useRef(null);
82
+ const pickViewFor = useSelector(searchActorRef, selectPickViewFor);
83
+ useTimeoutEffect(() => {
84
+ if (isTruthy(searchActorRef.getSnapshot().context.openedWithSearch)) {
85
+ focusToFirstFoundElement(ref.current);
86
+ }
87
+ }, isOpened ? 150 : void 0);
63
88
  const openSearch = () => {
64
89
  searchActorRef.send({ type: "open" });
65
90
  };
@@ -74,7 +99,7 @@ function Search({ searchActorRef }) {
74
99
  preventDefault: true
75
100
  }]
76
101
  ]);
77
- return /* @__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(
102
+ return /* @__PURE__ */ jsx(AnimatePresence, { children: isOpened && /* @__PURE__ */ jsx(
78
103
  Overlay,
79
104
  {
80
105
  fullscreen: true,
@@ -89,86 +114,63 @@ function Search({ searchActorRef }) {
89
114
  openDelay: 0,
90
115
  onClose: close,
91
116
  "data-likec4-search": "true",
92
- children: /* @__PURE__ */ jsx(SearchOverlay, { searchActorRef })
117
+ children: /* @__PURE__ */ jsxs(Box, { ref, display: "contents", children: [
118
+ /* @__PURE__ */ jsx(
119
+ Group,
120
+ {
121
+ className: "group",
122
+ wrap: "nowrap",
123
+ onClick: (e) => {
124
+ e.stopPropagation();
125
+ moveFocusToSearchInput(ref.current);
126
+ },
127
+ children: /* @__PURE__ */ jsxs(VStack, { flex: 1, px: "sm", children: [
128
+ /* @__PURE__ */ jsx(LikeC4SearchInput, {}),
129
+ /* @__PURE__ */ jsx(SearchByTags, {})
130
+ ] })
131
+ }
132
+ ),
133
+ /* @__PURE__ */ jsxs(Grid, { children: [
134
+ /* @__PURE__ */ jsx(GridCol, { span: 6, children: /* @__PURE__ */ jsx(Title, { component: "div", order: 6, c: "dimmed", pl: "sm", children: "Elements" }) }),
135
+ /* @__PURE__ */ jsx(GridCol, { span: 6, children: /* @__PURE__ */ jsx(Title, { component: "div", order: 6, c: "dimmed", pl: "sm", children: "Views" }) })
136
+ ] }),
137
+ /* @__PURE__ */ jsxs(
138
+ Grid,
139
+ {
140
+ className: css({
141
+ containerName: "likec4-search-elements",
142
+ containerType: "size",
143
+ overflow: "hidden",
144
+ flexGrow: 1
145
+ }),
146
+ children: [
147
+ /* @__PURE__ */ jsx(GridCol, { span: 6, children: /* @__PURE__ */ jsx(
148
+ ScrollArea,
149
+ {
150
+ type: "scroll",
151
+ className: scrollArea,
152
+ pr: "xs",
153
+ scrollbars: "y",
154
+ children: /* @__PURE__ */ jsx(AnimatePresence, { children: /* @__PURE__ */ jsx(LayoutGroup, { id: "likec4-search-elements", children: /* @__PURE__ */ jsx(ElementsColumn, {}) }) })
155
+ }
156
+ ) }),
157
+ /* @__PURE__ */ jsx(GridCol, { span: 6, children: /* @__PURE__ */ jsx(
158
+ ScrollArea,
159
+ {
160
+ type: "scroll",
161
+ className: scrollArea,
162
+ pr: "xs",
163
+ scrollbars: "y",
164
+ children: /* @__PURE__ */ jsx(AnimatePresence, { children: /* @__PURE__ */ jsx(LayoutGroup, { id: "likec4-search-views", children: /* @__PURE__ */ jsx(ViewsColumn, {}) }) })
165
+ }
166
+ ) })
167
+ ]
168
+ }
169
+ ),
170
+ pickViewFor && /* @__PURE__ */ jsx(PickView, { searchActorRef, elementFqn: pickViewFor })
171
+ ] })
93
172
  }
94
- ) }) }) }) });
95
- }
96
- const scrollArea = css({
97
- height: [
98
- "100%",
99
- "100cqh"
100
- ],
101
- "& .mantine-ScrollArea-viewport": {
102
- minHeight: "100%",
103
- "& > div": {
104
- minHeight: "100%",
105
- height: "100%"
106
- }
107
- }
173
+ ) });
108
174
  });
109
- const SearchOverlay = ({ searchActorRef }) => {
110
- const ref = useRef(null);
111
- const pickViewFor = usePickViewFor();
112
- useTimeoutEffect(() => {
113
- if (isTruthy(searchActorRef.getSnapshot().context.openedWithSearch)) {
114
- focusToFirstFoundElement(ref.current);
115
- }
116
- }, 150);
117
- return /* @__PURE__ */ jsxs(Box, { ref, display: "contents", children: [
118
- /* @__PURE__ */ jsx(
119
- Group,
120
- {
121
- className: "group",
122
- wrap: "nowrap",
123
- onClick: (e) => {
124
- e.stopPropagation();
125
- moveFocusToSearchInput(ref.current);
126
- },
127
- children: /* @__PURE__ */ jsxs(VStack, { flex: 1, px: "sm", children: [
128
- /* @__PURE__ */ jsx(LikeC4SearchInput, {}),
129
- /* @__PURE__ */ jsx(SearchByTags, {})
130
- ] })
131
- }
132
- ),
133
- /* @__PURE__ */ jsxs(Grid, { children: [
134
- /* @__PURE__ */ jsx(GridCol, { span: 6, children: /* @__PURE__ */ jsx(Title, { component: "div", order: 6, c: "dimmed", pl: "sm", children: "Elements" }) }),
135
- /* @__PURE__ */ jsx(GridCol, { span: 6, children: /* @__PURE__ */ jsx(Title, { component: "div", order: 6, c: "dimmed", pl: "sm", children: "Views" }) })
136
- ] }),
137
- /* @__PURE__ */ jsxs(
138
- Grid,
139
- {
140
- className: css({
141
- containerName: "likec4-search-elements",
142
- containerType: "size",
143
- overflow: "hidden",
144
- flexGrow: 1
145
- }),
146
- children: [
147
- /* @__PURE__ */ jsx(GridCol, { span: 6, children: /* @__PURE__ */ jsx(
148
- ScrollArea,
149
- {
150
- type: "scroll",
151
- className: scrollArea,
152
- pr: "xs",
153
- scrollbars: "y",
154
- children: /* @__PURE__ */ jsx(AnimatePresence, { children: /* @__PURE__ */ jsx(LayoutGroup, { id: "likec4-search-elements", children: /* @__PURE__ */ jsx(ElementsColumn, {}) }) })
155
- }
156
- ) }),
157
- /* @__PURE__ */ jsx(GridCol, { span: 6, children: /* @__PURE__ */ jsx(
158
- ScrollArea,
159
- {
160
- type: "scroll",
161
- className: scrollArea,
162
- pr: "xs",
163
- scrollbars: "y",
164
- children: /* @__PURE__ */ jsx(AnimatePresence, { children: /* @__PURE__ */ jsx(LayoutGroup, { id: "likec4-search-views", children: /* @__PURE__ */ jsx(ViewsColumn, {}) }) })
165
- }
166
- ) })
167
- ]
168
- }
169
- ),
170
- pickViewFor && /* @__PURE__ */ jsx(PickView, { elementFqn: pickViewFor })
171
- ] });
172
- };
173
175
 
174
176
  export { Search };
@@ -39,10 +39,10 @@ const elementId = css({
39
39
  fontSize: "10px",
40
40
  lineHeight: "1.3",
41
41
  display: "block",
42
- fontWeight: 500,
42
+ fontWeight: "medium",
43
43
  whiteSpace: "nowrap",
44
44
  padding: "[1px 5px]",
45
- borderRadius: "4px",
45
+ borderRadius: "sm",
46
46
  background: `mantine.colors.dark[9]/30`,
47
47
  _light: {
48
48
  background: `mantine.colors.gray[3]/20`
@@ -58,7 +58,7 @@ const elementViewsCount = css({
58
58
  flex: 0,
59
59
  // color: `[var(${descriptionColor}, {colors.mantine.colors.dimmed})]`,
60
60
  fontSize: "10px",
61
- fontWeight: 500,
61
+ fontWeight: "medium",
62
62
  whiteSpace: "nowrap",
63
63
  lineHeight: "1.1",
64
64
  [whenContainerIsNarrow]: {
@@ -17,7 +17,7 @@ import { focusable, buttonsva } from './_shared.css.js';
17
17
  import { treeSubtree, treeLabel, treeRoot, treeNode, elementIcon, elementExpandIcon, elementTitleAndId, elementId, elementViewsCount } from './ElementsColumn.css.js';
18
18
  import { whenSearchAnimationEnds, stopAndPrevent, moveFocusToSearchInput, queryAllFocusable, centerY } from './utils.js';
19
19
  import { NothingFound } from './ViewsColum.js';
20
- import IconChevronRight from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.3/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.js';
20
+ import IconChevronRight from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.js';
21
21
 
22
22
  const btn = buttonsva();
23
23
  const ElementsColumn = memo(() => {
@@ -154,11 +154,11 @@ function ElementsTree({
154
154
  subtree: treeSubtree
155
155
  },
156
156
  onKeyDownCapture,
157
- renderNode: ElementTreeNode
157
+ renderNode: (p) => /* @__PURE__ */ jsx(ElementTreeNode, { ...p, handleClick })
158
158
  }
159
159
  );
160
160
  }
161
- function ElementTreeNode({ node, elementProps, hasChildren, expanded }) {
161
+ function ElementTreeNode({ node, elementProps, hasChildren, expanded, handleClick }) {
162
162
  const { element, searchTerms } = node;
163
163
  const elementIcon$1 = IconOrShapeRenderer({
164
164
  element: {
@@ -170,7 +170,6 @@ function ElementTreeNode({ node, elementProps, hasChildren, expanded }) {
170
170
  className: cx(btn.icon, elementIcon)
171
171
  });
172
172
  const views = [...element.views()];
173
- const handleClick = useHandleElementSelection();
174
173
  const key = `@tree.${node.value}`;
175
174
  return /* @__PURE__ */ jsxs(m.div, { layoutId: key, ...elementProps, children: [
176
175
  /* @__PURE__ */ jsx(
@@ -1,4 +1,6 @@
1
1
  import { Fqn } from '@likec4/core/types';
2
- export declare function PickView({ elementFqn }: {
2
+ import { SearchActorRef } from '../searchActor';
3
+ export declare function PickView({ searchActorRef, elementFqn, }: {
4
+ searchActorRef: SearchActorRef;
3
5
  elementFqn: Fqn;
4
6
  }): import("react/jsx-runtime").JSX.Element;
@@ -3,13 +3,14 @@ import { FocusTrap, Group, Title, ActionIcon, ScrollAreaAutosize, Stack } from '
3
3
  import { useWindowEvent } from '@mantine/hooks';
4
4
  import * as m from 'motion/react-m';
5
5
  import { useLikeC4Model } from '../../hooks/useLikeC4Model.js';
6
- import { useSearchActor } from '../hooks.js';
7
6
  import { pickviewBackdrop, pickview, pickviewGroup } from './styles.css.js';
8
7
  import { ViewButton } from './ViewsColum.js';
9
- import IconX from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.3/node_modules/@tabler/icons-react/dist/esm/icons/IconX.js';
8
+ import IconX from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconX.js';
10
9
 
11
- function PickView({ elementFqn }) {
12
- const searchActorRef = useSearchActor();
10
+ function PickView({
11
+ searchActorRef,
12
+ elementFqn
13
+ }) {
13
14
  const element = useLikeC4Model().element(elementFqn);
14
15
  const scoped = [];
15
16
  const others = [];
@@ -7,7 +7,7 @@ import { useLikeC4Model } from '../../hooks/useLikeC4Model.js';
7
7
  import { useUpdateSearch, useNormalizedSearch } from '../hooks.js';
8
8
  import { focusToFirstFoundElement, moveFocusToSearchInput } from './utils.js';
9
9
  import { ElementTag } from '../../base-primitives/element/ElementTags.js';
10
- import IconX from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.3/node_modules/@tabler/icons-react/dist/esm/icons/IconX.js';
10
+ import IconX from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconX.js';
11
11
 
12
12
  function SearchByTags() {
13
13
  const ref = useRef(null);
@@ -7,7 +7,7 @@ import { useLikeC4Model } from '../../hooks/useLikeC4Model.js';
7
7
  import { useSearchActor, useSearch } from '../hooks.js';
8
8
  import { input } from './styles.css.js';
9
9
  import { moveFocusToSearchInput, stopAndPrevent, focusToFirstFoundElement } from './utils.js';
10
- import IconSearch from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.3/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.js';
10
+ import IconSearch from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.js';
11
11
 
12
12
  function startingWithKind(search) {
13
13
  return search.match(/^(k|ki|kin|kind|kind:)$/) != null;
@@ -14,8 +14,8 @@ import { useNormalizedSearch, useSearchActor } from '../hooks.js';
14
14
  import { emptyBoX, buttonsva, focusable } from './_shared.css.js';
15
15
  import { moveFocusToSearchInput, queryAllFocusable, centerY, whenSearchAnimationEnds } from './utils.js';
16
16
  import { viewButton } from './ViewsColumn.css.js';
17
- import IconStack2 from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.3/node_modules/@tabler/icons-react/dist/esm/icons/IconStack2.js';
18
- import IconZoomScan from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.3/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.js';
17
+ import IconStack2 from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconStack2.js';
18
+ import IconZoomScan from '../../node_modules/.pnpm/@tabler_icons-react@3.36.0_react@19.2.4/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.js';
19
19
 
20
20
  const NothingFound = () => /* @__PURE__ */ jsx(Box, { className: emptyBoX, children: "Nothing found" });
21
21
  const ViewsColumn = memo(() => {
@@ -88,7 +88,7 @@ const icon = css.raw({
88
88
  });
89
89
  const title = css.raw({
90
90
  fontSize: "16px",
91
- fontWeight: 500,
91
+ fontWeight: "medium",
92
92
  lineHeight: "1.1",
93
93
  [`:where([data-disabled]) &`]: {
94
94
  opacity: 0.4
@@ -55,7 +55,7 @@ function queryAllFocusable(from, where, selector = `.${focusable}`) {
55
55
  return [...elements];
56
56
  }
57
57
  function whenSearchAnimationEnds(callback) {
58
- setTimeout(callback, 300);
58
+ setTimeout(callback, 400);
59
59
  }
60
60
 
61
61
  export { centerY, focusToFirstFoundElement, moveFocusToSearchInput, queryAllFocusable, stopAndPrevent, whenSearchAnimationEnds };
@@ -1,10 +1,5 @@
1
1
  import { SearchActorRef } from './searchActor';
2
- import { Fqn } from '@likec4/core';
3
- export declare const SearchActorContext: ({ children, value }: {
4
- value: SearchActorRef;
5
- children: React.ReactNode;
6
- }) => import("react/jsx-runtime").JSX.Element, useSearchActor: () => SearchActorRef;
2
+ export declare function useSearchActor(): SearchActorRef;
7
3
  export declare function useSearch(): [string, (search: string) => void];
8
4
  export declare function useNormalizedSearch(): string;
9
5
  export declare function useUpdateSearch(): (search: string) => void;
10
- export declare function usePickViewFor(): Fqn | null;
@@ -1,8 +1,14 @@
1
- import { createSafeContext } from '@mantine/core';
2
1
  import { useSelector } from '@xstate/react';
3
2
  import { useCallback, useDeferredValue } from 'react';
3
+ import { useSearchActorRef } from '../hooks/useSearchActor.js';
4
4
 
5
- const [SearchActorContext, useSearchActor] = createSafeContext("SearchActorContext");
5
+ function useSearchActor() {
6
+ const searchActorRef = useSearchActorRef();
7
+ if (!searchActorRef) {
8
+ throw new Error("Search actor not found");
9
+ }
10
+ return searchActorRef;
11
+ }
6
12
  const selectSearchValue = (s) => s.context.searchValue;
7
13
  function useSearch() {
8
14
  const searchActorRef = useSearchActor();
@@ -13,7 +19,9 @@ function useSearch() {
13
19
  return [searchValue, updateSearch];
14
20
  }
15
21
  const selectNormalizedSearchValue = (s) => {
16
- const v = s.context.searchValue.trim().toLowerCase();
22
+ let v = selectSearchValue(s);
23
+ if (v === "") return "";
24
+ v = v.trim().toLowerCase();
17
25
  return v.length > 1 ? v : "";
18
26
  };
19
27
  function useNormalizedSearch() {
@@ -26,10 +34,5 @@ function useUpdateSearch() {
26
34
  searchActorRef.send({ type: "change.search", search });
27
35
  }, [searchActorRef]);
28
36
  }
29
- const selectPickViewFor = (s) => s.context.pickViewFor;
30
- function usePickViewFor() {
31
- const searchActorRef = useSearchActor();
32
- return useSelector(searchActorRef, selectPickViewFor);
33
- }
34
37
 
35
- export { SearchActorContext, useNormalizedSearch, usePickViewFor, useSearch, useSearchActor, useUpdateSearch };
38
+ export { useNormalizedSearch, useSearch, useSearchActor, useUpdateSearch };
@@ -19,7 +19,7 @@ export interface SearchContext {
19
19
  searchValue: string;
20
20
  pickViewFor: Fqn | null;
21
21
  }
22
- export interface SearchActorLogic extends StateMachine<SearchContext, SearchActorEvent, {}, any, any, any, any, any, never, never, any, any, any, any> {
22
+ export interface SearchActorLogic extends StateMachine<SearchContext, SearchActorEvent, {}, any, any, any, any, 'inactive' | 'opened' | 'pickView', never, never, any, any, any, any> {
23
23
  }
24
24
  export declare const searchActorLogic: SearchActorLogic;
25
25
  export type SearchActorSnapshot = SnapshotFrom<SearchActorLogic>;
@@ -1,13 +1,13 @@
1
1
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
- import { MantineProvider } from '@mantine/core';
3
2
  import { useMergedRef } from '@mantine/hooks';
4
- import { forwardRef, useRef, useCallback } from 'react';
3
+ import { forwardRef, useRef, useState, memo } from 'react';
5
4
  import root from 'react-shadow';
6
5
  import { isDefined } from 'remeda';
6
+ import { DefaultMantineProvider } from '../context/DefaultMantineProvider.js';
7
7
  import { FramerMotionConfig } from '../context/FramerMotionConfig.js';
8
8
  import { useCallbackRef } from '../hooks/useCallbackRef.js';
9
9
  import { useId } from '../hooks/useId.js';
10
- import { useColorScheme, useBundledStyleSheet, DefaultTheme } from './styles.css.js';
10
+ import { useColorScheme, useBundledStyleSheet } from './styles.css.js';
11
11
 
12
12
  const Root = root["div"];
13
13
  function useShadowRootStyle(instanceId, keepAspectRatio = false) {
@@ -52,7 +52,7 @@ function useShadowRootStyle(instanceId, keepAspectRatio = false) {
52
52
  }
53
53
  const ShadowRoot = forwardRef(({
54
54
  children,
55
- theme = DefaultTheme,
55
+ theme,
56
56
  injectFontCss = true,
57
57
  styleNonce,
58
58
  colorScheme: explicitColorScheme,
@@ -64,7 +64,7 @@ const ShadowRoot = forwardRef(({
64
64
  const cssstyle = useShadowRootStyle(id, keepAspectRatio);
65
65
  const rootRef = useRef(null);
66
66
  const styleSheets = useBundledStyleSheet(injectFontCss, styleNonce);
67
- const getRootElement = useCallback(() => rootRef.current ?? void 0, [rootRef]);
67
+ const getRootElement = useCallbackRef(() => rootRef.current ?? void 0);
68
68
  const getStyleNonce = useCallbackRef(() => {
69
69
  if (isDefined(styleNonce)) {
70
70
  if (typeof styleNonce === "string") {
@@ -75,16 +75,9 @@ const ShadowRoot = forwardRef(({
75
75
  }
76
76
  return "";
77
77
  });
78
- let nonce = isDefined(styleNonce) ? getStyleNonce() : void 0;
78
+ const [nonce] = useState(getStyleNonce);
79
79
  return /* @__PURE__ */ jsxs(Fragment, { children: [
80
- /* @__PURE__ */ jsx(
81
- "style",
82
- {
83
- type: "text/css",
84
- nonce,
85
- dangerouslySetInnerHTML: { __html: cssstyle }
86
- }
87
- ),
80
+ /* @__PURE__ */ jsx(MemoizedStyle, { nonce, cssstyle }),
88
81
  /* @__PURE__ */ jsx(Root, { ssr: false, ...props, styleSheets, "data-likec4-instance": id, children: /* @__PURE__ */ jsx(
89
82
  "div",
90
83
  {
@@ -92,14 +85,14 @@ const ShadowRoot = forwardRef(({
92
85
  "data-mantine-color-scheme": colorScheme,
93
86
  className: "likec4-shadow-root",
94
87
  children: /* @__PURE__ */ jsx(
95
- MantineProvider,
88
+ DefaultMantineProvider,
96
89
  {
97
- ...explicitColorScheme && { forceColorScheme: explicitColorScheme },
98
90
  defaultColorScheme: colorScheme,
99
91
  getRootElement,
100
- ...!!nonce && { getStyleNonce },
101
92
  cssVariablesSelector: ".likec4-shadow-root",
102
- theme,
93
+ getStyleNonce,
94
+ ...explicitColorScheme && { forceColorScheme: explicitColorScheme },
95
+ ...theme && { theme },
103
96
  children: /* @__PURE__ */ jsx(FramerMotionConfig, { children })
104
97
  }
105
98
  )
@@ -107,6 +100,14 @@ const ShadowRoot = forwardRef(({
107
100
  ) })
108
101
  ] });
109
102
  });
110
- ShadowRoot.displayName = "ShadowRoot";
103
+ const MemoizedStyle = memo(({ nonce, cssstyle }) => /* @__PURE__ */ jsx(
104
+ "style",
105
+ {
106
+ type: "text/css",
107
+ nonce,
108
+ dangerouslySetInnerHTML: { __html: cssstyle }
109
+ }
110
+ ));
111
+ MemoizedStyle.displayName = "MemoizedStyle";
111
112
 
112
113
  export { ShadowRoot };
@@ -1,5 +1,3 @@
1
- import { MantineThemeOverride } from '@mantine/core';
2
- export declare const DefaultTheme: MantineThemeOverride;
3
1
  export declare const cssInteractive: string;
4
2
  export declare function useBundledStyleSheet(injectFontCss: boolean, styleNonce?: string | (() => string) | undefined): CSSStyleSheet[];
5
3
  export type ColorScheme = 'light' | 'dark';
@@ -1,5 +1,4 @@
1
1
  import { css } from '@likec4/styles/css';
2
- import { createTheme, Tooltip, Portal } from '@mantine/core';
3
2
  import { useColorScheme as useColorScheme$1, useMutationObserver, useDebouncedCallback } from '@mantine/hooks';
4
3
  import { useIsomorphicLayoutEffect } from '@react-hookz/web';
5
4
  import { useState } from 'react';
@@ -7,38 +6,6 @@ import { isString, isFunction, first } from 'remeda';
7
6
  import fontsCss from '../styles-font.css2.js';
8
7
  import inlinedStyles from '../styles.css2.js';
9
8
 
10
- const DefaultTheme = createTheme({
11
- autoContrast: true,
12
- primaryColor: "indigo",
13
- cursorType: "pointer",
14
- defaultRadius: "sm",
15
- fontFamily: "var(--likec4-app-font, var(--likec4-app-font-default))",
16
- headings: {
17
- fontWeight: "500",
18
- sizes: {
19
- h1: {
20
- // fontSize: '2rem',
21
- fontWeight: "600"
22
- },
23
- h2: {
24
- fontWeight: "500"
25
- // fontSize: '1.85rem',
26
- }
27
- }
28
- },
29
- components: {
30
- Portal: Portal.extend({
31
- defaultProps: {
32
- reuseTargetNode: true
33
- }
34
- }),
35
- Tooltip: Tooltip.extend({
36
- defaultProps: {
37
- color: "dark"
38
- }
39
- })
40
- }
41
- });
42
9
  css({
43
10
  cursor: "pointer",
44
11
  ["--mantine-cursor-pointer"]: "pointer",
@@ -101,4 +68,4 @@ function useColorScheme(explicit) {
101
68
  return explicit ?? computed ?? preferred;
102
69
  }
103
70
 
104
- export { DefaultTheme, useBundledStyleSheet, useColorScheme };
71
+ export { useBundledStyleSheet, useColorScheme };
@@ -1,3 +1,3 @@
1
- const fontsCss = "@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-400-normal.woff2) format(\"woff2\"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-400-normal.woff) format(\"woff\");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-500-normal.woff2) format(\"woff2\"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-500-normal.woff) format(\"woff\");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-600-normal.woff2) format(\"woff2\"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-600-normal.woff) format(\"woff\");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-400-normal.woff2) format(\"woff2\"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-400-normal.woff) format(\"woff\");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-500-normal.woff2) format(\"woff2\"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-500-normal.woff) format(\"woff\");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-600-normal.woff2) format(\"woff2\"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-600-normal.woff) format(\"woff\");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-400-normal.woff2) format(\"woff2\"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-400-normal.woff) format(\"woff\");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-500-normal.woff2) format(\"woff2\"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-500-normal.woff) format(\"woff\");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-600-normal.woff2) format(\"woff2\"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-600-normal.woff) format(\"woff\");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-400-normal.woff2) format(\"woff2\"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-400-normal.woff) format(\"woff\");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-500-normal.woff2) format(\"woff2\"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-500-normal.woff) format(\"woff\");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-600-normal.woff2) format(\"woff2\"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-600-normal.woff) format(\"woff\");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}";
1
+ const fontsCss = "@font-face{font-family:IBM Plex Sans Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans:vf@latest/latin-wght-normal.woff2) format(\"woff2-variations\");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans:vf@latest/cyrillic-wght-normal.woff2) format(\"woff2-variations\");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:IBM Plex Sans Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans:vf@latest/cyrillic-ext-wght-normal.woff2) format(\"woff2-variations\");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans:vf@latest/greek-wght-normal.woff2) format(\"woff2-variations\");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:IBM Plex Sans Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans:vf@latest/latin-ext-wght-normal.woff2) format(\"woff2-variations\");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Sans Variable;font-style:normal;font-display:swap;font-weight:100 700;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans:vf@latest/vietnamese-wght-normal.woff2) format(\"woff2-variations\");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}";
2
2
 
3
3
  export { fontsCss as default };