datacontract-editor 0.1.2 → 0.1.4

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.
@@ -1,4 +1,4 @@
1
- import { m as o } from "./embed-yrOtk_lG.js";
1
+ import { b as o } from "./monaco-4.7.0.js";
2
2
  var a = Object.defineProperty, l = Object.getOwnPropertyDescriptor, p = Object.getOwnPropertyNames, c = Object.prototype.hasOwnProperty, g = (t, e, n, s) => {
3
3
  if (e && typeof e == "object" || typeof e == "function")
4
4
  for (let r of p(e))
@@ -6,7 +6,7 @@ var a = Object.defineProperty, l = Object.getOwnPropertyDescriptor, p = Object.g
6
6
  return t;
7
7
  }, d = (t, e, n) => (g(t, e, "default"), n), i = {};
8
8
  d(i, o);
9
- var m = {
9
+ var f = {
10
10
  comments: {
11
11
  lineComment: "#",
12
12
  blockComment: ["'''", "'''"]
@@ -45,7 +45,7 @@ var m = {
45
45
  end: new RegExp("^\\s*#endregion\\b")
46
46
  }
47
47
  }
48
- }, f = {
48
+ }, m = {
49
49
  defaultToken: "",
50
50
  tokenPostfix: ".python",
51
51
  keywords: [
@@ -296,6 +296,6 @@ var m = {
296
296
  }
297
297
  };
298
298
  export {
299
- m as conf,
300
- f as language
299
+ f as conf,
300
+ m as language
301
301
  };
@@ -1,4 +1,4 @@
1
- import { m } from "./embed-yrOtk_lG.js";
1
+ import { b as m } from "./monaco-4.7.0.js";
2
2
  var s = Object.defineProperty, c = Object.getOwnPropertyDescriptor, l = Object.getOwnPropertyNames, d = Object.prototype.hasOwnProperty, p = (t, e, o, n) => {
3
3
  if (e && typeof e == "object" || typeof e == "function")
4
4
  for (let r of l(e))
@@ -1,4 +1,4 @@
1
- import { t as I, m as M } from "./embed-yrOtk_lG.js";
1
+ import { d as I, b as M } from "./monaco-4.7.0.js";
2
2
  var N = Object.defineProperty, R = Object.getOwnPropertyDescriptor, E = Object.getOwnPropertyNames, K = Object.prototype.hasOwnProperty, H = (e, t, r, a) => {
3
3
  if (t && typeof t == "object" || typeof t == "function")
4
4
  for (let n of E(t))
@@ -1,4 +1,4 @@
1
- import { m as s } from "./embed-yrOtk_lG.js";
1
+ import { b as s } from "./monaco-4.7.0.js";
2
2
  var c = Object.defineProperty, a = Object.getOwnPropertyDescriptor, p = Object.getOwnPropertyNames, g = Object.prototype.hasOwnProperty, l = (t, e, o, i) => {
3
3
  if (e && typeof e == "object" || typeof e == "function")
4
4
  for (let n of p(e))
@@ -6,7 +6,7 @@ var c = Object.defineProperty, a = Object.getOwnPropertyDescriptor, p = Object.g
6
6
  return t;
7
7
  }, d = (t, e, o) => (l(t, e, "default"), o), r = {};
8
8
  d(r, s);
9
- var x = {
9
+ var b = {
10
10
  wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
11
11
  comments: {
12
12
  lineComment: "//",
@@ -67,7 +67,7 @@ var x = {
67
67
  end: new RegExp("^\\s*//\\s*#?endregion\\b")
68
68
  }
69
69
  }
70
- }, b = {
70
+ }, x = {
71
71
  // Set defaultToken to invalid to see what you do not tokenize yet
72
72
  defaultToken: "invalid",
73
73
  tokenPostfix: ".ts",
@@ -338,6 +338,6 @@ var x = {
338
338
  }
339
339
  };
340
340
  export {
341
- x as conf,
342
- b as language
341
+ b as conf,
342
+ x as language
343
343
  };
@@ -1,8 +1,8 @@
1
- import { m as r } from "./embed-yrOtk_lG.js";
2
- var m = Object.defineProperty, c = Object.getOwnPropertyDescriptor, l = Object.getOwnPropertyNames, d = Object.prototype.hasOwnProperty, p = (t, e, o, i) => {
1
+ import { b as r } from "./monaco-4.7.0.js";
2
+ var c = Object.defineProperty, m = Object.getOwnPropertyDescriptor, l = Object.getOwnPropertyNames, d = Object.prototype.hasOwnProperty, p = (t, e, o, i) => {
3
3
  if (e && typeof e == "object" || typeof e == "function")
4
4
  for (let n of l(e))
5
- !d.call(t, n) && n !== o && m(t, n, { get: () => e[n], enumerable: !(i = c(e, n)) || i.enumerable });
5
+ !d.call(t, n) && n !== o && c(t, n, { get: () => e[n], enumerable: !(i = m(e, n)) || i.enumerable });
6
6
  return t;
7
7
  }, s = (t, e, o) => (p(t, e, "default"), o), a = {};
8
8
  s(a, r);
@@ -1,4 +1,4 @@
1
- import { m as l } from "./embed-yrOtk_lG.js";
1
+ import { b as l } from "./monaco-4.7.0.js";
2
2
  var i = Object.defineProperty, c = Object.getOwnPropertyDescriptor, u = Object.getOwnPropertyNames, s = Object.prototype.hasOwnProperty, d = (n, e, r, o) => {
3
3
  if (e && typeof e == "object" || typeof e == "function")
4
4
  for (let t of u(e))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datacontract-editor",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "A visual editor for data contracts using the Open Data Contract Standard (ODCS)",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,25 +16,36 @@
16
16
  ],
17
17
  "scripts": {
18
18
  "dev": "vite",
19
- "build": "vite build",
19
+ "build": "vite build --mode production",
20
+ "build:debug": "vite build --mode debug",
20
21
  "lint": "eslint .",
21
22
  "preview": "vite preview",
22
23
  "prepublishOnly": "npm run build",
23
- "start": "node bin/datacontract-editor.js"
24
+ "start": "npm run build && node bin/datacontract-editor.js",
25
+ "start:debug": "npm run build:debug && node bin/datacontract-editor.js"
24
26
  },
25
27
  "engines": {
26
28
  "node": ">=22"
27
29
  },
28
30
  "dependencies": {
31
+ "@dnd-kit/core": "^6.3.1",
32
+ "@dnd-kit/modifiers": "^9.0.0",
33
+ "@dnd-kit/sortable": "^10.0.0",
34
+ "@dnd-kit/utilities": "^3.2.2",
29
35
  "@headlessui/react": "^2.2.9",
30
36
  "@monaco-editor/react": "^4.7.0",
37
+ "@tailwindcss/typography": "^0.5.19",
31
38
  "@xyflow/react": "^12.9.0",
39
+ "ajv": "^8.17.1",
40
+ "ajv-formats": "^3.0.1",
32
41
  "dagre": "^0.8.5",
42
+ "monaco-editor": "0.54.0",
33
43
  "monaco-yaml": "^5.4.0",
34
44
  "open": "^10.1.0",
35
45
  "path-browserify": "^1.0.1",
36
- "react": "^19.2.0",
37
- "react-dom": "^19.2.0",
46
+ "react": "^19.2.1",
47
+ "react-dom": "^19.2.1",
48
+ "react-markdown": "^10.1.0",
38
49
  "react-router-dom": "^7.9.5",
39
50
  "yaml": "^2.8.1",
40
51
  "zustand": "^5.0.8"
@@ -45,6 +56,7 @@
45
56
  "@types/react": "^19.2.2",
46
57
  "@types/react-dom": "^19.2.2",
47
58
  "@vitejs/plugin-react": "^5.1.0",
59
+ "baseline-browser-mapping": "^2.9.16",
48
60
  "eslint": "^9.39.1",
49
61
  "eslint-plugin-react-hooks": "^5.2.0",
50
62
  "eslint-plugin-react-refresh": "^0.4.24",