xmlui 0.9.37 → 0.9.38
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/{apiInterceptorWorker-5JLbCSKz.mjs → apiInterceptorWorker-BWeLEiFb.mjs} +2 -1
- package/dist/lib/{index-qQpSddXH.mjs → index-D7kFBKWN.mjs} +1109 -8728
- package/dist/lib/index-DCbaK7GI.mjs +17521 -0
- package/dist/lib/language-server-web-worker.mjs +1 -1
- package/dist/lib/language-server.mjs +1 -1
- package/dist/lib/{server-common-D9McswSL.mjs → server-common-B1bqw3bO.mjs} +26 -37
- package/dist/lib/xmlui.d.ts +1 -1
- package/dist/lib/xmlui.mjs +16 -16
- package/dist/metadata/xmlui-metadata.mjs +11 -2
- package/dist/metadata/xmlui-metadata.umd.js +11 -2
- package/dist/scripts/package.json +5 -5
- package/dist/scripts/src/components/Heading/Heading.js +1 -1
- package/dist/scripts/src/components/Heading/HeadingNative.js +11 -2
- package/dist/scripts/src/components/Markdown/MarkdownNative.js +3 -8
- package/dist/scripts/src/components/NestedApp/NestedAppNative.js +56 -16
- package/dist/scripts/src/components-core/interception/apiInterceptorWorker.js +2 -1
- package/dist/scripts/src/components-core/loader/Loader.js +4 -4
- package/dist/scripts/src/components-core/rendering/AppWrapper.js +2 -1
- package/dist/standalone/xmlui-standalone.es.d.ts +1 -1
- package/dist/standalone/xmlui-standalone.umd.js +42982 -32138
- package/package.json +3 -3
|
@@ -10233,7 +10233,6 @@ const collectedComponentMetadata = {
|
|
|
10233
10233
|
},
|
|
10234
10234
|
"themeVars": {
|
|
10235
10235
|
"width-navPanel-App": "var(--xmlui-width-navPanel-App)",
|
|
10236
|
-
"backgroundColor-navPanel-App": "var(--xmlui-backgroundColor-navPanel-App)",
|
|
10237
10236
|
"boxShadow-header-App": "var(--xmlui-boxShadow-header-App)",
|
|
10238
10237
|
"boxShadow-navPanel-App": "var(--xmlui-boxShadow-navPanel-App)",
|
|
10239
10238
|
"backgroundColor-content-App": "var(--xmlui-backgroundColor-content-App)",
|
|
@@ -10252,7 +10251,6 @@ const collectedComponentMetadata = {
|
|
|
10252
10251
|
},
|
|
10253
10252
|
"defaultThemeVars": {
|
|
10254
10253
|
"width-navPanel-App": "$space-64",
|
|
10255
|
-
"backgroundColor-navPanel-App": "$backgroundColor",
|
|
10256
10254
|
"maxWidth-content-App": "$maxWidth-content",
|
|
10257
10255
|
"boxShadow-header-App": "$boxShadow-spread",
|
|
10258
10256
|
"boxShadow-navPanel-App": "$boxShadow-spread",
|
|
@@ -11857,8 +11855,7 @@ const collectedComponentMetadata = {
|
|
|
11857
11855
|
"Input:outlineWidth-Switch--focus": "var(--xmlui-outlineWidth-Switch--focus)",
|
|
11858
11856
|
"Input:outlineColor-Switch--focus": "var(--xmlui-outlineColor-Switch--focus)",
|
|
11859
11857
|
"Input:outlineStyle-Switch--focus": "var(--xmlui-outlineStyle-Switch--focus)",
|
|
11860
|
-
"Input:outlineOffset-Switch--focus": "var(--xmlui-outlineOffset-Switch--focus)"
|
|
11861
|
-
"backgroundColor-indicator-checked-Switch": "var(--xmlui-backgroundColor-indicator-checked-Switch)"
|
|
11858
|
+
"Input:outlineOffset-Switch--focus": "var(--xmlui-outlineOffset-Switch--focus)"
|
|
11862
11859
|
},
|
|
11863
11860
|
"defaultThemeVars": {
|
|
11864
11861
|
"borderColor-checked-Checkbox-error": "$borderColor-Checkbox-error",
|
|
@@ -17581,11 +17578,6 @@ const collectedComponentMetadata = {
|
|
|
17581
17578
|
"initiallyExpanded": {
|
|
17582
17579
|
"description": "This property defines whether the group is initially expanded or collapsed."
|
|
17583
17580
|
},
|
|
17584
|
-
"enabled": {
|
|
17585
|
-
"description": "This boolean property value indicates whether the component responds to user events (`true`) or not (`false`).",
|
|
17586
|
-
"valueType": "boolean",
|
|
17587
|
-
"defaultValue": true
|
|
17588
|
-
},
|
|
17589
17581
|
"to": {
|
|
17590
17582
|
"description": "This property defines an optional navigation link.",
|
|
17591
17583
|
"valueType": "string"
|
|
@@ -17612,7 +17604,7 @@ const collectedComponentMetadata = {
|
|
|
17612
17604
|
"iconVerticalCollapsed": {
|
|
17613
17605
|
"description": "Set a custom icon to display when the navigation menu is collapsed, is in a **vertical** app layout, or is in a **horizontal** layout and is the top-level navigation item in the menu.",
|
|
17614
17606
|
"valueType": "string",
|
|
17615
|
-
"defaultValue": "
|
|
17607
|
+
"defaultValue": "chevronright"
|
|
17616
17608
|
}
|
|
17617
17609
|
},
|
|
17618
17610
|
"themeVars": {
|
|
@@ -17732,20 +17724,14 @@ const collectedComponentMetadata = {
|
|
|
17732
17724
|
"borderStartEndRadius-NavLink": "var(--xmlui-borderStartEndRadius-NavLink, var(--xmlui-borderRadius-NavLink))",
|
|
17733
17725
|
"borderEndStartRadius-NavLink": "var(--xmlui-borderEndStartRadius-NavLink, var(--xmlui-borderRadius-NavLink))",
|
|
17734
17726
|
"borderEndEndRadius-NavLink": "var(--xmlui-borderEndEndRadius-NavLink, var(--xmlui-borderRadius-NavLink))",
|
|
17735
|
-
"outlineWidth-NavLink--focus": "var(--xmlui-outlineWidth-NavLink--focus)",
|
|
17736
|
-
"outlineColor-NavLink--focus": "var(--xmlui-outlineColor-NavLink--focus)",
|
|
17737
|
-
"outlineStyle-NavLink--focus": "var(--xmlui-outlineStyle-NavLink--focus)",
|
|
17738
|
-
"outlineOffset-NavLink--focus": "var(--xmlui-outlineOffset-NavLink--focus)",
|
|
17739
|
-
"fontFamily-NavLink": "var(--xmlui-fontFamily-NavLink)",
|
|
17740
|
-
"fontWeight-NavLink": "var(--xmlui-fontWeight-NavLink)",
|
|
17741
|
-
"fontWeight-NavLink--pressed": "var(--xmlui-fontWeight-NavLink--pressed)",
|
|
17742
|
-
"fontWeight-NavLink--active": "var(--xmlui-fontWeight-NavLink--active)",
|
|
17743
|
-
"fontSize-NavLink": "var(--xmlui-fontSize-NavLink)",
|
|
17744
|
-
"wordWrap-NavLink": "var(--xmlui-wordWrap-NavLink)",
|
|
17745
17727
|
"backgroundColor-NavLink": "var(--xmlui-backgroundColor-NavLink)",
|
|
17746
17728
|
"backgroundColor-NavLink--hover": "var(--xmlui-backgroundColor-NavLink--hover)",
|
|
17729
|
+
"backgroundColor-NavLink--hover--active": "var(--xmlui-backgroundColor-NavLink--hover--active)",
|
|
17747
17730
|
"backgroundColor-NavLink--active": "var(--xmlui-backgroundColor-NavLink--active)",
|
|
17748
17731
|
"backgroundColor-NavLink--pressed": "var(--xmlui-backgroundColor-NavLink--pressed)",
|
|
17732
|
+
"backgroundColor-NavLink--pressed--active": "var(--xmlui-backgroundColor-NavLink--pressed--active)",
|
|
17733
|
+
"fontSize-NavLink": "var(--xmlui-fontSize-NavLink)",
|
|
17734
|
+
"wordWrap-NavLink": "var(--xmlui-wordWrap-NavLink)",
|
|
17749
17735
|
"textColor-NavLink": "var(--xmlui-textColor-NavLink)",
|
|
17750
17736
|
"textColor-NavLink--hover": "var(--xmlui-textColor-NavLink--hover)",
|
|
17751
17737
|
"textColor-NavLink--active": "var(--xmlui-textColor-NavLink--active)",
|
|
@@ -17753,14 +17739,20 @@ const collectedComponentMetadata = {
|
|
|
17753
17739
|
"textColor-NavLink--pressed": "var(--xmlui-textColor-NavLink--pressed)",
|
|
17754
17740
|
"textColor-NavLink--pressed--active": "var(--xmlui-textColor-NavLink--pressed--active)",
|
|
17755
17741
|
"color-icon-NavLink": "var(--xmlui-color-icon-NavLink)",
|
|
17742
|
+
"fontFamily-NavLink": "var(--xmlui-fontFamily-NavLink)",
|
|
17743
|
+
"fontWeight-NavLink": "var(--xmlui-fontWeight-NavLink)",
|
|
17744
|
+
"fontWeight-NavLink--pressed": "var(--xmlui-fontWeight-NavLink--pressed)",
|
|
17745
|
+
"fontWeight-NavLink--active": "var(--xmlui-fontWeight-NavLink--active)",
|
|
17746
|
+
"borderRadius-indicator-NavLink": "var(--xmlui-borderRadius-indicator-NavLink)",
|
|
17747
|
+
"thickness-indicator-NavLink": "var(--xmlui-thickness-indicator-NavLink)",
|
|
17756
17748
|
"color-indicator-NavLink": "var(--xmlui-color-indicator-NavLink)",
|
|
17757
17749
|
"color-indicator-NavLink--hover": "var(--xmlui-color-indicator-NavLink--hover)",
|
|
17758
17750
|
"color-indicator-NavLink--active": "var(--xmlui-color-indicator-NavLink--active)",
|
|
17759
|
-
"backgroundColor-NavLink--hover--active": "var(--xmlui-backgroundColor-NavLink--hover--active)",
|
|
17760
17751
|
"color-indicator-NavLink--pressed": "var(--xmlui-color-indicator-NavLink--pressed)",
|
|
17761
|
-
"
|
|
17762
|
-
"
|
|
17763
|
-
"
|
|
17752
|
+
"outlineWidth-NavLink--focus": "var(--xmlui-outlineWidth-NavLink--focus)",
|
|
17753
|
+
"outlineColor-NavLink--focus": "var(--xmlui-outlineColor-NavLink--focus)",
|
|
17754
|
+
"outlineStyle-NavLink--focus": "var(--xmlui-outlineStyle-NavLink--focus)",
|
|
17755
|
+
"outlineOffset-NavLink--focus": "var(--xmlui-outlineOffset-NavLink--focus)"
|
|
17764
17756
|
},
|
|
17765
17757
|
"themeVarDescriptions": {
|
|
17766
17758
|
"color-indicator-NavLink": "Provides the following states: `--hover`, `--active`, `--pressed`"
|
|
@@ -17846,6 +17838,8 @@ const collectedComponentMetadata = {
|
|
|
17846
17838
|
"paddingTop-logo-NavPanel": "var(--xmlui-paddingTop-logo-NavPanel, var(--xmlui-paddingVertical-logo-NavPanel, var(--xmlui-padding-logo-NavPanel)))",
|
|
17847
17839
|
"paddingBottom-logo-NavPanel": "var(--xmlui-paddingBottom-logo-NavPanel, var(--xmlui-paddingVertical-logo-NavPanel, var(--xmlui-padding-logo-NavPanel)))",
|
|
17848
17840
|
"marginBottom-logo-NavPanel": "var(--xmlui-marginBottom-logo-NavPanel)",
|
|
17841
|
+
"color-scrollbar-NavPanel": "var(--xmlui-color-scrollbar-NavPanel)",
|
|
17842
|
+
"backgroundColor-scrollbar-NavPanel": "var(--xmlui-backgroundColor-scrollbar-NavPanel)",
|
|
17849
17843
|
"maxWidth-content-App": "var(--xmlui-maxWidth-content-App)",
|
|
17850
17844
|
"height-AppHeader": "var(--xmlui-height-AppHeader)",
|
|
17851
17845
|
"paddingVertical-AppHeader": "var(--xmlui-paddingVertical-AppHeader)",
|
|
@@ -18419,7 +18413,6 @@ const collectedComponentMetadata = {
|
|
|
18419
18413
|
"Input:borderColor-RadioGroupOption-error": "var(--xmlui-borderColor-RadioGroupOption-error)",
|
|
18420
18414
|
"Input:borderColor-RadioGroupOption-warning": "var(--xmlui-borderColor-RadioGroupOption-warning)",
|
|
18421
18415
|
"Input:borderColor-RadioGroupOption-success": "var(--xmlui-borderColor-RadioGroupOption-success)",
|
|
18422
|
-
"Input:backgroundColor-checked-RadioGroupOption-indicator": "var(--xmlui-backgroundColor-checked-RadioGroupOption-indicator)",
|
|
18423
18416
|
"backgroundColor-checked-RadioGroupOption-default": "var(--xmlui-backgroundColor-checked-RadioGroupOption-default)",
|
|
18424
18417
|
"backgroundColor-checked-RadioGroupOption--disabled": "var(--xmlui-backgroundColor-checked-RadioGroupOption--disabled)",
|
|
18425
18418
|
"backgroundColor-checked-RadioGroupOption-error": "var(--xmlui-backgroundColor-checked-RadioGroupOption-error)",
|
|
@@ -18438,8 +18431,7 @@ const collectedComponentMetadata = {
|
|
|
18438
18431
|
},
|
|
18439
18432
|
"defaultThemeVars": {
|
|
18440
18433
|
"gap-RadioGroupOption": "$space-1_5",
|
|
18441
|
-
"borderWidth-RadioGroupOption": "
|
|
18442
|
-
"backgroundColor-checked-RadioGroupOption-indicator": "$backgroundColor-primary",
|
|
18434
|
+
"borderWidth-RadioGroupOption": "2px",
|
|
18443
18435
|
"backgroundColor-checked-RadioGroupOption--disabled]": "$borderColor-RadioGroupOption--disabled",
|
|
18444
18436
|
"backgroundColor-checked-RadioGroupOption-error": "$borderColor-RadioGroupOption-error",
|
|
18445
18437
|
"backgroundColor-checked-RadioGroupOption-warning": "$borderColor-RadioGroupOption-warning",
|
|
@@ -19066,7 +19058,7 @@ const collectedComponentMetadata = {
|
|
|
19066
19058
|
"cursor-resizer-vertical-Splitter": "var(--xmlui-cursor-resizer-vertical-Splitter)"
|
|
19067
19059
|
},
|
|
19068
19060
|
"defaultThemeVars": {
|
|
19069
|
-
"backgroundColor-resizer-Splitter": "$
|
|
19061
|
+
"backgroundColor-resizer-Splitter": "$backgroundColor-Card",
|
|
19070
19062
|
"thickness-resizer-Splitter": "5px",
|
|
19071
19063
|
"cursor-resizer-horizontal-Splitter": "ew-resize",
|
|
19072
19064
|
"cursor-resizer-vertical-Splitter": "ns-resize"
|
|
@@ -19133,7 +19125,7 @@ const collectedComponentMetadata = {
|
|
|
19133
19125
|
"cursor-resizer-vertical-Splitter": "var(--xmlui-cursor-resizer-vertical-Splitter)"
|
|
19134
19126
|
},
|
|
19135
19127
|
"defaultThemeVars": {
|
|
19136
|
-
"backgroundColor-resizer-Splitter": "$
|
|
19128
|
+
"backgroundColor-resizer-Splitter": "$backgroundColor-Card",
|
|
19137
19129
|
"thickness-resizer-Splitter": "5px",
|
|
19138
19130
|
"cursor-resizer-horizontal-Splitter": "ew-resize",
|
|
19139
19131
|
"cursor-resizer-vertical-Splitter": "ns-resize"
|
|
@@ -19201,7 +19193,7 @@ const collectedComponentMetadata = {
|
|
|
19201
19193
|
"cursor-resizer-vertical-Splitter": "var(--xmlui-cursor-resizer-vertical-Splitter)"
|
|
19202
19194
|
},
|
|
19203
19195
|
"defaultThemeVars": {
|
|
19204
|
-
"backgroundColor-resizer-Splitter": "$
|
|
19196
|
+
"backgroundColor-resizer-Splitter": "$backgroundColor-Card",
|
|
19205
19197
|
"thickness-resizer-Splitter": "5px",
|
|
19206
19198
|
"cursor-resizer-horizontal-Splitter": "ew-resize",
|
|
19207
19199
|
"cursor-resizer-vertical-Splitter": "ns-resize"
|
|
@@ -19733,8 +19725,7 @@ const collectedComponentMetadata = {
|
|
|
19733
19725
|
"Input:outlineWidth-Switch--focus": "var(--xmlui-outlineWidth-Switch--focus)",
|
|
19734
19726
|
"Input:outlineColor-Switch--focus": "var(--xmlui-outlineColor-Switch--focus)",
|
|
19735
19727
|
"Input:outlineStyle-Switch--focus": "var(--xmlui-outlineStyle-Switch--focus)",
|
|
19736
|
-
"Input:outlineOffset-Switch--focus": "var(--xmlui-outlineOffset-Switch--focus)"
|
|
19737
|
-
"backgroundColor-indicator-checked-Switch": "var(--xmlui-backgroundColor-indicator-checked-Switch)"
|
|
19728
|
+
"Input:outlineOffset-Switch--focus": "var(--xmlui-outlineOffset-Switch--focus)"
|
|
19738
19729
|
},
|
|
19739
19730
|
"defaultThemeVars": {
|
|
19740
19731
|
"borderColor-checked-Switch-error": "$borderColor-Switch-error",
|
|
@@ -19743,11 +19734,9 @@ const collectedComponentMetadata = {
|
|
|
19743
19734
|
"backgroundColor-checked-Switch-warning": "$borderColor-Switch-warning",
|
|
19744
19735
|
"borderColor-checked-Switch-success": "$borderColor-Switch-success",
|
|
19745
19736
|
"backgroundColor-checked-Switch-success": "$borderColor-Switch-success",
|
|
19746
|
-
"backgroundColor-Switch": "$
|
|
19747
|
-
"borderColor-Switch": "$color-surface-
|
|
19748
|
-
"
|
|
19749
|
-
"backgroundColor-indicator-Switch": "$color-surface-200",
|
|
19750
|
-
"backgroundColor-indicator-checked-Switch": "$backgroundColor-primary",
|
|
19737
|
+
"backgroundColor-Switch": "$color-surface-400",
|
|
19738
|
+
"borderColor-Switch": "$color-surface-400",
|
|
19739
|
+
"backgroundColor-indicator-Switch": "$backgroundColor-primary",
|
|
19751
19740
|
"borderColor-checked-Switch": "$color-primary-500",
|
|
19752
19741
|
"backgroundColor-checked-Switch": "$color-primary-500",
|
|
19753
19742
|
"backgroundColor-Switch--disabled": "$color-surface-200"
|
package/dist/lib/xmlui.d.ts
CHANGED
|
@@ -1252,7 +1252,7 @@ declare type Message = ValueOrFunction<Renderable, Toast>;
|
|
|
1252
1252
|
*/
|
|
1253
1253
|
declare type ModuleErrors = Record<string, ScriptParserErrorMessage[]>;
|
|
1254
1254
|
|
|
1255
|
-
export declare function NestedApp({ api, app, components, config, activeTheme, activeTone, title, height, allowPlaygroundPopup, withFrame }: NestedAppProps): JSX_2.Element;
|
|
1255
|
+
export declare function NestedApp({ api, app, components, config, activeTheme, activeTone, title, height, allowPlaygroundPopup, withFrame, }: NestedAppProps): JSX_2.Element;
|
|
1256
1256
|
|
|
1257
1257
|
declare type NestedAppProps = {
|
|
1258
1258
|
api?: any;
|
package/dist/lib/xmlui.mjs
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { y, A, B, E, I, N, z, i, h, S, b, k, l, D, C, c, e, f, w, j, p, s, t, n, q, v, u, x } from "./index-D7kFBKWN.mjs";
|
|
2
2
|
import { X } from "./xmlui-serializer-CQnuXBof.mjs";
|
|
3
3
|
export {
|
|
4
|
-
|
|
4
|
+
y as ApiInterceptorProvider,
|
|
5
5
|
A as AppRoot,
|
|
6
6
|
B as Button,
|
|
7
7
|
E as ErrorBoundary,
|
|
8
8
|
I as Icon,
|
|
9
9
|
N as NestedApp,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
z as Spinner,
|
|
11
|
+
i as Splitter,
|
|
12
|
+
h as Stack,
|
|
13
13
|
S as StandaloneApp,
|
|
14
14
|
b as StandaloneExtensionManager,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
k as TabItem,
|
|
16
|
+
l as Tabs,
|
|
17
|
+
D as Text,
|
|
18
18
|
X as XmlUiHelper,
|
|
19
|
-
|
|
19
|
+
C as builtInThemes,
|
|
20
20
|
c as createComponentRenderer,
|
|
21
21
|
e as createMetadata,
|
|
22
22
|
f as d,
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
w as errReportComponent,
|
|
24
|
+
j as getColor,
|
|
25
25
|
p as parseScssVar,
|
|
26
|
-
|
|
26
|
+
s as startApp,
|
|
27
27
|
t as toCssVar,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
n as useColors,
|
|
29
|
+
q as useDevTools,
|
|
30
|
+
v as useLogger,
|
|
31
31
|
u as useTheme,
|
|
32
|
-
|
|
32
|
+
x as xmlUiMarkupToComponent
|
|
33
33
|
};
|
|
@@ -3850,6 +3850,7 @@ const Heading = forwardRef(function Heading2({
|
|
|
3850
3850
|
ellipses = defaultProps$d.ellipses,
|
|
3851
3851
|
className,
|
|
3852
3852
|
omitFromToc = defaultProps$d.omitFromToc,
|
|
3853
|
+
showAnchor,
|
|
3853
3854
|
...furtherProps
|
|
3854
3855
|
}, forwardedRef) {
|
|
3855
3856
|
const Element2 = level == null ? void 0 : level.toLowerCase();
|
|
@@ -3892,7 +3893,15 @@ const Heading = forwardRef(function Heading2({
|
|
|
3892
3893
|
...furtherProps,
|
|
3893
3894
|
children: [
|
|
3894
3895
|
anchorId && /* @__PURE__ */ jsx("span", { ref: anchorRef2, id: anchorId, className: styles$y.anchorRef, "data-anchor": true }),
|
|
3895
|
-
children
|
|
3896
|
+
children,
|
|
3897
|
+
showAnchor && anchorId && /* @__PURE__ */ jsx(Link, { to: `#${anchorId}`, "aria-hidden": "true", onClick: (event) => {
|
|
3898
|
+
if (tableOfContentsContext) {
|
|
3899
|
+
if (!event.ctrlKey && !event.metaKey && !event.metaKey) {
|
|
3900
|
+
event.preventDefault();
|
|
3901
|
+
}
|
|
3902
|
+
tableOfContentsContext.scrollToAnchor(anchorId, true);
|
|
3903
|
+
}
|
|
3904
|
+
}, children: "#" })
|
|
3896
3905
|
]
|
|
3897
3906
|
}
|
|
3898
3907
|
);
|
|
@@ -15169,7 +15178,7 @@ const H1Md = createMetadata({
|
|
|
15169
15178
|
[`fontSize-${H1}`]: "$fontSize-large",
|
|
15170
15179
|
[`marginTop-${H1}`]: "0",
|
|
15171
15180
|
[`marginBottom-${H1}`]: "0",
|
|
15172
|
-
[`fontSize-${H1}-markdown`]: "$fontSize-
|
|
15181
|
+
[`fontSize-${H1}-markdown`]: "$fontSize-large",
|
|
15173
15182
|
[`marginTop-${H1}-markdown`]: "0",
|
|
15174
15183
|
[`marginBottom-${H1}-markdown`]: "$space-6",
|
|
15175
15184
|
light: {
|
|
@@ -3847,6 +3847,7 @@
|
|
|
3847
3847
|
ellipses = defaultProps$d.ellipses,
|
|
3848
3848
|
className,
|
|
3849
3849
|
omitFromToc = defaultProps$d.omitFromToc,
|
|
3850
|
+
showAnchor,
|
|
3850
3851
|
...furtherProps
|
|
3851
3852
|
}, forwardedRef) {
|
|
3852
3853
|
const Element2 = level == null ? void 0 : level.toLowerCase();
|
|
@@ -3889,7 +3890,15 @@
|
|
|
3889
3890
|
...furtherProps,
|
|
3890
3891
|
children: [
|
|
3891
3892
|
anchorId && /* @__PURE__ */ jsxRuntime.jsx("span", { ref: anchorRef2, id: anchorId, className: styles$y.anchorRef, "data-anchor": true }),
|
|
3892
|
-
children
|
|
3893
|
+
children,
|
|
3894
|
+
showAnchor && anchorId && /* @__PURE__ */ jsxRuntime.jsx(react.Link, { to: `#${anchorId}`, "aria-hidden": "true", onClick: (event) => {
|
|
3895
|
+
if (tableOfContentsContext) {
|
|
3896
|
+
if (!event.ctrlKey && !event.metaKey && !event.metaKey) {
|
|
3897
|
+
event.preventDefault();
|
|
3898
|
+
}
|
|
3899
|
+
tableOfContentsContext.scrollToAnchor(anchorId, true);
|
|
3900
|
+
}
|
|
3901
|
+
}, children: "#" })
|
|
3893
3902
|
]
|
|
3894
3903
|
}
|
|
3895
3904
|
);
|
|
@@ -15166,7 +15175,7 @@
|
|
|
15166
15175
|
[`fontSize-${H1}`]: "$fontSize-large",
|
|
15167
15176
|
[`marginTop-${H1}`]: "0",
|
|
15168
15177
|
[`marginBottom-${H1}`]: "0",
|
|
15169
|
-
[`fontSize-${H1}-markdown`]: "$fontSize-
|
|
15178
|
+
[`fontSize-${H1}-markdown`]: "$fontSize-large",
|
|
15170
15179
|
[`marginTop-${H1}-markdown`]: "0",
|
|
15171
15180
|
[`marginBottom-${H1}-markdown`]: "$space-6",
|
|
15172
15181
|
light: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xmlui",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.38",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start-test-bed": "cd src/testing/infrastructure && xmlui start",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"prepare-docs-data": "npm run build:xmlui-metadata",
|
|
22
22
|
"generate-all-docs": "npm run build:xmlui-metadata && npm run build:ext-meta && npm run generate-docs",
|
|
23
23
|
"export-themes": "npm run prepare-docs-data && node scripts/generate-docs/create-theme-files.mjs",
|
|
24
|
-
"
|
|
24
|
+
"generate-langserver-metadata": "node scripts/get-langserver-metadata.mjs > src/language-server/xmlui-metadata-generated.mjs"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@eslint-community/regexpp": "4.10.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"immer": "9.0.16",
|
|
68
68
|
"lodash-es": "4.17.21",
|
|
69
69
|
"memoize-one": "6.0.0",
|
|
70
|
-
"msw": "2.
|
|
70
|
+
"msw": "2.8.4",
|
|
71
71
|
"oidc-client-ts": "2.1.0",
|
|
72
72
|
"papaparse": "^5.5.2",
|
|
73
73
|
"react": "18.2.0",
|
|
@@ -213,8 +213,8 @@
|
|
|
213
213
|
"import": "./src/components-core/theming/_themes.scss"
|
|
214
214
|
},
|
|
215
215
|
"./vite-xmlui-plugin": {
|
|
216
|
-
"import": "./bin/vite-xmlui-plugin.
|
|
217
|
-
"require": "./bin/vite-xmlui-plugin.
|
|
216
|
+
"import": "./dist/scripts/bin/vite-xmlui-plugin.js",
|
|
217
|
+
"require": "./dist/scripts/bin/vite-xmlui-plugin.js"
|
|
218
218
|
},
|
|
219
219
|
"./language-server": {
|
|
220
220
|
"import": "./src/language-server/server.ts",
|
|
@@ -87,7 +87,7 @@ exports.H1Md = (0, ComponentDefs_1.createMetadata)({
|
|
|
87
87
|
[`fontSize-${H1}`]: "$fontSize-large",
|
|
88
88
|
[`marginTop-${H1}`]: "0",
|
|
89
89
|
[`marginBottom-${H1}`]: "0",
|
|
90
|
-
[`fontSize-${H1}-markdown`]: "$fontSize-
|
|
90
|
+
[`fontSize-${H1}-markdown`]: "$fontSize-large",
|
|
91
91
|
[`marginTop-${H1}-markdown`]: "0",
|
|
92
92
|
[`marginBottom-${H1}-markdown`]: "$space-6",
|
|
93
93
|
light: {
|
|
@@ -23,6 +23,7 @@ const Heading_module_scss_1 = __importDefault(require("./Heading.module.scss"));
|
|
|
23
23
|
const css_utils_1 = require("../../components-core/utils/css-utils");
|
|
24
24
|
const TableOfContentsContext_1 = require("../../components-core/TableOfContentsContext");
|
|
25
25
|
const hooks_1 = require("../../components-core/utils/hooks");
|
|
26
|
+
const react_2 = require("@remix-run/react");
|
|
26
27
|
exports.defaultProps = {
|
|
27
28
|
level: "h1",
|
|
28
29
|
ellipses: true,
|
|
@@ -30,7 +31,7 @@ exports.defaultProps = {
|
|
|
30
31
|
maxLines: 0,
|
|
31
32
|
};
|
|
32
33
|
exports.Heading = (0, react_1.forwardRef)(function Heading(_a, forwardedRef) {
|
|
33
|
-
var { uid, level = exports.defaultProps.level, children, sx, style, title, maxLines = exports.defaultProps.maxLines, preserveLinebreaks, ellipses = exports.defaultProps.ellipses, className, omitFromToc = exports.defaultProps.omitFromToc } = _a, furtherProps = __rest(_a, ["uid", "level", "children", "sx", "style", "title", "maxLines", "preserveLinebreaks", "ellipses", "className", "omitFromToc"]);
|
|
34
|
+
var { uid, level = exports.defaultProps.level, children, sx, style, title, maxLines = exports.defaultProps.maxLines, preserveLinebreaks, ellipses = exports.defaultProps.ellipses, className, omitFromToc = exports.defaultProps.omitFromToc, showAnchor } = _a, furtherProps = __rest(_a, ["uid", "level", "children", "sx", "style", "title", "maxLines", "preserveLinebreaks", "ellipses", "className", "omitFromToc", "showAnchor"]);
|
|
34
35
|
const Element = level === null || level === void 0 ? void 0 : level.toLowerCase();
|
|
35
36
|
const elementRef = (0, react_1.useRef)(null);
|
|
36
37
|
const [anchorId, setAnchorId] = (0, react_1.useState)(null);
|
|
@@ -59,5 +60,13 @@ exports.Heading = (0, react_1.forwardRef)(function Heading(_a, forwardedRef) {
|
|
|
59
60
|
[Heading_module_scss_1.default.truncateOverflow]: maxLines > 0,
|
|
60
61
|
[Heading_module_scss_1.default.preserveLinebreaks]: preserveLinebreaks,
|
|
61
62
|
[Heading_module_scss_1.default.noEllipsis]: !ellipses,
|
|
62
|
-
}) }, furtherProps, { children: [anchorId && ((0, jsx_runtime_1.jsx)("span", { ref: anchorRef, id: anchorId, className: Heading_module_scss_1.default.anchorRef, "data-anchor": true })), children
|
|
63
|
+
}) }, furtherProps, { children: [anchorId && ((0, jsx_runtime_1.jsx)("span", { ref: anchorRef, id: anchorId, className: Heading_module_scss_1.default.anchorRef, "data-anchor": true })), children, showAnchor && anchorId && ((0, jsx_runtime_1.jsx)(react_2.Link, { to: `#${anchorId}`, "aria-hidden": "true", onClick: (event) => {
|
|
64
|
+
// cmd/ctrl + click - open in new tab, don't prevent that
|
|
65
|
+
if (tableOfContentsContext) {
|
|
66
|
+
if (!event.ctrlKey && !event.metaKey && !event.metaKey) {
|
|
67
|
+
event.preventDefault();
|
|
68
|
+
}
|
|
69
|
+
tableOfContentsContext.scrollToAnchor(anchorId, true);
|
|
70
|
+
}
|
|
71
|
+
}, children: "#" }))] })));
|
|
63
72
|
});
|
|
@@ -18,7 +18,7 @@ exports.Markdown = void 0;
|
|
|
18
18
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
19
|
const react_1 = require("react");
|
|
20
20
|
const react_2 = __importDefault(require("react"));
|
|
21
|
-
const react_markdown_1 = require("react-markdown");
|
|
21
|
+
const react_markdown_1 = __importDefault(require("react-markdown"));
|
|
22
22
|
const remark_gfm_1 = __importDefault(require("remark-gfm"));
|
|
23
23
|
const rehype_raw_1 = __importDefault(require("rehype-raw"));
|
|
24
24
|
const Markdown_module_scss_1 = __importDefault(require("./Markdown.module.scss"));
|
|
@@ -50,7 +50,7 @@ exports.Markdown = (0, react_1.memo)(function Markdown({ removeIndents = true, c
|
|
|
50
50
|
return null;
|
|
51
51
|
}
|
|
52
52
|
children = removeIndents ? removeTextIndents(children) : children;
|
|
53
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: Markdown_module_scss_1.default.markdownContent, style: Object.assign({}, style), children: (0, jsx_runtime_1.jsx)(react_markdown_1.
|
|
53
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: Markdown_module_scss_1.default.markdownContent, style: Object.assign({}, style), children: (0, jsx_runtime_1.jsx)(react_markdown_1.default, { remarkPlugins: [remark_gfm_1.default, CodeBlockNative_1.markdownCodeBlockParser], rehypePlugins: [rehype_raw_1.default], components: {
|
|
54
54
|
details(_a) {
|
|
55
55
|
var { children, node } = _a, props = __rest(_a, ["children", "node"]);
|
|
56
56
|
return ((0, jsx_runtime_1.jsx)("details", Object.assign({ className: HtmlTags_module_scss_1.default.htmlDetails }, props, { children: children })));
|
|
@@ -281,12 +281,7 @@ function LinkAwareHeading({ children, level, showHeadingAnchors }) {
|
|
|
281
281
|
if (!anchorId) {
|
|
282
282
|
anchorId = headingToAnchorLink(extractTextNodes(headingLabel));
|
|
283
283
|
}
|
|
284
|
-
|
|
285
|
-
const href = `${currentPath}#${anchorId}`;
|
|
286
|
-
return ((0, jsx_runtime_1.jsxs)(HeadingNative_1.Heading, { level: level, id: anchorId, children: [headingLabel, showHeadingAnchors && anchorId && (
|
|
287
|
-
// NOTE: Anchor is hidden from screen readers
|
|
288
|
-
// TODO: make sure this is a good idea
|
|
289
|
-
(0, jsx_runtime_1.jsx)("a", { href: href, id: anchorId, "aria-hidden": "true", children: "#" }))] }));
|
|
284
|
+
return ((0, jsx_runtime_1.jsx)(HeadingNative_1.Heading, { level: level, id: anchorId, showAnchor: showHeadingAnchors, children: headingLabel }));
|
|
290
285
|
}
|
|
291
286
|
// --- Helper functions
|
|
292
287
|
function removeTextIndents(input) {
|
|
@@ -1,4 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
2
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -23,14 +56,13 @@ const rx_1 = require("react-icons/rx");
|
|
|
23
56
|
const xmlui_parser_1 = require("../../components-core/xmlui-parser");
|
|
24
57
|
const ApiInterceptorProvider_1 = require("../../components-core/interception/ApiInterceptorProvider");
|
|
25
58
|
const ErrorBoundary_1 = require("../../components-core/rendering/ErrorBoundary");
|
|
26
|
-
const browser_1 = require("msw/browser");
|
|
27
59
|
const Tooltip_1 = require("./Tooltip");
|
|
28
60
|
const ThemeContext_1 = require("../../components-core/theming/ThemeContext");
|
|
29
61
|
const constants_1 = require("../../components-core/constants");
|
|
30
62
|
const utils_1 = require("./utils");
|
|
31
63
|
const AppContext_1 = require("../../components-core/AppContext");
|
|
32
64
|
const ComponentRegistryContext_1 = require("../ComponentRegistryContext");
|
|
33
|
-
function NestedApp({ api, app, components = constants_1.EMPTY_ARRAY, config, activeTheme, activeTone, title, height, allowPlaygroundPopup = true, withFrame = true }) {
|
|
65
|
+
function NestedApp({ api, app, components = constants_1.EMPTY_ARRAY, config, activeTheme, activeTone, title, height, allowPlaygroundPopup = true, withFrame = true, }) {
|
|
34
66
|
const rootRef = (0, react_1.useRef)(null);
|
|
35
67
|
const shadowRef = (0, react_1.useRef)(null);
|
|
36
68
|
const contentRootRef = (0, react_1.useRef)(null);
|
|
@@ -40,18 +72,22 @@ function NestedApp({ api, app, components = constants_1.EMPTY_ARRAY, config, act
|
|
|
40
72
|
const toneToApply = activeTone || (config === null || config === void 0 ? void 0 : config.defaultTone) || (theme === null || theme === void 0 ? void 0 : theme.activeThemeTone);
|
|
41
73
|
const { appGlobals } = (0, AppContext_1.useAppContext)();
|
|
42
74
|
const componentRegistry = (0, ComponentRegistryContext_1.useComponentRegistry)();
|
|
43
|
-
const apiWorker = (0, react_1.
|
|
44
|
-
if (typeof document !== "undefined") {
|
|
45
|
-
return (0, browser_1.setupWorker)();
|
|
46
|
-
}
|
|
47
|
-
}, []);
|
|
75
|
+
const [apiWorker, setApiWorker] = (0, react_1.useState)(undefined);
|
|
48
76
|
(0, react_1.useEffect)(() => {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
77
|
+
let worker;
|
|
78
|
+
(function () {
|
|
79
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
+
const { setupWorker } = yield Promise.resolve().then(() => __importStar(require("msw/browser")));
|
|
81
|
+
worker = setupWorker();
|
|
82
|
+
worker.start({
|
|
83
|
+
onUnhandledRequest: "bypass",
|
|
84
|
+
quiet: true,
|
|
85
|
+
});
|
|
86
|
+
setApiWorker(worker);
|
|
87
|
+
});
|
|
88
|
+
})();
|
|
89
|
+
return () => worker === null || worker === void 0 ? void 0 : worker.stop();
|
|
90
|
+
}, []);
|
|
55
91
|
// console.log("apiWorker", apiWorker);
|
|
56
92
|
const mock = (0, react_1.useMemo)(() => {
|
|
57
93
|
return api
|
|
@@ -134,6 +170,7 @@ function NestedApp({ api, app, components = constants_1.EMPTY_ARRAY, config, act
|
|
|
134
170
|
allowPlaygroundPopup,
|
|
135
171
|
apiWorker,
|
|
136
172
|
app,
|
|
173
|
+
componentRegistry,
|
|
137
174
|
components,
|
|
138
175
|
config === null || config === void 0 ? void 0 : config.appGlobals,
|
|
139
176
|
config === null || config === void 0 ? void 0 : config.defaultTheme,
|
|
@@ -148,12 +185,15 @@ function NestedApp({ api, app, components = constants_1.EMPTY_ARRAY, config, act
|
|
|
148
185
|
theme.themeStyles,
|
|
149
186
|
title,
|
|
150
187
|
toneToApply,
|
|
188
|
+
withFrame,
|
|
151
189
|
]);
|
|
152
190
|
(0, react_1.useEffect)(() => {
|
|
153
191
|
return () => {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
192
|
+
setTimeout(() => {
|
|
193
|
+
var _a;
|
|
194
|
+
(_a = contentRootRef.current) === null || _a === void 0 ? void 0 : _a.unmount();
|
|
195
|
+
contentRootRef.current = null;
|
|
196
|
+
});
|
|
157
197
|
};
|
|
158
198
|
}, []);
|
|
159
199
|
return ((0, jsx_runtime_1.jsx)("div", { ref: rootRef, style: {
|
|
@@ -13,7 +13,7 @@ exports.createApiInterceptorWorker = void 0;
|
|
|
13
13
|
const browser_1 = require("msw/browser");
|
|
14
14
|
const msw_1 = require("msw");
|
|
15
15
|
const lodash_es_1 = require("lodash-es");
|
|
16
|
-
const ApiInterceptor_1 = require("
|
|
16
|
+
const ApiInterceptor_1 = require("./ApiInterceptor");
|
|
17
17
|
// Create handlers for the specified API interceptor
|
|
18
18
|
function createHandlers(api) {
|
|
19
19
|
const operations = api.getOperations();
|
|
@@ -40,6 +40,7 @@ const createApiInterceptorWorker = (apiInterceptorDefinition, apiWorker) => __aw
|
|
|
40
40
|
if (!worker) {
|
|
41
41
|
worker = (0, browser_1.setupWorker)();
|
|
42
42
|
}
|
|
43
|
+
// https://github.com/mswjs/msw/issues/2495
|
|
43
44
|
worker.use(...handlers);
|
|
44
45
|
return worker;
|
|
45
46
|
});
|
|
@@ -76,13 +76,13 @@ function Loader({ state, loader, loaderFn, queryId, pollIntervalInSeconds, regis
|
|
|
76
76
|
}, [pollIntervalInSeconds, refetch]);
|
|
77
77
|
const prevData = (0, hooks_1.usePrevious)(data);
|
|
78
78
|
const prevError = (0, hooks_1.usePrevious)(error);
|
|
79
|
-
(0,
|
|
79
|
+
(0, hooks_1.useIsomorphicLayoutEffect)(() => {
|
|
80
80
|
loaderInProgressChanged(isFetching);
|
|
81
81
|
}, [isFetching, loaderInProgressChanged]);
|
|
82
|
-
(0,
|
|
82
|
+
(0, hooks_1.useIsomorphicLayoutEffect)(() => {
|
|
83
83
|
loaderIsRefetchingChanged(isRefetching);
|
|
84
84
|
}, [isRefetching, loaderIsRefetchingChanged]);
|
|
85
|
-
(0,
|
|
85
|
+
(0, hooks_1.useIsomorphicLayoutEffect)(() => {
|
|
86
86
|
//console.log("isRefetching", isRefetching);
|
|
87
87
|
//console.log("[Loader] useLayoutEffect status:", status);
|
|
88
88
|
//console.log("[Loader] useLayoutEffect data:", data);
|
|
@@ -105,7 +105,7 @@ function Loader({ state, loader, loaderFn, queryId, pollIntervalInSeconds, regis
|
|
|
105
105
|
loaderError(error);
|
|
106
106
|
}
|
|
107
107
|
}, [data, error, loaderError, loaderLoaded, onLoaded, prevData, prevError, status, isRefetching]);
|
|
108
|
-
(0,
|
|
108
|
+
(0, hooks_1.useIsomorphicLayoutEffect)(() => {
|
|
109
109
|
return () => {
|
|
110
110
|
loaderLoaded(undefined);
|
|
111
111
|
};
|
|
@@ -40,9 +40,10 @@ const AppWrapper = ({ node, previewMode = false, routerBaseName: baseName = "",
|
|
|
40
40
|
const dynamicChildren = ((0, jsx_runtime_1.jsxs)(react_helmet_async_1.HelmetProvider, { children: [(0, jsx_runtime_1.jsx)(react_helmet_async_1.Helmet, { defaultTitle: siteName, titleTemplate: `%s | ${siteName}` }), (0, jsx_runtime_1.jsxs)(LoggerContext_1.LoggerProvider, { children: [(0, jsx_runtime_1.jsx)(LoggerInitializer_1.LoggerInitializer, {}), (0, jsx_runtime_1.jsx)(IconProvider_1.IconProvider, { children: (0, jsx_runtime_1.jsx)(ThemeProvider_1.default, { resourceMap: resourceMap, themes: contributes.themes, defaultTheme: defaultTheme, defaultTone: defaultTone, resources: resources, children: (0, jsx_runtime_1.jsx)(InspectorContext_1.InspectorProvider, { sources: sources, projectCompilation: projectCompilation, mockApi: globalProps === null || globalProps === void 0 ? void 0 : globalProps.demoMockApi, children: (0, jsx_runtime_1.jsx)(ConfirmationModalContextProvider_1.ConfirmationModalContextProvider, { children: (0, jsx_runtime_1.jsx)(AppContent_1.AppContent, { rootContainer: node, routerBaseName: baseName, globalProps: globalProps, standalone: standalone, decorateComponentsWithTestId: decorateComponentsWithTestId, debugEnabled: debugEnabled, trackContainerHeight: trackContainerHeight, children: children }) }) }) }) })] })] }));
|
|
41
41
|
// --- Select the router type for the app
|
|
42
42
|
const Router = previewMode ? react_router_dom_1.MemoryRouter : useHashBasedRouting ? react_router_dom_1.HashRouter : react_router_dom_1.BrowserRouter;
|
|
43
|
+
const shouldSkipClientRouter = previewMode ? false : (typeof window === "undefined" || process.env.VITE_REMIX);
|
|
43
44
|
return (
|
|
44
45
|
// <React.StrictMode>
|
|
45
|
-
(0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { node: node, location: "root-outer", children: (0, jsx_runtime_1.jsxs)(react_query_1.QueryClientProvider, { client: AppRoot_1.queryClient, children: [
|
|
46
|
+
(0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { node: node, location: "root-outer", children: (0, jsx_runtime_1.jsxs)(react_query_1.QueryClientProvider, { client: AppRoot_1.queryClient, children: [!!shouldSkipClientRouter && dynamicChildren, !shouldSkipClientRouter && ((0, jsx_runtime_1.jsx)(Router, { basename: Router === react_router_dom_1.HashRouter ? undefined : baseName, children: dynamicChildren }))] }) })
|
|
46
47
|
// </React.StrictMode>
|
|
47
48
|
);
|
|
48
49
|
};
|
|
@@ -1407,7 +1407,7 @@ declare type Message = ValueOrFunction<Renderable, Toast>;
|
|
|
1407
1407
|
*/
|
|
1408
1408
|
declare type ModuleErrors = Record<string, ScriptParserErrorMessage[]>;
|
|
1409
1409
|
|
|
1410
|
-
declare function NestedApp({ api, app, components, config, activeTheme, activeTone, title, height, allowPlaygroundPopup, withFrame }: NestedAppProps): JSX_2.Element;
|
|
1410
|
+
declare function NestedApp({ api, app, components, config, activeTheme, activeTone, title, height, allowPlaygroundPopup, withFrame, }: NestedAppProps): JSX_2.Element;
|
|
1411
1411
|
|
|
1412
1412
|
declare type NestedAppProps = {
|
|
1413
1413
|
api?: any;
|