@inspectr/ui 1.7.1 → 1.8.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.
Files changed (90) hide show
  1. package/dist/abap-Bs8kvjsq.js +1398 -0
  2. package/dist/apex-Dspwrl5m.js +326 -0
  3. package/dist/azcli-k1BiOau1.js +68 -0
  4. package/dist/bat-BIP72KWc.js +100 -0
  5. package/dist/bicep-VhQeYhS3.js +102 -0
  6. package/dist/cameligo-DnuAXtHg.js +174 -0
  7. package/dist/clojure-BAuDPsal.js +761 -0
  8. package/dist/coffee-BV06qSnj.js +232 -0
  9. package/dist/cpp-Cz8Jeyrf.js +389 -0
  10. package/dist/csharp-F6hhlXFb.js +326 -0
  11. package/dist/csp-KzlEHCyI.js +53 -0
  12. package/dist/css-e4FKntZ3.js +187 -0
  13. package/dist/cssMode-CCxwJWiv.js +1571 -0
  14. package/dist/cypher-CpvDGKRr.js +263 -0
  15. package/dist/dart-DdHeFWR0.js +281 -0
  16. package/dist/dockerfile-aoNXDcio.js +130 -0
  17. package/dist/ecl-C4Q0DYuA.js +456 -0
  18. package/dist/editor.main-CP-oXbVe.js +110802 -0
  19. package/dist/elixir-C9X42b0T.js +569 -0
  20. package/dist/flow9-Bff42pfB.js +142 -0
  21. package/dist/freemarker2-BZveqxNO.js +989 -0
  22. package/dist/fsharp-C6vPAsHG.js +217 -0
  23. package/dist/go-DEr8zx9f.js +218 -0
  24. package/dist/graphql-BiNBBRFh.js +151 -0
  25. package/dist/handlebars-DFLvXTZ8.js +419 -0
  26. package/dist/hcl-2T9lKuFg.js +183 -0
  27. package/dist/html-DxXqfwFE.js +308 -0
  28. package/dist/htmlMode-C9gIo-LK.js +1581 -0
  29. package/dist/ini-CZGtssYM.js +71 -0
  30. package/dist/inspectr-ui.es.js +23538 -23271
  31. package/dist/inspectr-ui.umd.js +1184 -195
  32. package/dist/java-B260NeH3.js +232 -0
  33. package/dist/javascript-CYYD6pGr.js +70 -0
  34. package/dist/jsonMode-jVbIoPc6.js +1996 -0
  35. package/dist/julia-kuNLM9c5.js +511 -0
  36. package/dist/kotlin-Bz6kAefA.js +253 -0
  37. package/dist/less-AZUtS89I.js +162 -0
  38. package/dist/lexon-BcmgnyRb.js +157 -0
  39. package/dist/liquid-PYsubg5u.js +240 -0
  40. package/dist/lua-Dz1RbATg.js +162 -0
  41. package/dist/m3-CIMooLFn.js +210 -0
  42. package/dist/markdown-C1BsCK9P.js +229 -0
  43. package/dist/mdx-DRJsmowz.js +165 -0
  44. package/dist/mips-BovsnfLQ.js +198 -0
  45. package/dist/msdax-CiRB2ZB-.js +375 -0
  46. package/dist/mysql-BwdpPE19.js +878 -0
  47. package/dist/objective-c-D4nfHfso.js +183 -0
  48. package/dist/pascal--j5-PYtz.js +251 -0
  49. package/dist/pascaligo-C7TcJxNL.js +164 -0
  50. package/dist/perl-BzEWqUb5.js +626 -0
  51. package/dist/pgsql-B_KZ0mGX.js +851 -0
  52. package/dist/php-A19QHzQV.js +500 -0
  53. package/dist/pla-COeKY1hA.js +137 -0
  54. package/dist/postiats-BfMp7zJL.js +907 -0
  55. package/dist/powerquery-B0TS_5Gb.js +890 -0
  56. package/dist/powershell-5jSbKdYB.js +239 -0
  57. package/dist/protobuf-YgnOutn3.js +420 -0
  58. package/dist/pug-DLej6kn5.js +402 -0
  59. package/dist/python-M8MItOfu.js +301 -0
  60. package/dist/qsharp-AhjqtSHB.js +301 -0
  61. package/dist/r-D-F4P80w.js +243 -0
  62. package/dist/razor-CkROrZip.js +550 -0
  63. package/dist/redis-hwwIlMnV.js +302 -0
  64. package/dist/redshift-Bcm_kjEG.js +809 -0
  65. package/dist/restructuredtext-CrdzfPP-.js +174 -0
  66. package/dist/ruby-QC2UNm1s.js +511 -0
  67. package/dist/rust-5aqiQ3L5.js +343 -0
  68. package/dist/sb-B1g1ZfLJ.js +115 -0
  69. package/dist/scala-C2U4R5Gb.js +370 -0
  70. package/dist/scheme-DeFRbslr.js +108 -0
  71. package/dist/scss-RSTCiCmI.js +262 -0
  72. package/dist/shell-BpF-iNu8.js +221 -0
  73. package/dist/solidity-C00r2mbQ.js +1367 -0
  74. package/dist/sophia-DVW5ZKDB.js +199 -0
  75. package/dist/sparql-B0nmpxeX.js +201 -0
  76. package/dist/sql-CJwKPERn.js +853 -0
  77. package/dist/st-DPlKG5DT.js +416 -0
  78. package/dist/swift-YZBAbVHV.js +309 -0
  79. package/dist/systemverilog-CDQSaH63.js +576 -0
  80. package/dist/tcl-Dlu8sp6Q.js +232 -0
  81. package/dist/tsMode-D1me_v4f.js +886 -0
  82. package/dist/twig-C5TO7-kw.js +392 -0
  83. package/dist/typescript-D8U3Pc3R.js +343 -0
  84. package/dist/typespec-BsmjDEu7.js +117 -0
  85. package/dist/ui.css +1 -1
  86. package/dist/vb-ChHvIDrk.js +372 -0
  87. package/dist/wgsl-XEp1ju8c.js +439 -0
  88. package/dist/xml-CTIvZv70.js +95 -0
  89. package/dist/yaml-BgbINe9U.js +206 -0
  90. package/package.json +11 -12
