@imfusion/web-ui 0.5.1-dev.49.gd1a7230f → 0.5.1-dev.5.gb4de52d7
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/README.md +55 -156
- package/bin/install-skill.js +180 -0
- package/dist/index.d.ts +0 -2
- package/dist/index.js +4317 -4956
- package/dist/integrations/code-highlight/highlighter.d.ts +3 -32
- package/dist/integrations/code-highlight.js +48 -188
- package/dist/integrations/image-display-options.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{tabs-CVp_SgBl.js → tabs-DqBFSqq6.js} +1 -1
- package/package.json +25 -39
- package/src/docgen/doc.gen.json +0 -327
- package/src/llms/llms.gen.txt +0 -12
- package/src/llms/skills/imf-web-ui/SKILL.md +12 -13
- package/src/llms/skills/imf-web-ui-components/SKILL.md +1 -2
- package/src/llms/skills/imf-web-ui-frontend-patterns/SKILL.md +93 -0
- package/src/llms/skills/imf-web-ui-frontend-patterns/references/code-conventions.md +133 -0
- package/src/llms/skills/imf-web-ui-frontend-patterns/references/react-patterns.md +94 -0
- package/src/llms/skills/imf-web-ui-imfusion-frontend-setup/SKILL.md +201 -0
- package/src/llms/skills/imf-web-ui-setup/SKILL.md +37 -67
- package/src/llms/skills/imf-web-ui-ux/SKILL.md +4 -4
- package/src/llms/skills/imf-web-ui-ux/references/forms.md +2 -2
- package/bin/install.js +0 -428
- package/bin/install.test.ts +0 -329
- package/dist/build/vite-css-module-names/index.d.ts +0 -20
- package/dist/build/vite-css-module-names.js +0 -17
- package/dist/components/field/field.d.ts +0 -104
- package/dist/components/field/field.meta.d.ts +0 -2
- package/dist/components/field/index.d.ts +0 -2
- package/dist/components/fieldset/fieldset.d.ts +0 -29
- package/dist/components/fieldset/fieldset.meta.d.ts +0 -2
- package/dist/components/fieldset/index.d.ts +0 -2
- package/dist/integrations/code-highlight/language-patterns.d.ts +0 -7
- package/dist/integrations/code-highlight/languages/cmake.d.ts +0 -1
- package/dist/integrations/code-highlight/languages/cpp.d.ts +0 -1
- package/dist/integrations/code-highlight/languages/python.d.ts +0 -1
- package/dist/llms/gen-tokens.d.ts +0 -7
- package/src/llms/install-templates/AGENTS.md +0 -34
- package/src/llms/install-templates/codex-hooks.json +0 -44
- package/src/llms/install-templates/hooks/baseline-staleness.sh +0 -17
- package/src/llms/install-templates/hooks/session-start.sh +0 -5
- package/src/llms/install-templates/hooks/stop.sh +0 -18
- package/src/llms/install-templates/hooks/subagent-start.sh +0 -5
- package/src/llms/install-templates/hooks/user-prompt-submit.sh +0 -5
- package/src/llms/install-templates/settings.json +0 -45
- package/src/llms/skills/imf-web-ui-audit/SKILL.md +0 -119
- package/src/llms/skills/imf-web-ui-conventions/SKILL.md +0 -57
- package/src/llms/skills/imf-web-ui-conventions/templates/AUDIT_CHECKLIST.md +0 -141
- package/src/llms/skills/imf-web-ui-conventions/templates/REPORT.md +0 -45
- package/src/llms/skills/imf-web-ui-conventions/topics/agent-tooling.md +0 -82
- package/src/llms/skills/imf-web-ui-conventions/topics/assets.md +0 -27
- package/src/llms/skills/imf-web-ui-conventions/topics/authentication.md +0 -65
- package/src/llms/skills/imf-web-ui-conventions/topics/class-names.md +0 -50
- package/src/llms/skills/imf-web-ui-conventions/topics/components.md +0 -101
- package/src/llms/skills/imf-web-ui-conventions/topics/data.md +0 -221
- package/src/llms/skills/imf-web-ui-conventions/topics/docs-structure.md +0 -40
- package/src/llms/skills/imf-web-ui-conventions/topics/git.md +0 -34
- package/src/llms/skills/imf-web-ui-conventions/topics/library-boundary.md +0 -33
- package/src/llms/skills/imf-web-ui-conventions/topics/library-setup.md +0 -26
- package/src/llms/skills/imf-web-ui-conventions/topics/npm-project.md +0 -53
- package/src/llms/skills/imf-web-ui-conventions/topics/project-structure.md +0 -44
- package/src/llms/skills/imf-web-ui-conventions/topics/react.md +0 -109
- package/src/llms/skills/imf-web-ui-conventions/topics/styling.md +0 -88
- package/src/llms/skills/imf-web-ui-conventions/topics/testing.md +0 -25
- package/src/llms/skills/imf-web-ui-conventions/topics/tokens.md +0 -7
- package/src/llms/skills/imf-web-ui-conventions/topics/tooling.md +0 -116
- package/src/llms/skills/imf-web-ui-conventions/topics/typescript.md +0 -73
- package/src/llms/skills/imf-web-ui-conventions/topics/validation.md +0 -62
- package/src/llms/skills/imf-web-ui-update/SKILL.md +0 -157
- package/src/llms/tokens.gen.json +0 -887
|
@@ -1,35 +1,6 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
readonly ts: {
|
|
6
|
-
readonly aliases: readonly ["typescript"];
|
|
7
|
-
};
|
|
8
|
-
readonly css: {
|
|
9
|
-
readonly aliases: readonly ["scss"];
|
|
10
|
-
};
|
|
11
|
-
readonly shell: {
|
|
12
|
-
readonly aliases: readonly ["bash", "sh", "zsh", "shellscript"];
|
|
13
|
-
};
|
|
14
|
-
readonly json: {
|
|
15
|
-
readonly aliases: readonly [];
|
|
16
|
-
};
|
|
17
|
-
readonly cpp: {
|
|
18
|
-
readonly aliases: readonly ["c++", "cc", "cxx", "hpp"];
|
|
19
|
-
};
|
|
20
|
-
readonly python: {
|
|
21
|
-
readonly aliases: readonly ["py"];
|
|
22
|
-
};
|
|
23
|
-
readonly cmake: {
|
|
24
|
-
readonly aliases: readonly [];
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
export declare const SUPPORTED_LANGUAGES: string[];
|
|
28
|
-
type CanonicalLanguage = keyof typeof LANGUAGE_DEFINITIONS;
|
|
29
|
-
type LanguageAlias = {
|
|
30
|
-
[Language in CanonicalLanguage]: (typeof LANGUAGE_DEFINITIONS)[Language]["aliases"][number];
|
|
31
|
-
}[CanonicalLanguage];
|
|
32
|
-
export type SupportedLanguage = CanonicalLanguage | LanguageAlias;
|
|
1
|
+
export declare const SUPPORTED_LANGUAGES: readonly ["tsx", "ts", "css", "shell", "json"];
|
|
2
|
+
declare const LANGUAGE_ALIASES: readonly ["typescript", "bash", "sh", "zsh", "shellscript", "scss"];
|
|
3
|
+
export type SupportedLanguage = (typeof SUPPORTED_LANGUAGES)[number] | (typeof LANGUAGE_ALIASES)[number];
|
|
33
4
|
export declare function isSupportedLanguage(value: string): value is SupportedLanguage;
|
|
34
5
|
export declare function highlightToHtml(code: string, language: SupportedLanguage): string;
|
|
35
6
|
export {};
|
|
@@ -2,203 +2,63 @@ import { a as e, t } from "../meta-B8C51eyL.js";
|
|
|
2
2
|
import { i as n, n as r, r as i } from "../code-qBbqAHK-.js";
|
|
3
3
|
import { useMemo as a } from "react";
|
|
4
4
|
import { jsx as o } from "react/jsx-runtime";
|
|
5
|
-
import { createHighlighter as s,
|
|
6
|
-
import { css as
|
|
7
|
-
import { json as
|
|
8
|
-
import { plaintext as
|
|
9
|
-
import { shell as
|
|
10
|
-
import { ts as
|
|
11
|
-
import { tsx as
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
e = !0;
|
|
30
|
-
break;
|
|
31
|
-
}
|
|
32
|
-
e || (r.push({
|
|
33
|
-
start: s,
|
|
34
|
-
end: c,
|
|
35
|
-
className: n.className
|
|
36
|
-
}), i.fill(1, s, c));
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return r;
|
|
5
|
+
import { createHighlighter as s, renderNodesToHtml as c, renderTokens as l } from "@tanstack/highlight/core";
|
|
6
|
+
import { css as u } from "@tanstack/highlight/languages/css";
|
|
7
|
+
import { json as d } from "@tanstack/highlight/languages/json";
|
|
8
|
+
import { plaintext as f } from "@tanstack/highlight/languages/plaintext";
|
|
9
|
+
import { shell as p } from "@tanstack/highlight/languages/shell";
|
|
10
|
+
import { ts as m } from "@tanstack/highlight/languages/ts";
|
|
11
|
+
import { tsx as h } from "@tanstack/highlight/languages/tsx";
|
|
12
|
+
//#region src/integrations/code-highlight/highlighter.ts
|
|
13
|
+
var g = [
|
|
14
|
+
"tsx",
|
|
15
|
+
"ts",
|
|
16
|
+
"css",
|
|
17
|
+
"shell",
|
|
18
|
+
"json"
|
|
19
|
+
], _ = [
|
|
20
|
+
"typescript",
|
|
21
|
+
"bash",
|
|
22
|
+
"sh",
|
|
23
|
+
"zsh",
|
|
24
|
+
"shellscript",
|
|
25
|
+
"scss"
|
|
26
|
+
], v = [...g, ..._];
|
|
27
|
+
function y(e) {
|
|
28
|
+
return v.includes(e);
|
|
41
29
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
className: "string",
|
|
47
|
-
regex: /"(?:\\.|[^"\\\n])*"|\[(=*)\[[\s\S]*?\]\1\]/g
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
className: "comment",
|
|
51
|
-
regex: /#[^\n]*/g
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
className: "variable",
|
|
55
|
-
regex: /\$(?:ENV|CACHE)?\{[^}\n]+\}/g
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
className: "keyword",
|
|
59
|
-
regex: /\b(?:break|continue|else|elseif|endforeach|endfunction|endif|endmacro|endwhile|if|include|macro|return|while)\b/gi
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
className: "literal",
|
|
63
|
-
regex: /\b(?:FALSE|IGNORE|NOTFOUND|NO|OFF|ON|TRUE|YES)\b/gi
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
className: "function",
|
|
67
|
-
regex: /\b[A-Za-z_][\w-]*(?=\s*\()/g
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
className: "number",
|
|
71
|
-
regex: /\b\d+(?:\.\d+)?\b/g
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
className: "operator",
|
|
75
|
-
regex: /(?:LESS_EQUAL|GREATER_EQUAL|STREQUAL|IN_LIST|MATCHES|EQUAL|LESS|GREATER|AND|OR|NOT|[=<>+*/!-])/gi
|
|
76
|
-
}
|
|
77
|
-
], b = c({
|
|
78
|
-
name: "cmake",
|
|
79
|
-
tokenize(e) {
|
|
80
|
-
return v(e, y);
|
|
81
|
-
}
|
|
82
|
-
}), x = [
|
|
83
|
-
{
|
|
84
|
-
className: "comment",
|
|
85
|
-
regex: /\/\/[^\n]*|\/\*[\s\S]*?\*\//g
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
className: "string",
|
|
89
|
-
regex: /"(?:\\.|[^"\\\n])*"|'(?:\\.|[^'\\\n])*'/g
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
className: "meta",
|
|
93
|
-
regex: /^[ \t]*#[ \t]*(?:include|define|if|ifdef|ifndef|elif|else|endif|pragma|undef|error|warning)\b/gm
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
className: "keyword",
|
|
97
|
-
regex: /\b(?:alignas|alignof|and|asm|atomic_cancel|atomic_commit|atomic_noexcept|auto|bitand|bitor|break|case|catch|co_await|co_return|co_yield|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|default|delete|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|goto|if|inline|mutable|namespace|new|noexcept|not|operator|or|private|protected|public|reflexpr|register|reinterpret_cast|requires|return|sizeof|static|static_assert|static_cast|struct|switch|synchronized|template|this|thread_local|throw|try|typedef|typeid|typename|union|using|virtual|volatile|while|xor)\b/g
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
className: "type",
|
|
101
|
-
regex: /\b(?:bool|char|char8_t|char16_t|char32_t|double|float|int|long|short|signed|unsigned|void|wchar_t)\b/g
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
className: "literal",
|
|
105
|
-
regex: /\b(?:NULL|nullptr|true|false)\b/g
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
className: "function",
|
|
109
|
-
regex: /\b[A-Za-z_]\w*(?=\s*\()/g
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
className: "number",
|
|
113
|
-
regex: /\b(?:0[xX][\da-fA-F']+|0[bB][01']+|\d[\d']*(?:\.\d[\d']*)?(?:[eE][+-]?\d[\d']*)?[uUlLfF]*)\b/g
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
className: "operator",
|
|
117
|
-
regex: /(?:<<=?|>>=?|->\*|->|\+\+|--|&&|\|\||==|!=|<=|>=|::|\+=|-=|\*=|\/=|%=|&=|\|=|\^=|[-+*/%=&|^!<>?:~])/g
|
|
118
|
-
}
|
|
119
|
-
], S = c({
|
|
120
|
-
name: "cpp",
|
|
121
|
-
aliases: [
|
|
122
|
-
"c++",
|
|
123
|
-
"cc",
|
|
124
|
-
"cxx",
|
|
125
|
-
"hpp"
|
|
126
|
-
],
|
|
127
|
-
tokenize(e) {
|
|
128
|
-
return v(e, x);
|
|
129
|
-
}
|
|
130
|
-
}), C = [{
|
|
131
|
-
className: "function",
|
|
132
|
-
regex: /\b[A-Za-z_]\w*(?=\s*\()/g
|
|
133
|
-
}], w = c({
|
|
134
|
-
name: "python",
|
|
135
|
-
aliases: ["py"],
|
|
136
|
-
tokenize(e, t) {
|
|
137
|
-
let n = _.tokenize(e, t), r = v(e, C, n);
|
|
138
|
-
return [...n, ...r];
|
|
139
|
-
}
|
|
140
|
-
}), T = {
|
|
141
|
-
tsx: { aliases: ["typescriptreact"] },
|
|
142
|
-
ts: { aliases: ["typescript"] },
|
|
143
|
-
css: { aliases: ["scss"] },
|
|
144
|
-
shell: { aliases: [
|
|
145
|
-
"bash",
|
|
146
|
-
"sh",
|
|
147
|
-
"zsh",
|
|
148
|
-
"shellscript"
|
|
149
|
-
] },
|
|
150
|
-
json: { aliases: [] },
|
|
151
|
-
cpp: { aliases: [
|
|
152
|
-
"c++",
|
|
153
|
-
"cc",
|
|
154
|
-
"cxx",
|
|
155
|
-
"hpp"
|
|
156
|
-
] },
|
|
157
|
-
python: { aliases: ["py"] },
|
|
158
|
-
cmake: { aliases: [] }
|
|
159
|
-
}, E = Object.keys(T), D = [...E, ...Object.values(T).flatMap(({ aliases: e }) => e)];
|
|
160
|
-
function O(e) {
|
|
161
|
-
return D.includes(e);
|
|
162
|
-
}
|
|
163
|
-
function k(e, t) {
|
|
164
|
-
return e.aliases.includes(t);
|
|
165
|
-
}
|
|
166
|
-
function A(e) {
|
|
167
|
-
for (let [t, n] of Object.entries(T)) if (k(n, e)) return t;
|
|
168
|
-
return e;
|
|
169
|
-
}
|
|
170
|
-
var j = s({
|
|
30
|
+
var b = {
|
|
31
|
+
shellscript: "shell",
|
|
32
|
+
scss: "css"
|
|
33
|
+
}, x = s({
|
|
171
34
|
languages: [
|
|
172
|
-
g,
|
|
173
35
|
h,
|
|
174
|
-
d,
|
|
175
36
|
m,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
p
|
|
37
|
+
u,
|
|
38
|
+
p,
|
|
39
|
+
d,
|
|
40
|
+
f
|
|
181
41
|
],
|
|
182
42
|
fallbackLanguage: "plaintext"
|
|
183
43
|
});
|
|
184
|
-
function
|
|
185
|
-
let n =
|
|
186
|
-
return l(
|
|
44
|
+
function S(e, t) {
|
|
45
|
+
let n = b[t] ?? t, { tokens: r } = x.tokenize(e, { lang: n });
|
|
46
|
+
return c(l(r));
|
|
187
47
|
}
|
|
188
48
|
//#endregion
|
|
189
49
|
//#region src/integrations/code-highlight/code-highlight.tsx
|
|
190
|
-
var
|
|
191
|
-
Block: () =>
|
|
192
|
-
Inline: () =>
|
|
50
|
+
var C = /* @__PURE__ */ e({
|
|
51
|
+
Block: () => T,
|
|
52
|
+
Inline: () => E,
|
|
193
53
|
InlineLink: () => n
|
|
194
54
|
});
|
|
195
|
-
function
|
|
55
|
+
function w(e, t) {
|
|
196
56
|
return a(() => {
|
|
197
|
-
if (!(t == null || e === "")) return /* @__PURE__ */ o("span", { dangerouslySetInnerHTML: { __html:
|
|
57
|
+
if (!(t == null || e === "")) return /* @__PURE__ */ o("span", { dangerouslySetInnerHTML: { __html: S(e, t) } });
|
|
198
58
|
}, [e, t]);
|
|
199
59
|
}
|
|
200
|
-
function
|
|
201
|
-
let i =
|
|
60
|
+
function T({ language: e, children: t, ...n }) {
|
|
61
|
+
let i = w(t, e);
|
|
202
62
|
return /* @__PURE__ */ o(r, {
|
|
203
63
|
...n,
|
|
204
64
|
language: e,
|
|
@@ -206,19 +66,19 @@ function F({ language: e, children: t, ...n }) {
|
|
|
206
66
|
children: t
|
|
207
67
|
});
|
|
208
68
|
}
|
|
209
|
-
|
|
210
|
-
function
|
|
211
|
-
let r =
|
|
69
|
+
T.displayName = "Code.Block";
|
|
70
|
+
function E({ language: e, children: t, ...n }) {
|
|
71
|
+
let r = w(t, e);
|
|
212
72
|
return /* @__PURE__ */ o(i, {
|
|
213
73
|
...n,
|
|
214
74
|
highlighted: r,
|
|
215
75
|
children: t
|
|
216
76
|
});
|
|
217
77
|
}
|
|
218
|
-
|
|
78
|
+
E.displayName = "Code.Inline";
|
|
219
79
|
//#endregion
|
|
220
80
|
//#region src/integrations/code-highlight/code-highlight.meta.ts
|
|
221
|
-
var
|
|
81
|
+
var D = {
|
|
222
82
|
name: "CodeHighlight",
|
|
223
83
|
category: t.display,
|
|
224
84
|
status: "experimental",
|
|
@@ -234,4 +94,4 @@ var L = {
|
|
|
234
94
|
}
|
|
235
95
|
};
|
|
236
96
|
//#endregion
|
|
237
|
-
export {
|
|
97
|
+
export { C as Code, g as SUPPORTED_LANGUAGES, D as codeHighlightMeta, y as isSupportedLanguage };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e, t } from "../meta-B8C51eyL.js";
|
|
2
|
-
import { C as n, S as r, a as i, b as a, c as o, d as s, g as c, h as l, i as u, l as d, n as f, o as p, p as m, r as h, t as g, v as _, w as v, x as y, y as b } from "../tabs-
|
|
2
|
+
import { C as n, S as r, a as i, b as a, c as o, d as s, g as c, h as l, i as u, l as d, n as f, o as p, p as m, r as h, t as g, v as _, w as v, x as y, y as b } from "../tabs-DqBFSqq6.js";
|
|
3
3
|
import { useId as x, useMemo as S, useState as C } from "react";
|
|
4
4
|
import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
5
5
|
import { useDisplayOptions2d as D, useDisplayOptions3d as O } from "@imfusion/sdk-react";
|