@goplasmatic/datalogic-ui 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/datalogic_wasm-BN8H01AG.cjs +458 -0
- package/dist/datalogic_wasm-Cl34E6jc.js +354 -0
- package/dist/index.cjs +854 -265
- package/dist/index.d.ts +35 -5
- package/dist/index.js +948 -329
- package/dist/styles.css +136 -0
- package/package.json +12 -5
- package/dist/datalogic_wasm-r9jsW6oT.js +0 -314
- package/dist/datalogic_wasm-r9jsW6oT.js.map +0 -1
- package/dist/datalogic_wasm-vS4KZjmk.cjs +0 -410
- package/dist/datalogic_wasm-vS4KZjmk.cjs.map +0 -1
- package/dist/demo.gif +0 -0
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/manifest.json +0 -11
- package/dist/robots.txt +0 -4
package/dist/styles.css
CHANGED
|
@@ -1899,6 +1899,142 @@ svg.react-flow__connectionline {
|
|
|
1899
1899
|
.json-syntax-punctuation {
|
|
1900
1900
|
color: var(--syntax-punctuation);
|
|
1901
1901
|
}
|
|
1902
|
+
|
|
1903
|
+
/* ============================================
|
|
1904
|
+
Structure Node Styles
|
|
1905
|
+
============================================ */
|
|
1906
|
+
|
|
1907
|
+
.structure-node {
|
|
1908
|
+
background: var(--node-bg) !important;
|
|
1909
|
+
border-radius: 8px;
|
|
1910
|
+
border: 2px solid;
|
|
1911
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
1912
|
+
font-size: 13px;
|
|
1913
|
+
width: fit-content;
|
|
1914
|
+
box-sizing: border-box;
|
|
1915
|
+
box-shadow: 0 2px 6px var(--node-shadow);
|
|
1916
|
+
transition: box-shadow 0.2s, transform 0.1s;
|
|
1917
|
+
min-width: 150px;
|
|
1918
|
+
max-width: 350px;
|
|
1919
|
+
position: relative;
|
|
1920
|
+
}
|
|
1921
|
+
|
|
1922
|
+
.structure-node:hover {
|
|
1923
|
+
box-shadow: 0 4px 12px var(--node-shadow-hover);
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1926
|
+
.structure-node.selected {
|
|
1927
|
+
box-shadow: 0 0 0 2px var(--accent-blue), 0 4px 12px var(--node-shadow-hover);
|
|
1928
|
+
}
|
|
1929
|
+
|
|
1930
|
+
.structure-node-header {
|
|
1931
|
+
padding: 6px 12px;
|
|
1932
|
+
border-radius: 6px 6px 0 0;
|
|
1933
|
+
color: white;
|
|
1934
|
+
display: flex;
|
|
1935
|
+
align-items: center;
|
|
1936
|
+
gap: 8px;
|
|
1937
|
+
height: 32px;
|
|
1938
|
+
box-sizing: border-box;
|
|
1939
|
+
}
|
|
1940
|
+
|
|
1941
|
+
.structure-node-icon {
|
|
1942
|
+
font-size: 14px;
|
|
1943
|
+
display: flex;
|
|
1944
|
+
align-items: center;
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1947
|
+
.structure-node-label {
|
|
1948
|
+
font-weight: 600;
|
|
1949
|
+
font-size: 14px;
|
|
1950
|
+
letter-spacing: 0.5px;
|
|
1951
|
+
flex: 1;
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1954
|
+
.structure-node-body {
|
|
1955
|
+
padding: 8px 12px;
|
|
1956
|
+
padding-right: 24px;
|
|
1957
|
+
font-family: 'SF Mono', 'Consolas', monospace;
|
|
1958
|
+
font-size: 12px;
|
|
1959
|
+
white-space: pre;
|
|
1960
|
+
line-height: 18px;
|
|
1961
|
+
overflow-x: auto;
|
|
1962
|
+
max-width: 100%;
|
|
1963
|
+
}
|
|
1964
|
+
|
|
1965
|
+
.structure-node.collapsed .structure-node-body {
|
|
1966
|
+
white-space: normal;
|
|
1967
|
+
}
|
|
1968
|
+
|
|
1969
|
+
/* Expression marker - clickable link to expression node */
|
|
1970
|
+
.structure-expression-marker {
|
|
1971
|
+
display: inline-flex;
|
|
1972
|
+
align-items: center;
|
|
1973
|
+
background: var(--accent-blue-light);
|
|
1974
|
+
color: var(--accent-blue);
|
|
1975
|
+
padding: 1px 6px;
|
|
1976
|
+
border-radius: 3px;
|
|
1977
|
+
font-size: 11px;
|
|
1978
|
+
font-weight: 500;
|
|
1979
|
+
position: relative;
|
|
1980
|
+
}
|
|
1981
|
+
|
|
1982
|
+
.structure-expression-marker:hover {
|
|
1983
|
+
background: var(--accent-blue);
|
|
1984
|
+
color: white;
|
|
1985
|
+
}
|
|
1986
|
+
|
|
1987
|
+
.structure-expression-label {
|
|
1988
|
+
margin-right: 4px;
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1991
|
+
.structure-expression-handle {
|
|
1992
|
+
width: 8px !important;
|
|
1993
|
+
height: 8px !important;
|
|
1994
|
+
border: 2px solid white !important;
|
|
1995
|
+
min-width: 8px;
|
|
1996
|
+
min-height: 8px;
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1999
|
+
[data-theme="dark"] .structure-expression-handle {
|
|
2000
|
+
border-color: var(--bg-primary) !important;
|
|
2001
|
+
}
|
|
2002
|
+
|
|
2003
|
+
/* Branch handles positioned at node level */
|
|
2004
|
+
.structure-branch-handle {
|
|
2005
|
+
width: 10px !important;
|
|
2006
|
+
height: 10px !important;
|
|
2007
|
+
border: 2px solid white !important;
|
|
2008
|
+
min-width: 10px;
|
|
2009
|
+
min-height: 10px;
|
|
2010
|
+
position: absolute !important;
|
|
2011
|
+
transform: translateY(-50%) !important;
|
|
2012
|
+
}
|
|
2013
|
+
|
|
2014
|
+
[data-theme="dark"] .structure-branch-handle {
|
|
2015
|
+
border-color: var(--bg-primary) !important;
|
|
2016
|
+
}
|
|
2017
|
+
|
|
2018
|
+
/* Debug states for structure node */
|
|
2019
|
+
.structure-node.debug-current {
|
|
2020
|
+
box-shadow: 0 0 0 3px var(--debug-current-color),
|
|
2021
|
+
0 0 20px var(--debug-current-glow) !important;
|
|
2022
|
+
animation: debug-pulse 1.5s ease-in-out infinite;
|
|
2023
|
+
}
|
|
2024
|
+
|
|
2025
|
+
.structure-node.debug-executed {
|
|
2026
|
+
border-color: var(--debug-executed-color) !important;
|
|
2027
|
+
box-shadow: 0 0 0 1px var(--debug-executed-border);
|
|
2028
|
+
}
|
|
2029
|
+
|
|
2030
|
+
.structure-node.debug-pending {
|
|
2031
|
+
opacity: var(--debug-pending-opacity);
|
|
2032
|
+
}
|
|
2033
|
+
|
|
2034
|
+
.structure-node.debug-on-path {
|
|
2035
|
+
border-color: var(--debug-current-color) !important;
|
|
2036
|
+
box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3);
|
|
2037
|
+
}
|
|
1902
2038
|
.logic-editor {
|
|
1903
2039
|
width: 100%;
|
|
1904
2040
|
height: 100%;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goplasmatic/datalogic-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "DataLogic Debugger - Visual JSONLogic Debugger & Editor for debugging and visualizing JSONLogic expressions",
|
|
7
7
|
"keywords": [
|
|
@@ -14,10 +14,11 @@
|
|
|
14
14
|
"react",
|
|
15
15
|
"flow diagram"
|
|
16
16
|
],
|
|
17
|
-
"homepage": "https://goplasmatic.github.io/datalogic-
|
|
17
|
+
"homepage": "https://goplasmatic.github.io/datalogic-rs/playground/",
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|
|
20
|
-
"url": "https://github.com/GoPlasmatic/datalogic-
|
|
20
|
+
"url": "https://github.com/GoPlasmatic/datalogic-rs",
|
|
21
|
+
"directory": "ui"
|
|
21
22
|
},
|
|
22
23
|
"author": "Plasmatic",
|
|
23
24
|
"license": "MIT",
|
|
@@ -38,7 +39,12 @@
|
|
|
38
39
|
"./styles.css": "./dist/styles.css"
|
|
39
40
|
},
|
|
40
41
|
"files": [
|
|
41
|
-
"dist",
|
|
42
|
+
"dist/index.js",
|
|
43
|
+
"dist/index.cjs",
|
|
44
|
+
"dist/index.d.ts",
|
|
45
|
+
"dist/styles.css",
|
|
46
|
+
"dist/datalogic_wasm-*.js",
|
|
47
|
+
"dist/datalogic_wasm-*.cjs",
|
|
42
48
|
"README.md",
|
|
43
49
|
"LICENSE"
|
|
44
50
|
],
|
|
@@ -49,6 +55,7 @@
|
|
|
49
55
|
"dev": "vite",
|
|
50
56
|
"build": "tsc -b && vite build",
|
|
51
57
|
"build:lib": "vite build --config vite.lib.config.ts",
|
|
58
|
+
"build:embed": "vite build --config vite.embed.config.ts",
|
|
52
59
|
"lint": "eslint .",
|
|
53
60
|
"preview": "vite preview",
|
|
54
61
|
"prepublishOnly": "npm run build:lib",
|
|
@@ -58,7 +65,7 @@
|
|
|
58
65
|
},
|
|
59
66
|
"dependencies": {
|
|
60
67
|
"@dagrejs/dagre": "^1.1.8",
|
|
61
|
-
"@goplasmatic/datalogic": "
|
|
68
|
+
"@goplasmatic/datalogic": "workspace:*",
|
|
62
69
|
"lucide-react": "^0.562.0",
|
|
63
70
|
"uuid": "^13.0.0"
|
|
64
71
|
},
|