@@ -0,0 +1,206 @@
1
+ import { m as l } from "./editor.main-CP-oXbVe.js";
2
+ var i = Object.defineProperty, c = Object.getOwnPropertyDescriptor, u = Object.getOwnPropertyNames, s = Object.prototype.hasOwnProperty, d = (n, e, r, o) => {
3
+ if (e && typeof e == "object" || typeof e == "function")
4
+ for (let t of u(e))
5
+ !s.call(n, t) && t !== r && i(n, t, { get: () => e[t], enumerable: !(o = c(e, t)) || o.enumerable });
6
+ return n;
7
+ }, m = (n, e, r) => (d(n, e, "default"), r), a = {};
8
+ m(a, l);
9
+ var p = {
10
+ comments: {
11
+ lineComment: "#"
12
+ },
13
+ brackets: [
14
+ ["{", "}"],
15
+ ["[", "]"],
16
+ ["(", ")"]
17
+ ],
18
+ autoClosingPairs: [
19
+ { open: "{", close: "}" },
20
+ { open: "[", close: "]" },
21
+ { open: "(", close: ")" },
22
+ { open: '"', close: '"' },
23
+ { open: "'", close: "'" }
24
+ ],
25
+ surroundingPairs: [
26
+ { open: "{", close: "}" },
27
+ { open: "[", close: "]" },
28
+ { open: "(", close: ")" },
29
+ { open: '"', close: '"' },
30
+ { open: "'", close: "'" }
31
+ ],
32
+ folding: {
33
+ offSide: !0
34
+ },
35
+ onEnterRules: [
36
+ {
37
+ beforeText: /:\s*$/,
38
+ action: {
39
+ indentAction: a.languages.IndentAction.Indent
40
+ }
41
+ }
42
+ ]
43
+ }, f = {
44
+ tokenPostfix: ".yaml",
45
+ brackets: [
46
+ { token: "delimiter.bracket", open: "{", close: "}" },
47
+ { token: "delimiter.square", open: "[", close: "]" }
48
+ ],
49
+ keywords: ["true", "True", "TRUE", "false", "False", "FALSE", "null", "Null", "Null", "~"],
50
+ numberInteger: /(?:0|[+-]?[0-9]+)/,
51
+ numberFloat: /(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,
52
+ numberOctal: /0o[0-7]+/,
53
+ numberHex: /0x[0-9a-fA-F]+/,
54
+ numberInfinity: /[+-]?\.(?:inf|Inf|INF)/,
55
+ numberNaN: /\.(?:nan|Nan|NAN)/,
56
+ numberDate: /\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,
57
+ escapes: /\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,
58
+ tokenizer: {
59
+ root: [
60
+ { include: "@whitespace" },
61
+ { include: "@comment" },
62
+ // Directive
63
+ [/%[^ ]+.*$/, "meta.directive"],
64
+ // Document Markers
65
+ [/---/, "operators.directivesEnd"],
66
+ [/\.{3}/, "operators.documentEnd"],
67
+ // Block Structure Indicators
68
+ [/[-?:](?= )/, "operators"],
69
+ { include: "@anchor" },
70
+ { include: "@tagHandle" },
71
+ { include: "@flowCollections" },
72
+ { include: "@blockStyle" },
73
+ // Numbers
74
+ [/@numberInteger(?![ \t]*\S+)/, "number"],
75
+ [/@numberFloat(?![ \t]*\S+)/, "number.float"],
76
+ [/@numberOctal(?![ \t]*\S+)/, "number.octal"],
77
+ [/@numberHex(?![ \t]*\S+)/, "number.hex"],
78
+ [/@numberInfinity(?![ \t]*\S+)/, "number.infinity"],
79
+ [/@numberNaN(?![ \t]*\S+)/, "number.nan"],
80
+ [/@numberDate(?![ \t]*\S+)/, "number.date"],
81
+ // Key:Value pair
82
+ [/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/, ["type", "white", "operators", "white"]],
83
+ { include: "@flowScalars" },
84
+ // String nodes
85
+ [
86
+ /.+?(?=(\s+#|$))/,
87
+ {
88
+ cases: {
89
+ "@keywords": "keyword",
90
+ "@default": "string"
91
+ }
92
+ }
93
+ ]
94
+ ],
95
+ // Flow Collection: Flow Mapping
96
+ object: [
97
+ { include: "@whitespace" },
98
+ { include: "@comment" },
99
+ // Flow Mapping termination
100
+ [/\}/, "@brackets", "@pop"],
101
+ // Flow Mapping delimiter
102
+ [/,/, "delimiter.comma"],
103
+ // Flow Mapping Key:Value delimiter
104
+ [/:(?= )/, "operators"],
105
+ // Flow Mapping Key:Value key
106
+ [/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/, "type"],
107
+ // Start Flow Style
108
+ { include: "@flowCollections" },
109
+ { include: "@flowScalars" },
110
+ // Scalar Data types
111
+ { include: "@tagHandle" },
112
+ { include: "@anchor" },
113
+ { include: "@flowNumber" },
114
+ // Other value (keyword or string)
115
+ [
116
+ /[^\},]+/,
117
+ {
118
+ cases: {
119
+ "@keywords": "keyword",
120
+ "@default": "string"
121
+ }
122
+ }
123
+ ]
124
+ ],
125
+ // Flow Collection: Flow Sequence
126
+ array: [
127
+ { include: "@whitespace" },
128
+ { include: "@comment" },
129
+ // Flow Sequence termination
130
+ [/\]/, "@brackets", "@pop"],
131
+ // Flow Sequence delimiter
132
+ [/,/, "delimiter.comma"],
133
+ // Start Flow Style
134
+ { include: "@flowCollections" },
135
+ { include: "@flowScalars" },
136
+ // Scalar Data types
137
+ { include: "@tagHandle" },
138
+ { include: "@anchor" },
139
+ { include: "@flowNumber" },
140
+ // Other value (keyword or string)
141
+ [
142
+ /[^\],]+/,
143
+ {
144
+ cases: {
145
+ "@keywords": "keyword",
146
+ "@default": "string"
147
+ }
148
+ }
149
+ ]
150
+ ],
151
+ // First line of a Block Style
152
+ multiString: [[/^( +).+$/, "string", "@multiStringContinued.$1"]],
153
+ // Further lines of a Block Style
154
+ // Workaround for indentation detection
155
+ multiStringContinued: [
156
+ [
157
+ /^( *).+$/,
158
+ {
159
+ cases: {
160
+ "$1==$S2": "string",
161
+ "@default": { token: "@rematch", next: "@popall" }
162
+ }
163
+ }
164
+ ]
165
+ ],
166
+ whitespace: [[/[ \t\r\n]+/, "white"]],
167
+ // Only line comments
168
+ comment: [[/#.*$/, "comment"]],
169
+ // Start Flow Collections
170
+ flowCollections: [
171
+ [/\[/, "@brackets", "@array"],
172
+ [/\{/, "@brackets", "@object"]
173
+ ],
174
+ // Start Flow Scalars (quoted strings)
175
+ flowScalars: [
176
+ [/"([^"\\]|\\.)*$/, "string.invalid"],
177
+ [/'([^'\\]|\\.)*$/, "string.invalid"],
178
+ [/'[^']*'/, "string"],
179
+ [/"/, "string", "@doubleQuotedString"]
180
+ ],
181
+ doubleQuotedString: [
182
+ [/[^\\"]+/, "string"],
183
+ [/@escapes/, "string.escape"],
184
+ [/\\./, "string.escape.invalid"],
185
+ [/"/, "string", "@pop"]
186
+ ],
187
+ // Start Block Scalar
188
+ blockStyle: [[/[>|][0-9]*[+-]?$/, "operators", "@multiString"]],
189
+ // Numbers in Flow Collections (terminate with ,]})
190
+ flowNumber: [
191
+ [/@numberInteger(?=[ \t]*[,\]\}])/, "number"],
192
+ [/@numberFloat(?=[ \t]*[,\]\}])/, "number.float"],
193
+ [/@numberOctal(?=[ \t]*[,\]\}])/, "number.octal"],
194
+ [/@numberHex(?=[ \t]*[,\]\}])/, "number.hex"],
195
+ [/@numberInfinity(?=[ \t]*[,\]\}])/, "number.infinity"],
196
+ [/@numberNaN(?=[ \t]*[,\]\}])/, "number.nan"],
197
+ [/@numberDate(?=[ \t]*[,\]\}])/, "number.date"]
198
+ ],
199
+ tagHandle: [[/\![^ ]*/, "tag"]],
200
+ anchor: [[/[&*][^ ]+/, "namespace"]]
201
+ }
202
+ };
203
+ export {
204
+ p as conf,
205
+ f as language
206
+ };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@inspectr/ui",
3
3
  "description": "React UI components for Inspectr",
