xmlui 0.9.44 → 0.9.45
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/lib/{index-ODN_c1bh.mjs → apiInterceptorWorker-DzZYVTsV.mjs} +1920 -1362
- package/dist/lib/{index-Cc1nHN3N.mjs → index-erPY1EdW.mjs} +7175 -7056
- package/dist/lib/index.css +1 -1
- package/dist/lib/language-server-web-worker.mjs +1 -1
- package/dist/lib/language-server.mjs +1 -1
- package/dist/lib/{metadata-utils-DI1nTN3y.mjs → metadata-utils-Cf8v_9Lr.mjs} +7 -7
- package/dist/lib/{server-common-C3t9MFME.mjs → server-common-kMTAr-QU.mjs} +210 -178
- package/dist/lib/{transform-BV--wKhF.mjs → transform-DU7v4c9h.mjs} +1193 -1158
- package/dist/lib/xmlui-parser.d.ts +10 -3
- package/dist/lib/xmlui-parser.mjs +31 -30
- package/dist/lib/{xmlui-serializer-D5UV-ftG.mjs → xmlui-serializer-B3OkRzrr.mjs} +9 -9
- package/dist/lib/xmlui.d.ts +10 -1
- package/dist/lib/xmlui.mjs +12 -11
- package/dist/metadata/style.css +1 -1
- package/dist/metadata/xmlui-metadata.mjs +4070 -4040
- package/dist/metadata/xmlui-metadata.umd.js +10 -10
- package/dist/scripts/package.json +2 -1
- package/dist/scripts/src/components/App/App.js +140 -27
- package/dist/scripts/src/components/App/AppNative.js +2 -1
- package/dist/scripts/src/components/App/IndexerContext.js +44 -0
- package/dist/scripts/src/components/App/SearchContext.js +35 -0
- package/dist/scripts/src/components/CodeBlock/CodeBlockNative.js +41 -44
- package/dist/scripts/src/components/CodeBlock/highlight-code.js +4 -1
- package/dist/scripts/src/components/Markdown/MarkdownNative.js +63 -27
- package/dist/scripts/src/components/NestedApp/NestedApp.js +4 -3
- package/dist/scripts/src/components/NestedApp/NestedAppNative.js +61 -66
- package/dist/scripts/src/components/TableOfContents/TableOfContents.js +9 -1
- package/dist/scripts/src/components/Text/Text.js +1 -1
- package/dist/scripts/src/components/Theme/ThemeNative.js +5 -0
- package/dist/scripts/src/components-core/loader/DataLoader.js +9 -1
- package/dist/scripts/src/components-core/rendering/Container.js +7 -0
- package/dist/scripts/src/parsers/xmlui-parser/diagnostics.js +10 -4
- package/dist/scripts/src/parsers/xmlui-parser/parser.js +74 -30
- package/dist/standalone/xmlui-standalone.es.d.ts +17 -2
- package/dist/standalone/xmlui-standalone.umd.js +197 -197
- package/package.json +2 -1
- package/dist/lib/apiInterceptorWorker-B62b9K2p.mjs +0 -563
|
@@ -565,8 +565,14 @@ export declare const Diag_OpenNodeStart_Token_Expected: {
|
|
|
565
565
|
|
|
566
566
|
export declare const Diag_Tag_Identifier_Expected: {
|
|
567
567
|
readonly category: DiagnosticCategory.Error;
|
|
568
|
-
readonly code: ErrCodes.
|
|
569
|
-
readonly message: "A tag
|
|
568
|
+
readonly code: ErrCodes.expTagName;
|
|
569
|
+
readonly message: "A tag name expected.";
|
|
570
|
+
};
|
|
571
|
+
|
|
572
|
+
export declare const Diag_Tag_Name_Afterd_Namespace_Expected: {
|
|
573
|
+
readonly category: DiagnosticCategory.Error;
|
|
574
|
+
readonly code: ErrCodes.tagNameExpAfterNamespace;
|
|
575
|
+
readonly message: "A tag name expected after a namespaces.";
|
|
570
576
|
};
|
|
571
577
|
|
|
572
578
|
export declare const Diag_Unterminated_CData: {
|
|
@@ -627,7 +633,7 @@ declare interface EmptyStatement extends ScripNodeBase {
|
|
|
627
633
|
export declare enum ErrCodes {
|
|
628
634
|
onlyOneElem = "U002",
|
|
629
635
|
expTagOpen = "U003",
|
|
630
|
-
|
|
636
|
+
expTagName = "U004",
|
|
631
637
|
expCloseStart = "U005",
|
|
632
638
|
expEndOrClose = "U006",
|
|
633
639
|
tagNameMismatch = "U007",
|
|
@@ -637,6 +643,7 @@ export declare enum ErrCodes {
|
|
|
637
643
|
expAttrValue = "U011",
|
|
638
644
|
duplAttr = "U012",
|
|
639
645
|
uppercaseAttr = "U013",
|
|
646
|
+
tagNameExpAfterNamespace = "U014",
|
|
640
647
|
invalidChar = "W001",
|
|
641
648
|
untermStr = "W002",
|
|
642
649
|
untermComment = "W007",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { b as
|
|
1
|
+
import { x as t, z as s, C as i, n, j as r, h as o, m as _, g as d, k as g, a as p, l as E, i as c, o as m, e as D, c as x, f as C, b as l, D as S, E as f, P as U, S as N, U as T, s as A, p as P, d as k, r as y, H as L, w as O, t as h, v as I, u as M, A as u, y as v, q as F, B as R, G as X, F as b } from "./transform-DU7v4c9h.mjs";
|
|
2
|
+
import { b as q, L as B, X as H, a as V, c as j, g as w, e as z, l as G, d as W, m as J, p as Q } from "./xmlui-serializer-B3OkRzrr.mjs";
|
|
3
3
|
export {
|
|
4
4
|
t as COMPOUND_COMP_ID,
|
|
5
5
|
s as CORE_NAMESPACE_VALUE,
|
|
@@ -13,39 +13,40 @@ export {
|
|
|
13
13
|
p as Diag_Invalid_Character,
|
|
14
14
|
E as Diag_OpenNodeStart_Token_Expected,
|
|
15
15
|
c as Diag_Tag_Identifier_Expected,
|
|
16
|
+
m as Diag_Tag_Name_Afterd_Namespace_Expected,
|
|
16
17
|
D as Diag_Unterminated_CData,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
x as Diag_Unterminated_Comment,
|
|
19
|
+
C as Diag_Unterminated_Script,
|
|
20
|
+
l as Diag_Unterminated_String_Literal,
|
|
21
|
+
S as DiagnosticCategory,
|
|
22
|
+
f as ErrCodes,
|
|
23
|
+
q as LintDiagKind,
|
|
24
|
+
B as LintSeverity,
|
|
24
25
|
U as ParserError,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
N as SyntaxKind,
|
|
27
|
+
T as UCRegex,
|
|
28
|
+
H as XmlUiHelper,
|
|
28
29
|
V as codeBehindFileExtension,
|
|
29
30
|
j as componentFileExtension,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
A as createScanner,
|
|
32
|
+
P as createXmlUiParser,
|
|
33
|
+
k as diagnosticCategoryName,
|
|
34
|
+
y as errorMessages,
|
|
35
|
+
L as findTokenAtPos,
|
|
35
36
|
w as getLintSeverity,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
O as getSyntaxKindStrRepr,
|
|
38
|
+
h as isIdentifierStart,
|
|
39
|
+
I as isInnerNode,
|
|
40
|
+
M as isTrivia,
|
|
40
41
|
z as lint,
|
|
41
42
|
G as lintApp,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
43
|
+
W as lintErrorsComponent,
|
|
44
|
+
J as moduleFileExtension,
|
|
45
|
+
u as nodeToComponentDef,
|
|
46
|
+
v as onPrefixRegex,
|
|
47
|
+
F as parseXmlUiMarkup,
|
|
48
|
+
Q as printComponentLints,
|
|
49
|
+
R as stripOnPrefix,
|
|
50
|
+
X as tagNameNodesWithoutErrorsMatch,
|
|
51
|
+
b as toDbgString
|
|
51
52
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z as A, x as j } from "./transform-DU7v4c9h.mjs";
|
|
2
2
|
const k = "xmlui", P = "xmlui.xs", D = "xs";
|
|
3
|
-
var
|
|
4
|
-
function
|
|
3
|
+
var x = /* @__PURE__ */ ((l) => (l[l.Skip = 0] = "Skip", l[l.Warning = 1] = "Warning", l[l.Error = 2] = "Error", l))(x || {}), V = /* @__PURE__ */ ((l) => (l[l.UnrecognisedProp = 0] = "UnrecognisedProp", l))(V || {});
|
|
4
|
+
function z(l) {
|
|
5
5
|
if (!l)
|
|
6
6
|
return 1;
|
|
7
7
|
switch (l.toLowerCase()) {
|
|
@@ -15,7 +15,7 @@ function L(l) {
|
|
|
15
15
|
return console.warn(`Invalid lint severity option '${l}'. Must be one of: 'warning', 'error', 'skip'. Defaulting to 'warning'.`), 1;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function L({
|
|
19
19
|
appDef: l,
|
|
20
20
|
metadataProvider: e
|
|
21
21
|
}) {
|
|
@@ -98,13 +98,13 @@ function C({
|
|
|
98
98
|
}
|
|
99
99
|
function g(l, e, t) {
|
|
100
100
|
const r = l.type.startsWith(A) ? l.type.slice(A.length + 1) : l.type, n = e.getComponent(r);
|
|
101
|
-
if (n !== null && !n.allowArbitraryProps &&
|
|
101
|
+
if (n !== null && !n.allowArbitraryProps && w(l, n, t), !l.children)
|
|
102
102
|
return t;
|
|
103
103
|
for (const s of l.children)
|
|
104
104
|
g(s, e, t);
|
|
105
105
|
return t;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function w(l, e, t) {
|
|
108
108
|
const r = Object.keys(l.props ?? {}).filter((a) => !e.getAttr(a)), n = Object.keys(l.events ?? {}).filter((a) => !e.getEvent(a)), s = Object.keys(l.api ?? {}).filter((a) => !e.getApi(a));
|
|
109
109
|
r.push(...n), r.push(...s);
|
|
110
110
|
for (const a of r)
|
|
@@ -475,15 +475,15 @@ class M {
|
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
477
|
export {
|
|
478
|
-
|
|
478
|
+
x as L,
|
|
479
479
|
M as X,
|
|
480
480
|
P as a,
|
|
481
481
|
V as b,
|
|
482
482
|
k as c,
|
|
483
483
|
I as d,
|
|
484
484
|
C as e,
|
|
485
|
-
|
|
486
|
-
|
|
485
|
+
z as g,
|
|
486
|
+
L as l,
|
|
487
487
|
D as m,
|
|
488
488
|
T as p
|
|
489
489
|
};
|
package/dist/lib/xmlui.d.ts
CHANGED
|
@@ -871,7 +871,7 @@ declare type EntrypointCompilation = CompilationUnit & {
|
|
|
871
871
|
declare enum ErrCodes {
|
|
872
872
|
onlyOneElem = "U002",
|
|
873
873
|
expTagOpen = "U003",
|
|
874
|
-
|
|
874
|
+
expTagName = "U004",
|
|
875
875
|
expCloseStart = "U005",
|
|
876
876
|
expEndOrClose = "U006",
|
|
877
877
|
tagNameMismatch = "U007",
|
|
@@ -881,6 +881,7 @@ declare enum ErrCodes {
|
|
|
881
881
|
expAttrValue = "U011",
|
|
882
882
|
duplAttr = "U012",
|
|
883
883
|
uppercaseAttr = "U013",
|
|
884
|
+
tagNameExpAfterNamespace = "U014",
|
|
884
885
|
invalidChar = "W001",
|
|
885
886
|
untermStr = "W002",
|
|
886
887
|
untermComment = "W007",
|
|
@@ -1532,6 +1533,12 @@ declare interface ScriptParserErrorMessage {
|
|
|
1532
1533
|
|
|
1533
1534
|
declare type ScriptParsingErrorCodes = "W001" | "W002" | "W003" | "W004" | "W005" | "W006" | "W007" | "W008" | "W009" | "W010" | "W011" | "W012" | "W013" | "W014" | "W015" | "W016" | "W017" | "W018" | "W019" | "W020" | "W021" | "W022" | "W023" | "W024" | "W025" | "W026" | "W027" | "W028" | "W029" | "W030" | "W031";
|
|
1534
1535
|
|
|
1536
|
+
declare type SearchEntry = {
|
|
1537
|
+
path: string;
|
|
1538
|
+
title: string;
|
|
1539
|
+
content: string;
|
|
1540
|
+
};
|
|
1541
|
+
|
|
1535
1542
|
declare type SEQUENCE_EXPRESSION = typeof T_SEQUENCE_EXPRESSION;
|
|
1536
1543
|
|
|
1537
1544
|
declare interface SequenceExpression extends ExpressionBase {
|
|
@@ -2094,6 +2101,8 @@ export declare function useDevTools(): {
|
|
|
2094
2101
|
|
|
2095
2102
|
export declare const useLogger: () => LogContextType;
|
|
2096
2103
|
|
|
2104
|
+
export declare const useSearchContextContent: () => Record<string, SearchEntry>;
|
|
2105
|
+
|
|
2097
2106
|
export declare function useTheme(): ThemeScope;
|
|
2098
2107
|
|
|
2099
2108
|
declare type ValidationStatus = (typeof validationStatusValues)[number];
|
package/dist/lib/xmlui.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { y as e, A as o, B as t, E as r, I as n, L as p, H as i, N as l, z as u, i as d, h as m, S as
|
|
2
|
-
import { X
|
|
1
|
+
import { y as e, A as o, B as t, E as r, I as n, L as p, H as i, N as l, z as u, i as d, h as m, S as C, b as x, k as T, l as c, D as S, F as g, G as A, V as h, C as B, c as I, e as b, f as k, w as v, j as L, p as V, s as f, t as y, n as E, q as H, v as M, J as N, u as R, x as D } from "./index-erPY1EdW.mjs";
|
|
2
|
+
import { X } from "./xmlui-serializer-B3OkRzrr.mjs";
|
|
3
3
|
export {
|
|
4
4
|
e as ApiInterceptorProvider,
|
|
5
5
|
o as AppRoot,
|
|
@@ -12,18 +12,18 @@ export {
|
|
|
12
12
|
u as Spinner,
|
|
13
13
|
d as Splitter,
|
|
14
14
|
m as Stack,
|
|
15
|
-
|
|
15
|
+
C as StandaloneApp,
|
|
16
16
|
x as StandaloneExtensionManager,
|
|
17
|
-
|
|
17
|
+
T as TabItem,
|
|
18
18
|
c as Tabs,
|
|
19
19
|
S as Text,
|
|
20
20
|
g as TextBox,
|
|
21
21
|
A as ToneChangerButton,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
h as VisuallyHidden,
|
|
23
|
+
X as XmlUiHelper,
|
|
24
|
+
B as builtInThemes,
|
|
25
|
+
I as createComponentRenderer,
|
|
26
|
+
b as createMetadata,
|
|
27
27
|
k as d,
|
|
28
28
|
v as errReportComponent,
|
|
29
29
|
L as getColor,
|
|
@@ -33,6 +33,7 @@ export {
|
|
|
33
33
|
E as useColors,
|
|
34
34
|
H as useDevTools,
|
|
35
35
|
M as useLogger,
|
|
36
|
-
N as
|
|
37
|
-
R as
|
|
36
|
+
N as useSearchContextContent,
|
|
37
|
+
R as useTheme,
|
|
38
|
+
D as xmlUiMarkupToComponent
|
|
38
39
|
};
|