xmlui 0.9.9 → 0.9.11
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/{apiInterceptorWorker-DmE-x8Au.mjs → apiInterceptorWorker-BZP06llg.mjs} +1 -1
- package/dist/core-C-osEDc2.mjs +2 -0
- package/dist/{index-CmAO1zjU.mjs → index-CFJ5_K_a.mjs} +935 -1976
- package/dist/index.css +47 -145
- package/dist/language-server-web-worker.d.ts +0 -557
- package/dist/language-server-web-worker.mjs +1 -1
- package/dist/language-server.d.ts +0 -557
- package/dist/language-server.mjs +1 -1
- package/dist/{lint-DmJOJSJa.mjs → lint-CiMcsEWf.mjs} +84 -84
- package/dist/{parser-B3m9ZEAK.mjs → parser-mzWvH7dz.mjs} +12 -12
- package/dist/scripts/src/components/App/App.js +1 -0
- package/dist/scripts/src/components-core/InspectorContext.js +15 -4
- package/dist/server-common-DxRVCeIE.mjs +19124 -0
- package/dist/style.css +47 -45
- package/dist/xmlui-metadata.mjs +283 -388
- package/dist/xmlui-metadata.umd.js +285 -390
- package/dist/xmlui-parser.d.ts +0 -557
- package/dist/xmlui-parser.mjs +34 -34
- package/dist/xmlui-standalone.umd.js +9524 -14303
- package/dist/xmlui.d.ts +11 -557
- package/dist/xmlui.mjs +2 -1
- package/package.json +5 -2
- package/dist/core-XLM8cuFP.mjs +0 -7491
- package/dist/scripts/src/components-core/devtools/DevTools.js +0 -225
- package/dist/scripts/src/syntax/monaco/grammar.monacoLanguage.js +0 -286
- package/dist/scripts/src/syntax/monaco/xmlui-dark.js +0 -27
- package/dist/scripts/src/syntax/monaco/xmlui-light.js +0 -26
- package/dist/scripts/src/syntax/monaco/xmluiscript.monacoLanguage.js +0 -310
- package/dist/server-common-BKe32fY_.mjs +0 -8636
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { parseRegExpLiteral } from "@eslint-community/regexpp";
|
|
2
|
-
import { S as SyntaxKind, C as CharacterCodes } from "./parser-
|
|
2
|
+
import { S as SyntaxKind, C as CharacterCodes } from "./parser-mzWvH7dz.mjs";
|
|
3
3
|
const LinkTargetMd = [
|
|
4
4
|
{
|
|
5
5
|
value: "_self",
|
|
@@ -6239,89 +6239,89 @@ function implicitProp(name) {
|
|
|
6239
6239
|
return implicitPropNames.includes(name);
|
|
6240
6240
|
}
|
|
6241
6241
|
export {
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
|
|
6242
|
+
T_BLOCK_STATEMENT as $,
|
|
6243
|
+
T_IDENTIFIER as A,
|
|
6244
|
+
T_PREFIX_OP_EXPRESSION as B,
|
|
6245
|
+
COMPOUND_COMP_ID as C,
|
|
6246
|
+
T_FUNCTION_DECLARATION as D,
|
|
6247
|
+
T_ARROW_EXPRESSION as E,
|
|
6248
|
+
createXmlUiTreeNodeId as F,
|
|
6249
|
+
T_EMPTY_STATEMENT as G,
|
|
6250
|
+
T_SWITCH_STATEMENT as H,
|
|
6251
|
+
T_TRY_STATEMENT as I,
|
|
6252
|
+
T_THROW_STATEMENT as J,
|
|
6253
|
+
T_FOR_OF_STATEMENT as K,
|
|
6254
|
+
LintSeverity as L,
|
|
6255
|
+
T_FOR_IN_STATEMENT as M,
|
|
6256
|
+
T_FOR_STATEMENT as N,
|
|
6257
|
+
T_EXPRESSION_STATEMENT as O,
|
|
6258
|
+
ParserError2 as P,
|
|
6259
|
+
T_BREAK_STATEMENT as Q,
|
|
6260
|
+
T_CONTINUE_STATEMENT as R,
|
|
6261
|
+
T_DO_WHILE_STATEMENT as S,
|
|
6262
6262
|
T_CALCULATED_MEMBER_ACCESS_EXPRESSION as T,
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
|
|
6268
|
-
|
|
6269
|
-
|
|
6270
|
-
|
|
6271
|
-
|
|
6272
|
-
|
|
6273
|
-
|
|
6274
|
-
|
|
6275
|
-
|
|
6276
|
-
|
|
6277
|
-
|
|
6278
|
-
|
|
6279
|
-
|
|
6280
|
-
|
|
6281
|
-
|
|
6282
|
-
|
|
6283
|
-
|
|
6284
|
-
|
|
6285
|
-
|
|
6286
|
-
|
|
6287
|
-
|
|
6288
|
-
|
|
6289
|
-
|
|
6290
|
-
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
|
|
6295
|
-
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
-
|
|
6299
|
-
|
|
6300
|
-
|
|
6301
|
-
|
|
6302
|
-
|
|
6303
|
-
|
|
6304
|
-
|
|
6305
|
-
|
|
6306
|
-
|
|
6307
|
-
|
|
6308
|
-
|
|
6309
|
-
|
|
6310
|
-
|
|
6311
|
-
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
|
|
6319
|
-
|
|
6320
|
-
|
|
6321
|
-
|
|
6263
|
+
UCRegex as U,
|
|
6264
|
+
T_WHILE_STATEMENT as V,
|
|
6265
|
+
T_RETURN_STATEMENT as W,
|
|
6266
|
+
T_IF_STATEMENT as X,
|
|
6267
|
+
T_CONST_STATEMENT as Y,
|
|
6268
|
+
T_LET_STATEMENT as Z,
|
|
6269
|
+
T_ARROW_EXPRESSION_STATEMENT as _,
|
|
6270
|
+
codeBehindFileExtension as a,
|
|
6271
|
+
T_VAR_STATEMENT as a0,
|
|
6272
|
+
T_ASSIGNMENT_EXPRESSION as a1,
|
|
6273
|
+
T_LITERAL as a2,
|
|
6274
|
+
T_SPREAD_EXPRESSION as a3,
|
|
6275
|
+
T_FUNCTION_INVOCATION_EXPRESSION as a4,
|
|
6276
|
+
T_POSTFIX_OP_EXPRESSION as a5,
|
|
6277
|
+
T_CONDITIONAL_EXPRESSION as a6,
|
|
6278
|
+
T_BINARY_EXPRESSION as a7,
|
|
6279
|
+
T_UNARY_EXPRESSION as a8,
|
|
6280
|
+
T_OBJECT_LITERAL as a9,
|
|
6281
|
+
T_ARRAY_LITERAL as aa,
|
|
6282
|
+
T_SEQUENCE_EXPRESSION as ab,
|
|
6283
|
+
T_TEMPLATE_LITERAL_EXPRESSION as ac,
|
|
6284
|
+
T_VAR_DECLARATION as ad,
|
|
6285
|
+
T_DESTRUCTURE as ae,
|
|
6286
|
+
TextVariantElement as af,
|
|
6287
|
+
VariantPropsKeys as ag,
|
|
6288
|
+
variantOptionsMd as ah,
|
|
6289
|
+
scrollAnchoringValues as ai,
|
|
6290
|
+
buttonThemeNames as aj,
|
|
6291
|
+
iconPositionNames as ak,
|
|
6292
|
+
buttonVariantNames as al,
|
|
6293
|
+
triggerPositionNames as am,
|
|
6294
|
+
statusColorMd as an,
|
|
6295
|
+
placementMd as ao,
|
|
6296
|
+
httpMethodNames as ap,
|
|
6297
|
+
PARSED_MARK_PROP as aq,
|
|
6298
|
+
layoutOptionKeys as ar,
|
|
6299
|
+
viewportSizeNames as as,
|
|
6300
|
+
collectCodeBehindFromSource as at,
|
|
6301
|
+
removeCodeBehindTokensFromTree as au,
|
|
6302
|
+
LintDiagKind as b,
|
|
6303
|
+
componentFileExtension as c,
|
|
6304
|
+
lintErrorsComponent as d,
|
|
6305
|
+
lint as e,
|
|
6306
|
+
errorMessages as f,
|
|
6307
|
+
getLintSeverity as g,
|
|
6308
|
+
CORE_NAMESPACE_VALUE as h,
|
|
6309
|
+
labelPositionMd as i,
|
|
6310
|
+
orientationOptionMd as j,
|
|
6311
|
+
alignmentOptionValues as k,
|
|
6312
|
+
lintApp as l,
|
|
6313
|
+
moduleFileExtension as m,
|
|
6314
|
+
nodeToComponentDef as n,
|
|
6315
|
+
onPrefixRegex as o,
|
|
6316
|
+
printComponentLints as p,
|
|
6317
|
+
LinkTargetMd as q,
|
|
6318
|
+
alignmentOptionMd as r,
|
|
6319
|
+
iconPositionMd as s,
|
|
6320
|
+
buttonTypesMd as t,
|
|
6321
|
+
sizeMd as u,
|
|
6322
6322
|
validationStatusMd as v,
|
|
6323
|
-
|
|
6324
|
-
|
|
6325
|
-
|
|
6326
|
-
|
|
6323
|
+
buttonThemeMd as w,
|
|
6324
|
+
buttonVariantMd as x,
|
|
6325
|
+
Parser as y,
|
|
6326
|
+
T_MEMBER_ACCESS_EXPRESSION as z
|
|
6327
6327
|
};
|
|
@@ -1169,19 +1169,19 @@ export {
|
|
|
1169
1169
|
SyntaxKind as S,
|
|
1170
1170
|
Diag_Invalid_Character as a,
|
|
1171
1171
|
Diag_Unterminated_String_Literal as b,
|
|
1172
|
-
|
|
1172
|
+
Diag_Unterminated_Comment as c,
|
|
1173
1173
|
diagnosticCategoryName as d,
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1174
|
+
Diag_Unterminated_CData as e,
|
|
1175
|
+
Diag_Unterminated_Script as f,
|
|
1176
|
+
Diag_End_Token_Expected as g,
|
|
1177
|
+
Diag_CloseNodeStart_Token_Expected as h,
|
|
1178
|
+
Diag_Tag_Identifier_Expected as i,
|
|
1179
|
+
Diag_Attr_Value_Expected as j,
|
|
1180
|
+
Diag_Eq_Token_Expected as k,
|
|
1181
|
+
Diag_OpenNodeStart_Token_Expected as l,
|
|
1182
|
+
Diag_End_Or_Close_Token_Expected as m,
|
|
1183
|
+
Diag_Attr_Identifier_Expected as n,
|
|
1184
|
+
createXmlUiParser as o,
|
|
1185
1185
|
parseXmlUiMarkup as p,
|
|
1186
1186
|
createScanner as q,
|
|
1187
1187
|
isIdentifierStart as r,
|
|
@@ -88,6 +88,7 @@ exports.AppMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
88
88
|
[`boxShadow-header-${COMP}`]: "$boxShadow-spread",
|
|
89
89
|
[`boxShadow-navPanel-${COMP}`]: "$boxShadow-spread",
|
|
90
90
|
[`scroll-padding-block-Pages`]: "$space-4",
|
|
91
|
+
[`backgroundColor-content-App`]: "$backgroundColor",
|
|
91
92
|
light: {
|
|
92
93
|
// --- No light-specific theme vars
|
|
93
94
|
},
|
|
@@ -16,15 +16,18 @@ const classnames_1 = __importDefault(require("classnames"));
|
|
|
16
16
|
const ButtonNative_1 = require("../components/Button/ButtonNative");
|
|
17
17
|
const IconNative_1 = __importDefault(require("../components/Icon/IconNative"));
|
|
18
18
|
const InspectorButton_module_scss_1 = __importDefault(require("./InspectorButton.module.scss"));
|
|
19
|
-
const
|
|
19
|
+
const ComponentRegistryContext_1 = require("../components/ComponentRegistryContext");
|
|
20
20
|
// --- The context object that is used to store the inspector information.
|
|
21
21
|
exports.InspectorContext = (0, react_1.createContext)(null);
|
|
22
22
|
function InspectorProvider({ children, sources, }) {
|
|
23
|
+
const { root } = (0, ThemeContext_1.useTheme)();
|
|
23
24
|
const [inspectable, setInspectable] = (0, react_1.useState)({});
|
|
24
25
|
const [inspectedNode, setInspectedNode] = (0, react_1.useState)(null);
|
|
25
26
|
const [showCode, setShowCode] = (0, react_1.useState)(false);
|
|
26
27
|
const [devToolsSize, setDevToolsSize] = (0, react_1.useState)(0);
|
|
27
28
|
const [devToolsSide, setDevToolsSide] = (0, react_1.useState)("bottom");
|
|
29
|
+
const componentRegistry = (0, ComponentRegistryContext_1.useComponentRegistry)();
|
|
30
|
+
const devToolsEntry = componentRegistry.lookupComponentRenderer("XMLUIDevtools.DevTools");
|
|
28
31
|
const contextValue = (0, react_1.useMemo)(() => {
|
|
29
32
|
return {
|
|
30
33
|
sources,
|
|
@@ -50,14 +53,19 @@ function InspectorProvider({ children, sources, }) {
|
|
|
50
53
|
return ret;
|
|
51
54
|
});
|
|
52
55
|
},
|
|
56
|
+
inspectedNode,
|
|
57
|
+
setIsOpen: setShowCode,
|
|
53
58
|
devToolsSize,
|
|
54
59
|
setDevToolsSize,
|
|
55
60
|
devToolsSide,
|
|
56
61
|
setDevToolsSide,
|
|
57
62
|
devToolsEnabled: showCode,
|
|
58
63
|
};
|
|
59
|
-
}, [devToolsSide, devToolsSize,
|
|
60
|
-
return ((0, jsx_runtime_1.jsxs)(exports.InspectorContext.Provider, { value: contextValue, children: [children,
|
|
64
|
+
}, [devToolsSide, devToolsSize, sources, inspectedNode, showCode]);
|
|
65
|
+
return ((0, jsx_runtime_1.jsxs)(exports.InspectorContext.Provider, { value: contextValue, children: [children, process.env.VITE_USER_COMPONENTS_Inspect !== "false" &&
|
|
66
|
+
showCode &&
|
|
67
|
+
inspectedNode !== null &&
|
|
68
|
+
(0, react_dom_1.createPortal)(devToolsEntry === null || devToolsEntry === void 0 ? void 0 : devToolsEntry.renderer({}), root), process.env.VITE_USER_COMPONENTS_Inspect !== "false" &&
|
|
61
69
|
inspectable &&
|
|
62
70
|
Object.values(inspectable).map((item) => {
|
|
63
71
|
return ((0, jsx_runtime_1.jsx)(InspectButton, { setShowCode: setShowCode, inspectId: item.inspectId, node: item.node, setInspectedNode: setInspectedNode }, item.inspectId + +"-" + item.key));
|
|
@@ -130,13 +138,16 @@ function InspectButton({ inspectId, node, setInspectedNode, setShowCode, }) {
|
|
|
130
138
|
hoverRef.current = false;
|
|
131
139
|
setVisible(false);
|
|
132
140
|
}, onClick: () => {
|
|
133
|
-
setShowCode(true);
|
|
134
141
|
setInspectedNode(node);
|
|
142
|
+
setShowCode(true);
|
|
135
143
|
}, children: (0, jsx_runtime_1.jsx)(IconNative_1.default, { name: "inspect", size: "md" }) })), root) }));
|
|
136
144
|
}
|
|
137
145
|
function useDevTools() {
|
|
138
146
|
const context = (0, react_1.useContext)(exports.InspectorContext);
|
|
139
147
|
return {
|
|
148
|
+
inspectedNode: context === null || context === void 0 ? void 0 : context.inspectedNode,
|
|
149
|
+
sources: context === null || context === void 0 ? void 0 : context.sources,
|
|
150
|
+
setIsOpen: context === null || context === void 0 ? void 0 : context.setIsOpen,
|
|
140
151
|
devToolsSize: context === null || context === void 0 ? void 0 : context.devToolsSize,
|
|
141
152
|
setDevToolsSize: context === null || context === void 0 ? void 0 : context.setDevToolsSize,
|
|
142
153
|
devToolsSide: context === null || context === void 0 ? void 0 : context.devToolsSide,
|