@qwik.dev/devtools 0.1.2 → 0.2.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/dist/plugin/index.js +8 -5
- package/dist/ui/_virtual/index.qwik.cjs +5 -4
- package/dist/ui/_virtual/index.qwik.mjs +5 -3
- package/dist/ui/components/Tree/Tree.qwik.cjs +36 -16
- package/dist/ui/components/Tree/Tree.qwik.mjs +36 -16
- package/dist/ui/devtools.qwik.cjs +0 -20
- package/dist/ui/devtools.qwik.mjs +1 -21
- package/dist/ui/features/RenderTree/RenderTree.qwik.cjs +125 -62
- package/dist/ui/features/RenderTree/RenderTree.qwik.mjs +125 -62
- package/dist/ui/features/RenderTree/formatTreeData.qwik.cjs +3 -0
- package/dist/ui/features/RenderTree/formatTreeData.qwik.mjs +3 -0
- package/dist/ui/global.css.qwik.cjs +101 -28
- package/dist/ui/global.css.qwik.mjs +101 -28
- package/dist/ui/node_modules/.pnpm/@qwikest_icons@0.0.13_@builder.io_qwik@1.11.0_vite@7.1.3_@types_node@20.14.11_jiti@2.4.2_tsx@4.19.2_yaml@2.7.0__/node_modules/@qwikest/icons/lib/hi.qwik.qwik.cjs +0 -17
- package/dist/ui/node_modules/.pnpm/@qwikest_icons@0.0.13_@builder.io_qwik@1.11.0_vite@7.1.3_@types_node@20.14.11_jiti@2.4.2_tsx@4.19.2_yaml@2.7.0__/node_modules/@qwikest/icons/lib/hi.qwik.qwik.mjs +0 -17
- package/dist/ui/node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/index.qwik.cjs +1 -1
- package/dist/ui/node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/index.qwik.mjs +1 -1
- package/package.json +4 -1
- package/dist/ui/_virtual/client.qwik.cjs +0 -5
- package/dist/ui/_virtual/client.qwik.mjs +0 -5
- package/dist/ui/_virtual/client.qwik2.cjs +0 -4
- package/dist/ui/_virtual/client.qwik2.mjs +0 -4
- package/dist/ui/_virtual/index.qwik2.cjs +0 -8
- package/dist/ui/_virtual/index.qwik2.mjs +0 -8
- package/dist/ui/_virtual/index.qwik3.cjs +0 -4
- package/dist/ui/_virtual/index.qwik3.mjs +0 -4
- package/dist/ui/_virtual/index.qwik4.cjs +0 -4
- package/dist/ui/_virtual/index.qwik4.mjs +0 -4
- package/dist/ui/_virtual/index.qwik5.cjs +0 -6
- package/dist/ui/_virtual/index.qwik5.mjs +0 -7
- package/dist/ui/_virtual/index.qwik6.cjs +0 -4
- package/dist/ui/_virtual/index.qwik6.mjs +0 -4
- package/dist/ui/_virtual/jsx-runtime.qwik.cjs +0 -5
- package/dist/ui/_virtual/jsx-runtime.qwik.mjs +0 -5
- package/dist/ui/_virtual/jsx-runtime.qwik2.cjs +0 -4
- package/dist/ui/_virtual/jsx-runtime.qwik2.mjs +0 -4
- package/dist/ui/_virtual/react-dom-server-legacy.node.development.qwik.cjs +0 -4
- package/dist/ui/_virtual/react-dom-server-legacy.node.development.qwik.mjs +0 -4
- package/dist/ui/_virtual/react-dom-server-legacy.node.production.min.qwik.cjs +0 -4
- package/dist/ui/_virtual/react-dom-server-legacy.node.production.min.qwik.mjs +0 -4
- package/dist/ui/_virtual/react-dom-server.node.development.qwik.cjs +0 -4
- package/dist/ui/_virtual/react-dom-server.node.development.qwik.mjs +0 -4
- package/dist/ui/_virtual/react-dom-server.node.production.min.qwik.cjs +0 -4
- package/dist/ui/_virtual/react-dom-server.node.production.min.qwik.mjs +0 -4
- package/dist/ui/_virtual/react-dom.development.qwik.cjs +0 -4
- package/dist/ui/_virtual/react-dom.development.qwik.mjs +0 -4
- package/dist/ui/_virtual/react-dom.production.min.qwik.cjs +0 -4
- package/dist/ui/_virtual/react-dom.production.min.qwik.mjs +0 -4
- package/dist/ui/_virtual/react-jsx-runtime.development.qwik.cjs +0 -4
- package/dist/ui/_virtual/react-jsx-runtime.development.qwik.mjs +0 -4
- package/dist/ui/_virtual/react-jsx-runtime.production.min.qwik.cjs +0 -4
- package/dist/ui/_virtual/react-jsx-runtime.production.min.qwik.mjs +0 -4
- package/dist/ui/_virtual/react.development.qwik.cjs +0 -4
- package/dist/ui/_virtual/react.development.qwik.mjs +0 -4
- package/dist/ui/_virtual/react.production.min.qwik.cjs +0 -4
- package/dist/ui/_virtual/react.production.min.qwik.mjs +0 -4
- package/dist/ui/_virtual/scheduler.development.qwik.cjs +0 -4
- package/dist/ui/_virtual/scheduler.development.qwik.mjs +0 -4
- package/dist/ui/_virtual/scheduler.production.min.qwik.cjs +0 -4
- package/dist/ui/_virtual/scheduler.production.min.qwik.mjs +0 -4
- package/dist/ui/_virtual/server.node.qwik.cjs +0 -5
- package/dist/ui/_virtual/server.node.qwik.mjs +0 -5
- package/dist/ui/_virtual/server.node.qwik2.cjs +0 -4
- package/dist/ui/_virtual/server.node.qwik2.mjs +0 -4
- package/dist/ui/features/Components/Components.qwik.cjs +0 -108
- package/dist/ui/features/Components/Components.qwik.mjs +0 -108
- package/dist/ui/features/Components/components/Tree.qwik.cjs +0 -60
- package/dist/ui/features/Components/components/Tree.qwik.mjs +0 -60
- package/dist/ui/features/Components/styles.css.qwik.cjs +0 -3
- package/dist/ui/features/Components/styles.css.qwik.mjs +0 -4
- package/dist/ui/lib-types/ui/src/features/Components/Components.d.ts +0 -19
- package/dist/ui/lib-types/ui/src/features/Components/components/Tree.d.ts +0 -1
- package/dist/ui/node_modules/.pnpm/@qwik.dev_react@2.0.0-beta.9_@qwik.dev_core@2.0.0-beta.9_prettier@3.3.3_vite@7.1.3_@typ_acdb3a1fab641cc17ee740fd3c684547/node_modules/@qwik.dev/react/lib/index.qwik.qwik.cjs +0 -269
- package/dist/ui/node_modules/.pnpm/@qwik.dev_react@2.0.0-beta.9_@qwik.dev_core@2.0.0-beta.9_prettier@3.3.3_vite@7.1.3_@typ_acdb3a1fab641cc17ee740fd3c684547/node_modules/@qwik.dev/react/lib/index.qwik.qwik.mjs +0 -269
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/EventEmitter.qwik.cjs +0 -162
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/EventEmitter.qwik.mjs +0 -162
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/controlledEnvironment/ControlledTreeEnvironment.qwik.cjs +0 -48
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/controlledEnvironment/ControlledTreeEnvironment.qwik.mjs +0 -48
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/controlledEnvironment/InteractionManagerProvider.qwik.cjs +0 -29
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/controlledEnvironment/InteractionManagerProvider.qwik.mjs +0 -29
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/controlledEnvironment/buildInteractionMode.qwik.cjs +0 -19
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/controlledEnvironment/buildInteractionMode.qwik.mjs +0 -19
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/controlledEnvironment/layoutUtils.qwik.cjs +0 -17
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/controlledEnvironment/layoutUtils.qwik.mjs +0 -17
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/controlledEnvironment/mergeInteractionManagers.qwik.cjs +0 -22
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/controlledEnvironment/mergeInteractionManagers.qwik.mjs +0 -22
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/controlledEnvironment/useControlledTreeEnvironmentProps.qwik.cjs +0 -127
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/controlledEnvironment/useControlledTreeEnvironmentProps.qwik.mjs +0 -127
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/controlledEnvironment/useLinearItems.qwik.cjs +0 -7
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/controlledEnvironment/useLinearItems.qwik.mjs +0 -7
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/drag/DragAndDropProvider.qwik.cjs +0 -231
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/drag/DragAndDropProvider.qwik.mjs +0 -231
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/drag/DraggingPositionEvaluation.qwik.cjs +0 -179
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/drag/DraggingPositionEvaluation.qwik.mjs +0 -179
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/drag/useCanDropAt.qwik.cjs +0 -30
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/drag/useCanDropAt.qwik.mjs +0 -30
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/drag/useDraggingPosition.qwik.cjs +0 -87
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/drag/useDraggingPosition.qwik.mjs +0 -87
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/drag/useGetParentOfLinearItem.qwik.cjs +0 -21
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/drag/useGetParentOfLinearItem.qwik.mjs +0 -21
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/drag/useGetViableDragPositions.qwik.cjs +0 -90
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/drag/useGetViableDragPositions.qwik.mjs +0 -90
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/environmentActions/EnvironmentActionsProvider.qwik.cjs +0 -321
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/environmentActions/EnvironmentActionsProvider.qwik.mjs +0 -321
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/environmentActions/useCreatedEnvironmentRef.qwik.cjs +0 -24
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/environmentActions/useCreatedEnvironmentRef.qwik.mjs +0 -24
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/hotkeys/defaultKeyboardBindings.qwik.cjs +0 -18
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/hotkeys/defaultKeyboardBindings.qwik.mjs +0 -18
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/hotkeys/useHotkey.qwik.cjs +0 -76
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/hotkeys/useHotkey.qwik.mjs +0 -76
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/hotkeys/useKey.qwik.cjs +0 -15
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/hotkeys/useKey.qwik.mjs +0 -15
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/hotkeys/useKeyboardBindings.qwik.cjs +0 -26
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/hotkeys/useKeyboardBindings.qwik.mjs +0 -26
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/interactionMode/ClickArrowToExpandInteractionManager.qwik.cjs +0 -49
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/interactionMode/ClickArrowToExpandInteractionManager.qwik.mjs +0 -49
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/interactionMode/ClickItemToExpandInteractionManager.qwik.cjs +0 -52
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/interactionMode/ClickItemToExpandInteractionManager.qwik.mjs +0 -52
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/interactionMode/DoubleClickItemToExpandInteractionManager.qwik.cjs +0 -56
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/interactionMode/DoubleClickItemToExpandInteractionManager.qwik.mjs +0 -56
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/isControlKey.qwik.cjs +0 -6
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/isControlKey.qwik.mjs +0 -6
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/renderers/createDefaultRenderers.qwik.cjs +0 -136
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/renderers/createDefaultRenderers.qwik.mjs +0 -136
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/renderers/useRenderers.qwik.cjs +0 -42
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/renderers/useRenderers.qwik.mjs +0 -42
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/search/SearchInput.qwik.cjs +0 -69
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/search/SearchInput.qwik.mjs +0 -69
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/search/defaultMatcher.qwik.cjs +0 -6
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/search/defaultMatcher.qwik.mjs +0 -6
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/search/useSearchMatchFocus.qwik.cjs +0 -37
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/search/useSearchMatchFocus.qwik.mjs +0 -37
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/DragBetweenLine.qwik.cjs +0 -31
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/DragBetweenLine.qwik.mjs +0 -31
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/LiveDescription.qwik.cjs +0 -52
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/LiveDescription.qwik.mjs +0 -52
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/MaybeLiveDescription.qwik.cjs +0 -14
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/MaybeLiveDescription.qwik.mjs +0 -14
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/Tree.qwik.cjs +0 -87
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/Tree.qwik.mjs +0 -87
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/TreeManager.qwik.cjs +0 -62
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/TreeManager.qwik.mjs +0 -62
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/defaultLiveDescriptors.qwik.cjs +0 -10
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/defaultLiveDescriptors.qwik.mjs +0 -10
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/getItemsLinearly.qwik.cjs +0 -19
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/getItemsLinearly.qwik.mjs +0 -19
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/resolveLiveDescriptor.qwik.cjs +0 -41
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/resolveLiveDescriptor.qwik.mjs +0 -41
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/scrollIntoView.qwik.cjs +0 -19
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/scrollIntoView.qwik.mjs +0 -19
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/useCreatedTreeInformation.qwik.cjs +0 -37
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/useCreatedTreeInformation.qwik.mjs +0 -37
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/useFocusWithin.qwik.cjs +0 -31
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/useFocusWithin.qwik.mjs +0 -31
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/useMoveFocusToIndex.qwik.cjs +0 -25
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/useMoveFocusToIndex.qwik.mjs +0 -25
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/useSelectUpTo.qwik.cjs +0 -82
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/useSelectUpTo.qwik.mjs +0 -82
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/useTreeKeyboardBindings.qwik.cjs +0 -164
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/useTreeKeyboardBindings.qwik.mjs +0 -164
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/useViewState.qwik.cjs +0 -11
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/useViewState.qwik.mjs +0 -11
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/treeActions/TreeActionsProvider.qwik.cjs +0 -87
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/treeActions/TreeActionsProvider.qwik.mjs +0 -87
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/treeActions/useCreatedTreeRef.qwik.cjs +0 -26
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/treeActions/useCreatedTreeRef.qwik.mjs +0 -26
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/treeItem/TreeItemChildren.qwik.cjs +0 -27
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/treeItem/TreeItemChildren.qwik.mjs +0 -27
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/treeItem/TreeItemElement.qwik.cjs +0 -53
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/treeItem/TreeItemElement.qwik.mjs +0 -53
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/treeItem/TreeItemRenamingInput.qwik.cjs +0 -78
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/treeItem/TreeItemRenamingInput.qwik.mjs +0 -78
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/treeItem/useTreeItemRenderContext.qwik.cjs +0 -200
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/treeItem/useTreeItemRenderContext.qwik.mjs +0 -200
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/types.qwik.cjs +0 -8
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/types.qwik.mjs +0 -9
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/uncontrolledEnvironment/CompleteTreeDataProvider.qwik.cjs +0 -145
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/uncontrolledEnvironment/CompleteTreeDataProvider.qwik.mjs +0 -145
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/uncontrolledEnvironment/StaticTreeDataProvider.qwik.cjs +0 -152
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/uncontrolledEnvironment/StaticTreeDataProvider.qwik.mjs +0 -152
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/uncontrolledEnvironment/UncontrolledTreeEnvironment.qwik.cjs +0 -320
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/uncontrolledEnvironment/UncontrolledTreeEnvironment.qwik.mjs +0 -320
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/useCallSoon.qwik.cjs +0 -29
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/useCallSoon.qwik.mjs +0 -29
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/useGetOriginalItemOrder.qwik.cjs +0 -27
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/useGetOriginalItemOrder.qwik.mjs +0 -27
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/useHtmlElementEventListener.qwik.cjs +0 -18
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/useHtmlElementEventListener.qwik.mjs +0 -18
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/useIsMounted.qwik.cjs +0 -14
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/useIsMounted.qwik.mjs +0 -14
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/useRefCopy.qwik.cjs +0 -9
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/useRefCopy.qwik.mjs +0 -9
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/useSideEffect.qwik.cjs +0 -30
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/useSideEffect.qwik.mjs +0 -30
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/useStableHandler.qwik.cjs +0 -17
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/useStableHandler.qwik.mjs +0 -17
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/utils.qwik.cjs +0 -27
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/utils.qwik.mjs +0 -27
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/waitFor.qwik.cjs +0 -30
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/waitFor.qwik.mjs +0 -30
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/style-modern.css.qwik.cjs +0 -3
- package/dist/ui/node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/style-modern.css.qwik.mjs +0 -4
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.qwik.cjs +0 -5418
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.qwik.mjs +0 -5418
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.qwik.cjs +0 -1531
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.qwik.mjs +0 -1531
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.node.development.qwik.cjs +0 -5432
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.node.development.qwik.mjs +0 -5432
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.node.production.min.qwik.cjs +0 -1595
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom-server.node.production.min.qwik.mjs +0 -1595
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom.development.qwik.cjs +0 -21128
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom.development.qwik.mjs +0 -21128
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom.production.min.qwik.cjs +0 -6420
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom.production.min.qwik.mjs +0 -6420
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/client.qwik.cjs +0 -34
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/client.qwik.mjs +0 -34
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/index.qwik.cjs +0 -31
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/index.qwik.mjs +0 -31
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/server.node.qwik.cjs +0 -28
- package/dist/ui/node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/server.node.qwik.mjs +0 -28
- package/dist/ui/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.development.qwik.cjs +0 -875
- package/dist/ui/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.development.qwik.mjs +0 -875
- package/dist/ui/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.production.min.qwik.cjs +0 -33
- package/dist/ui/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.production.min.qwik.mjs +0 -33
- package/dist/ui/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.development.qwik.cjs +0 -1887
- package/dist/ui/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.development.qwik.mjs +0 -1887
- package/dist/ui/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.production.min.qwik.cjs +0 -265
- package/dist/ui/node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.production.min.qwik.mjs +0 -265
- package/dist/ui/node_modules/.pnpm/react@18.2.0/node_modules/react/index.qwik.cjs +0 -17
- package/dist/ui/node_modules/.pnpm/react@18.2.0/node_modules/react/index.qwik.mjs +0 -17
- package/dist/ui/node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.qwik.cjs +0 -17
- package/dist/ui/node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.qwik.mjs +0 -17
- package/dist/ui/node_modules/.pnpm/scheduler@0.23.2/node_modules/scheduler/cjs/scheduler.development.qwik.cjs +0 -453
- package/dist/ui/node_modules/.pnpm/scheduler@0.23.2/node_modules/scheduler/cjs/scheduler.development.qwik.mjs +0 -453
- package/dist/ui/node_modules/.pnpm/scheduler@0.23.2/node_modules/scheduler/cjs/scheduler.production.min.qwik.cjs +0 -248
- package/dist/ui/node_modules/.pnpm/scheduler@0.23.2/node_modules/scheduler/cjs/scheduler.production.min.qwik.mjs +0 -248
- package/dist/ui/node_modules/.pnpm/scheduler@0.23.2/node_modules/scheduler/index.qwik.cjs +0 -17
- package/dist/ui/node_modules/.pnpm/scheduler@0.23.2/node_modules/scheduler/index.qwik.mjs +0 -17
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const jsxRuntime = require("@qwik.dev/core/jsx-runtime");
|
|
4
|
-
const core = require("@qwik.dev/core");
|
|
5
|
-
const Tree = require("./components/Tree.qwik.cjs");
|
|
6
|
-
const styleModern = require("../../node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/style-modern.css.qwik.cjs");
|
|
7
|
-
const styles = require("./styles.css.qwik.cjs");
|
|
8
|
-
const Components = core.component$(() => {
|
|
9
|
-
core.useStyles$(styleModern);
|
|
10
|
-
core.useStyles$(styles);
|
|
11
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
12
|
-
children: [
|
|
13
|
-
/* @__PURE__ */ jsxRuntime.jsx(Tree.QGreetings, {}),
|
|
14
|
-
/* @__PURE__ */ jsxRuntime.jsx(ComponentsStore, {})
|
|
15
|
-
]
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
const ComponentsStore = core.component$(() => {
|
|
19
|
-
const selectedComponent = core.useSignal(null);
|
|
20
|
-
const components = window.__QWIK_DEVTOOLS__.appState;
|
|
21
|
-
const componentStore = Object.keys(components);
|
|
22
|
-
const handleComponentSelected = core.$((key) => {
|
|
23
|
-
selectedComponent.value = key;
|
|
24
|
-
});
|
|
25
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
26
|
-
children: [
|
|
27
|
-
/* @__PURE__ */ jsxRuntime.jsxs("select", {
|
|
28
|
-
class: "mt-2 w-1/2 rounded-md border border-border bg-transparent p-2 font-mono text-foreground",
|
|
29
|
-
onChange$: (_, e) => handleComponentSelected(e.value),
|
|
30
|
-
children: [
|
|
31
|
-
/* @__PURE__ */ jsxRuntime.jsx("option", {
|
|
32
|
-
value: "",
|
|
33
|
-
children: "Select component"
|
|
34
|
-
}),
|
|
35
|
-
componentStore.map((key) => /* @__PURE__ */ jsxRuntime.jsx("option", {
|
|
36
|
-
value: key,
|
|
37
|
-
class: "p-2",
|
|
38
|
-
children: key
|
|
39
|
-
}, key))
|
|
40
|
-
]
|
|
41
|
-
}),
|
|
42
|
-
selectedComponent.value && /* @__PURE__ */ jsxRuntime.jsx(ComponentStoreUpdate, {
|
|
43
|
-
value: components[selectedComponent.value].state
|
|
44
|
-
})
|
|
45
|
-
]
|
|
46
|
-
});
|
|
47
|
-
});
|
|
48
|
-
const ComponentStoreUpdate = core.component$(({ value }) => {
|
|
49
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
50
|
-
class: "mt-2 flex w-1/2 flex-col font-mono text-foreground",
|
|
51
|
-
children: Object.keys(value).map((key) => {
|
|
52
|
-
if (value[key].type === "signal") {
|
|
53
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
54
|
-
class: "flex flex-col",
|
|
55
|
-
children: [
|
|
56
|
-
/* @__PURE__ */ jsxRuntime.jsxs("h2", {
|
|
57
|
-
class: "text-lg font-bold",
|
|
58
|
-
children: [
|
|
59
|
-
"Signal: ",
|
|
60
|
-
key
|
|
61
|
-
]
|
|
62
|
-
}),
|
|
63
|
-
/* @__PURE__ */ jsxRuntime.jsx("input", {
|
|
64
|
-
class: "mt-2 rounded-md border border-border bg-transparent p-2 font-mono text-foreground",
|
|
65
|
-
type: typeof value[key].value === "string" ? "text" : "number",
|
|
66
|
-
"bind:value": value[key].value
|
|
67
|
-
})
|
|
68
|
-
]
|
|
69
|
-
}, key);
|
|
70
|
-
}
|
|
71
|
-
if (value[key].type === "store") {
|
|
72
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
73
|
-
class: "flex flex-col",
|
|
74
|
-
children: [
|
|
75
|
-
/* @__PURE__ */ jsxRuntime.jsxs("h2", {
|
|
76
|
-
class: "text-lg font-bold",
|
|
77
|
-
children: [
|
|
78
|
-
"Store: ",
|
|
79
|
-
key
|
|
80
|
-
]
|
|
81
|
-
}),
|
|
82
|
-
Object.keys(value[key].value).map((storeKey) => /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
83
|
-
class: "flex flex-col",
|
|
84
|
-
children: [
|
|
85
|
-
/* @__PURE__ */ jsxRuntime.jsxs("h3", {
|
|
86
|
-
class: "text-md font-bold",
|
|
87
|
-
children: [
|
|
88
|
-
"Key: ",
|
|
89
|
-
storeKey
|
|
90
|
-
]
|
|
91
|
-
}),
|
|
92
|
-
/* @__PURE__ */ jsxRuntime.jsx("input", {
|
|
93
|
-
class: "mt-2 rounded-md border border-border bg-transparent p-2 font-mono text-foreground",
|
|
94
|
-
type: typeof value[key].value[storeKey] === "string" ? "text" : "number",
|
|
95
|
-
value: value[key].value[storeKey],
|
|
96
|
-
onChange$: (_, e) => {
|
|
97
|
-
value[key].value[storeKey] = typeof value[key].value[storeKey] === "string" ? e.value : Number(e.value);
|
|
98
|
-
}
|
|
99
|
-
})
|
|
100
|
-
]
|
|
101
|
-
}, storeKey))
|
|
102
|
-
]
|
|
103
|
-
}, key);
|
|
104
|
-
}
|
|
105
|
-
})
|
|
106
|
-
});
|
|
107
|
-
});
|
|
108
|
-
exports.Components = Components;
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "@qwik.dev/core/jsx-runtime";
|
|
2
|
-
import { component$, useStyles$, useSignal, $ } from "@qwik.dev/core";
|
|
3
|
-
import { QGreetings } from "./components/Tree.qwik.mjs";
|
|
4
|
-
import reactTreeCss from "../../node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/style-modern.css.qwik.mjs";
|
|
5
|
-
import styles from "./styles.css.qwik.mjs";
|
|
6
|
-
const Components = component$(() => {
|
|
7
|
-
useStyles$(reactTreeCss);
|
|
8
|
-
useStyles$(styles);
|
|
9
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
10
|
-
children: [
|
|
11
|
-
/* @__PURE__ */ jsx(QGreetings, {}),
|
|
12
|
-
/* @__PURE__ */ jsx(ComponentsStore, {})
|
|
13
|
-
]
|
|
14
|
-
});
|
|
15
|
-
});
|
|
16
|
-
const ComponentsStore = component$(() => {
|
|
17
|
-
const selectedComponent = useSignal(null);
|
|
18
|
-
const components = window.__QWIK_DEVTOOLS__.appState;
|
|
19
|
-
const componentStore = Object.keys(components);
|
|
20
|
-
const handleComponentSelected = $((key) => {
|
|
21
|
-
selectedComponent.value = key;
|
|
22
|
-
});
|
|
23
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
24
|
-
children: [
|
|
25
|
-
/* @__PURE__ */ jsxs("select", {
|
|
26
|
-
class: "mt-2 w-1/2 rounded-md border border-border bg-transparent p-2 font-mono text-foreground",
|
|
27
|
-
onChange$: (_, e) => handleComponentSelected(e.value),
|
|
28
|
-
children: [
|
|
29
|
-
/* @__PURE__ */ jsx("option", {
|
|
30
|
-
value: "",
|
|
31
|
-
children: "Select component"
|
|
32
|
-
}),
|
|
33
|
-
componentStore.map((key) => /* @__PURE__ */ jsx("option", {
|
|
34
|
-
value: key,
|
|
35
|
-
class: "p-2",
|
|
36
|
-
children: key
|
|
37
|
-
}, key))
|
|
38
|
-
]
|
|
39
|
-
}),
|
|
40
|
-
selectedComponent.value && /* @__PURE__ */ jsx(ComponentStoreUpdate, {
|
|
41
|
-
value: components[selectedComponent.value].state
|
|
42
|
-
})
|
|
43
|
-
]
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
const ComponentStoreUpdate = component$(({ value }) => {
|
|
47
|
-
return /* @__PURE__ */ jsx("div", {
|
|
48
|
-
class: "mt-2 flex w-1/2 flex-col font-mono text-foreground",
|
|
49
|
-
children: Object.keys(value).map((key) => {
|
|
50
|
-
if (value[key].type === "signal") {
|
|
51
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
52
|
-
class: "flex flex-col",
|
|
53
|
-
children: [
|
|
54
|
-
/* @__PURE__ */ jsxs("h2", {
|
|
55
|
-
class: "text-lg font-bold",
|
|
56
|
-
children: [
|
|
57
|
-
"Signal: ",
|
|
58
|
-
key
|
|
59
|
-
]
|
|
60
|
-
}),
|
|
61
|
-
/* @__PURE__ */ jsx("input", {
|
|
62
|
-
class: "mt-2 rounded-md border border-border bg-transparent p-2 font-mono text-foreground",
|
|
63
|
-
type: typeof value[key].value === "string" ? "text" : "number",
|
|
64
|
-
"bind:value": value[key].value
|
|
65
|
-
})
|
|
66
|
-
]
|
|
67
|
-
}, key);
|
|
68
|
-
}
|
|
69
|
-
if (value[key].type === "store") {
|
|
70
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
71
|
-
class: "flex flex-col",
|
|
72
|
-
children: [
|
|
73
|
-
/* @__PURE__ */ jsxs("h2", {
|
|
74
|
-
class: "text-lg font-bold",
|
|
75
|
-
children: [
|
|
76
|
-
"Store: ",
|
|
77
|
-
key
|
|
78
|
-
]
|
|
79
|
-
}),
|
|
80
|
-
Object.keys(value[key].value).map((storeKey) => /* @__PURE__ */ jsxs("div", {
|
|
81
|
-
class: "flex flex-col",
|
|
82
|
-
children: [
|
|
83
|
-
/* @__PURE__ */ jsxs("h3", {
|
|
84
|
-
class: "text-md font-bold",
|
|
85
|
-
children: [
|
|
86
|
-
"Key: ",
|
|
87
|
-
storeKey
|
|
88
|
-
]
|
|
89
|
-
}),
|
|
90
|
-
/* @__PURE__ */ jsx("input", {
|
|
91
|
-
class: "mt-2 rounded-md border border-border bg-transparent p-2 font-mono text-foreground",
|
|
92
|
-
type: typeof value[key].value[storeKey] === "string" ? "text" : "number",
|
|
93
|
-
value: value[key].value[storeKey],
|
|
94
|
-
onChange$: (_, e) => {
|
|
95
|
-
value[key].value[storeKey] = typeof value[key].value[storeKey] === "string" ? e.value : Number(e.value);
|
|
96
|
-
}
|
|
97
|
-
})
|
|
98
|
-
]
|
|
99
|
-
}, storeKey))
|
|
100
|
-
]
|
|
101
|
-
}, key);
|
|
102
|
-
}
|
|
103
|
-
})
|
|
104
|
-
});
|
|
105
|
-
});
|
|
106
|
-
export {
|
|
107
|
-
Components
|
|
108
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const jsxRuntime = require("../../../_virtual/jsx-runtime.qwik.cjs");
|
|
4
|
-
const index_qwik = require("../../../node_modules/.pnpm/@qwik.dev_react@2.0.0-beta.9_@qwik.dev_core@2.0.0-beta.9_prettier@3.3.3_vite@7.1.3_@typ_acdb3a1fab641cc17ee740fd3c684547/node_modules/@qwik.dev/react/lib/index.qwik.qwik.cjs");
|
|
5
|
-
const UncontrolledTreeEnvironment = require("../../../node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/uncontrolledEnvironment/UncontrolledTreeEnvironment.qwik.cjs");
|
|
6
|
-
const StaticTreeDataProvider = require("../../../node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/uncontrolledEnvironment/StaticTreeDataProvider.qwik.cjs");
|
|
7
|
-
const Tree = require("../../../node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/Tree.qwik.cjs");
|
|
8
|
-
const readTemplate = (template, data = {
|
|
9
|
-
items: {}
|
|
10
|
-
}) => {
|
|
11
|
-
for (const [key, value] of Object.entries(template)) {
|
|
12
|
-
data.items[key] = {
|
|
13
|
-
index: key,
|
|
14
|
-
canMove: true,
|
|
15
|
-
isFolder: value !== null,
|
|
16
|
-
children: value !== null ? Object.keys(value) : void 0,
|
|
17
|
-
data: key,
|
|
18
|
-
canRename: true
|
|
19
|
-
};
|
|
20
|
-
if (value !== null) {
|
|
21
|
-
readTemplate(value, data);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
return data;
|
|
25
|
-
};
|
|
26
|
-
const longTree = {
|
|
27
|
-
root: {
|
|
28
|
-
"<QwikRouterProvider />": {
|
|
29
|
-
"<RouterHead />": null,
|
|
30
|
-
"<RouterOutlet />": null
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
function Greetings() {
|
|
35
|
-
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(UncontrolledTreeEnvironment.UncontrolledTreeEnvironment, {
|
|
36
|
-
dataProvider: new StaticTreeDataProvider.StaticTreeDataProvider(readTemplate(longTree).items, (item, data) => ({
|
|
37
|
-
...item,
|
|
38
|
-
data
|
|
39
|
-
})),
|
|
40
|
-
getItemTitle: (item) => item.data,
|
|
41
|
-
canDragAndDrop: false,
|
|
42
|
-
canReorderItems: false,
|
|
43
|
-
canDropOnFolder: false,
|
|
44
|
-
canDropOnNonFolder: false,
|
|
45
|
-
viewState: {
|
|
46
|
-
"tree-1": {
|
|
47
|
-
expandedItems: []
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Tree.Tree, {
|
|
51
|
-
treeId: "tree-1",
|
|
52
|
-
rootItem: "root",
|
|
53
|
-
treeLabel: "Tree Example"
|
|
54
|
-
})
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
const QGreetings = index_qwik.qwikify$(Greetings, {
|
|
58
|
-
eagerness: "load"
|
|
59
|
-
});
|
|
60
|
-
exports.QGreetings = QGreetings;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { j as jsxRuntimeExports } from "../../../_virtual/jsx-runtime.qwik.mjs";
|
|
2
|
-
import { qwikify$ } from "../../../node_modules/.pnpm/@qwik.dev_react@2.0.0-beta.9_@qwik.dev_core@2.0.0-beta.9_prettier@3.3.3_vite@7.1.3_@typ_acdb3a1fab641cc17ee740fd3c684547/node_modules/@qwik.dev/react/lib/index.qwik.qwik.mjs";
|
|
3
|
-
import { UncontrolledTreeEnvironment } from "../../../node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/uncontrolledEnvironment/UncontrolledTreeEnvironment.qwik.mjs";
|
|
4
|
-
import { StaticTreeDataProvider } from "../../../node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/uncontrolledEnvironment/StaticTreeDataProvider.qwik.mjs";
|
|
5
|
-
import { Tree } from "../../../node_modules/.pnpm/react-complex-tree@2.4.6_react@18.2.0/node_modules/react-complex-tree/lib/esm/tree/Tree.qwik.mjs";
|
|
6
|
-
const readTemplate = (template, data = {
|
|
7
|
-
items: {}
|
|
8
|
-
}) => {
|
|
9
|
-
for (const [key, value] of Object.entries(template)) {
|
|
10
|
-
data.items[key] = {
|
|
11
|
-
index: key,
|
|
12
|
-
canMove: true,
|
|
13
|
-
isFolder: value !== null,
|
|
14
|
-
children: value !== null ? Object.keys(value) : void 0,
|
|
15
|
-
data: key,
|
|
16
|
-
canRename: true
|
|
17
|
-
};
|
|
18
|
-
if (value !== null) {
|
|
19
|
-
readTemplate(value, data);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
return data;
|
|
23
|
-
};
|
|
24
|
-
const longTree = {
|
|
25
|
-
root: {
|
|
26
|
-
"<QwikRouterProvider />": {
|
|
27
|
-
"<RouterHead />": null,
|
|
28
|
-
"<RouterOutlet />": null
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
function Greetings() {
|
|
33
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(UncontrolledTreeEnvironment, {
|
|
34
|
-
dataProvider: new StaticTreeDataProvider(readTemplate(longTree).items, (item, data) => ({
|
|
35
|
-
...item,
|
|
36
|
-
data
|
|
37
|
-
})),
|
|
38
|
-
getItemTitle: (item) => item.data,
|
|
39
|
-
canDragAndDrop: false,
|
|
40
|
-
canReorderItems: false,
|
|
41
|
-
canDropOnFolder: false,
|
|
42
|
-
canDropOnNonFolder: false,
|
|
43
|
-
viewState: {
|
|
44
|
-
"tree-1": {
|
|
45
|
-
expandedItems: []
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Tree, {
|
|
49
|
-
treeId: "tree-1",
|
|
50
|
-
rootItem: "root",
|
|
51
|
-
treeLabel: "Tree Example"
|
|
52
|
-
})
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
const QGreetings = qwikify$(Greetings, {
|
|
56
|
-
eagerness: "load"
|
|
57
|
-
});
|
|
58
|
-
export {
|
|
59
|
-
QGreetings
|
|
60
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const styles = ":root {\n --rct-color-tree-bg: transparent;\n --rct-item-height: 32px;\n --rct-color-search-highlight-bg: rgba(59, 130, 246, 0.2);\n\n --rct-color-tree-focus-outline: transparent;\n --rct-item-margin: 1px;\n --rct-item-padding: 8px;\n --rct-radius: 6px;\n --rct-bar-offset: 6px;\n --rct-bar-width: 2px;\n --rct-bar-color: rgb(16, 185, 129);\n --rct-focus-outline: #000000;\n\n --rct-color-focustree-item-selected-bg: #fff;\n --rct-color-focustree-item-hover-bg: rgba(255, 255, 255, 0.03);\n --rct-color-focustree-item-hover-text: #fff;\n --rct-color-focustree-item-active-bg: rgba(255, 255, 255, 0.08);\n --rct-color-focustree-item-active-text: #fff;\n\n --rct-arrow-size: 10px;\n --rct-arrow-container-size: 16px;\n --rct-arrow-padding: 6px;\n --rct-color-arrow: rgb(16 185 129 / var(--tw-bg-opacity, 1));\n --rct-cursor: pointer;\n\n --rct-search-width: 100%;\n --rct-search-height: 32px;\n --rct-search-padding: 8px;\n --rct-search-border: rgba(255, 255, 255, 0.1);\n --rct-search-border-bottom: rgb(16, 185, 129);\n --rct-search-bg: rgba(255, 255, 255, 0.03);\n --rct-search-text: #fff;\n --rct-search-text-offset: calc(var(--rct-search-padding) * 2 + 16px);\n}\n\n/* Add these additional styles to match devtools theme */\n.rct-tree-item-button {\n color: rgb(16 185 129 / var(--tw-bg-opacity, 1)) !important;\n font-size: 14px !important;\n transition: all 0.2s ease !important;\n}\n\n.rct-tree-item-button:hover {\n color: rgb(16 185 129 / var(--tw-bg-opacity, 1)) !important;\n}\n\n.rct-tree-item-button[aria-expanded='true'] {\n color: #fff !important;\n}\n\n.rct-tree-item-title-container {\n border-radius: var(--rct-radius) !important;\n}\n\n.rct-tree-search-input {\n border: 1px solid var(--rct-search-border) !important;\n border-radius: var(--rct-radius) !important;\n margin-bottom: 12px !important;\n font-size: 14px !important;\n}\n\n.rct-tree-search-input:focus {\n border-color: rgb(16, 185, 129) !important;\n outline: none !important;\n box-shadow: 0 0 0 1px rgb(16, 185, 129) !important;\n}\n";
|
|
3
|
-
module.exports = styles;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const styles = ":root {\n --rct-color-tree-bg: transparent;\n --rct-item-height: 32px;\n --rct-color-search-highlight-bg: rgba(59, 130, 246, 0.2);\n\n --rct-color-tree-focus-outline: transparent;\n --rct-item-margin: 1px;\n --rct-item-padding: 8px;\n --rct-radius: 6px;\n --rct-bar-offset: 6px;\n --rct-bar-width: 2px;\n --rct-bar-color: rgb(16, 185, 129);\n --rct-focus-outline: #000000;\n\n --rct-color-focustree-item-selected-bg: #fff;\n --rct-color-focustree-item-hover-bg: rgba(255, 255, 255, 0.03);\n --rct-color-focustree-item-hover-text: #fff;\n --rct-color-focustree-item-active-bg: rgba(255, 255, 255, 0.08);\n --rct-color-focustree-item-active-text: #fff;\n\n --rct-arrow-size: 10px;\n --rct-arrow-container-size: 16px;\n --rct-arrow-padding: 6px;\n --rct-color-arrow: rgb(16 185 129 / var(--tw-bg-opacity, 1));\n --rct-cursor: pointer;\n\n --rct-search-width: 100%;\n --rct-search-height: 32px;\n --rct-search-padding: 8px;\n --rct-search-border: rgba(255, 255, 255, 0.1);\n --rct-search-border-bottom: rgb(16, 185, 129);\n --rct-search-bg: rgba(255, 255, 255, 0.03);\n --rct-search-text: #fff;\n --rct-search-text-offset: calc(var(--rct-search-padding) * 2 + 16px);\n}\n\n/* Add these additional styles to match devtools theme */\n.rct-tree-item-button {\n color: rgb(16 185 129 / var(--tw-bg-opacity, 1)) !important;\n font-size: 14px !important;\n transition: all 0.2s ease !important;\n}\n\n.rct-tree-item-button:hover {\n color: rgb(16 185 129 / var(--tw-bg-opacity, 1)) !important;\n}\n\n.rct-tree-item-button[aria-expanded='true'] {\n color: #fff !important;\n}\n\n.rct-tree-item-title-container {\n border-radius: var(--rct-radius) !important;\n}\n\n.rct-tree-search-input {\n border: 1px solid var(--rct-search-border) !important;\n border-radius: var(--rct-radius) !important;\n margin-bottom: 12px !important;\n font-size: 14px !important;\n}\n\n.rct-tree-search-input:focus {\n border-color: rgb(16, 185, 129) !important;\n outline: none !important;\n box-shadow: 0 0 0 1px rgb(16, 185, 129) !important;\n}\n";
|
|
2
|
-
export {
|
|
3
|
-
styles as default
|
|
4
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export interface ComponentStateStore {
|
|
2
|
-
[key: string]: {
|
|
3
|
-
type: 'signal' | 'store';
|
|
4
|
-
value: any;
|
|
5
|
-
};
|
|
6
|
-
}
|
|
7
|
-
export interface ComponentState {
|
|
8
|
-
path: string;
|
|
9
|
-
state: ComponentStateStore;
|
|
10
|
-
type: string;
|
|
11
|
-
}
|
|
12
|
-
declare global {
|
|
13
|
-
interface Window {
|
|
14
|
-
__QWIK_DEVTOOLS__: {
|
|
15
|
-
appState: Record<string, ComponentState>;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
export declare const Components: import("@qwik.dev/core").Component<unknown>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const QGreetings: import("@qwik.dev/core").Component<import("@qwik.dev/react").QwikifyProps<Record<any, any>>>;
|
|
@@ -1,269 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const jsxRuntime = require("@qwik.dev/core/jsx-runtime");
|
|
4
|
-
const core = require("@qwik.dev/core");
|
|
5
|
-
const client = require("../../../../../../../_virtual/client.qwik.cjs");
|
|
6
|
-
const index$1 = require("../../../../../../../_virtual/index.qwik.cjs");
|
|
7
|
-
const internal = require("@qwik.dev/core/internal");
|
|
8
|
-
const server_node = require("../../../../../../../_virtual/server.node.qwik.cjs");
|
|
9
|
-
const index = require("../../../../../../../_virtual/index.qwik2.cjs");
|
|
10
|
-
var __defProp = Object.defineProperty;
|
|
11
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
configurable: true,
|
|
14
|
-
writable: true,
|
|
15
|
-
value
|
|
16
|
-
}) : obj[key] = value;
|
|
17
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
18
|
-
const SlotCtx = index.reactExports.createContext({
|
|
19
|
-
scopeId: ""
|
|
20
|
-
});
|
|
21
|
-
function main(slotEl, scopeId, RootCmp, props) {
|
|
22
|
-
const newProps = getReactProps(props);
|
|
23
|
-
return mainExactProps(slotEl, scopeId, RootCmp, newProps);
|
|
24
|
-
}
|
|
25
|
-
function mainExactProps(slotEl, scopeId, RootCmp, props) {
|
|
26
|
-
return index.reactExports.createElement(SlotCtx.Provider, {
|
|
27
|
-
value: {
|
|
28
|
-
el: slotEl,
|
|
29
|
-
scopeId,
|
|
30
|
-
attachedEl: void 0
|
|
31
|
-
},
|
|
32
|
-
children: index.reactExports.createElement(RootCmp, {
|
|
33
|
-
...props,
|
|
34
|
-
children: index.reactExports.createElement(SlotElement, null)
|
|
35
|
-
})
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
class SlotElement extends index.reactExports.Component {
|
|
39
|
-
constructor() {
|
|
40
|
-
super(...arguments);
|
|
41
|
-
__publicField(this, "slotC", index.reactExports.createRef());
|
|
42
|
-
}
|
|
43
|
-
shouldComponentUpdate() {
|
|
44
|
-
return false;
|
|
45
|
-
}
|
|
46
|
-
componentDidMount() {
|
|
47
|
-
const slotC = this.slotC.current;
|
|
48
|
-
if (slotC) {
|
|
49
|
-
const { attachedEl, el } = this.context;
|
|
50
|
-
if (el) {
|
|
51
|
-
if (!attachedEl) {
|
|
52
|
-
slotC.appendChild(el);
|
|
53
|
-
} else if (attachedEl !== slotC) {
|
|
54
|
-
throw new Error("already attached");
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
render() {
|
|
60
|
-
return index.reactExports.createElement("q-slotc", {
|
|
61
|
-
class: this.context.scopeId,
|
|
62
|
-
suppressHydrationWarning: true,
|
|
63
|
-
dangerouslySetInnerHTML: {
|
|
64
|
-
__html: "<!--SLOT-->"
|
|
65
|
-
},
|
|
66
|
-
ref: this.slotC
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
__publicField(SlotElement, "contextType", SlotCtx);
|
|
71
|
-
const getReactProps = (props) => {
|
|
72
|
-
const obj = {};
|
|
73
|
-
Object.keys(props).forEach((key) => {
|
|
74
|
-
if (!key.startsWith("client:") && !key.startsWith("qwik:") && !key.startsWith(HOST_PREFIX)) {
|
|
75
|
-
const normalizedKey = key.endsWith("$") ? key.slice(0, -1) : key;
|
|
76
|
-
obj[normalizedKey] = props[key];
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
return obj;
|
|
80
|
-
};
|
|
81
|
-
const getHostProps = (props) => {
|
|
82
|
-
const obj = {};
|
|
83
|
-
Object.keys(props).forEach((key) => {
|
|
84
|
-
if (key.startsWith(HOST_PREFIX)) {
|
|
85
|
-
obj[key.slice(HOST_PREFIX.length)] = props[key];
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
return obj;
|
|
89
|
-
};
|
|
90
|
-
const useWakeupSignal = (props, opts = {}) => {
|
|
91
|
-
const signal = core.useSignal(false);
|
|
92
|
-
const activate = core.$(() => signal.value = true);
|
|
93
|
-
const clientOnly = !!(props["client:only"] || props["qwik:only"] || opts?.clientOnly);
|
|
94
|
-
const clientVisible = props["client:visible"] || props["qwik:visible"] || opts?.eagerness === "visible";
|
|
95
|
-
const clientIdle = props["client:idle"] || props["qwik:idle"] || opts?.eagerness === "idle";
|
|
96
|
-
const clientLoad = props["client:load"] || props["qwik:load"] || clientOnly || opts?.eagerness === "load";
|
|
97
|
-
const clientHover = props["client:hover"] || props["qwik:hover"] || opts?.eagerness === "hover";
|
|
98
|
-
const clientEvent = props["client:event"] || props["qwik:event"];
|
|
99
|
-
if (core.isServer) {
|
|
100
|
-
if (clientVisible) {
|
|
101
|
-
core.useOn("qvisible", activate);
|
|
102
|
-
}
|
|
103
|
-
if (clientIdle) {
|
|
104
|
-
core.useOnDocument("qidle", activate);
|
|
105
|
-
}
|
|
106
|
-
if (clientLoad) {
|
|
107
|
-
core.useOnDocument("qinit", activate);
|
|
108
|
-
}
|
|
109
|
-
if (clientHover) {
|
|
110
|
-
core.useOn("mouseover", activate);
|
|
111
|
-
}
|
|
112
|
-
if (clientEvent) {
|
|
113
|
-
core.useOn(clientEvent, activate);
|
|
114
|
-
}
|
|
115
|
-
if (opts?.event) {
|
|
116
|
-
core.useOn(opts?.event, activate);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
return [
|
|
120
|
-
signal,
|
|
121
|
-
clientOnly,
|
|
122
|
-
activate
|
|
123
|
-
];
|
|
124
|
-
};
|
|
125
|
-
const HOST_PREFIX = "host:";
|
|
126
|
-
async function renderFromServer(Host, reactCmp$, scopeId, props, ref, slotRef, hydrationProps) {
|
|
127
|
-
if (core.isServer) {
|
|
128
|
-
const Cmp = await reactCmp$.resolve();
|
|
129
|
-
const newProps = getReactProps(props);
|
|
130
|
-
Object.assign(hydrationProps, newProps);
|
|
131
|
-
const html = server_node.server_nodeExports.renderToString(mainExactProps(void 0, scopeId, Cmp, newProps));
|
|
132
|
-
const index2 = html.indexOf("<!--SLOT-->");
|
|
133
|
-
if (index2 > 0) {
|
|
134
|
-
const part1 = html.slice(0, index2);
|
|
135
|
-
const part2 = html.slice(index2 + "<!--SLOT-->".length);
|
|
136
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Host, {
|
|
137
|
-
ref,
|
|
138
|
-
...getHostProps(props),
|
|
139
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(internal.SSRStream, {
|
|
140
|
-
children: async function* () {
|
|
141
|
-
yield /* @__PURE__ */ jsxRuntime.jsx(internal.SSRComment, {
|
|
142
|
-
data: "q:ignore"
|
|
143
|
-
});
|
|
144
|
-
yield /* @__PURE__ */ jsxRuntime.jsx(internal.SSRRaw, {
|
|
145
|
-
data: part1
|
|
146
|
-
});
|
|
147
|
-
yield /* @__PURE__ */ jsxRuntime.jsx(internal.SSRComment, {
|
|
148
|
-
data: "q:container-island"
|
|
149
|
-
});
|
|
150
|
-
yield /* @__PURE__ */ jsxRuntime.jsx("q-slot", {
|
|
151
|
-
ref: slotRef,
|
|
152
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(core.Slot, {})
|
|
153
|
-
});
|
|
154
|
-
yield /* @__PURE__ */ jsxRuntime.jsx(internal.SSRComment, {
|
|
155
|
-
data: "/q:container-island"
|
|
156
|
-
});
|
|
157
|
-
yield /* @__PURE__ */ jsxRuntime.jsx(internal.SSRRaw, {
|
|
158
|
-
data: part2
|
|
159
|
-
});
|
|
160
|
-
yield /* @__PURE__ */ jsxRuntime.jsx(internal.SSRComment, {
|
|
161
|
-
data: "/q:ignore"
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
})
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
168
|
-
children: [
|
|
169
|
-
/* @__PURE__ */ jsxRuntime.jsxs(Host, {
|
|
170
|
-
ref,
|
|
171
|
-
children: [
|
|
172
|
-
/* @__PURE__ */ jsxRuntime.jsx(internal.SSRComment, {
|
|
173
|
-
data: "q:container=html"
|
|
174
|
-
}),
|
|
175
|
-
/* @__PURE__ */ jsxRuntime.jsx(internal.SSRRaw, {
|
|
176
|
-
data: html
|
|
177
|
-
}),
|
|
178
|
-
/* @__PURE__ */ jsxRuntime.jsx(internal.SSRComment, {
|
|
179
|
-
data: "/q:container"
|
|
180
|
-
})
|
|
181
|
-
]
|
|
182
|
-
}),
|
|
183
|
-
/* @__PURE__ */ jsxRuntime.jsx("q-slot", {
|
|
184
|
-
ref: slotRef,
|
|
185
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(core.Slot, {})
|
|
186
|
-
})
|
|
187
|
-
]
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
function qwikifyQrl(reactCmp$, opts) {
|
|
192
|
-
return core.component$((props) => {
|
|
193
|
-
const { scopeId } = core.useStylesScoped$(`q-slot{display:none} q-slotc,q-slotc>q-slot{display:contents}`);
|
|
194
|
-
const hostRef = core.useSignal();
|
|
195
|
-
const slotRef = core.useSignal();
|
|
196
|
-
const internalState = core.useSignal();
|
|
197
|
-
const [signal, isClientOnly] = useWakeupSignal(props, opts);
|
|
198
|
-
const hydrationKeys = core.useStore({});
|
|
199
|
-
const TagName = opts?.tagName ?? "qwik-react";
|
|
200
|
-
core.useTask$(async ({ track }) => {
|
|
201
|
-
const trackedProps = track(() => ({
|
|
202
|
-
...props
|
|
203
|
-
}));
|
|
204
|
-
track(signal);
|
|
205
|
-
if (!core.isBrowser) {
|
|
206
|
-
return;
|
|
207
|
-
}
|
|
208
|
-
if (internalState.value) {
|
|
209
|
-
if (internalState.value.root) {
|
|
210
|
-
internalState.value.root.render(main(slotRef.value, scopeId, internalState.value.cmp, trackedProps));
|
|
211
|
-
}
|
|
212
|
-
} else {
|
|
213
|
-
let root = void 0;
|
|
214
|
-
const Cmp = await reactCmp$.resolve();
|
|
215
|
-
const hostElement = hostRef.value;
|
|
216
|
-
if (hostElement) {
|
|
217
|
-
if (isClientOnly) {
|
|
218
|
-
root = client.clientExports.createRoot(hostElement);
|
|
219
|
-
} else {
|
|
220
|
-
root = index$1.reactDomExports.flushSync(() => {
|
|
221
|
-
return client.clientExports.hydrateRoot(hostElement, mainExactProps(slotRef.value, scopeId, Cmp, hydrationKeys));
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
if (isClientOnly || signal.value === false) {
|
|
225
|
-
root.render(main(slotRef.value, scopeId, Cmp, trackedProps));
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
internalState.value = core.noSerialize({
|
|
229
|
-
cmp: Cmp,
|
|
230
|
-
root
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
});
|
|
234
|
-
if (core.isServer && !isClientOnly) {
|
|
235
|
-
const jsx$1 = renderFromServer(TagName, reactCmp$, scopeId, props, hostRef, slotRef, hydrationKeys);
|
|
236
|
-
return /* @__PURE__ */ jsxRuntime.jsx(core.RenderOnce, {
|
|
237
|
-
children: jsx$1
|
|
238
|
-
}, 2);
|
|
239
|
-
}
|
|
240
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
241
|
-
children: [
|
|
242
|
-
/* @__PURE__ */ jsxRuntime.jsx(TagName, {
|
|
243
|
-
...getHostProps(props),
|
|
244
|
-
ref: (el) => {
|
|
245
|
-
if (core.isBrowser) {
|
|
246
|
-
queueMicrotask(() => {
|
|
247
|
-
const internalData = internalState.value;
|
|
248
|
-
if (internalData && !internalData.root) {
|
|
249
|
-
const root = internalData.root = client.clientExports.createRoot(el);
|
|
250
|
-
root.render(main(slotRef.value, scopeId, internalData.cmp, props));
|
|
251
|
-
}
|
|
252
|
-
});
|
|
253
|
-
} else {
|
|
254
|
-
hostRef.value = el;
|
|
255
|
-
}
|
|
256
|
-
},
|
|
257
|
-
children: core.SkipRender
|
|
258
|
-
}),
|
|
259
|
-
/* @__PURE__ */ jsxRuntime.jsx("q-slot", {
|
|
260
|
-
ref: slotRef,
|
|
261
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(core.Slot, {})
|
|
262
|
-
})
|
|
263
|
-
]
|
|
264
|
-
});
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
|
-
const qwikify$ = /* @__PURE__ */ core.implicit$FirstArg(qwikifyQrl);
|
|
268
|
-
exports.qwikify$ = qwikify$;
|
|
269
|
-
exports.qwikifyQrl = qwikifyQrl;
|