dishui 0.0.49 → 0.0.50

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 (52) hide show
  1. package/dist/components/pro/Flow/Flow.js +419 -407
  2. package/dist/components/pro/Flow/Flow.js.map +1 -1
  3. package/dist/components/pro/Flow/archify/build.d.ts +74 -0
  4. package/dist/components/pro/Flow/archify/build.js +103 -0
  5. package/dist/components/pro/Flow/archify/build.js.map +1 -0
  6. package/dist/components/pro/Flow/archify/convert.d.ts +14 -0
  7. package/dist/components/pro/Flow/archify/convert.js +534 -0
  8. package/dist/components/pro/Flow/archify/convert.js.map +1 -0
  9. package/dist/components/pro/Flow/archify/index.d.ts +12 -0
  10. package/dist/components/pro/Flow/archify/palette.d.ts +64 -0
  11. package/dist/components/pro/Flow/archify/palette.js +112 -0
  12. package/dist/components/pro/Flow/archify/palette.js.map +1 -0
  13. package/dist/components/pro/Flow/archify/presets.d.ts +26 -0
  14. package/dist/components/pro/Flow/archify/presets.js +43 -0
  15. package/dist/components/pro/Flow/archify/presets.js.map +1 -0
  16. package/dist/components/pro/Flow/archify/spec.d.ts +283 -0
  17. package/dist/components/pro/Flow/archify/spec.js +10 -0
  18. package/dist/components/pro/Flow/archify/spec.js.map +1 -0
  19. package/dist/components/pro/Flow/constants.js +14 -0
  20. package/dist/components/pro/Flow/constants.js.map +1 -1
  21. package/dist/components/pro/Flow/hooks/useClipboard.d.ts +5 -0
  22. package/dist/components/pro/Flow/hooks/useClipboard.js +129 -73
  23. package/dist/components/pro/Flow/hooks/useClipboard.js.map +1 -1
  24. package/dist/components/pro/Flow/hooks/useFlowImportExport.d.ts +1 -0
  25. package/dist/components/pro/Flow/hooks/useFlowImportExport.js +108 -93
  26. package/dist/components/pro/Flow/hooks/useFlowImportExport.js.map +1 -1
  27. package/dist/components/pro/Flow/hooks/useKeyboardShortcuts.d.ts +1 -0
  28. package/dist/components/pro/Flow/hooks/useKeyboardShortcuts.js +7 -7
  29. package/dist/components/pro/Flow/hooks/useKeyboardShortcuts.js.map +1 -1
  30. package/dist/components/pro/Flow/index.d.ts +2 -0
  31. package/dist/components/pro/Flow/nodes/DataNodeView.d.ts +4 -1
  32. package/dist/components/pro/Flow/nodes/DataNodeView.js +127 -115
  33. package/dist/components/pro/Flow/nodes/DataNodeView.js.map +1 -1
  34. package/dist/components/pro/Flow/nodes/MediaContent.js +72 -67
  35. package/dist/components/pro/Flow/nodes/MediaContent.js.map +1 -1
  36. package/dist/components/pro/Flow/nodes/NodeRenderer.d.ts +5 -0
  37. package/dist/components/pro/Flow/nodes/NodeRenderer.js +216 -115
  38. package/dist/components/pro/Flow/nodes/NodeRenderer.js.map +1 -1
  39. package/dist/components/pro/Flow/panels/FlowToolbar.js +208 -169
  40. package/dist/components/pro/Flow/panels/FlowToolbar.js.map +1 -1
  41. package/dist/components/pro/Flow/panels/InspectorPanel.js +602 -369
  42. package/dist/components/pro/Flow/panels/InspectorPanel.js.map +1 -1
  43. package/dist/components/pro/Flow/panels/ShapePalette.js +50 -39
  44. package/dist/components/pro/Flow/panels/ShapePalette.js.map +1 -1
  45. package/dist/components/pro/Flow/panels/toolbarIcons.d.ts +1 -0
  46. package/dist/components/pro/Flow/panels/toolbarIcons.js +36 -8
  47. package/dist/components/pro/Flow/panels/toolbarIcons.js.map +1 -1
  48. package/dist/components/pro/Flow/types.d.ts +30 -0
  49. package/dist/components/pro/Flow/types.js.map +1 -1
  50. package/dist/dishui.css +1 -1
  51. package/dist/flow.js +73 -56
  52. package/package.json +18 -17