4
4
  "type": "module",
5
- "version": "1.7.1",
5
+ "version": "1.8.1",
6
6
  "author": "Tim Haselaars",
7
7
  "homepage": "https://inspectr.dev",
8
8
  "bugs": "https://github.com/inspectr-hq/inspectr-ui/issues",
@@ -25,6 +25,7 @@
25
25
  "scripts": {
26
26
  "dev": "vite",
27
27
  "build": "vite build",
28
+ "build:fast": "VITE_MONACO_SOURCE=cdn vite build",
28
29
  "build:debug": "vite build --mode development --sourcemap --minify=false",
29
30
  "watch": "vite build --watch",
30
31
  "storybook": "storybook dev --ci -p 6006",
@@ -37,11 +38,12 @@
37
38
  "@headlessui/react": "^2.2.9",
38
39
  "@monaco-editor/react": "^4.7.0",
39
40
  "@radix-ui/react-tooltip": "^1.2.8",
40
- "@remixicon/react": "^4.6.0",
41
+ "@remixicon/react": "^4.9.0",
41
42
  "@tremor/react": "^3.18.7",
42
43
  "dexie": "^4.2.0",
43
44
  "dexie-react-hooks": "^4.2.0",
44
45
  "jsonpath-plus": "^10.3.0",
46
+ "monaco-editor": "^0.52.2",
45
47
  "tailwindcss": "^3.4.17",
46
48
  "xml-formatter": "^3.6.7"
47
49
  },
