xmlui 0.9.18 → 0.9.19
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-DtInaPQ_.mjs → apiInterceptorWorker-BH8WAcl0.mjs} +1 -1
- package/dist/{index-BHUXwc-L.mjs → index-KE5HIbCX.mjs} +43 -26
- package/dist/index.css +19 -16
- package/dist/scripts/src/components/HtmlTags/HtmlTags.js +1 -1
- package/dist/scripts/src/components/Markdown/MarkdownNative.js +26 -19
- package/dist/scripts/src/components-core/InspectorContext.js +4 -2
- package/dist/style.css +19 -16
- package/dist/xmlui-metadata.mjs +1 -1
- package/dist/xmlui-metadata.umd.js +1 -1
- package/dist/xmlui-standalone.umd.js +64 -44
- package/dist/xmlui.d.ts +1 -0
- package/dist/xmlui.mjs +1 -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-KE5HIbCX.mjs";
|
|
16
16
|
import Dexie from "dexie";
|
|
17
17
|
var POSITIONALS_EXP = /(%?)(%([sdijo]))/g;
|
|
18
18
|
function serializePositional(positional, flag) {
|
|
@@ -21102,14 +21102,14 @@ const spinnerComponentRenderer = createComponentRenderer(
|
|
|
21102
21102
|
);
|
|
21103
21103
|
}
|
|
21104
21104
|
);
|
|
21105
|
-
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)"}'`;
|
|
21106
|
-
const markdownContent = "
|
|
21107
|
-
const blockquote = "
|
|
21108
|
-
const blockquoteContainer = "
|
|
21109
|
-
const admonitionBlockquote = "
|
|
21110
|
-
const admonitionContainer = "
|
|
21111
|
-
const admonitionContent = "
|
|
21112
|
-
const admonitionIcon = "
|
|
21105
|
+
const themeVars$a = `'{"maxWidth-Markdown": "var(--xmlui-maxWidth-Markdown)", "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)"}'`;
|
|
21106
|
+
const markdownContent = "_markdownContent_17igw_13";
|
|
21107
|
+
const blockquote = "_blockquote_17igw_16";
|
|
21108
|
+
const blockquoteContainer = "_blockquoteContainer_17igw_34";
|
|
21109
|
+
const admonitionBlockquote = "_admonitionBlockquote_17igw_37";
|
|
21110
|
+
const admonitionContainer = "_admonitionContainer_17igw_43";
|
|
21111
|
+
const admonitionContent = "_admonitionContent_17igw_48";
|
|
21112
|
+
const admonitionIcon = "_admonitionIcon_17igw_51";
|
|
21113
21113
|
const styles$l = {
|
|
21114
21114
|
themeVars: themeVars$a,
|
|
21115
21115
|
markdownContent,
|
|
@@ -21191,7 +21191,13 @@ const Markdown = memo(function Markdown2({
|
|
|
21191
21191
|
return /* @__PURE__ */ jsx("video", { className: styles$k.htmlVideo, ...props, children: children2 });
|
|
21192
21192
|
},
|
|
21193
21193
|
img({ children: children2, node, ...props }) {
|
|
21194
|
-
|
|
21194
|
+
const src = props == null ? void 0 : props.src;
|
|
21195
|
+
const popOut = props == null ? void 0 : props["data-popout"];
|
|
21196
|
+
if (popOut) {
|
|
21197
|
+
return /* @__PURE__ */ jsx("a", { href: src, target: "_blank", children: /* @__PURE__ */ jsx("img", { className: styles$k.htmlImage, ...props, children: children2 }) });
|
|
21198
|
+
} else {
|
|
21199
|
+
return /* @__PURE__ */ jsx("img", { className: styles$k.htmlImage, ...props, children: children2 });
|
|
21200
|
+
}
|
|
21195
21201
|
},
|
|
21196
21202
|
h1({ children: children2 }) {
|
|
21197
21203
|
return /* @__PURE__ */ jsx(Heading, { level: "h1", children: children2 });
|
|
@@ -21239,7 +21245,7 @@ const Markdown = memo(function Markdown2({
|
|
|
21239
21245
|
return /* @__PURE__ */ jsx("ul", { className: styles$k.htmlUl, ...props, children: children2 });
|
|
21240
21246
|
},
|
|
21241
21247
|
li({ children: children2, node, ...props }) {
|
|
21242
|
-
return /* @__PURE__ */ jsx("li", { className: styles$k.htmlLi, ...props, children: children2 });
|
|
21248
|
+
return /* @__PURE__ */ jsx("li", { className: styles$k.htmlLi, ...props, children: /* @__PURE__ */ jsx(Text, { children: children2 }) });
|
|
21243
21249
|
},
|
|
21244
21250
|
hr() {
|
|
21245
21251
|
return /* @__PURE__ */ jsx(HorizontalRule, {});
|
|
@@ -24103,7 +24109,8 @@ const InspectorContext = createContext(null);
|
|
|
24103
24109
|
function InspectorProvider({
|
|
24104
24110
|
children,
|
|
24105
24111
|
sources,
|
|
24106
|
-
projectCompilation
|
|
24112
|
+
projectCompilation,
|
|
24113
|
+
mockApi
|
|
24107
24114
|
}) {
|
|
24108
24115
|
const { root: root2 } = useTheme();
|
|
24109
24116
|
const [inspectable, setInspectable] = useState({});
|
|
@@ -24154,9 +24161,10 @@ function InspectorProvider({
|
|
|
24154
24161
|
devToolsSide,
|
|
24155
24162
|
setDevToolsSide,
|
|
24156
24163
|
devToolsEnabled: showCode,
|
|
24157
|
-
projectCompilation
|
|
24164
|
+
projectCompilation,
|
|
24165
|
+
mockApi
|
|
24158
24166
|
};
|
|
24159
|
-
}, [devToolsSide, devToolsSize, sources, inspectedNode, showCode, projectCompilation]);
|
|
24167
|
+
}, [devToolsSide, devToolsSize, sources, inspectedNode, showCode, projectCompilation, mockApi]);
|
|
24160
24168
|
return /* @__PURE__ */ jsxs(InspectorContext.Provider, { value: contextValue2, children: [
|
|
24161
24169
|
children,
|
|
24162
24170
|
process.env.VITE_USER_COMPONENTS_Inspect !== "false" && showCode && inspectedNode !== null && createPortal(devToolsEntry == null ? void 0 : devToolsEntry.renderer({}), root2),
|
|
@@ -24275,7 +24283,8 @@ function useDevTools() {
|
|
|
24275
24283
|
setDevToolsSize: context == null ? void 0 : context.setDevToolsSize,
|
|
24276
24284
|
devToolsSide: context == null ? void 0 : context.devToolsSide,
|
|
24277
24285
|
setDevToolsSide: context == null ? void 0 : context.setDevToolsSide,
|
|
24278
|
-
devToolsEnabled: context == null ? void 0 : context.devToolsEnabled
|
|
24286
|
+
devToolsEnabled: context == null ? void 0 : context.devToolsEnabled,
|
|
24287
|
+
mockApi: context == null ? void 0 : context.mockApi
|
|
24279
24288
|
};
|
|
24280
24289
|
}
|
|
24281
24290
|
function useInspector(node, uid) {
|
|
@@ -31645,7 +31654,7 @@ function IconProvider({ children }) {
|
|
|
31645
31654
|
/* @__PURE__ */ jsx("svg", { style: { display: "none" }, ref: spriteRootRef })
|
|
31646
31655
|
] });
|
|
31647
31656
|
}
|
|
31648
|
-
const version = "0.9.
|
|
31657
|
+
const version = "0.9.19";
|
|
31649
31658
|
const ApiInterceptorContext = createContext(null);
|
|
31650
31659
|
function useApiInterceptorContext() {
|
|
31651
31660
|
return useContext(ApiInterceptorContext);
|
|
@@ -35698,18 +35707,26 @@ const AppWrapper = ({
|
|
|
35698
35707
|
defaultTheme,
|
|
35699
35708
|
defaultTone,
|
|
35700
35709
|
resources,
|
|
35701
|
-
children: /* @__PURE__ */ jsx(
|
|
35702
|
-
|
|
35710
|
+
children: /* @__PURE__ */ jsx(
|
|
35711
|
+
InspectorProvider,
|
|
35703
35712
|
{
|
|
35704
|
-
|
|
35705
|
-
|
|
35706
|
-
globalProps,
|
|
35707
|
-
|
|
35708
|
-
|
|
35709
|
-
|
|
35710
|
-
|
|
35713
|
+
sources,
|
|
35714
|
+
projectCompilation,
|
|
35715
|
+
mockApi: globalProps.demoMockApi,
|
|
35716
|
+
children: /* @__PURE__ */ jsx(ConfirmationModalContextProvider, { children: /* @__PURE__ */ jsx(
|
|
35717
|
+
AppContent,
|
|
35718
|
+
{
|
|
35719
|
+
rootContainer: node,
|
|
35720
|
+
routerBaseName: baseName,
|
|
35721
|
+
globalProps,
|
|
35722
|
+
standalone,
|
|
35723
|
+
decorateComponentsWithTestId,
|
|
35724
|
+
debugEnabled,
|
|
35725
|
+
children
|
|
35726
|
+
}
|
|
35727
|
+
) })
|
|
35711
35728
|
}
|
|
35712
|
-
)
|
|
35729
|
+
)
|
|
35713
35730
|
}
|
|
35714
35731
|
) })
|
|
35715
35732
|
] })
|
|
@@ -35833,7 +35850,7 @@ function ApiInterceptorProvider({
|
|
|
35833
35850
|
let interceptorWorker;
|
|
35834
35851
|
(async () => {
|
|
35835
35852
|
if (process.env.VITE_MOCK_ENABLED) {
|
|
35836
|
-
const { createApiInterceptorWorker } = await import("./apiInterceptorWorker-
|
|
35853
|
+
const { createApiInterceptorWorker } = await import("./apiInterceptorWorker-BH8WAcl0.mjs");
|
|
35837
35854
|
if (interceptor) {
|
|
35838
35855
|
interceptorWorker = await createApiInterceptorWorker(interceptor, apiWorker);
|
|
35839
35856
|
if (!apiWorker) {
|
package/dist/index.css
CHANGED
|
@@ -6677,7 +6677,10 @@ button._selectTrigger_1ept5_46._valid_1ept5_37::placeholder {
|
|
|
6677
6677
|
* This function allows other CSS modules to get the value of the CSS variable specified in $componentVariable.
|
|
6678
6678
|
Optionally, you can provide a $fallbackValue to set the variable's value if that is not defined.
|
|
6679
6679
|
*/
|
|
6680
|
-
.
|
|
6680
|
+
._markdownContent_17igw_13 {
|
|
6681
|
+
max-width: var(--xmlui-maxWidth-Markdown);
|
|
6682
|
+
}
|
|
6683
|
+
._markdownContent_17igw_13 ._blockquote_17igw_16 {
|
|
6681
6684
|
position: relative;
|
|
6682
6685
|
margin-top: var(--xmlui-marginTop-Blockquote);
|
|
6683
6686
|
margin-bottom: var(--xmlui-marginBottom-Blockquote);
|
|
@@ -6685,7 +6688,7 @@ button._selectTrigger_1ept5_46._valid_1ept5_37::placeholder {
|
|
|
6685
6688
|
border-radius: var(--xmlui-borderRadius-Blockquote);
|
|
6686
6689
|
padding-left: var(--xmlui-paddingLeft-Blockquote);
|
|
6687
6690
|
}
|
|
6688
|
-
.
|
|
6691
|
+
._markdownContent_17igw_13 ._blockquote_17igw_16::before {
|
|
6689
6692
|
background-color: var(--xmlui-accentColor-Blockquote);
|
|
6690
6693
|
position: absolute;
|
|
6691
6694
|
top: 0;
|
|
@@ -6695,50 +6698,50 @@ button._selectTrigger_1ept5_46._valid_1ept5_37::placeholder {
|
|
|
6695
6698
|
height: 100%;
|
|
6696
6699
|
width: var(--xmlui-accentWidth-Blockquote);
|
|
6697
6700
|
}
|
|
6698
|
-
.
|
|
6699
|
-
padding: 0.5rem;
|
|
6701
|
+
._markdownContent_17igw_13 ._blockquoteContainer_17igw_34 {
|
|
6702
|
+
padding: 0.5rem 0.5rem 0.1rem 0.5rem;
|
|
6700
6703
|
}
|
|
6701
|
-
.
|
|
6704
|
+
._markdownContent_17igw_13 ._admonitionBlockquote_17igw_37 {
|
|
6702
6705
|
margin-top: var(--xmlui-marginTop-Admonition);
|
|
6703
6706
|
margin-bottom: var(--xmlui-marginBottom-Admonition);
|
|
6704
6707
|
background-color: var(--xmlui-backgroundColor-Admonition);
|
|
6705
6708
|
border-radius: var(--xmlui-borderRadius-Admonition);
|
|
6706
6709
|
}
|
|
6707
|
-
.
|
|
6710
|
+
._markdownContent_17igw_13 ._admonitionContainer_17igw_43 {
|
|
6708
6711
|
padding: 0.5rem;
|
|
6709
6712
|
display: flex;
|
|
6710
6713
|
align-items: flex-start;
|
|
6711
6714
|
}
|
|
6712
|
-
.
|
|
6715
|
+
._markdownContent_17igw_13 ._admonitionContent_17igw_48 {
|
|
6713
6716
|
margin-left: var(--xmlui-marginLeft-Admonition-content);
|
|
6714
6717
|
}
|
|
6715
|
-
.
|
|
6718
|
+
._markdownContent_17igw_13 ._admonitionIcon_17igw_51 {
|
|
6716
6719
|
font-size: var(--xmlui-iconSize-Admonition);
|
|
6717
6720
|
line-height: 1;
|
|
6718
6721
|
}
|
|
6719
|
-
.
|
|
6722
|
+
._markdownContent_17igw_13 ._admonitionContent_17igw_48 {
|
|
6720
6723
|
flex: 1;
|
|
6721
6724
|
min-width: 0;
|
|
6722
6725
|
}
|
|
6723
|
-
.
|
|
6726
|
+
._markdownContent_17igw_13 ._admonitionBlockquote_17igw_37 ._admonitionContent_17igw_48 [class*=text_][class*=markdown_] {
|
|
6724
6727
|
margin-top: 0;
|
|
6725
6728
|
margin-bottom: 0;
|
|
6726
6729
|
}
|
|
6727
|
-
.
|
|
6728
|
-
.
|
|
6730
|
+
._markdownContent_17igw_13 li:has(> input[type=checkbox]),
|
|
6731
|
+
._markdownContent_17igw_13 li:has(> input[type=checkbox]) {
|
|
6729
6732
|
display: flex;
|
|
6730
6733
|
align-items: flex-start;
|
|
6731
6734
|
}
|
|
6732
|
-
.
|
|
6733
|
-
.
|
|
6735
|
+
._markdownContent_17igw_13 li:has(> input[type=checkbox]) > input[type=checkbox],
|
|
6736
|
+
._markdownContent_17igw_13 li:has(> input[type=checkbox]) > input[type=checkbox] {
|
|
6734
6737
|
margin-right: 8px;
|
|
6735
6738
|
margin-top: 4px;
|
|
6736
6739
|
flex-shrink: 0;
|
|
6737
6740
|
}
|
|
6738
|
-
.
|
|
6741
|
+
._markdownContent_17igw_13 > *:first-child {
|
|
6739
6742
|
margin-top: 0;
|
|
6740
6743
|
}
|
|
6741
|
-
.
|
|
6744
|
+
._markdownContent_17igw_13 > *:last-child {
|
|
6742
6745
|
margin-bottom: 0;
|
|
6743
6746
|
}
|
|
6744
6747
|
|
|
@@ -342,7 +342,7 @@ exports.HtmlDetailsMd = (0, ComponentDefs_1.createMetadata)({
|
|
|
342
342
|
defaultThemeVars: {
|
|
343
343
|
"marginTop-HtmlDetails": "1rem",
|
|
344
344
|
"marginBottom-HtmlDetails": "1rem",
|
|
345
|
-
}
|
|
345
|
+
},
|
|
346
346
|
});
|
|
347
347
|
exports.htmlDetailsTagRenderer = (0, renderers_1.createComponentRenderer)("details", exports.HtmlDetailsMd, ({ node, renderChild, extractValue, extractResourceUrl, layoutCss }) => {
|
|
348
348
|
const p = new extractParam_1.PropsTrasform(extractValue, extractResourceUrl, layoutCss, node.props);
|
|
@@ -37,15 +37,22 @@ exports.Markdown = (0, react_1.memo)(function Markdown({ extractValue, removeInd
|
|
|
37
37
|
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, [bindingExpression, { extractValue }]], rehypePlugins: [rehype_raw_1.default], components: {
|
|
38
38
|
details(_a) {
|
|
39
39
|
var { children, node } = _a, props = __rest(_a, ["children", "node"]);
|
|
40
|
-
return (0, jsx_runtime_1.jsx)("details", Object.assign({ className: HtmlTags_module_scss_1.default.htmlDetails }, props, { children: children }));
|
|
40
|
+
return ((0, jsx_runtime_1.jsx)("details", Object.assign({ className: HtmlTags_module_scss_1.default.htmlDetails }, props, { children: children })));
|
|
41
41
|
},
|
|
42
42
|
video(_a) {
|
|
43
43
|
var { children, node } = _a, props = __rest(_a, ["children", "node"]);
|
|
44
|
-
return (0, jsx_runtime_1.jsx)("video", Object.assign({ className: HtmlTags_module_scss_1.default.htmlVideo }, props, { children: children }));
|
|
44
|
+
return ((0, jsx_runtime_1.jsx)("video", Object.assign({ className: HtmlTags_module_scss_1.default.htmlVideo }, props, { children: children })));
|
|
45
45
|
},
|
|
46
46
|
img(_a) {
|
|
47
47
|
var { children, node } = _a, props = __rest(_a, ["children", "node"]);
|
|
48
|
-
|
|
48
|
+
const src = props === null || props === void 0 ? void 0 : props.src;
|
|
49
|
+
const popOut = props === null || props === void 0 ? void 0 : props["data-popout"];
|
|
50
|
+
if (popOut) {
|
|
51
|
+
return ((0, jsx_runtime_1.jsx)("a", { href: src, target: "_blank", children: (0, jsx_runtime_1.jsx)("img", Object.assign({ className: HtmlTags_module_scss_1.default.htmlImage }, props, { children: children })) }));
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
return ((0, jsx_runtime_1.jsx)("img", Object.assign({ className: HtmlTags_module_scss_1.default.htmlImage }, props, { children: children })));
|
|
55
|
+
}
|
|
49
56
|
},
|
|
50
57
|
h1({ children }) {
|
|
51
58
|
return (0, jsx_runtime_1.jsx)(HeadingNative_1.Heading, { level: "h1", children: children });
|
|
@@ -88,22 +95,22 @@ exports.Markdown = (0, react_1.memo)(function Markdown({ extractValue, removeInd
|
|
|
88
95
|
},
|
|
89
96
|
ol(_a) {
|
|
90
97
|
var { children, node } = _a, props = __rest(_a, ["children", "node"]);
|
|
91
|
-
return (0, jsx_runtime_1.jsx)("ol", Object.assign({ className: HtmlTags_module_scss_1.default.htmlOl }, props, { children: children }));
|
|
98
|
+
return ((0, jsx_runtime_1.jsx)("ol", Object.assign({ className: HtmlTags_module_scss_1.default.htmlOl }, props, { children: children })));
|
|
92
99
|
},
|
|
93
100
|
ul(_a) {
|
|
94
101
|
var { children, node } = _a, props = __rest(_a, ["children", "node"]);
|
|
95
|
-
return (0, jsx_runtime_1.jsx)("ul", Object.assign({ className: HtmlTags_module_scss_1.default.htmlUl }, props, { children: children }));
|
|
102
|
+
return ((0, jsx_runtime_1.jsx)("ul", Object.assign({ className: HtmlTags_module_scss_1.default.htmlUl }, props, { children: children })));
|
|
96
103
|
},
|
|
97
104
|
li(_a) {
|
|
98
105
|
var { children, node } = _a, props = __rest(_a, ["children", "node"]);
|
|
99
|
-
return (0, jsx_runtime_1.jsx)("li", Object.assign({ className: HtmlTags_module_scss_1.default.htmlLi }, props, { children: children }));
|
|
106
|
+
return ((0, jsx_runtime_1.jsx)("li", Object.assign({ className: HtmlTags_module_scss_1.default.htmlLi }, props, { children: (0, jsx_runtime_1.jsx)(TextNative_1.Text, { children: children }) })));
|
|
100
107
|
},
|
|
101
108
|
hr() {
|
|
102
109
|
return (0, jsx_runtime_1.jsx)(HorizontalRule, {});
|
|
103
110
|
},
|
|
104
111
|
a(_a) {
|
|
105
112
|
var { children, href } = _a, props = __rest(_a, ["children", "href"]);
|
|
106
|
-
const allowedProps = [
|
|
113
|
+
const allowedProps = ["style", "disabled", "active", "icon", "onClick"];
|
|
107
114
|
return ((0, jsx_runtime_1.jsx)(LinkNative_1.LocalLink, Object.assign({ to: href }, allowedProps, { children: children })));
|
|
108
115
|
},
|
|
109
116
|
// TODO: somehow get the label from the containing li element
|
|
@@ -154,19 +161,19 @@ const HorizontalRule = () => {
|
|
|
154
161
|
const Blockquote = ({ children, style }) => {
|
|
155
162
|
// Helper function to extract text content from React nodes
|
|
156
163
|
const extractTextContent = (node) => {
|
|
157
|
-
if (typeof node ===
|
|
164
|
+
if (typeof node === "string") {
|
|
158
165
|
return node;
|
|
159
166
|
}
|
|
160
167
|
if (react_2.default.isValidElement(node) && node.props && node.props.children) {
|
|
161
168
|
if (Array.isArray(node.props.children)) {
|
|
162
|
-
return node.props.children.map(extractTextContent).join(
|
|
169
|
+
return node.props.children.map(extractTextContent).join("");
|
|
163
170
|
}
|
|
164
171
|
return extractTextContent(node.props.children);
|
|
165
172
|
}
|
|
166
|
-
return
|
|
173
|
+
return "";
|
|
167
174
|
};
|
|
168
175
|
// Extract all text content
|
|
169
|
-
const allText = react_2.default.Children.toArray(children).map(extractTextContent).join(
|
|
176
|
+
const allText = react_2.default.Children.toArray(children).map(extractTextContent).join("");
|
|
170
177
|
// Check for admonition pattern
|
|
171
178
|
const match = allText.match(/\[!([A-Z]+)\]/);
|
|
172
179
|
const isAdmonition = !!match;
|
|
@@ -174,16 +181,16 @@ const Blockquote = ({ children, style }) => {
|
|
|
174
181
|
const type = match[1].toLowerCase();
|
|
175
182
|
// Map admonition type to emoji
|
|
176
183
|
const emojiMap = {
|
|
177
|
-
info:
|
|
178
|
-
warning:
|
|
179
|
-
danger:
|
|
180
|
-
note:
|
|
181
|
-
tip:
|
|
184
|
+
info: "💡",
|
|
185
|
+
warning: "⚠️",
|
|
186
|
+
danger: "🚫",
|
|
187
|
+
note: "📝",
|
|
188
|
+
tip: "💬",
|
|
182
189
|
};
|
|
183
190
|
// Process children to remove the admonition marker
|
|
184
191
|
const processNode = (node) => {
|
|
185
|
-
if (typeof node ===
|
|
186
|
-
return node.replace(/\[!([A-Z]+)\]\s*/,
|
|
192
|
+
if (typeof node === "string") {
|
|
193
|
+
return node.replace(/\[!([A-Z]+)\]\s*/, "");
|
|
187
194
|
}
|
|
188
195
|
if (react_2.default.isValidElement(node)) {
|
|
189
196
|
// Handle React elements with children
|
|
@@ -205,7 +212,7 @@ const Blockquote = ({ children, style }) => {
|
|
|
205
212
|
};
|
|
206
213
|
const processedChildren = react_2.default.Children.map(children, processNode);
|
|
207
214
|
// Render admonition blockquote with the updated structure
|
|
208
|
-
return ((0, jsx_runtime_1.jsx)("blockquote", { className: Markdown_module_scss_1.default.admonitionBlockquote, style: style, children: (0, jsx_runtime_1.jsxs)("div", { className: Markdown_module_scss_1.default.admonitionContainer, children: [(0, jsx_runtime_1.jsx)("div", { className: `${Markdown_module_scss_1.default.admonitionIcon} ${Markdown_module_scss_1.default[type] ||
|
|
215
|
+
return ((0, jsx_runtime_1.jsx)("blockquote", { className: Markdown_module_scss_1.default.admonitionBlockquote, style: style, children: (0, jsx_runtime_1.jsxs)("div", { className: Markdown_module_scss_1.default.admonitionContainer, children: [(0, jsx_runtime_1.jsx)("div", { className: `${Markdown_module_scss_1.default.admonitionIcon} ${Markdown_module_scss_1.default[type] || ""}`, children: emojiMap[type] || "💡" }), (0, jsx_runtime_1.jsx)("div", { className: Markdown_module_scss_1.default.admonitionContent, children: processedChildren })] }) }));
|
|
209
216
|
}
|
|
210
217
|
return ((0, jsx_runtime_1.jsx)("blockquote", { className: Markdown_module_scss_1.default.blockquote, style: style, children: (0, jsx_runtime_1.jsx)("div", { className: Markdown_module_scss_1.default.blockquoteContainer, children: children }) }));
|
|
211
218
|
};
|
|
@@ -19,7 +19,7 @@ const InspectorButton_module_scss_1 = __importDefault(require("./InspectorButton
|
|
|
19
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
|
-
function InspectorProvider({ children, sources, projectCompilation, }) {
|
|
22
|
+
function InspectorProvider({ children, sources, projectCompilation, mockApi, }) {
|
|
23
23
|
const { root } = (0, ThemeContext_1.useTheme)();
|
|
24
24
|
const [inspectable, setInspectable] = (0, react_1.useState)({});
|
|
25
25
|
const [inspectedNode, setInspectedNode] = (0, react_1.useState)(null);
|
|
@@ -61,8 +61,9 @@ function InspectorProvider({ children, sources, projectCompilation, }) {
|
|
|
61
61
|
setDevToolsSide,
|
|
62
62
|
devToolsEnabled: showCode,
|
|
63
63
|
projectCompilation: projectCompilation,
|
|
64
|
+
mockApi,
|
|
64
65
|
};
|
|
65
|
-
}, [devToolsSide, devToolsSize, sources, inspectedNode, showCode, projectCompilation]);
|
|
66
|
+
}, [devToolsSide, devToolsSize, sources, inspectedNode, showCode, projectCompilation, mockApi]);
|
|
66
67
|
return ((0, jsx_runtime_1.jsxs)(exports.InspectorContext.Provider, { value: contextValue, children: [children, process.env.VITE_USER_COMPONENTS_Inspect !== "false" &&
|
|
67
68
|
showCode &&
|
|
68
69
|
inspectedNode !== null &&
|
|
@@ -155,6 +156,7 @@ function useDevTools() {
|
|
|
155
156
|
devToolsSide: context === null || context === void 0 ? void 0 : context.devToolsSide,
|
|
156
157
|
setDevToolsSide: context === null || context === void 0 ? void 0 : context.setDevToolsSide,
|
|
157
158
|
devToolsEnabled: context === null || context === void 0 ? void 0 : context.devToolsEnabled,
|
|
159
|
+
mockApi: context === null || context === void 0 ? void 0 : context.mockApi,
|
|
158
160
|
};
|
|
159
161
|
}
|
|
160
162
|
function useInspector(node, uid) {
|
package/dist/style.css
CHANGED
|
@@ -5626,7 +5626,10 @@ button._selectTrigger_1ept5_46._valid_1ept5_37::placeholder {
|
|
|
5626
5626
|
* This function allows other CSS modules to get the value of the CSS variable specified in $componentVariable.
|
|
5627
5627
|
Optionally, you can provide a $fallbackValue to set the variable's value if that is not defined.
|
|
5628
5628
|
*/
|
|
5629
|
-
.
|
|
5629
|
+
._markdownContent_17igw_13 {
|
|
5630
|
+
max-width: var(--xmlui-maxWidth-Markdown);
|
|
5631
|
+
}
|
|
5632
|
+
._markdownContent_17igw_13 ._blockquote_17igw_16 {
|
|
5630
5633
|
position: relative;
|
|
5631
5634
|
margin-top: var(--xmlui-marginTop-Blockquote);
|
|
5632
5635
|
margin-bottom: var(--xmlui-marginBottom-Blockquote);
|
|
@@ -5634,7 +5637,7 @@ button._selectTrigger_1ept5_46._valid_1ept5_37::placeholder {
|
|
|
5634
5637
|
border-radius: var(--xmlui-borderRadius-Blockquote);
|
|
5635
5638
|
padding-left: var(--xmlui-paddingLeft-Blockquote);
|
|
5636
5639
|
}
|
|
5637
|
-
.
|
|
5640
|
+
._markdownContent_17igw_13 ._blockquote_17igw_16::before {
|
|
5638
5641
|
background-color: var(--xmlui-accentColor-Blockquote);
|
|
5639
5642
|
position: absolute;
|
|
5640
5643
|
top: 0;
|
|
@@ -5644,50 +5647,50 @@ button._selectTrigger_1ept5_46._valid_1ept5_37::placeholder {
|
|
|
5644
5647
|
height: 100%;
|
|
5645
5648
|
width: var(--xmlui-accentWidth-Blockquote);
|
|
5646
5649
|
}
|
|
5647
|
-
.
|
|
5648
|
-
padding: 0.5rem;
|
|
5650
|
+
._markdownContent_17igw_13 ._blockquoteContainer_17igw_34 {
|
|
5651
|
+
padding: 0.5rem 0.5rem 0.1rem 0.5rem;
|
|
5649
5652
|
}
|
|
5650
|
-
.
|
|
5653
|
+
._markdownContent_17igw_13 ._admonitionBlockquote_17igw_37 {
|
|
5651
5654
|
margin-top: var(--xmlui-marginTop-Admonition);
|
|
5652
5655
|
margin-bottom: var(--xmlui-marginBottom-Admonition);
|
|
5653
5656
|
background-color: var(--xmlui-backgroundColor-Admonition);
|
|
5654
5657
|
border-radius: var(--xmlui-borderRadius-Admonition);
|
|
5655
5658
|
}
|
|
5656
|
-
.
|
|
5659
|
+
._markdownContent_17igw_13 ._admonitionContainer_17igw_43 {
|
|
5657
5660
|
padding: 0.5rem;
|
|
5658
5661
|
display: flex;
|
|
5659
5662
|
align-items: flex-start;
|
|
5660
5663
|
}
|
|
5661
|
-
.
|
|
5664
|
+
._markdownContent_17igw_13 ._admonitionContent_17igw_48 {
|
|
5662
5665
|
margin-left: var(--xmlui-marginLeft-Admonition-content);
|
|
5663
5666
|
}
|
|
5664
|
-
.
|
|
5667
|
+
._markdownContent_17igw_13 ._admonitionIcon_17igw_51 {
|
|
5665
5668
|
font-size: var(--xmlui-iconSize-Admonition);
|
|
5666
5669
|
line-height: 1;
|
|
5667
5670
|
}
|
|
5668
|
-
.
|
|
5671
|
+
._markdownContent_17igw_13 ._admonitionContent_17igw_48 {
|
|
5669
5672
|
flex: 1;
|
|
5670
5673
|
min-width: 0;
|
|
5671
5674
|
}
|
|
5672
|
-
.
|
|
5675
|
+
._markdownContent_17igw_13 ._admonitionBlockquote_17igw_37 ._admonitionContent_17igw_48 [class*=text_][class*=markdown_] {
|
|
5673
5676
|
margin-top: 0;
|
|
5674
5677
|
margin-bottom: 0;
|
|
5675
5678
|
}
|
|
5676
|
-
.
|
|
5677
|
-
.
|
|
5679
|
+
._markdownContent_17igw_13 li:has(> input[type=checkbox]),
|
|
5680
|
+
._markdownContent_17igw_13 li:has(> input[type=checkbox]) {
|
|
5678
5681
|
display: flex;
|
|
5679
5682
|
align-items: flex-start;
|
|
5680
5683
|
}
|
|
5681
|
-
.
|
|
5682
|
-
.
|
|
5684
|
+
._markdownContent_17igw_13 li:has(> input[type=checkbox]) > input[type=checkbox],
|
|
5685
|
+
._markdownContent_17igw_13 li:has(> input[type=checkbox]) > input[type=checkbox] {
|
|
5683
5686
|
margin-right: 8px;
|
|
5684
5687
|
margin-top: 4px;
|
|
5685
5688
|
flex-shrink: 0;
|
|
5686
5689
|
}
|
|
5687
|
-
.
|
|
5690
|
+
._markdownContent_17igw_13 > *:first-child {
|
|
5688
5691
|
margin-top: 0;
|
|
5689
5692
|
}
|
|
5690
|
-
.
|
|
5693
|
+
._markdownContent_17igw_13 > *:last-child {
|
|
5691
5694
|
margin-bottom: 0;
|
|
5692
5695
|
}
|
|
5693
5696
|
|
package/dist/xmlui-metadata.mjs
CHANGED
|
@@ -15339,7 +15339,7 @@ const LogoMd = createMetadata({
|
|
|
15339
15339
|
status: "experimental",
|
|
15340
15340
|
description: `The \`${COMP$H}\` component represents a logo or a brand symbol. Usually, you use this component in the [\`AppHeader\`](./AppHeader.mdx#logotemplate).`
|
|
15341
15341
|
});
|
|
15342
|
-
const themeVars$f = `'{"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)"}'`;
|
|
15342
|
+
const themeVars$f = `'{"maxWidth-Markdown": "var(--xmlui-maxWidth-Markdown)", "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)"}'`;
|
|
15343
15343
|
const styles$g = {
|
|
15344
15344
|
themeVars: themeVars$f
|
|
15345
15345
|
};
|
|
@@ -15336,7 +15336,7 @@
|
|
|
15336
15336
|
status: "experimental",
|
|
15337
15337
|
description: `The \`${COMP$H}\` component represents a logo or a brand symbol. Usually, you use this component in the [\`AppHeader\`](./AppHeader.mdx#logotemplate).`
|
|
15338
15338
|
});
|
|
15339
|
-
const themeVars$f = `'{"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)"}'`;
|
|
15339
|
+
const themeVars$f = `'{"maxWidth-Markdown": "var(--xmlui-maxWidth-Markdown)", "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)"}'`;
|
|
15340
15340
|
const styles$g = {
|
|
15341
15341
|
themeVars: themeVars$f
|
|
15342
15342
|
};
|
|
@@ -6599,7 +6599,10 @@ button._selectTrigger_1ept5_46._valid_1ept5_37::placeholder {
|
|
|
6599
6599
|
* This function allows other CSS modules to get the value of the CSS variable specified in $componentVariable.
|
|
6600
6600
|
Optionally, you can provide a $fallbackValue to set the variable's value if that is not defined.
|
|
6601
6601
|
*/
|
|
6602
|
-
.
|
|
6602
|
+
._markdownContent_17igw_13 {
|
|
6603
|
+
max-width: var(--xmlui-maxWidth-Markdown);
|
|
6604
|
+
}
|
|
6605
|
+
._markdownContent_17igw_13 ._blockquote_17igw_16 {
|
|
6603
6606
|
position: relative;
|
|
6604
6607
|
margin-top: var(--xmlui-marginTop-Blockquote);
|
|
6605
6608
|
margin-bottom: var(--xmlui-marginBottom-Blockquote);
|
|
@@ -6607,7 +6610,7 @@ button._selectTrigger_1ept5_46._valid_1ept5_37::placeholder {
|
|
|
6607
6610
|
border-radius: var(--xmlui-borderRadius-Blockquote);
|
|
6608
6611
|
padding-left: var(--xmlui-paddingLeft-Blockquote);
|
|
6609
6612
|
}
|
|
6610
|
-
.
|
|
6613
|
+
._markdownContent_17igw_13 ._blockquote_17igw_16::before {
|
|
6611
6614
|
background-color: var(--xmlui-accentColor-Blockquote);
|
|
6612
6615
|
position: absolute;
|
|
6613
6616
|
top: 0;
|
|
@@ -6617,50 +6620,50 @@ button._selectTrigger_1ept5_46._valid_1ept5_37::placeholder {
|
|
|
6617
6620
|
height: 100%;
|
|
6618
6621
|
width: var(--xmlui-accentWidth-Blockquote);
|
|
6619
6622
|
}
|
|
6620
|
-
.
|
|
6621
|
-
padding: 0.5rem;
|
|
6623
|
+
._markdownContent_17igw_13 ._blockquoteContainer_17igw_34 {
|
|
6624
|
+
padding: 0.5rem 0.5rem 0.1rem 0.5rem;
|
|
6622
6625
|
}
|
|
6623
|
-
.
|
|
6626
|
+
._markdownContent_17igw_13 ._admonitionBlockquote_17igw_37 {
|
|
6624
6627
|
margin-top: var(--xmlui-marginTop-Admonition);
|
|
6625
6628
|
margin-bottom: var(--xmlui-marginBottom-Admonition);
|
|
6626
6629
|
background-color: var(--xmlui-backgroundColor-Admonition);
|
|
6627
6630
|
border-radius: var(--xmlui-borderRadius-Admonition);
|
|
6628
6631
|
}
|
|
6629
|
-
.
|
|
6632
|
+
._markdownContent_17igw_13 ._admonitionContainer_17igw_43 {
|
|
6630
6633
|
padding: 0.5rem;
|
|
6631
6634
|
display: flex;
|
|
6632
6635
|
align-items: flex-start;
|
|
6633
6636
|
}
|
|
6634
|
-
.
|
|
6637
|
+
._markdownContent_17igw_13 ._admonitionContent_17igw_48 {
|
|
6635
6638
|
margin-left: var(--xmlui-marginLeft-Admonition-content);
|
|
6636
6639
|
}
|
|
6637
|
-
.
|
|
6640
|
+
._markdownContent_17igw_13 ._admonitionIcon_17igw_51 {
|
|
6638
6641
|
font-size: var(--xmlui-iconSize-Admonition);
|
|
6639
6642
|
line-height: 1;
|
|
6640
6643
|
}
|
|
6641
|
-
.
|
|
6644
|
+
._markdownContent_17igw_13 ._admonitionContent_17igw_48 {
|
|
6642
6645
|
flex: 1;
|
|
6643
6646
|
min-width: 0;
|
|
6644
6647
|
}
|
|
6645
|
-
.
|
|
6648
|
+
._markdownContent_17igw_13 ._admonitionBlockquote_17igw_37 ._admonitionContent_17igw_48 [class*=text_][class*=markdown_] {
|
|
6646
6649
|
margin-top: 0;
|
|
6647
6650
|
margin-bottom: 0;
|
|
6648
6651
|
}
|
|
6649
|
-
.
|
|
6650
|
-
.
|
|
6652
|
+
._markdownContent_17igw_13 li:has(> input[type=checkbox]),
|
|
6653
|
+
._markdownContent_17igw_13 li:has(> input[type=checkbox]) {
|
|
6651
6654
|
display: flex;
|
|
6652
6655
|
align-items: flex-start;
|
|
6653
6656
|
}
|
|
6654
|
-
.
|
|
6655
|
-
.
|
|
6657
|
+
._markdownContent_17igw_13 li:has(> input[type=checkbox]) > input[type=checkbox],
|
|
6658
|
+
._markdownContent_17igw_13 li:has(> input[type=checkbox]) > input[type=checkbox] {
|
|
6656
6659
|
margin-right: 8px;
|
|
6657
6660
|
margin-top: 4px;
|
|
6658
6661
|
flex-shrink: 0;
|
|
6659
6662
|
}
|
|
6660
|
-
.
|
|
6663
|
+
._markdownContent_17igw_13 > *:first-child {
|
|
6661
6664
|
margin-top: 0;
|
|
6662
6665
|
}
|
|
6663
|
-
.
|
|
6666
|
+
._markdownContent_17igw_13 > *:last-child {
|
|
6664
6667
|
margin-bottom: 0;
|
|
6665
6668
|
}
|
|
6666
6669
|
|
|
@@ -15988,7 +15991,7 @@ li .htmlOl {
|
|
|
15988
15991
|
});
|
|
15989
15992
|
}
|
|
15990
15993
|
}
|
|
15991
|
-
var define_process_env_default$a = { NODE_ENV: "production", VITE_MOCK_ENABLED: true, VITE_MOCK_WORKER_LOCATION: "mockApi.js", VITE_USED_COMPONENTS_Pdf: "false", VITE_USED_COMPONENTS_Chart: "false", VITE_USER_COMPONENTS_XmluiCodeHightlighter: "false", VITE_USED_COMPONENTS_Tree: "false", VITE_XMLUI_VERSION: "0.9.
|
|
15994
|
+
var define_process_env_default$a = { NODE_ENV: "production", VITE_MOCK_ENABLED: true, VITE_MOCK_WORKER_LOCATION: "mockApi.js", VITE_USED_COMPONENTS_Pdf: "false", VITE_USED_COMPONENTS_Chart: "false", VITE_USER_COMPONENTS_XmluiCodeHightlighter: "false", VITE_USED_COMPONENTS_Tree: "false", VITE_XMLUI_VERSION: "0.9.19 (built 4/25/2025)" };
|
|
15992
15995
|
class Mutation extends Removable {
|
|
15993
15996
|
constructor(config) {
|
|
15994
15997
|
super();
|
|
@@ -99271,14 +99274,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
99271
99274
|
);
|
|
99272
99275
|
}
|
|
99273
99276
|
);
|
|
99274
|
-
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)"}'`;
|
|
99275
|
-
const markdownContent = "
|
|
99276
|
-
const blockquote$3 = "
|
|
99277
|
-
const blockquoteContainer = "
|
|
99278
|
-
const admonitionBlockquote = "
|
|
99279
|
-
const admonitionContainer = "
|
|
99280
|
-
const admonitionContent = "
|
|
99281
|
-
const admonitionIcon = "
|
|
99277
|
+
const themeVars$a = `'{"maxWidth-Markdown": "var(--xmlui-maxWidth-Markdown)", "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)"}'`;
|
|
99278
|
+
const markdownContent = "_markdownContent_17igw_13";
|
|
99279
|
+
const blockquote$3 = "_blockquote_17igw_16";
|
|
99280
|
+
const blockquoteContainer = "_blockquoteContainer_17igw_34";
|
|
99281
|
+
const admonitionBlockquote = "_admonitionBlockquote_17igw_37";
|
|
99282
|
+
const admonitionContainer = "_admonitionContainer_17igw_43";
|
|
99283
|
+
const admonitionContent = "_admonitionContent_17igw_48";
|
|
99284
|
+
const admonitionIcon = "_admonitionIcon_17igw_51";
|
|
99282
99285
|
const styles$k = {
|
|
99283
99286
|
themeVars: themeVars$a,
|
|
99284
99287
|
markdownContent,
|
|
@@ -125715,7 +125718,13 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
125715
125718
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("video", { className: styles$j.htmlVideo, ...props, children: children2 });
|
|
125716
125719
|
},
|
|
125717
125720
|
img({ children: children2, node: node2, ...props }) {
|
|
125718
|
-
|
|
125721
|
+
const src = props == null ? void 0 : props.src;
|
|
125722
|
+
const popOut = props == null ? void 0 : props["data-popout"];
|
|
125723
|
+
if (popOut) {
|
|
125724
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: src, target: "_blank", children: /* @__PURE__ */ jsxRuntimeExports.jsx("img", { className: styles$j.htmlImage, ...props, children: children2 }) });
|
|
125725
|
+
} else {
|
|
125726
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("img", { className: styles$j.htmlImage, ...props, children: children2 });
|
|
125727
|
+
}
|
|
125719
125728
|
},
|
|
125720
125729
|
h1({ children: children2 }) {
|
|
125721
125730
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Heading, { level: "h1", children: children2 });
|
|
@@ -125763,7 +125772,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
125763
125772
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: styles$j.htmlUl, ...props, children: children2 });
|
|
125764
125773
|
},
|
|
125765
125774
|
li({ children: children2, node: node2, ...props }) {
|
|
125766
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("li", { className: styles$j.htmlLi, ...props, children: children2 });
|
|
125775
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("li", { className: styles$j.htmlLi, ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { children: children2 }) });
|
|
125767
125776
|
},
|
|
125768
125777
|
hr() {
|
|
125769
125778
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(HorizontalRule, {});
|
|
@@ -132885,7 +132894,8 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
132885
132894
|
function InspectorProvider({
|
|
132886
132895
|
children,
|
|
132887
132896
|
sources,
|
|
132888
|
-
projectCompilation
|
|
132897
|
+
projectCompilation,
|
|
132898
|
+
mockApi
|
|
132889
132899
|
}) {
|
|
132890
132900
|
const { root: root2 } = useTheme();
|
|
132891
132901
|
const [inspectable, setInspectable] = reactExports.useState({});
|
|
@@ -132936,9 +132946,10 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
132936
132946
|
devToolsSide,
|
|
132937
132947
|
setDevToolsSide,
|
|
132938
132948
|
devToolsEnabled: showCode,
|
|
132939
|
-
projectCompilation
|
|
132949
|
+
projectCompilation,
|
|
132950
|
+
mockApi
|
|
132940
132951
|
};
|
|
132941
|
-
}, [devToolsSide, devToolsSize, sources, inspectedNode, showCode, projectCompilation]);
|
|
132952
|
+
}, [devToolsSide, devToolsSize, sources, inspectedNode, showCode, projectCompilation, mockApi]);
|
|
132942
132953
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(InspectorContext.Provider, { value: contextValue2, children: [
|
|
132943
132954
|
children,
|
|
132944
132955
|
define_process_env_default$7.VITE_USER_COMPONENTS_Inspect !== "false" && showCode && inspectedNode !== null && reactDomExports.createPortal(devToolsEntry == null ? void 0 : devToolsEntry.renderer({}), root2),
|
|
@@ -133057,7 +133068,8 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
133057
133068
|
setDevToolsSize: context == null ? void 0 : context.setDevToolsSize,
|
|
133058
133069
|
devToolsSide: context == null ? void 0 : context.devToolsSide,
|
|
133059
133070
|
setDevToolsSide: context == null ? void 0 : context.setDevToolsSide,
|
|
133060
|
-
devToolsEnabled: context == null ? void 0 : context.devToolsEnabled
|
|
133071
|
+
devToolsEnabled: context == null ? void 0 : context.devToolsEnabled,
|
|
133072
|
+
mockApi: context == null ? void 0 : context.mockApi
|
|
133061
133073
|
};
|
|
133062
133074
|
}
|
|
133063
133075
|
function useInspector(node2, uid) {
|
|
@@ -143971,7 +143983,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
143971
143983
|
/* @__PURE__ */ jsxRuntimeExports.jsx("svg", { style: { display: "none" }, ref: spriteRootRef })
|
|
143972
143984
|
] });
|
|
143973
143985
|
}
|
|
143974
|
-
const version = "0.9.
|
|
143986
|
+
const version = "0.9.19";
|
|
143975
143987
|
const ApiInterceptorContext = reactExports.createContext(null);
|
|
143976
143988
|
function useApiInterceptorContext() {
|
|
143977
143989
|
return reactExports.useContext(ApiInterceptorContext);
|
|
@@ -148108,18 +148120,26 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
148108
148120
|
defaultTheme,
|
|
148109
148121
|
defaultTone,
|
|
148110
148122
|
resources,
|
|
148111
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
148112
|
-
|
|
148123
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
148124
|
+
InspectorProvider,
|
|
148113
148125
|
{
|
|
148114
|
-
|
|
148115
|
-
|
|
148116
|
-
globalProps,
|
|
148117
|
-
|
|
148118
|
-
|
|
148119
|
-
|
|
148120
|
-
|
|
148126
|
+
sources,
|
|
148127
|
+
projectCompilation,
|
|
148128
|
+
mockApi: globalProps.demoMockApi,
|
|
148129
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ConfirmationModalContextProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
148130
|
+
AppContent,
|
|
148131
|
+
{
|
|
148132
|
+
rootContainer: node2,
|
|
148133
|
+
routerBaseName: baseName,
|
|
148134
|
+
globalProps,
|
|
148135
|
+
standalone,
|
|
148136
|
+
decorateComponentsWithTestId,
|
|
148137
|
+
debugEnabled,
|
|
148138
|
+
children
|
|
148139
|
+
}
|
|
148140
|
+
) })
|
|
148121
148141
|
}
|
|
148122
|
-
)
|
|
148142
|
+
)
|
|
148123
148143
|
}
|
|
148124
148144
|
) })
|
|
148125
148145
|
] })
|
|
@@ -148953,7 +148973,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
148953
148973
|
ToneChangerButton: ToneChangerButtonMd,
|
|
148954
148974
|
Tree: TreeMd
|
|
148955
148975
|
};
|
|
148956
|
-
var define_process_env_default$2 = { VITE_XMLUI_VERSION: "0.9.
|
|
148976
|
+
var define_process_env_default$2 = { VITE_XMLUI_VERSION: "0.9.19 (built 4/25/2025)" };
|
|
148957
148977
|
const MAIN_FILE = "Main." + componentFileExtension;
|
|
148958
148978
|
const MAIN_CODE_BEHIND_FILE = "Main." + codeBehindFileExtension;
|
|
148959
148979
|
const CONFIG_FILE = "config.json";
|
|
@@ -153391,7 +153411,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
153391
153411
|
function isResponseWithoutBody(status) {
|
|
153392
153412
|
return RESPONSE_STATUS_CODES_WITHOUT_BODY.has(status);
|
|
153393
153413
|
}
|
|
153394
|
-
var define_process_env_default$1 = { NODE_ENV: "production", VITE_MOCK_ENABLED: true, VITE_MOCK_WORKER_LOCATION: "mockApi.js", VITE_USED_COMPONENTS_Pdf: "false", VITE_USED_COMPONENTS_Chart: "false", VITE_USER_COMPONENTS_XmluiCodeHightlighter: "false", VITE_USED_COMPONENTS_Tree: "false", VITE_XMLUI_VERSION: "0.9.
|
|
153414
|
+
var define_process_env_default$1 = { NODE_ENV: "production", VITE_MOCK_ENABLED: true, VITE_MOCK_WORKER_LOCATION: "mockApi.js", VITE_USED_COMPONENTS_Pdf: "false", VITE_USED_COMPONENTS_Chart: "false", VITE_USER_COMPONENTS_XmluiCodeHightlighter: "false", VITE_USED_COMPONENTS_Tree: "false", VITE_XMLUI_VERSION: "0.9.19 (built 4/25/2025)" };
|
|
153395
153415
|
var __defProp$7 = Object.defineProperty;
|
|
153396
153416
|
var __export = (target2, all2) => {
|
|
153397
153417
|
for (var name2 in all2)
|
package/dist/xmlui.d.ts
CHANGED
|
@@ -1932,6 +1932,7 @@ export declare function useDevTools(): {
|
|
|
1932
1932
|
devToolsSide: "left" | "right" | "bottom";
|
|
1933
1933
|
setDevToolsSide: (side: "left" | "right" | "bottom") => void;
|
|
1934
1934
|
devToolsEnabled: boolean;
|
|
1935
|
+
mockApi: any;
|
|
1935
1936
|
};
|
|
1936
1937
|
|
|
1937
1938
|
export declare const useLogger: () => LogContextType;
|
package/dist/xmlui.mjs
CHANGED