package/dist/flow.js CHANGED
@@ -1,66 +1,83 @@
1
- import { BORDER_STYLE_OPTIONS as r, DASH_DENSITY_OPTIONS as t, DEFAULT_EDGE_DATA as m, DEFAULT_NODE_DATA as e, EDGE_LINE_STYLE_OPTIONS as i, EDGE_MARKER_OPTIONS as p, EDGE_TYPE_OPTIONS as E, GRADIENT_DIRECTION_OPTIONS as I, PALETTE_ITEMS as T, ROOT_CANVAS_ID as l, createEmptyDocument as _ } from "./components/pro/Flow/constants.js";
2
- import { FlowProvider as f, useFlowContext as O } from "./components/pro/Flow/context/FlowContext.js";
3
- import { FlowUIProvider as a, useFlowUI as u } from "./components/pro/Flow/context/FlowUIContext.js";
4
- import { FlowAIProvider as A, useFlowAI as D } from "./components/pro/Flow/context/FlowAIContext.js";
5
- import { SVG_ICON_CATEGORIES as N, buildSvgMarkup as F, getAllSvgIcons as w, getSvgIcon as C, getSvgIconsByCategory as c } from "./components/pro/Flow/nodes/svgIcons.js";
6
- import L from "./components/pro/Flow/panels/ProjectTitle.js";
7
- import { downloadDataURL as R, exportCanvasToPNG as v, useFlowImportExport as G } from "./components/pro/Flow/hooks/useFlowImportExport.js";
8
- import { useLayoutActions as x } from "./components/pro/Flow/hooks/useLayoutActions.js";
9
- import Y, { FlowZoomControls as b } from "./components/pro/Flow/panels/FlowToolbar.js";
10
- import B from "./components/pro/Flow/panels/ShapePalette.js";
11
- import { FLOW_NODE_TYPES as h } from "./components/pro/Flow/types.js";
12
- import k from "./components/pro/Flow/panels/InspectorPanel.js";
13
- import K from "./components/pro/Flow/panels/OutlinePanel.js";
14
- import { AIPanelContent as Z } from "./components/pro/Flow/panels/AIPanel.js";
15
- import z from "./components/pro/Flow/panels/Breadcrumb.js";
16
- import Q from "./components/pro/Flow/panels/ContextMenu.js";
17
- import { useClipboard as $ } from "./components/pro/Flow/hooks/useClipboard.js";
18
- import ro from "./components/pro/Flow/Flow.js";
19
- import { useNodeMutations as mo } from "./components/pro/Flow/hooks/useNodeMutations.js";
20
- import { useEdgeMutations as io } from "./components/pro/Flow/hooks/useEdgeMutations.js";
21
- import { useLineMutations as Eo } from "./components/pro/Flow/hooks/useLineMutations.js";
22
- import { useSelection as To } from "./components/pro/Flow/hooks/useSelection.js";
1
+ import { BORDER_STYLE_OPTIONS as r, DASH_DENSITY_OPTIONS as t, DEFAULT_EDGE_DATA as m, DEFAULT_NODE_DATA as e, EDGE_LINE_STYLE_OPTIONS as i, EDGE_MARKER_OPTIONS as p, EDGE_TYPE_OPTIONS as E, GRADIENT_DIRECTION_OPTIONS as T, PALETTE_ITEMS as S, ROOT_CANVAS_ID as _, createEmptyDocument as f } from "./components/pro/Flow/constants.js";
2
+ import { FlowProvider as I, useFlowContext as l } from "./components/pro/Flow/context/FlowContext.js";
3
+ import { FlowUIProvider as a, useFlowUI as A } from "./components/pro/Flow/context/FlowUIContext.js";
4
+ import { FlowAIProvider as P, useFlowAI as s } from "./components/pro/Flow/context/FlowAIContext.js";
5
+ import { SVG_ICON_CATEGORIES as D, buildSvgMarkup as C, getAllSvgIcons as F, getSvgIcon as c, getSvgIconsByCategory as R } from "./components/pro/Flow/nodes/svgIcons.js";
6
+ import w from "./components/pro/Flow/panels/ProjectTitle.js";
7
+ import { isArchifySpec as d } from "./components/pro/Flow/archify/spec.js";
8
+ import { ARCHIFY_BG as g, ARCHIFY_GRID as G, COMPONENT_STYLES as M, STATE_STYLES as v, componentStyle as h, stateStyle as x, variantEdgeStyle as B } from "./components/pro/Flow/archify/palette.js";
9
+ import { archifyToFlowDocument as U } from "./components/pro/Flow/archify/convert.js";
10
+ import { ARCHIFY_COMPONENT_LABELS as V, ARCHIFY_COMPONENT_ORDER as j, archifyStylePatch as k, inferComponentType as K } from "./components/pro/Flow/archify/presets.js";
11
+ import { downloadDataURL as Z, exportCanvasToPNG as q, useFlowImportExport as z } from "./components/pro/Flow/hooks/useFlowImportExport.js";
12
+ import { useLayoutActions as Q } from "./components/pro/Flow/hooks/useLayoutActions.js";
13
+ import $, { FlowZoomControls as oo } from "./components/pro/Flow/panels/FlowToolbar.js";
14
+ import to from "./components/pro/Flow/panels/ShapePalette.js";
15
+ import { FLOW_NODE_TYPES as eo } from "./components/pro/Flow/types.js";
16
+ import po from "./components/pro/Flow/panels/InspectorPanel.js";
17
+ import To from "./components/pro/Flow/panels/OutlinePanel.js";
18
+ import { AIPanelContent as _o } from "./components/pro/Flow/panels/AIPanel.js";
19
+ import no from "./components/pro/Flow/panels/Breadcrumb.js";
20
+ import lo from "./components/pro/Flow/panels/ContextMenu.js";
21
+ import { useClipboard as ao } from "./components/pro/Flow/hooks/useClipboard.js";
22
+ import No from "./components/pro/Flow/Flow.js";
23
+ import { useNodeMutations as so } from "./components/pro/Flow/hooks/useNodeMutations.js";
24
+ import { useEdgeMutations as Do } from "./components/pro/Flow/hooks/useEdgeMutations.js";
25
+ import { useLineMutations as Fo } from "./components/pro/Flow/hooks/useLineMutations.js";
26
+ import { useSelection as Ro } from "./components/pro/Flow/hooks/useSelection.js";
23
27
  export {
24
- Z as AIPanelContent,
28
+ _o as AIPanelContent,
29
+ g as ARCHIFY_BG,
30
+ V as ARCHIFY_COMPONENT_LABELS,
31
+ j as ARCHIFY_COMPONENT_ORDER,
32
+ G as ARCHIFY_GRID,
25
33
  r as BORDER_STYLE_OPTIONS,
26
- z as Breadcrumb,
27
- Q as ContextMenu,
34
+ no as Breadcrumb,
35
+ M as COMPONENT_STYLES,
36
+ lo as ContextMenu,
28
37
  t as DASH_DENSITY_OPTIONS,
29
38
  m as DEFAULT_EDGE_DATA,
30
39
  e as DEFAULT_NODE_DATA,
31
40
  i as EDGE_LINE_STYLE_OPTIONS,
32
41
  p as EDGE_MARKER_OPTIONS,
33
42
  E as EDGE_TYPE_OPTIONS,
34
- h as FLOW_NODE_TYPES,
35
- ro as Flow,
36
- A as FlowAIProvider,
37
- f as FlowProvider,
38
- Y as FlowToolbar,
43
+ eo as FLOW_NODE_TYPES,
44
+ No as Flow,
45
+ P as FlowAIProvider,
46
+ I as FlowProvider,
47
+ $ as FlowToolbar,
39
48
  a as FlowUIProvider,
40
- b as FlowZoomControls,
41
- I as GRADIENT_DIRECTION_OPTIONS,
42
- k as InspectorPanel,
43
- K as OutlinePanel,
44
- T as PALETTE_ITEMS,
45
- L as ProjectTitle,
46
- l as ROOT_CANVAS_ID,
47
- N as SVG_ICON_CATEGORIES,
48
- B as ShapePalette,
49
- F as buildSvgMarkup,
50
- _ as createEmptyDocument,
51
- R as downloadDataURL,
52
- v as exportCanvasToPNG,
53
- w as getAllSvgIcons,
54
- C as getSvgIcon,
55
- c as getSvgIconsByCategory,
56
- $ as useClipboard,
57
- io as useEdgeMutations,
58
- D as useFlowAI,
59
- O as useFlowContext,
60
- G as useFlowImportExport,
61
- u as useFlowUI,
62
- x as useLayoutActions,
63
- Eo as useLineMutations,
64
- mo as useNodeMutations,
65
- To as useSelection
49
+ oo as FlowZoomControls,
50
+ T as GRADIENT_DIRECTION_OPTIONS,
51
+ po as InspectorPanel,
52
+ To as OutlinePanel,
53
+ S as PALETTE_ITEMS,
54
+ w as ProjectTitle,
55
+ _ as ROOT_CANVAS_ID,
56
+ v as STATE_STYLES,
57
+ D as SVG_ICON_CATEGORIES,
58
+ to as ShapePalette,
59
+ k as archifyStylePatch,
60
+ U as archifyToFlowDocument,
61
+ C as buildSvgMarkup,
62
+ h as componentStyle,
63
+ f as createEmptyDocument,
64
+ Z as downloadDataURL,
65
+ q as exportCanvasToPNG,
66
+ F as getAllSvgIcons,
67
+ c as getSvgIcon,
68
+ R as getSvgIconsByCategory,
69
+ K as inferComponentType,
70
+ d as isArchifySpec,
71
+ x as stateStyle,
72
+ ao as useClipboard,
73
+ Do as useEdgeMutations,
74
+ s as useFlowAI,
75
+ l as useFlowContext,
76
+ z as useFlowImportExport,
77
+ A as useFlowUI,
78
+ Q as useLayoutActions,
79
+ Fo as useLineMutations,
80
+ so as useNodeMutations,
81
+ Ro as useSelection,
82
+ B as variantEdgeStyle
66
83
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dishui",
3
- "version": "0.0.49",
3
+ "version": "0.0.50",
4
4
  "description": "New Components UI Framework with AI Powered",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -46,6 +46,22 @@
46
46
  "files": [
47
47
  "dist"
48
48
  ],
49
+ "scripts": {
50
+ "dev": "vite --config vite.config.demo.ts",
51
+ "build": "vite build --config vite.config.lib.ts && tsc --emitDeclarationOnly -p tsconfig.json && node scripts/strip-dts-css-imports.mjs",
52
+ "build:demo": "vite build --config vite.config.demo.ts",
53
+ "build:types": "tsc --emitDeclarationOnly -p tsconfig.json && node scripts/strip-dts-css-imports.mjs",
54
+ "typecheck": "tsc --noEmit -p tsconfig.demo.json",
55
+ "prepublishOnly": "npm run build",
56
+ "publish:npm": "npm publish --access public",
57
+ "release": "node scripts/release.mjs",
58
+ "release:patch": "node scripts/release.mjs patch",
59
+ "release:minor": "node scripts/release.mjs minor",
60
+ "release:major": "node scripts/release.mjs major",
61
+ "release:dry": "node scripts/release.mjs --dry-run",
62
+ "preview": "vite preview --config vite.config.demo.ts",
63
+ "preview:demo": "vite preview --config vite.config.demo.ts"
64
+ },
49
65
  "keywords": [
50
66
  "react",
51
67
  "ui",
@@ -142,20 +158,5 @@
142
158
  "remark-math": "^6.0.0",
143
159
  "three": "^0.180.0",
144
160
  "unist-util-visit": "^5.1.0"
145
- },
146
- "scripts": {
147
- "dev": "vite --config vite.config.demo.ts",
148
- "build": "vite build --config vite.config.lib.ts && tsc --emitDeclarationOnly -p tsconfig.json && node scripts/strip-dts-css-imports.mjs",
149
- "build:demo": "vite build --config vite.config.demo.ts",
150
- "build:types": "tsc --emitDeclarationOnly -p tsconfig.json && node scripts/strip-dts-css-imports.mjs",
151
- "typecheck": "tsc --noEmit -p tsconfig.demo.json",
152
- "publish:npm": "npm publish --access public",
153
- "release": "node scripts/release.mjs",
154
- "release:patch": "node scripts/release.mjs patch",
155
- "release:minor": "node scripts/release.mjs minor",
156
- "release:major": "node scripts/release.mjs major",
157
- "release:dry": "node scripts/release.mjs --dry-run",
158
- "preview": "vite preview --config vite.config.demo.ts",
159
- "preview:demo": "vite preview --config vite.config.demo.ts"
160
161
  }
161
- }
162
+ }