@@ -52,18 +54,15 @@
52
54
  "react-dom": "^18.3.1"
53
55
  },
54
56
  "devDependencies": {
55
- "@storybook/addon-essentials": "^8.6.14",
56
- "@storybook/addon-interactions": "^8.6.14",
57
- "@storybook/addon-onboarding": "^8.6.14",
58
- "@storybook/react-vite": "^8.6.14",
59
- "@tailwindcss/forms": "^0.5.10",
60
- "@tailwindcss/vite": "^4.0.5",
57
+ "@storybook/react-vite": "^10.2.8",
58
+ "@tailwindcss/forms": "^0.5.11",
59
+ "@tailwindcss/vite": "^4.1.18",
61
60
  "@types/react": "^18.3.20",
62
61
  "@types/react-dom": "^18.3.6",
63
- "@vitejs/plugin-react": "^4.3.4",
64
- "autoprefixer": "^10.4.21",
65
- "storybook": "^8.6.14",
66
- "vite": "^6.4.1"
62
+ "@vitejs/plugin-react-swc": "^4.2.3",
63
+ "autoprefixer": "^10.4.24",
64
+ "storybook": "^10.2.8",
65
+ "vite": "^7.3.1"
67
66
  },
68
67
  "publishConfig": {
69
68
  "access": "public"