xmlui 0.9.12 → 0.9.13
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-dYrfbzdh.mjs → apiInterceptorWorker-BUaYCWe6.mjs} +1 -1
- package/dist/{index-Dh2MThrK.mjs → index-DiCe0Ajo.mjs} +182 -75
- package/dist/index.css +49 -43
- package/dist/scripts/src/components/Form/FormNative.js +8 -2
- package/dist/scripts/src/components/Form/formActions.js +5 -4
- package/dist/scripts/src/components/FormItem/FormItemNative.js +16 -12
- package/dist/scripts/src/components/Markdown/Markdown.js +1 -0
- package/dist/scripts/src/components/Markdown/MarkdownNative.js +13 -10
- package/dist/scripts/src/components/SelectionStore/SelectionStore.js +1 -1
- package/dist/scripts/src/components/SelectionStore/SelectionStoreNative.js +10 -7
- package/dist/scripts/src/components-core/script-runner/eval-tree-async.js +2 -2
- package/dist/scripts/src/components-core/script-runner/eval-tree-sync.js +10 -2
- package/dist/style.css +49 -43
- package/dist/xmlui-metadata.mjs +40 -20
- package/dist/xmlui-metadata.umd.js +40 -20
- package/dist/xmlui-standalone.umd.js +291 -177
- package/dist/xmlui.d.ts +12 -0
- package/dist/xmlui.mjs +2 -1
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
12
12
|
var _executor, _DeferredPromise_instances, decorate_fn, _a2;
|
|
13
13
|
import { delay as delay$1, HttpResponse, http } from "msw";
|
|
14
14
|
import { isArray, isObject as isObject$1, mapValues } from "lodash-es";
|
|
15
|
-
import { r as runEventHandlerCode, g as getDate, d as delay, m as miscellaneousUtils, a as dateFunctions, o as orderBy, T as ThrowStatementError } from "./index-
|
|
15
|
+
import { r as runEventHandlerCode, g as getDate, d as delay, m as miscellaneousUtils, a as dateFunctions, o as orderBy, T as ThrowStatementError } from "./index-DiCe0Ajo.mjs";
|
|
16
16
|
import Dexie from "dexie";
|
|
17
17
|
var POSITIONALS_EXP = /(%?)(%([sdijo]))/g;
|
|
18
18
|
function serializePositional(positional, flag) {
|
|
@@ -6565,6 +6565,7 @@ function evalArrayLiteral(evaluator, thisStack, expr, evalContext, thread) {
|
|
|
6565
6565
|
}
|
|
6566
6566
|
}
|
|
6567
6567
|
setExprValue(expr, { value }, thread);
|
|
6568
|
+
thisStack.push(value);
|
|
6568
6569
|
return value;
|
|
6569
6570
|
}
|
|
6570
6571
|
function evalObjectLiteral(evaluator, thisStack, expr, evalContext, thread) {
|
|
@@ -6616,10 +6617,17 @@ function evalBinary(evaluator, thisStack, expr, evalContext, thread) {
|
|
|
6616
6617
|
const l = (_a = getExprValue(expr.left, thread)) == null ? void 0 : _a.value;
|
|
6617
6618
|
if (expr.op === "&&" && !l) {
|
|
6618
6619
|
setExprValue(expr, { value: l }, thread);
|
|
6620
|
+
thisStack.push(l);
|
|
6619
6621
|
return l;
|
|
6620
6622
|
}
|
|
6621
6623
|
if (expr.op === "||" && l) {
|
|
6622
6624
|
setExprValue(expr, { value: l }, thread);
|
|
6625
|
+
thisStack.push(l);
|
|
6626
|
+
return l;
|
|
6627
|
+
}
|
|
6628
|
+
if (expr.op === "??" && l !== null && l !== void 0) {
|
|
6629
|
+
setExprValue(expr, { value: l }, thread);
|
|
6630
|
+
thisStack.push(l);
|
|
6623
6631
|
return l;
|
|
6624
6632
|
}
|
|
6625
6633
|
evaluator(thisStack, expr.right, evalContext, thread);
|
|
@@ -6668,10 +6676,10 @@ function evalFunctionInvocation(evaluator, thisStack, expr, evalContext, thread)
|
|
|
6668
6676
|
var _a, _b;
|
|
6669
6677
|
let functionObj;
|
|
6670
6678
|
let implicitContextObject = null;
|
|
6671
|
-
if (expr.obj.type === T_MEMBER_ACCESS_EXPRESSION
|
|
6679
|
+
if (expr.obj.type === T_MEMBER_ACCESS_EXPRESSION) {
|
|
6672
6680
|
const hostObject = evaluator(thisStack, expr.obj.obj, evalContext, thread);
|
|
6673
6681
|
functionObj = evalMemberAccessCore(thisStack, expr.obj, evalContext, thread);
|
|
6674
|
-
if (hostObject == null ? void 0 : hostObject._SUPPORT_IMPLICIT_CONTEXT) {
|
|
6682
|
+
if (expr.obj.obj.type === T_IDENTIFIER && (hostObject == null ? void 0 : hostObject._SUPPORT_IMPLICIT_CONTEXT)) {
|
|
6675
6683
|
implicitContextObject = hostObject;
|
|
6676
6684
|
}
|
|
6677
6685
|
} else {
|
|
@@ -7642,9 +7650,13 @@ const SelectionStore = ({
|
|
|
7642
7650
|
const [items, setItems] = useState(selectedItems);
|
|
7643
7651
|
const valueInitializedRef = useRef(false);
|
|
7644
7652
|
const refreshSelection = useEvent((allItems = EMPTY_ARRAY) => {
|
|
7645
|
-
|
|
7646
|
-
|
|
7647
|
-
|
|
7653
|
+
const safeAllItems = allItems || EMPTY_ARRAY;
|
|
7654
|
+
const safeSelectedItems = selectedItems || EMPTY_ARRAY;
|
|
7655
|
+
setItems(safeAllItems);
|
|
7656
|
+
let value = safeAllItems.filter(
|
|
7657
|
+
(item2) => !!safeSelectedItems.find((si) => si && item2 && si[idKey] === item2[idKey])
|
|
7658
|
+
);
|
|
7659
|
+
if (!isEqual(safeSelectedItems, value) || !valueInitializedRef.current) {
|
|
7648
7660
|
valueInitializedRef.current = true;
|
|
7649
7661
|
updateState({
|
|
7650
7662
|
value
|
|
@@ -7652,7 +7664,8 @@ const SelectionStore = ({
|
|
|
7652
7664
|
}
|
|
7653
7665
|
});
|
|
7654
7666
|
const setSelectedRowIds = useEvent((rowIds) => {
|
|
7655
|
-
|
|
7667
|
+
const safeItems = items || EMPTY_ARRAY;
|
|
7668
|
+
updateState({ value: safeItems.filter((item2) => rowIds.includes(item2[idKey])) });
|
|
7656
7669
|
});
|
|
7657
7670
|
const clearSelection = useEvent(() => {
|
|
7658
7671
|
setSelectedRowIds(EMPTY_ARRAY);
|
|
@@ -11419,7 +11432,7 @@ const itemsComponentRenderer = createComponentRenderer(COMP$Y, ItemsMd, (rendere
|
|
|
11419
11432
|
});
|
|
11420
11433
|
const COMP$X = "SelectionStore";
|
|
11421
11434
|
const SelectionStoreMd = createMetadata({
|
|
11422
|
-
status: "
|
|
11435
|
+
status: "experimental",
|
|
11423
11436
|
description: `The \`${COMP$X}\` is a non-visual component that may wrap components (items) and manage their selection state to accommodate the usage of other actions.`,
|
|
11424
11437
|
props: {
|
|
11425
11438
|
idKey: d(
|
|
@@ -13165,6 +13178,7 @@ const formControlTypesMd = [
|
|
|
13165
13178
|
description: "Custom control specified in children"
|
|
13166
13179
|
}
|
|
13167
13180
|
];
|
|
13181
|
+
const UNBOUND_FIELD_SUFFIX = "__UNBOUND_FIELD__";
|
|
13168
13182
|
var FormActionKind = /* @__PURE__ */ ((FormActionKind2) => {
|
|
13169
13183
|
FormActionKind2["FIELD_LOST_FOCUS"] = "FormActionKind:FIELD_LOST_FOCUS";
|
|
13170
13184
|
FormActionKind2["FIELD_VALUE_CHANGED"] = "FormActionKind:FIELD_VALUE_CHANGED";
|
|
@@ -13256,7 +13270,10 @@ function formReset(originalSubject) {
|
|
|
13256
13270
|
}
|
|
13257
13271
|
};
|
|
13258
13272
|
}
|
|
13259
|
-
function backendValidationArrived({
|
|
13273
|
+
function backendValidationArrived({
|
|
13274
|
+
generalValidationResults = [],
|
|
13275
|
+
fieldValidationResults = {}
|
|
13276
|
+
}) {
|
|
13260
13277
|
return {
|
|
13261
13278
|
type: "FormActionKind:BACKEND_VALIDATION_ARRIVED",
|
|
13262
13279
|
payload: {
|
|
@@ -17003,7 +17020,13 @@ const Form = forwardRef(function({
|
|
|
17003
17020
|
const prevFocused = document.activeElement;
|
|
17004
17021
|
dispatch(formSubmitting());
|
|
17005
17022
|
try {
|
|
17006
|
-
|
|
17023
|
+
const filteredSubject = Object.entries(formState.subject).reduce((acc, [key, value]) => {
|
|
17024
|
+
if (!key.endsWith(UNBOUND_FIELD_SUFFIX)) {
|
|
17025
|
+
acc[key] = value;
|
|
17026
|
+
}
|
|
17027
|
+
return acc;
|
|
17028
|
+
}, {});
|
|
17029
|
+
await (onSubmit == null ? void 0 : onSubmit(filteredSubject, {
|
|
17007
17030
|
passAsDefaultBody: true
|
|
17008
17031
|
}));
|
|
17009
17032
|
dispatch(formSubmitted());
|
|
@@ -18479,6 +18502,8 @@ const FormItem = memo(function FormItem2({
|
|
|
18479
18502
|
inputRenderer,
|
|
18480
18503
|
...rest
|
|
18481
18504
|
}) {
|
|
18505
|
+
const defaultId = useId();
|
|
18506
|
+
const [formItemId, setFormItemId] = useState(bindTo);
|
|
18482
18507
|
const labelWidthValue = useFormContextPart((value2) => labelWidth || value2.itemLabelWidth);
|
|
18483
18508
|
const labelBreakValue = useFormContextPart(
|
|
18484
18509
|
(value2) => labelBreak2 !== void 0 ? labelBreak2 : value2.itemLabelBreak
|
|
@@ -18487,33 +18512,35 @@ const FormItem = memo(function FormItem2({
|
|
|
18487
18512
|
(value2) => labelPosition || value2.itemLabelPosition || DEFAULT_LABEL_POSITIONS[type]
|
|
18488
18513
|
);
|
|
18489
18514
|
const initialValueFromSubject = useFormContextPart(
|
|
18490
|
-
(value2) => getByPath(value2.originalSubject,
|
|
18515
|
+
(value2) => getByPath(value2.originalSubject, formItemId)
|
|
18491
18516
|
);
|
|
18492
18517
|
const initialValue = initialValueFromSubject === void 0 ? rest.initialValue : initialValueFromSubject;
|
|
18493
|
-
const value = useFormContextPart((value2) => getByPath(value2.subject,
|
|
18494
|
-
const validationResult = useFormContextPart((value2) => value2.validationResults[
|
|
18518
|
+
const value = useFormContextPart((value2) => getByPath(value2.subject, formItemId));
|
|
18519
|
+
const validationResult = useFormContextPart((value2) => value2.validationResults[formItemId]);
|
|
18495
18520
|
const dispatch = useFormContextPart((value2) => value2.dispatch);
|
|
18496
18521
|
const formEnabled = useFormContextPart((value2) => value2.enabled);
|
|
18497
18522
|
const isEnabled2 = enabled2 && formEnabled;
|
|
18498
18523
|
useEffect(() => {
|
|
18499
|
-
|
|
18524
|
+
const newId = bindTo || `${defaultId}${UNBOUND_FIELD_SUFFIX}`;
|
|
18525
|
+
setFormItemId(newId);
|
|
18526
|
+
dispatch(fieldInitialized(newId, initialValue));
|
|
18500
18527
|
}, [bindTo, dispatch, initialValue]);
|
|
18501
|
-
useValidation(validations, onValidate, value, dispatch,
|
|
18528
|
+
useValidation(validations, onValidate, value, dispatch, formItemId, customValidationsDebounce);
|
|
18502
18529
|
const onStateChange = useCallback(
|
|
18503
18530
|
({ value: value2 }, options2) => {
|
|
18504
18531
|
if (!(options2 == null ? void 0 : options2.initial)) {
|
|
18505
|
-
dispatch(fieldChanged(
|
|
18532
|
+
dispatch(fieldChanged(formItemId, value2));
|
|
18506
18533
|
}
|
|
18507
18534
|
},
|
|
18508
|
-
[
|
|
18535
|
+
[formItemId, dispatch]
|
|
18509
18536
|
);
|
|
18510
18537
|
useEffect(() => {
|
|
18511
18538
|
return () => {
|
|
18512
|
-
dispatch(fieldRemoved(
|
|
18539
|
+
dispatch(fieldRemoved(formItemId));
|
|
18513
18540
|
};
|
|
18514
|
-
}, [
|
|
18541
|
+
}, [formItemId, dispatch]);
|
|
18515
18542
|
const { validationStatus, isHelperTextShown } = useValidationDisplay(
|
|
18516
|
-
|
|
18543
|
+
formItemId,
|
|
18517
18544
|
value,
|
|
18518
18545
|
validationResult,
|
|
18519
18546
|
validationMode
|
|
@@ -18731,10 +18758,10 @@ const FormItem = memo(function FormItem2({
|
|
|
18731
18758
|
}
|
|
18732
18759
|
}
|
|
18733
18760
|
const onFocus = useEvent(() => {
|
|
18734
|
-
dispatch(fieldFocused(
|
|
18761
|
+
dispatch(fieldFocused(formItemId));
|
|
18735
18762
|
});
|
|
18736
18763
|
const onBlur = useEvent(() => {
|
|
18737
|
-
dispatch(fieldLostFocus(
|
|
18764
|
+
dispatch(fieldLostFocus(formItemId));
|
|
18738
18765
|
});
|
|
18739
18766
|
const [animateContainerRef] = useAutoAnimate({ duration: 100 });
|
|
18740
18767
|
return /* @__PURE__ */ jsx(
|
|
@@ -20982,13 +21009,13 @@ const spinnerComponentRenderer = createComponentRenderer(
|
|
|
20982
21009
|
}
|
|
20983
21010
|
);
|
|
20984
21011
|
const themeVars$a = `'{"accentColor-Blockquote": "var(--xmlui-accentColor-Blockquote)", "accentWidth-Blockquote": "var(--xmlui-accentWidth-Blockquote)", "backgroundColor-Blockquote": "var(--xmlui-backgroundColor-Blockquote)", "paddingLeft-Blockquote": "var(--xmlui-paddingLeft-Blockquote)", "borderRadius-Blockquote": "var(--xmlui-borderRadius-Blockquote)", "marginTop-Blockquote": "var(--xmlui-marginTop-Blockquote)", "marginBottom-Blockquote": "var(--xmlui-marginBottom-Blockquote)", "backgroundColor-Admonition": "var(--xmlui-backgroundColor-Admonition)", "paddingLeft-Admonition": "var(--xmlui-paddingLeft-Admonition)", "borderRadius-Admonition": "var(--xmlui-borderRadius-Admonition)", "iconSize-Admonition": "var(--xmlui-iconSize-Admonition)", "marginTop-Admonition": "var(--xmlui-marginTop-Admonition)", "marginBottom-Admonition": "var(--xmlui-marginBottom-Admonition)", "marginLeft-Admonition-content": "var(--xmlui-marginLeft-Admonition-content)", "marginTop-HtmlVideo": "var(--xmlui-marginTop-HtmlVideo)", "marginBottom-HtmlVideo": "var(--xmlui-marginBottom-HtmlVideo)"}'`;
|
|
20985
|
-
const markdownContent = "
|
|
20986
|
-
const blockquote = "
|
|
20987
|
-
const blockquoteContainer = "
|
|
20988
|
-
const admonitionBlockquote = "
|
|
20989
|
-
const admonitionContainer = "
|
|
20990
|
-
const admonitionContent = "
|
|
20991
|
-
const admonitionIcon = "
|
|
21012
|
+
const markdownContent = "_markdownContent_1anzp_13";
|
|
21013
|
+
const blockquote = "_blockquote_1anzp_13";
|
|
21014
|
+
const blockquoteContainer = "_blockquoteContainer_1anzp_31";
|
|
21015
|
+
const admonitionBlockquote = "_admonitionBlockquote_1anzp_34";
|
|
21016
|
+
const admonitionContainer = "_admonitionContainer_1anzp_40";
|
|
21017
|
+
const admonitionContent = "_admonitionContent_1anzp_45";
|
|
21018
|
+
const admonitionIcon = "_admonitionIcon_1anzp_48";
|
|
20992
21019
|
const styles$l = {
|
|
20993
21020
|
themeVars: themeVars$a,
|
|
20994
21021
|
markdownContent,
|
|
@@ -21006,21 +21033,22 @@ const themeVarsTfoot = `'{"backgroundColor-HtmlTfoot": "var(--xmlui-backgroundCo
|
|
|
21006
21033
|
const themeVarsTh = `'{"backgroundColor-HtmlTh": "var(--xmlui-backgroundColor-HtmlTh)", "textColor-HtmlTh": "var(--xmlui-textColor-HtmlTh)", "fontWeight-HtmlTh": "var(--xmlui-fontWeight-HtmlTh)", "fontSize-HtmlTh": "var(--xmlui-fontSize-HtmlTh)", "backgroundColor-HtmlTh--hover": "var(--xmlui-backgroundColor-HtmlTh--hover)", "border-HtmlTh": "var(--xmlui-border-HtmlTh)", "borderHorizontal-HtmlTh": "var(--xmlui-borderHorizontal-HtmlTh, var(--xmlui-border-HtmlTh))", "borderVertical-HtmlTh": "var(--xmlui-borderVertical-HtmlTh, var(--xmlui-border-HtmlTh))", "borderLeft-HtmlTh": "var(--xmlui-borderLeft-HtmlTh, var(--xmlui-borderHorizontal-HtmlTh, var(--xmlui-border-HtmlTh)))", "borderRight-HtmlTh": "var(--xmlui-borderRight-HtmlTh, var(--xmlui-borderHorizontal-HtmlTh, var(--xmlui-border-HtmlTh)))", "borderTop-HtmlTh": "var(--xmlui-borderTop-HtmlTh, var(--xmlui-borderVertical-HtmlTh, var(--xmlui-border-HtmlTh)))", "borderBottom-HtmlTh": "var(--xmlui-borderBottom-HtmlTh, var(--xmlui-borderVertical-HtmlTh, var(--xmlui-border-HtmlTh)))", "borderWidth-HtmlTh": "var(--xmlui-borderWidth-HtmlTh)", "borderHorizontalWidth-HtmlTh": "var(--xmlui-borderHorizontalWidth-HtmlTh, var(--xmlui-borderWidth-HtmlTh))", "borderLeftWidth-HtmlTh": "var(--xmlui-borderLeftWidth-HtmlTh, var(--xmlui-borderHorizontalWidth-HtmlTh, var(--xmlui-borderWidth-HtmlTh)))", "borderRightWidth-HtmlTh": "var(--xmlui-borderRightWidth-HtmlTh, var(--xmlui-borderHorizontalWidth-HtmlTh, var(--xmlui-borderWidth-HtmlTh)))", "borderVerticalWidth-HtmlTh": "var(--xmlui-borderVerticalWidth-HtmlTh, var(--xmlui-borderWidth-HtmlTh))", "borderTopWidth-HtmlTh": "var(--xmlui-borderTopWidth-HtmlTh, var(--xmlui-borderVerticalWidth-HtmlTh, var(--xmlui-borderWidth-HtmlTh)))", "borderBottomWidth-HtmlTh": "var(--xmlui-borderBottomWidth-HtmlTh, var(--xmlui-borderVerticalWidth-HtmlTh, var(--xmlui-borderWidth-HtmlTh)))", "borderStyle-HtmlTh": "var(--xmlui-borderStyle-HtmlTh)", "borderHorizontalStyle-HtmlTh": "var(--xmlui-borderHorizontalStyle-HtmlTh, var(--xmlui-borderStyle-HtmlTh))", "borderLeftStyle-HtmlTh": "var(--xmlui-borderLeftStyle-HtmlTh, var(--xmlui-borderHorizontalStyle-HtmlTh, var(--xmlui-borderStyle-HtmlTh)))", "borderRightStyle-HtmlTh": "var(--xmlui-borderRightStyle-HtmlTh, var(--xmlui-borderHorizontalStyle-HtmlTh, var(--xmlui-borderStyle-HtmlTh)))", "borderVerticalStyle-HtmlTh": "var(--xmlui-borderVerticalStyle-HtmlTh, var(--xmlui-borderStyle-HtmlTh))", "borderTopStyle-HtmlTh": "var(--xmlui-borderTopStyle-HtmlTh, var(--xmlui-borderVerticalStyle-HtmlTh, var(--xmlui-borderStyle-HtmlTh)))", "borderBottomStyle-HtmlTh": "var(--xmlui-borderBottomStyle-HtmlTh, var(--xmlui-borderVerticalStyle-HtmlTh, var(--xmlui-borderStyle-HtmlTh)))", "borderColor-HtmlTh": "var(--xmlui-borderColor-HtmlTh)", "borderHorizontalColor-HtmlTh": "var(--xmlui-borderHorizontalColor-HtmlTh, var(--xmlui-borderColor-HtmlTh))", "borderLeftColor-HtmlTh": "var(--xmlui-borderLeftColor-HtmlTh, var(--xmlui-borderHorizontalColor-HtmlTh, var(--xmlui-borderColor-HtmlTh)))", "borderRightColor-HtmlTh": "var(--xmlui-borderRightColor-HtmlTh, var(--xmlui-borderHorizontalColor-HtmlTh, var(--xmlui-borderColor-HtmlTh)))", "borderVerticalColor-HtmlTh": "var(--xmlui-borderVerticalColor-HtmlTh, var(--xmlui-borderColor-HtmlTh))", "borderTopColor-HtmlTh": "var(--xmlui-borderTopColor-HtmlTh, var(--xmlui-borderVerticalColor-HtmlTh, var(--xmlui-borderColor-HtmlTh)))", "borderBottomColor-HtmlTh": "var(--xmlui-borderBottomColor-HtmlTh, var(--xmlui-borderVerticalColor-HtmlTh, var(--xmlui-borderColor-HtmlTh)))", "borderStartStartRadius-HtmlTh": "var(--xmlui-borderStartStartRadius-HtmlTh, var(--xmlui-borderRadius-HtmlTh))", "borderStartEndRadius-HtmlTh": "var(--xmlui-borderStartEndRadius-HtmlTh, var(--xmlui-borderRadius-HtmlTh))", "borderEndStartRadius-HtmlTh": "var(--xmlui-borderEndStartRadius-HtmlTh, var(--xmlui-borderRadius-HtmlTh))", "borderEndEndRadius-HtmlTh": "var(--xmlui-borderEndEndRadius-HtmlTh, var(--xmlui-borderRadius-HtmlTh))", "padding-HtmlTh": "var(--xmlui-padding-HtmlTh)", "paddingHorizontal-HtmlTh": "var(--xmlui-paddingHorizontal-HtmlTh, var(--xmlui-padding-HtmlTh))", "paddingVertical-HtmlTh": "var(--xmlui-paddingVertical-HtmlTh, var(--xmlui-padding-HtmlTh))", "paddingLeft-HtmlTh": "var(--xmlui-paddingLeft-HtmlTh, var(--xmlui-paddingHorizontal-HtmlTh, var(--xmlui-padding-HtmlTh)))", "paddingRight-HtmlTh": "var(--xmlui-paddingRight-HtmlTh, var(--xmlui-paddingHorizontal-HtmlTh, var(--xmlui-padding-HtmlTh)))", "paddingTop-HtmlTh": "var(--xmlui-paddingTop-HtmlTh, var(--xmlui-paddingVertical-HtmlTh, var(--xmlui-padding-HtmlTh)))", "paddingBottom-HtmlTh": "var(--xmlui-paddingBottom-HtmlTh, var(--xmlui-paddingVertical-HtmlTh, var(--xmlui-padding-HtmlTh)))"}'`;
|
|
21007
21034
|
const themeVarsTr = `'{"backgroundColor-HtmlTr": "var(--xmlui-backgroundColor-HtmlTr)", "backgroundColor-HtmlTr--hover": "var(--xmlui-backgroundColor-HtmlTr--hover)", "backgroundColor-even-HtmlTr": "var(--xmlui-backgroundColor-even-HtmlTr)", "textColor-HtmlTr": "var(--xmlui-textColor-HtmlTr)", "textColor-HtmlTr--hover": "var(--xmlui-textColor-HtmlTr--hover)", "fontSize-HtmlTr": "var(--xmlui-fontSize-HtmlTr)", "fontWeight-HtmlTr": "var(--xmlui-fontWeight-HtmlTr)", "border-HtmlTr": "var(--xmlui-border-HtmlTr)", "borderHorizontal-HtmlTr": "var(--xmlui-borderHorizontal-HtmlTr, var(--xmlui-border-HtmlTr))", "borderVertical-HtmlTr": "var(--xmlui-borderVertical-HtmlTr, var(--xmlui-border-HtmlTr))", "borderLeft-HtmlTr": "var(--xmlui-borderLeft-HtmlTr, var(--xmlui-borderHorizontal-HtmlTr, var(--xmlui-border-HtmlTr)))", "borderRight-HtmlTr": "var(--xmlui-borderRight-HtmlTr, var(--xmlui-borderHorizontal-HtmlTr, var(--xmlui-border-HtmlTr)))", "borderTop-HtmlTr": "var(--xmlui-borderTop-HtmlTr, var(--xmlui-borderVertical-HtmlTr, var(--xmlui-border-HtmlTr)))", "borderBottom-HtmlTr": "var(--xmlui-borderBottom-HtmlTr, var(--xmlui-borderVertical-HtmlTr, var(--xmlui-border-HtmlTr)))", "borderWidth-HtmlTr": "var(--xmlui-borderWidth-HtmlTr)", "borderHorizontalWidth-HtmlTr": "var(--xmlui-borderHorizontalWidth-HtmlTr, var(--xmlui-borderWidth-HtmlTr))", "borderLeftWidth-HtmlTr": "var(--xmlui-borderLeftWidth-HtmlTr, var(--xmlui-borderHorizontalWidth-HtmlTr, var(--xmlui-borderWidth-HtmlTr)))", "borderRightWidth-HtmlTr": "var(--xmlui-borderRightWidth-HtmlTr, var(--xmlui-borderHorizontalWidth-HtmlTr, var(--xmlui-borderWidth-HtmlTr)))", "borderVerticalWidth-HtmlTr": "var(--xmlui-borderVerticalWidth-HtmlTr, var(--xmlui-borderWidth-HtmlTr))", "borderTopWidth-HtmlTr": "var(--xmlui-borderTopWidth-HtmlTr, var(--xmlui-borderVerticalWidth-HtmlTr, var(--xmlui-borderWidth-HtmlTr)))", "borderBottomWidth-HtmlTr": "var(--xmlui-borderBottomWidth-HtmlTr, var(--xmlui-borderVerticalWidth-HtmlTr, var(--xmlui-borderWidth-HtmlTr)))", "borderStyle-HtmlTr": "var(--xmlui-borderStyle-HtmlTr)", "borderHorizontalStyle-HtmlTr": "var(--xmlui-borderHorizontalStyle-HtmlTr, var(--xmlui-borderStyle-HtmlTr))", "borderLeftStyle-HtmlTr": "var(--xmlui-borderLeftStyle-HtmlTr, var(--xmlui-borderHorizontalStyle-HtmlTr, var(--xmlui-borderStyle-HtmlTr)))", "borderRightStyle-HtmlTr": "var(--xmlui-borderRightStyle-HtmlTr, var(--xmlui-borderHorizontalStyle-HtmlTr, var(--xmlui-borderStyle-HtmlTr)))", "borderVerticalStyle-HtmlTr": "var(--xmlui-borderVerticalStyle-HtmlTr, var(--xmlui-borderStyle-HtmlTr))", "borderTopStyle-HtmlTr": "var(--xmlui-borderTopStyle-HtmlTr, var(--xmlui-borderVerticalStyle-HtmlTr, var(--xmlui-borderStyle-HtmlTr)))", "borderBottomStyle-HtmlTr": "var(--xmlui-borderBottomStyle-HtmlTr, var(--xmlui-borderVerticalStyle-HtmlTr, var(--xmlui-borderStyle-HtmlTr)))", "borderColor-HtmlTr": "var(--xmlui-borderColor-HtmlTr)", "borderHorizontalColor-HtmlTr": "var(--xmlui-borderHorizontalColor-HtmlTr, var(--xmlui-borderColor-HtmlTr))", "borderLeftColor-HtmlTr": "var(--xmlui-borderLeftColor-HtmlTr, var(--xmlui-borderHorizontalColor-HtmlTr, var(--xmlui-borderColor-HtmlTr)))", "borderRightColor-HtmlTr": "var(--xmlui-borderRightColor-HtmlTr, var(--xmlui-borderHorizontalColor-HtmlTr, var(--xmlui-borderColor-HtmlTr)))", "borderVerticalColor-HtmlTr": "var(--xmlui-borderVerticalColor-HtmlTr, var(--xmlui-borderColor-HtmlTr))", "borderTopColor-HtmlTr": "var(--xmlui-borderTopColor-HtmlTr, var(--xmlui-borderVerticalColor-HtmlTr, var(--xmlui-borderColor-HtmlTr)))", "borderBottomColor-HtmlTr": "var(--xmlui-borderBottomColor-HtmlTr, var(--xmlui-borderVerticalColor-HtmlTr, var(--xmlui-borderColor-HtmlTr)))", "borderStartStartRadius-HtmlTr": "var(--xmlui-borderStartStartRadius-HtmlTr, var(--xmlui-borderRadius-HtmlTr))", "borderStartEndRadius-HtmlTr": "var(--xmlui-borderStartEndRadius-HtmlTr, var(--xmlui-borderRadius-HtmlTr))", "borderEndStartRadius-HtmlTr": "var(--xmlui-borderEndStartRadius-HtmlTr, var(--xmlui-borderRadius-HtmlTr))", "borderEndEndRadius-HtmlTr": "var(--xmlui-borderEndEndRadius-HtmlTr, var(--xmlui-borderRadius-HtmlTr))"}'`;
|
|
21008
21035
|
const themeVarsTd = `'{"backgroundColor-HtmlTd": "var(--xmlui-backgroundColor-HtmlTd)", "text-align-HtmlTd": "var(--xmlui-text-align-HtmlTd)", "verticalAlign-HtmlTd": "var(--xmlui-verticalAlign-HtmlTd)", "fontSize-HtmlTd": "var(--xmlui-fontSize-HtmlTd)", "fontWeight-HtmlTd": "var(--xmlui-fontWeight-HtmlTd)", "border-HtmlTd": "var(--xmlui-border-HtmlTd)", "borderHorizontal-HtmlTd": "var(--xmlui-borderHorizontal-HtmlTd, var(--xmlui-border-HtmlTd))", "borderVertical-HtmlTd": "var(--xmlui-borderVertical-HtmlTd, var(--xmlui-border-HtmlTd))", "borderLeft-HtmlTd": "var(--xmlui-borderLeft-HtmlTd, var(--xmlui-borderHorizontal-HtmlTd, var(--xmlui-border-HtmlTd)))", "borderRight-HtmlTd": "var(--xmlui-borderRight-HtmlTd, var(--xmlui-borderHorizontal-HtmlTd, var(--xmlui-border-HtmlTd)))", "borderTop-HtmlTd": "var(--xmlui-borderTop-HtmlTd, var(--xmlui-borderVertical-HtmlTd, var(--xmlui-border-HtmlTd)))", "borderBottom-HtmlTd": "var(--xmlui-borderBottom-HtmlTd, var(--xmlui-borderVertical-HtmlTd, var(--xmlui-border-HtmlTd)))", "borderWidth-HtmlTd": "var(--xmlui-borderWidth-HtmlTd)", "borderHorizontalWidth-HtmlTd": "var(--xmlui-borderHorizontalWidth-HtmlTd, var(--xmlui-borderWidth-HtmlTd))", "borderLeftWidth-HtmlTd": "var(--xmlui-borderLeftWidth-HtmlTd, var(--xmlui-borderHorizontalWidth-HtmlTd, var(--xmlui-borderWidth-HtmlTd)))", "borderRightWidth-HtmlTd": "var(--xmlui-borderRightWidth-HtmlTd, var(--xmlui-borderHorizontalWidth-HtmlTd, var(--xmlui-borderWidth-HtmlTd)))", "borderVerticalWidth-HtmlTd": "var(--xmlui-borderVerticalWidth-HtmlTd, var(--xmlui-borderWidth-HtmlTd))", "borderTopWidth-HtmlTd": "var(--xmlui-borderTopWidth-HtmlTd, var(--xmlui-borderVerticalWidth-HtmlTd, var(--xmlui-borderWidth-HtmlTd)))", "borderBottomWidth-HtmlTd": "var(--xmlui-borderBottomWidth-HtmlTd, var(--xmlui-borderVerticalWidth-HtmlTd, var(--xmlui-borderWidth-HtmlTd)))", "borderStyle-HtmlTd": "var(--xmlui-borderStyle-HtmlTd)", "borderHorizontalStyle-HtmlTd": "var(--xmlui-borderHorizontalStyle-HtmlTd, var(--xmlui-borderStyle-HtmlTd))", "borderLeftStyle-HtmlTd": "var(--xmlui-borderLeftStyle-HtmlTd, var(--xmlui-borderHorizontalStyle-HtmlTd, var(--xmlui-borderStyle-HtmlTd)))", "borderRightStyle-HtmlTd": "var(--xmlui-borderRightStyle-HtmlTd, var(--xmlui-borderHorizontalStyle-HtmlTd, var(--xmlui-borderStyle-HtmlTd)))", "borderVerticalStyle-HtmlTd": "var(--xmlui-borderVerticalStyle-HtmlTd, var(--xmlui-borderStyle-HtmlTd))", "borderTopStyle-HtmlTd": "var(--xmlui-borderTopStyle-HtmlTd, var(--xmlui-borderVerticalStyle-HtmlTd, var(--xmlui-borderStyle-HtmlTd)))", "borderBottomStyle-HtmlTd": "var(--xmlui-borderBottomStyle-HtmlTd, var(--xmlui-borderVerticalStyle-HtmlTd, var(--xmlui-borderStyle-HtmlTd)))", "borderColor-HtmlTd": "var(--xmlui-borderColor-HtmlTd)", "borderHorizontalColor-HtmlTd": "var(--xmlui-borderHorizontalColor-HtmlTd, var(--xmlui-borderColor-HtmlTd))", "borderLeftColor-HtmlTd": "var(--xmlui-borderLeftColor-HtmlTd, var(--xmlui-borderHorizontalColor-HtmlTd, var(--xmlui-borderColor-HtmlTd)))", "borderRightColor-HtmlTd": "var(--xmlui-borderRightColor-HtmlTd, var(--xmlui-borderHorizontalColor-HtmlTd, var(--xmlui-borderColor-HtmlTd)))", "borderVerticalColor-HtmlTd": "var(--xmlui-borderVerticalColor-HtmlTd, var(--xmlui-borderColor-HtmlTd))", "borderTopColor-HtmlTd": "var(--xmlui-borderTopColor-HtmlTd, var(--xmlui-borderVerticalColor-HtmlTd, var(--xmlui-borderColor-HtmlTd)))", "borderBottomColor-HtmlTd": "var(--xmlui-borderBottomColor-HtmlTd, var(--xmlui-borderVerticalColor-HtmlTd, var(--xmlui-borderColor-HtmlTd)))", "borderStartStartRadius-HtmlTd": "var(--xmlui-borderStartStartRadius-HtmlTd, var(--xmlui-borderRadius-HtmlTd))", "borderStartEndRadius-HtmlTd": "var(--xmlui-borderStartEndRadius-HtmlTd, var(--xmlui-borderRadius-HtmlTd))", "borderEndStartRadius-HtmlTd": "var(--xmlui-borderEndStartRadius-HtmlTd, var(--xmlui-borderRadius-HtmlTd))", "borderEndEndRadius-HtmlTd": "var(--xmlui-borderEndEndRadius-HtmlTd, var(--xmlui-borderRadius-HtmlTd))", "padding-HtmlTd": "var(--xmlui-padding-HtmlTd)", "paddingHorizontal-HtmlTd": "var(--xmlui-paddingHorizontal-HtmlTd, var(--xmlui-padding-HtmlTd))", "paddingVertical-HtmlTd": "var(--xmlui-paddingVertical-HtmlTd, var(--xmlui-padding-HtmlTd))", "paddingLeft-HtmlTd": "var(--xmlui-paddingLeft-HtmlTd, var(--xmlui-paddingHorizontal-HtmlTd, var(--xmlui-padding-HtmlTd)))", "paddingRight-HtmlTd": "var(--xmlui-paddingRight-HtmlTd, var(--xmlui-paddingHorizontal-HtmlTd, var(--xmlui-padding-HtmlTd)))", "paddingTop-HtmlTd": "var(--xmlui-paddingTop-HtmlTd, var(--xmlui-paddingVertical-HtmlTd, var(--xmlui-padding-HtmlTd)))", "paddingBottom-HtmlTd": "var(--xmlui-paddingBottom-HtmlTd, var(--xmlui-paddingVertical-HtmlTd, var(--xmlui-padding-HtmlTd)))"}'`;
|
|
21009
|
-
const themeVarsList = `'{"marginTop-HtmlOl": "var(--xmlui-marginTop-HtmlOl)", "marginBottom-HtmlOl": "var(--xmlui-marginBottom-HtmlOl)", "marginTop-HtmlUl": "var(--xmlui-marginTop-HtmlUl)", "marginBottom-HtmlUl": "var(--xmlui-marginBottom-HtmlUl)"}'`;
|
|
21036
|
+
const themeVarsList = `'{"marginTop-HtmlOl": "var(--xmlui-marginTop-HtmlOl)", "marginBottom-HtmlOl": "var(--xmlui-marginBottom-HtmlOl)", "marginTop-HtmlUl": "var(--xmlui-marginTop-HtmlUl)", "marginBottom-HtmlUl": "var(--xmlui-marginBottom-HtmlUl)", "marginTop-HtmlLi": "var(--xmlui-marginTop-HtmlLi)", "marginBottom-HtmlLi": "var(--xmlui-marginBottom-HtmlLi)"}'`;
|
|
21010
21037
|
const themeVarsHeading = `'{"marginTop-HtmlHeading": "var(--xmlui-marginTop-HtmlHeading)", "marginBottom-HtmlHeading": "var(--xmlui-marginBottom-HtmlHeading)"}'`;
|
|
21011
21038
|
const themeVarsVideo = `'{"marginTop-HtmlVideo": "var(--xmlui-marginTop-HtmlVideo)", "marginBottom-HtmlVideo": "var(--xmlui-marginBottom-HtmlVideo)"}'`;
|
|
21012
21039
|
const themeVarsDetails = `'{"marginTop-HtmlDetails": "var(--xmlui-marginTop-HtmlDetails)", "marginBottom-HtmlDetails": "var(--xmlui-marginBottom-HtmlDetails)"}'`;
|
|
21013
|
-
const htmlTable = "
|
|
21014
|
-
const htmlThead = "
|
|
21015
|
-
const htmlTbody = "
|
|
21016
|
-
const htmlTfoot = "
|
|
21017
|
-
const htmlTh = "
|
|
21018
|
-
const htmlTr = "
|
|
21019
|
-
const htmlTd = "
|
|
21020
|
-
const htmlUl = "
|
|
21021
|
-
const htmlOl = "
|
|
21022
|
-
const
|
|
21023
|
-
const
|
|
21040
|
+
const htmlTable = "_htmlTable_ei3dh_13";
|
|
21041
|
+
const htmlThead = "_htmlThead_ei3dh_49";
|
|
21042
|
+
const htmlTbody = "_htmlTbody_ei3dh_82";
|
|
21043
|
+
const htmlTfoot = "_htmlTfoot_ei3dh_90";
|
|
21044
|
+
const htmlTh = "_htmlTh_ei3dh_49";
|
|
21045
|
+
const htmlTr = "_htmlTr_ei3dh_130";
|
|
21046
|
+
const htmlTd = "_htmlTd_ei3dh_167";
|
|
21047
|
+
const htmlUl = "_htmlUl_ei3dh_200";
|
|
21048
|
+
const htmlOl = "_htmlOl_ei3dh_205";
|
|
21049
|
+
const htmlLi = "_htmlLi_ei3dh_210";
|
|
21050
|
+
const htmlVideo = "_htmlVideo_ei3dh_228";
|
|
21051
|
+
const htmlDetails = "_htmlDetails_ei3dh_233";
|
|
21024
21052
|
const styles$k = {
|
|
21025
21053
|
themeVarsTable,
|
|
21026
21054
|
themeVarsThead,
|
|
@@ -21042,6 +21070,7 @@ const styles$k = {
|
|
|
21042
21070
|
htmlTd,
|
|
21043
21071
|
htmlUl,
|
|
21044
21072
|
htmlOl,
|
|
21073
|
+
htmlLi,
|
|
21045
21074
|
htmlVideo,
|
|
21046
21075
|
htmlDetails
|
|
21047
21076
|
};
|
|
@@ -21067,6 +21096,9 @@ const Markdown = memo(function Markdown2({
|
|
|
21067
21096
|
video({ children: children2, node, ...props }) {
|
|
21068
21097
|
return /* @__PURE__ */ jsx("video", { className: styles$k.htmlVideo, ...props, children: children2 });
|
|
21069
21098
|
},
|
|
21099
|
+
img({ children: children2, node, ...props }) {
|
|
21100
|
+
return /* @__PURE__ */ jsx("img", { className: styles$k.htmlImage, ...props, children: children2 });
|
|
21101
|
+
},
|
|
21070
21102
|
h1({ children: children2 }) {
|
|
21071
21103
|
return /* @__PURE__ */ jsx(Heading, { level: "h1", children: children2 });
|
|
21072
21104
|
},
|
|
@@ -21106,14 +21138,14 @@ const Markdown = memo(function Markdown2({
|
|
|
21106
21138
|
blockquote({ children: children2 }) {
|
|
21107
21139
|
return /* @__PURE__ */ jsx(Blockquote, { children: children2 });
|
|
21108
21140
|
},
|
|
21109
|
-
ol({ children: children2 }) {
|
|
21110
|
-
return /* @__PURE__ */ jsx("ol", { className: styles$k.htmlOl, children: children2 });
|
|
21141
|
+
ol({ children: children2, node, ...props }) {
|
|
21142
|
+
return /* @__PURE__ */ jsx("ol", { className: styles$k.htmlOl, ...props, children: children2 });
|
|
21111
21143
|
},
|
|
21112
|
-
ul({ children: children2 }) {
|
|
21113
|
-
return /* @__PURE__ */ jsx("ul", { className: styles$k.htmlUl, children: children2 });
|
|
21144
|
+
ul({ children: children2, node, ...props }) {
|
|
21145
|
+
return /* @__PURE__ */ jsx("ul", { className: styles$k.htmlUl, ...props, children: children2 });
|
|
21114
21146
|
},
|
|
21115
|
-
li({ children: children2 }) {
|
|
21116
|
-
return /* @__PURE__ */ jsx("li", { children: children2 });
|
|
21147
|
+
li({ children: children2, node, ...props }) {
|
|
21148
|
+
return /* @__PURE__ */ jsx("li", { className: styles$k.htmlLi, ...props, children: children2 });
|
|
21117
21149
|
},
|
|
21118
21150
|
hr() {
|
|
21119
21151
|
return /* @__PURE__ */ jsx(HorizontalRule, {});
|
|
@@ -21122,9 +21154,6 @@ const Markdown = memo(function Markdown2({
|
|
|
21122
21154
|
const allowedProps = ["style", "disabled", "active", "icon", "onClick"];
|
|
21123
21155
|
return /* @__PURE__ */ jsx(LocalLink, { to: href, ...allowedProps, children: children2 });
|
|
21124
21156
|
},
|
|
21125
|
-
img({ src, alt }) {
|
|
21126
|
-
return /* @__PURE__ */ jsx(Image, { src, alt });
|
|
21127
|
-
},
|
|
21128
21157
|
// TODO: somehow get the label from the containing li element
|
|
21129
21158
|
input({ disabled: disabled2, checked }) {
|
|
21130
21159
|
return /* @__PURE__ */ jsx(
|
|
@@ -21305,6 +21334,7 @@ const MarkdownMd = createMetadata({
|
|
|
21305
21334
|
"marginBottom-Blockquote": "1rem",
|
|
21306
21335
|
"marginBottom-Text-codefence": ".5rem",
|
|
21307
21336
|
"marginBottom-Text-markdown": ".5rem",
|
|
21337
|
+
"marginTop-HtmlLi": "-0.5rem",
|
|
21308
21338
|
light: {
|
|
21309
21339
|
// --- No light-specific theme vars
|
|
21310
21340
|
},
|
|
@@ -31454,7 +31484,7 @@ function IconProvider({ children }) {
|
|
|
31454
31484
|
/* @__PURE__ */ jsx("svg", { style: { display: "none" }, ref: spriteRootRef })
|
|
31455
31485
|
] });
|
|
31456
31486
|
}
|
|
31457
|
-
const version = "0.9.
|
|
31487
|
+
const version = "0.9.13";
|
|
31458
31488
|
const ApiInterceptorContext = createContext(null);
|
|
31459
31489
|
function useApiInterceptorContext() {
|
|
31460
31490
|
return useContext(ApiInterceptorContext);
|
|
@@ -31913,6 +31943,7 @@ async function evalArrayLiteralAsync(evaluator, thisStack, expr, evalContext, th
|
|
|
31913
31943
|
}
|
|
31914
31944
|
}
|
|
31915
31945
|
setExprValue(expr, { value }, thread);
|
|
31946
|
+
thisStack.push(value);
|
|
31916
31947
|
return value;
|
|
31917
31948
|
}
|
|
31918
31949
|
async function evalObjectLiteralAsync(evaluator, thisStack, expr, evalContext, thread) {
|
|
@@ -32026,9 +32057,8 @@ async function evalFunctionInvocationAsync(evaluator, thisStack, expr, evalConte
|
|
|
32026
32057
|
var _a, _b;
|
|
32027
32058
|
let functionObj;
|
|
32028
32059
|
let implicitContextObject = null;
|
|
32029
|
-
let hostObject;
|
|
32030
32060
|
if (expr.obj.type === T_MEMBER_ACCESS_EXPRESSION) {
|
|
32031
|
-
hostObject = await evaluator(thisStack, expr.obj.obj, evalContext, thread);
|
|
32061
|
+
const hostObject = await evaluator(thisStack, expr.obj.obj, evalContext, thread);
|
|
32032
32062
|
await completeExprValue(expr.obj.obj, thread);
|
|
32033
32063
|
functionObj = evalMemberAccessCore(thisStack, expr.obj, evalContext, thread);
|
|
32034
32064
|
if (expr.obj.obj.type === T_IDENTIFIER && (hostObject == null ? void 0 : hostObject._SUPPORT_IMPLICIT_CONTEXT)) {
|
|
@@ -35377,6 +35407,79 @@ function AppContent({
|
|
|
35377
35407
|
function signError(error2) {
|
|
35378
35408
|
toast.error(typeof error2 === "string" ? error2 : error2.message || "Something went wrong");
|
|
35379
35409
|
}
|
|
35410
|
+
const LogContext = createContext(void 0);
|
|
35411
|
+
const LoggerProvider = ({ children }) => {
|
|
35412
|
+
const [logs, setLogs] = useState([]);
|
|
35413
|
+
const addLog = useCallback((args) => {
|
|
35414
|
+
const newEntry = { timestamp: /* @__PURE__ */ new Date(), args };
|
|
35415
|
+
setLogs((prev) => [...prev, newEntry]);
|
|
35416
|
+
}, []);
|
|
35417
|
+
return /* @__PURE__ */ jsx(LogContext.Provider, { value: { logs, addLog }, children });
|
|
35418
|
+
};
|
|
35419
|
+
const useLogger = () => {
|
|
35420
|
+
const context = useContext(LogContext);
|
|
35421
|
+
if (!context) throw new Error("useLogger must be used within LoggerProvider");
|
|
35422
|
+
return context;
|
|
35423
|
+
};
|
|
35424
|
+
class LoggerService {
|
|
35425
|
+
constructor() {
|
|
35426
|
+
this.isDev = process.env.NODE_ENV === "development";
|
|
35427
|
+
}
|
|
35428
|
+
static getInstance() {
|
|
35429
|
+
if (!LoggerService.instance) {
|
|
35430
|
+
LoggerService.instance = new LoggerService();
|
|
35431
|
+
}
|
|
35432
|
+
return LoggerService.instance;
|
|
35433
|
+
}
|
|
35434
|
+
registerCallback(callback) {
|
|
35435
|
+
if (this.isDev) {
|
|
35436
|
+
this.callback = callback;
|
|
35437
|
+
}
|
|
35438
|
+
}
|
|
35439
|
+
log(args) {
|
|
35440
|
+
if (!this.isDev) return;
|
|
35441
|
+
console.log("[xmlui.log]", ...args);
|
|
35442
|
+
if (this.callback) {
|
|
35443
|
+
this.callback(args);
|
|
35444
|
+
}
|
|
35445
|
+
}
|
|
35446
|
+
warn(args) {
|
|
35447
|
+
if (!this.isDev) return;
|
|
35448
|
+
console.warn("[xmlui.warn]", ...args);
|
|
35449
|
+
if (this.callback) {
|
|
35450
|
+
this.callback(args);
|
|
35451
|
+
}
|
|
35452
|
+
}
|
|
35453
|
+
info(args) {
|
|
35454
|
+
if (!this.isDev) return;
|
|
35455
|
+
console.info("[xmlui.info]", ...args);
|
|
35456
|
+
if (this.callback) {
|
|
35457
|
+
this.callback(args);
|
|
35458
|
+
}
|
|
35459
|
+
}
|
|
35460
|
+
error(args) {
|
|
35461
|
+
if (!this.isDev) return;
|
|
35462
|
+
console.error("[xmlui.error]", ...args);
|
|
35463
|
+
if (this.callback) {
|
|
35464
|
+
this.callback(args);
|
|
35465
|
+
}
|
|
35466
|
+
}
|
|
35467
|
+
trace(args) {
|
|
35468
|
+
if (!this.isDev) return;
|
|
35469
|
+
console.trace("[xmlui.trace]", ...args);
|
|
35470
|
+
if (this.callback) {
|
|
35471
|
+
this.callback(args);
|
|
35472
|
+
}
|
|
35473
|
+
}
|
|
35474
|
+
}
|
|
35475
|
+
const loggerService = LoggerService.getInstance();
|
|
35476
|
+
const LoggerInitializer = () => {
|
|
35477
|
+
const { addLog } = useLogger();
|
|
35478
|
+
useEffect(() => {
|
|
35479
|
+
loggerService.registerCallback(addLog);
|
|
35480
|
+
}, [addLog]);
|
|
35481
|
+
return null;
|
|
35482
|
+
};
|
|
35380
35483
|
const AppWrapper = ({
|
|
35381
35484
|
node,
|
|
35382
35485
|
previewMode = false,
|
|
@@ -35401,28 +35504,31 @@ const AppWrapper = ({
|
|
|
35401
35504
|
const useHashBasedRouting = (globalProps == null ? void 0 : globalProps.useHashBasedRouting) ?? true;
|
|
35402
35505
|
const dynamicChildren = /* @__PURE__ */ jsxs(HelmetProvider, { children: [
|
|
35403
35506
|
/* @__PURE__ */ jsx(Helmet, { defaultTitle: siteName, titleTemplate: `%s | ${siteName}` }),
|
|
35404
|
-
/* @__PURE__ */
|
|
35405
|
-
|
|
35406
|
-
{
|
|
35407
|
-
|
|
35408
|
-
|
|
35409
|
-
|
|
35410
|
-
|
|
35411
|
-
|
|
35412
|
-
|
|
35413
|
-
|
|
35414
|
-
{
|
|
35415
|
-
|
|
35416
|
-
|
|
35417
|
-
|
|
35418
|
-
|
|
35419
|
-
|
|
35420
|
-
|
|
35421
|
-
|
|
35422
|
-
|
|
35423
|
-
|
|
35424
|
-
|
|
35425
|
-
|
|
35507
|
+
/* @__PURE__ */ jsxs(LoggerProvider, { children: [
|
|
35508
|
+
/* @__PURE__ */ jsx(LoggerInitializer, {}),
|
|
35509
|
+
/* @__PURE__ */ jsx(IconProvider, { children: /* @__PURE__ */ jsx(
|
|
35510
|
+
ThemeProvider,
|
|
35511
|
+
{
|
|
35512
|
+
resourceMap,
|
|
35513
|
+
themes: contributes.themes,
|
|
35514
|
+
defaultTheme,
|
|
35515
|
+
defaultTone,
|
|
35516
|
+
resources,
|
|
35517
|
+
children: /* @__PURE__ */ jsx(InspectorProvider, { sources, children: /* @__PURE__ */ jsx(ConfirmationModalContextProvider, { children: /* @__PURE__ */ jsx(
|
|
35518
|
+
AppContent,
|
|
35519
|
+
{
|
|
35520
|
+
rootContainer: node,
|
|
35521
|
+
routerBaseName: baseName,
|
|
35522
|
+
globalProps,
|
|
35523
|
+
standalone,
|
|
35524
|
+
decorateComponentsWithTestId,
|
|
35525
|
+
debugEnabled,
|
|
35526
|
+
children
|
|
35527
|
+
}
|
|
35528
|
+
) }) })
|
|
35529
|
+
}
|
|
35530
|
+
) })
|
|
35531
|
+
] })
|
|
35426
35532
|
] });
|
|
35427
35533
|
const Router = previewMode ? MemoryRouter : useHashBasedRouting ? HashRouter : BrowserRouter;
|
|
35428
35534
|
return (
|
|
@@ -35516,7 +35622,7 @@ function ApiInterceptorProvider({
|
|
|
35516
35622
|
let interceptorWorker;
|
|
35517
35623
|
(async () => {
|
|
35518
35624
|
if (process.env.VITE_MOCK_ENABLED) {
|
|
35519
|
-
const { createApiInterceptorWorker } = await import("./apiInterceptorWorker-
|
|
35625
|
+
const { createApiInterceptorWorker } = await import("./apiInterceptorWorker-BUaYCWe6.mjs");
|
|
35520
35626
|
if (interceptor) {
|
|
35521
35627
|
interceptorWorker = await createApiInterceptorWorker(interceptor, apiWorker);
|
|
35522
35628
|
if (!apiWorker) {
|
|
@@ -36647,6 +36753,7 @@ export {
|
|
|
36647
36753
|
useColors as k,
|
|
36648
36754
|
useDevTools as l,
|
|
36649
36755
|
miscellaneousUtils as m,
|
|
36756
|
+
useLogger as n,
|
|
36650
36757
|
orderBy as o,
|
|
36651
36758
|
parseScssVar as p,
|
|
36652
36759
|
runEventHandlerCode as r,
|