@patternfly/patternfly-doc-core 1.9.1 → 1.11.0
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/astro.config.mjs +3 -4
- package/cli/cli.ts +60 -19
- package/cli/convertToMDX.ts +77 -22
- package/dist/.assetsignore +2 -0
- package/dist/_astro/ClientRouter.astro_astro_type_script_index_0_lang.CtSceO8m.js +1 -0
- package/dist/{client/_astro/LiveExample.DZkxbJA_.js → _astro/LiveExample.DjPiO80i.js} +1 -1
- package/dist/_astro/client.DN8ES6L5.js +1 -0
- package/dist/_routes.json +20 -0
- package/dist/_worker.js/_@astrojs-ssr-adapter.mjs +2 -0
- package/dist/_worker.js/_astro-internal_middleware.mjs +21 -0
- package/dist/_worker.js/_noop-actions.mjs +4 -0
- package/dist/{server/chunks/AutoLinkHeader_C2GD0g-K.mjs → _worker.js/chunks/AutoLinkHeader_xh_mBOfs.mjs} +13 -14
- package/dist/{server/chunks/Button_BKhHR-ak.mjs → _worker.js/chunks/Button_ByndGYyw.mjs} +83 -13
- package/dist/{server/chunks/CSSTable_B8tlH3gz.mjs → _worker.js/chunks/CSSTable_DAbso55e.mjs} +3 -3
- package/dist/_worker.js/chunks/PropsTables_BZngJp47.mjs +6628 -0
- package/dist/_worker.js/chunks/_@astrojs-ssr-adapter_C9Nk07-M.mjs +1082 -0
- package/dist/_worker.js/chunks/angle-down-icon_yt3z9cvI.mjs +3686 -0
- package/dist/_worker.js/chunks/astro/server_BpfPtTmt.mjs +7278 -0
- package/dist/_worker.js/chunks/astro-designed-error-pages_4xWqsa9_.mjs +928 -0
- package/dist/_worker.js/chunks/cloudflare-kv-binding_DMly_2Gl.mjs +107 -0
- package/dist/_worker.js/chunks/index_Dc2aKkl4.mjs +57 -0
- package/dist/{server/chunks/_@astrojs-ssr-adapter_CbICuCdt.mjs → _worker.js/chunks/index_DlGha6WC.mjs} +1295 -1817
- package/dist/_worker.js/chunks/noop-middleware_Ct44Kk5Y.mjs +10 -0
- package/dist/_worker.js/chunks/parse_EttCPxrw.mjs +271 -0
- package/dist/{server/chunks/path_Cvt6sEOY.mjs → _worker.js/chunks/path_C-ZOwaTP.mjs} +2 -1
- package/dist/{server/entry.mjs → _worker.js/index.js} +12 -19
- package/dist/_worker.js/manifest_DcBPbZXQ.mjs +100 -0
- package/dist/_worker.js/pages/_image.astro.mjs +24 -0
- package/dist/_worker.js/pages/_section_/_page_/_---tab_.astro.mjs +1 -0
- package/dist/_worker.js/pages/index.astro.mjs +1 -0
- package/dist/{server → _worker.js}/pages/props.astro.mjs +3 -2
- package/dist/_worker.js/renderers.mjs +484 -0
- package/dist/cli/cli.js +46 -12
- package/dist/cli/convertToMDX.js +53 -16
- package/dist/components/accordion/index.html +60 -0
- package/dist/components/accordion/react/index.html +60 -0
- package/dist/components/all-components/index.html +47 -0
- package/dist/design-foundations/typography/index.html +198 -0
- package/dist/{client/design-foundations → design-foundations}/usage-and-behavior/index.html +4 -54
- package/dist/get-started/contribute/index.html +94 -0
- package/dist/index.html +43 -0
- package/package.json +12 -8
- package/public/.assetsignore +2 -0
- package/src/components/LiveExample.astro +2 -2
- package/src/components/LiveExample.tsx +38 -9
- package/src/pages/props.ts +2 -2
- package/wrangler.jsonc +14 -0
- package/dist/client/_astro/ClientRouter.astro_astro_type_script_index_0_lang.Cainpjm5.js +0 -1
- package/dist/client/_astro/client.zs76E0tG.js +0 -1
- package/dist/client/components/accordion/index.html +0 -110
- package/dist/client/components/accordion/react/index.html +0 -110
- package/dist/client/components/all-components/index.html +0 -97
- package/dist/client/design-foundations/typography/index.html +0 -248
- package/dist/client/get-started/contribute/index.html +0 -144
- package/dist/client/index.html +0 -43
- package/dist/server/_@astrojs-ssr-adapter.mjs +0 -1
- package/dist/server/_noop-middleware.mjs +0 -3
- package/dist/server/chunks/PropsTables_PVzRHJNB.mjs +0 -1750
- package/dist/server/chunks/_astro_assets_DaYumpRZ.mjs +0 -1507
- package/dist/server/chunks/angle-down-icon_BO1Ed-9Z.mjs +0 -3288
- package/dist/server/chunks/astro/server_Cl9jPh4p.mjs +0 -2859
- package/dist/server/chunks/astro-designed-error-pages_BFveJFnQ.mjs +0 -282
- package/dist/server/chunks/consts_BmVDRGlB.mjs +0 -32
- package/dist/server/chunks/sharp_CbOL3WDk.mjs +0 -88
- package/dist/server/manifest_DxJLmW-j.mjs +0 -102
- package/dist/server/pages/_image.astro.mjs +0 -132
- package/dist/server/renderers.mjs +0 -308
- /package/dist/{client/PF-HorizontalLogo-Color.svg → PF-HorizontalLogo-Color.svg} +0 -0
- /package/dist/{client/PF-HorizontalLogo-Reverse.svg → PF-HorizontalLogo-Reverse.svg} +0 -0
- /package/dist/{client/_astro → _astro}/Button.BQCwQ5pE.js +0 -0
- /package/dist/{client/_astro → _astro}/CSSTable.DC79W1Ct.js +0 -0
- /package/dist/{client/_astro → _astro}/Content.B4M2qzJY.js +0 -0
- /package/dist/{client/_astro → _astro}/DropdownList.cxp03sS4.js +0 -0
- /package/dist/{client/_astro → _astro}/LiveExample.CxJsMvEq.css +0 -0
- /package/dist/{client/_astro → _astro}/Navigation.kbLxctIo.js +0 -0
- /package/dist/{client/_astro → _astro}/PageContext.miTsIqVo.js +0 -0
- /package/dist/{client/_astro → _astro}/PageSidebarBody.B0AJe8Hg.js +0 -0
- /package/dist/{client/_astro → _astro}/PageToggle.CMZ3C1v1.js +0 -0
- /package/dist/{client/_astro → _astro}/RedHatDisplayVF-Italic.CRpusWc8.woff2 +0 -0
- /package/dist/{client/_astro → _astro}/RedHatDisplayVF.CYDHf1NI.woff2 +0 -0
- /package/dist/{client/_astro → _astro}/RedHatMonoVF-Italic.DGQo2ogW.woff2 +0 -0
- /package/dist/{client/_astro → _astro}/RedHatMonoVF.C4fMH6Vz.woff2 +0 -0
- /package/dist/{client/_astro → _astro}/RedHatTextVF-Italic.Dkj_WqbA.woff2 +0 -0
- /package/dist/{client/_astro → _astro}/RedHatTextVF.wYvZ7prR.woff2 +0 -0
- /package/dist/{client/_astro → _astro}/SearchInput.DhHo7yPx.js +0 -0
- /package/dist/{client/_astro → _astro}/SectionGallery.3ABpQwE4.js +0 -0
- /package/dist/{client/_astro → _astro}/Toolbar.CroDQcyv.js +0 -0
- /package/dist/{client/_astro → _astro}/ToolbarContent.UH3ZRlHp.js +0 -0
- /package/dist/{client/_astro → _astro}/_page_.Chv_bGyU.css +0 -0
- /package/dist/{client/_astro → _astro}/_page_.CtheD08_.css +0 -0
- /package/dist/{client/_astro → _astro}/_page_.D1z73Byz.css +0 -0
- /package/dist/{client/_astro → _astro}/_page_.DxJDkZPc.css +0 -0
- /package/dist/{client/_astro → _astro}/angle-left-icon.teo8GC0v.js +0 -0
- /package/dist/{client/_astro → _astro}/bars-icon.Dk6ua1rr.js +0 -0
- /package/dist/{client/_astro → _astro}/divider.tlrBPkzg.js +0 -0
- /package/dist/{client/_astro → _astro}/fa-solid-900.DguXoeIz.woff2 +0 -0
- /package/dist/{client/_astro → _astro}/github-icon.ByC5XEPt.js +0 -0
- /package/dist/{client/_astro → _astro}/index.BQFV5hT1.js +0 -0
- /package/dist/{client/_astro → _astro}/index.CAChmxYj.js +0 -0
- /package/dist/{client/_astro → _astro}/index.DYVB4vTo.js +0 -0
- /package/dist/{client/_astro → _astro}/index.eCxJ45ll.js +0 -0
- /package/dist/{client/_astro → _astro}/link-icon.BNHnRn73.js +0 -0
- /package/dist/{client/_astro → _astro}/page.BTC3Kf3x.js +0 -0
- /package/dist/{client/_astro → _astro}/pf-v6-pficon.Dy6oiu9u.woff2 +0 -0
- /package/dist/{server/chunks/Accordion_BJka4Qvb.mjs → _worker.js/chunks/Accordion_BNafbla6.mjs} +0 -0
- /package/dist/{server/chunks/Accordion_BQIphkaZ.mjs → _worker.js/chunks/Accordion_CZsuyu9E.mjs} +0 -0
- /package/dist/{server/chunks/AllComponents_CRhgTsiT.mjs → _worker.js/chunks/AllComponents_BrL9IHSc.mjs} +0 -0
- /package/dist/{server/chunks/AllComponents_CjOtwUH6.mjs → _worker.js/chunks/AllComponents_CI7S6uwA.mjs} +0 -0
- /package/dist/{server/chunks/_astro_data-layer-content_D4Ib_RjR.mjs → _worker.js/chunks/_astro_assets_vBCb4v6U.mjs} +0 -0
- /package/dist/{server/chunks/content-assets_DleWbedO.mjs → _worker.js/chunks/_astro_data-layer-content_CgXoS6Mm.mjs} +0 -0
- /package/dist/{server/chunks/content-modules_fX1c2JRG.mjs → _worker.js/chunks/content-assets_XqCgPAV2.mjs} +0 -0
- /package/dist/{server/pages/_section_/_---page_.astro.mjs → _worker.js/chunks/content-modules_CKq2j9RQ.mjs} +0 -0
- /package/dist/{server/pages/_section_/_page_/_---tab_.astro.mjs → _worker.js/chunks/sharp_CNjr3bU4.mjs} +0 -0
- /package/dist/{server/pages/index.astro.mjs → _worker.js/pages/_section_/_---page_.astro.mjs} +0 -0
- /package/dist/{client/avatarImg.svg → avatarImg.svg} +0 -0
- /package/dist/{client/avatarImgDark.svg → avatarImgDark.svg} +0 -0
- /package/dist/{client/content → content}/typography/line-height.png +0 -0
- /package/dist/{client/favicon.svg → favicon.svg} +0 -0
|
@@ -1,308 +0,0 @@
|
|
|
1
|
-
import React, { createElement } from 'react';
|
|
2
|
-
import ReactDOM from 'react-dom/server';
|
|
3
|
-
import { o as renderJSX, p as createVNode, q as AstroJSX, s as AstroUserError } from './chunks/astro/server_Cl9jPh4p.mjs';
|
|
4
|
-
import 'kleur/colors';
|
|
5
|
-
import 'clsx';
|
|
6
|
-
|
|
7
|
-
const contexts = new WeakMap();
|
|
8
|
-
|
|
9
|
-
const ID_PREFIX = 'r';
|
|
10
|
-
|
|
11
|
-
function getContext(rendererContextResult) {
|
|
12
|
-
if (contexts.has(rendererContextResult)) {
|
|
13
|
-
return contexts.get(rendererContextResult);
|
|
14
|
-
}
|
|
15
|
-
const ctx = {
|
|
16
|
-
currentIndex: 0,
|
|
17
|
-
get id() {
|
|
18
|
-
return ID_PREFIX + this.currentIndex.toString();
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
contexts.set(rendererContextResult, ctx);
|
|
22
|
-
return ctx;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function incrementId(rendererContextResult) {
|
|
26
|
-
const ctx = getContext(rendererContextResult);
|
|
27
|
-
const id = ctx.id;
|
|
28
|
-
ctx.currentIndex++;
|
|
29
|
-
return id;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Astro passes `children` as a string of HTML, so we need
|
|
34
|
-
* a wrapper `div` to render that content as VNodes.
|
|
35
|
-
*
|
|
36
|
-
* As a bonus, we can signal to React that this subtree is
|
|
37
|
-
* entirely static and will never change via `shouldComponentUpdate`.
|
|
38
|
-
*/
|
|
39
|
-
const StaticHtml = ({ value, name, hydrate = true }) => {
|
|
40
|
-
if (!value) return null;
|
|
41
|
-
const tagName = hydrate ? 'astro-slot' : 'astro-static-slot';
|
|
42
|
-
return createElement(tagName, {
|
|
43
|
-
name,
|
|
44
|
-
suppressHydrationWarning: true,
|
|
45
|
-
dangerouslySetInnerHTML: { __html: value },
|
|
46
|
-
});
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* This tells React to opt-out of re-rendering this subtree,
|
|
51
|
-
* In addition to being a performance optimization,
|
|
52
|
-
* this also allows other frameworks to attach to `children`.
|
|
53
|
-
*
|
|
54
|
-
* See https://preactjs.com/guide/v8/external-dom-mutations
|
|
55
|
-
*/
|
|
56
|
-
StaticHtml.shouldComponentUpdate = () => false;
|
|
57
|
-
|
|
58
|
-
const slotName$1 = (str) => str.trim().replace(/[-_]([a-z])/g, (_, w) => w.toUpperCase());
|
|
59
|
-
const reactTypeof = Symbol.for('react.element');
|
|
60
|
-
const reactTransitionalTypeof = Symbol.for('react.transitional.element');
|
|
61
|
-
|
|
62
|
-
async function check$1(Component, props, children) {
|
|
63
|
-
// Note: there are packages that do some unholy things to create "components".
|
|
64
|
-
// Checking the $$typeof property catches most of these patterns.
|
|
65
|
-
if (typeof Component === 'object') {
|
|
66
|
-
return Component['$$typeof'].toString().slice('Symbol('.length).startsWith('react');
|
|
67
|
-
}
|
|
68
|
-
if (typeof Component !== 'function') return false;
|
|
69
|
-
if (Component.name === 'QwikComponent') return false;
|
|
70
|
-
|
|
71
|
-
// Preact forwarded-ref components can be functions, which React does not support
|
|
72
|
-
if (typeof Component === 'function' && Component['$$typeof'] === Symbol.for('react.forward_ref'))
|
|
73
|
-
return false;
|
|
74
|
-
|
|
75
|
-
if (Component.prototype != null && typeof Component.prototype.render === 'function') {
|
|
76
|
-
return React.Component.isPrototypeOf(Component) || React.PureComponent.isPrototypeOf(Component);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
let isReactComponent = false;
|
|
80
|
-
function Tester(...args) {
|
|
81
|
-
try {
|
|
82
|
-
const vnode = Component(...args);
|
|
83
|
-
if (
|
|
84
|
-
vnode &&
|
|
85
|
-
(vnode['$$typeof'] === reactTypeof || vnode['$$typeof'] === reactTransitionalTypeof)
|
|
86
|
-
) {
|
|
87
|
-
isReactComponent = true;
|
|
88
|
-
}
|
|
89
|
-
} catch {}
|
|
90
|
-
|
|
91
|
-
return React.createElement('div');
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
await renderToStaticMarkup$1(Tester, props, children, {});
|
|
95
|
-
|
|
96
|
-
return isReactComponent;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
async function getNodeWritable() {
|
|
100
|
-
let nodeStreamBuiltinModuleName = 'node:stream';
|
|
101
|
-
let { Writable } = await import(/* @vite-ignore */ nodeStreamBuiltinModuleName);
|
|
102
|
-
return Writable;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
function needsHydration(metadata) {
|
|
106
|
-
// Adjust how this is hydrated only when the version of Astro supports `astroStaticSlot`
|
|
107
|
-
return metadata.astroStaticSlot ? !!metadata.hydrate : true;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
async function renderToStaticMarkup$1(Component, props, { default: children, ...slotted }, metadata) {
|
|
111
|
-
let prefix;
|
|
112
|
-
if (this && this.result) {
|
|
113
|
-
prefix = incrementId(this.result);
|
|
114
|
-
}
|
|
115
|
-
const attrs = { prefix };
|
|
116
|
-
|
|
117
|
-
delete props['class'];
|
|
118
|
-
const slots = {};
|
|
119
|
-
for (const [key, value] of Object.entries(slotted)) {
|
|
120
|
-
const name = slotName$1(key);
|
|
121
|
-
slots[name] = React.createElement(StaticHtml, {
|
|
122
|
-
hydrate: needsHydration(metadata),
|
|
123
|
-
value,
|
|
124
|
-
name,
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
// Note: create newProps to avoid mutating `props` before they are serialized
|
|
128
|
-
const newProps = {
|
|
129
|
-
...props,
|
|
130
|
-
...slots,
|
|
131
|
-
};
|
|
132
|
-
const newChildren = children ?? props.children;
|
|
133
|
-
if (newChildren != null) {
|
|
134
|
-
newProps.children = React.createElement(StaticHtml, {
|
|
135
|
-
hydrate: needsHydration(metadata),
|
|
136
|
-
value: newChildren,
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
const formState = this ? await getFormState(this) : undefined;
|
|
140
|
-
if (formState) {
|
|
141
|
-
attrs['data-action-result'] = JSON.stringify(formState[0]);
|
|
142
|
-
attrs['data-action-key'] = formState[1];
|
|
143
|
-
attrs['data-action-name'] = formState[2];
|
|
144
|
-
}
|
|
145
|
-
const vnode = React.createElement(Component, newProps);
|
|
146
|
-
const renderOptions = {
|
|
147
|
-
identifierPrefix: prefix,
|
|
148
|
-
formState,
|
|
149
|
-
};
|
|
150
|
-
let html;
|
|
151
|
-
if ('renderToReadableStream' in ReactDOM) {
|
|
152
|
-
html = await renderToReadableStreamAsync(vnode, renderOptions);
|
|
153
|
-
} else {
|
|
154
|
-
html = await renderToPipeableStreamAsync(vnode, renderOptions);
|
|
155
|
-
}
|
|
156
|
-
return { html, attrs };
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* @returns {Promise<[actionResult: any, actionKey: string, actionName: string] | undefined>}
|
|
161
|
-
*/
|
|
162
|
-
async function getFormState({ result }) {
|
|
163
|
-
const { request, actionResult } = result;
|
|
164
|
-
|
|
165
|
-
if (!actionResult) return undefined;
|
|
166
|
-
if (!isFormRequest(request.headers.get('content-type'))) return undefined;
|
|
167
|
-
|
|
168
|
-
const { searchParams } = new URL(request.url);
|
|
169
|
-
const formData = await request.clone().formData();
|
|
170
|
-
/**
|
|
171
|
-
* The key generated by React to identify each `useActionState()` call.
|
|
172
|
-
* @example "k511f74df5a35d32e7cf266450d85cb6c"
|
|
173
|
-
*/
|
|
174
|
-
const actionKey = formData.get('$ACTION_KEY')?.toString();
|
|
175
|
-
/**
|
|
176
|
-
* The action name returned by an action's `toString()` property.
|
|
177
|
-
* This matches the endpoint path.
|
|
178
|
-
* @example "/_actions/blog.like"
|
|
179
|
-
*/
|
|
180
|
-
const actionName = searchParams.get('_action');
|
|
181
|
-
|
|
182
|
-
if (!actionKey || !actionName) return undefined;
|
|
183
|
-
|
|
184
|
-
return [actionResult, actionKey, actionName];
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
async function renderToPipeableStreamAsync(vnode, options) {
|
|
188
|
-
const Writable = await getNodeWritable();
|
|
189
|
-
let html = '';
|
|
190
|
-
return new Promise((resolve, reject) => {
|
|
191
|
-
let error = undefined;
|
|
192
|
-
let stream = ReactDOM.renderToPipeableStream(vnode, {
|
|
193
|
-
...options,
|
|
194
|
-
onError(err) {
|
|
195
|
-
error = err;
|
|
196
|
-
reject(error);
|
|
197
|
-
},
|
|
198
|
-
onAllReady() {
|
|
199
|
-
stream.pipe(
|
|
200
|
-
new Writable({
|
|
201
|
-
write(chunk, _encoding, callback) {
|
|
202
|
-
html += chunk.toString('utf-8');
|
|
203
|
-
callback();
|
|
204
|
-
},
|
|
205
|
-
destroy() {
|
|
206
|
-
resolve(html);
|
|
207
|
-
},
|
|
208
|
-
}),
|
|
209
|
-
);
|
|
210
|
-
},
|
|
211
|
-
});
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* Use a while loop instead of "for await" due to cloudflare and Vercel Edge issues
|
|
217
|
-
* See https://github.com/facebook/react/issues/24169
|
|
218
|
-
*/
|
|
219
|
-
async function readResult(stream) {
|
|
220
|
-
const reader = stream.getReader();
|
|
221
|
-
let result = '';
|
|
222
|
-
const decoder = new TextDecoder('utf-8');
|
|
223
|
-
while (true) {
|
|
224
|
-
const { done, value } = await reader.read();
|
|
225
|
-
if (done) {
|
|
226
|
-
if (value) {
|
|
227
|
-
result += decoder.decode(value);
|
|
228
|
-
} else {
|
|
229
|
-
// This closes the decoder
|
|
230
|
-
decoder.decode(new Uint8Array());
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
return result;
|
|
234
|
-
}
|
|
235
|
-
result += decoder.decode(value, { stream: true });
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
async function renderToReadableStreamAsync(vnode, options) {
|
|
240
|
-
return await readResult(await ReactDOM.renderToReadableStream(vnode, options));
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
const formContentTypes = ['application/x-www-form-urlencoded', 'multipart/form-data'];
|
|
244
|
-
|
|
245
|
-
function isFormRequest(contentType) {
|
|
246
|
-
// Split off parameters like charset or boundary
|
|
247
|
-
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type#content-type_in_html_forms
|
|
248
|
-
const type = contentType?.split(';')[0].toLowerCase();
|
|
249
|
-
|
|
250
|
-
return formContentTypes.some((t) => type === t);
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
const _renderer0 = {
|
|
254
|
-
name: '@astrojs/react',
|
|
255
|
-
check: check$1,
|
|
256
|
-
renderToStaticMarkup: renderToStaticMarkup$1,
|
|
257
|
-
supportsAstroStaticSlot: true,
|
|
258
|
-
};
|
|
259
|
-
|
|
260
|
-
const slotName = (str) => str.trim().replace(/[-_]([a-z])/g, (_, w) => w.toUpperCase());
|
|
261
|
-
async function check(Component, props, { default: children = null, ...slotted } = {}) {
|
|
262
|
-
if (typeof Component !== "function") return false;
|
|
263
|
-
const slots = {};
|
|
264
|
-
for (const [key, value] of Object.entries(slotted)) {
|
|
265
|
-
const name = slotName(key);
|
|
266
|
-
slots[name] = value;
|
|
267
|
-
}
|
|
268
|
-
try {
|
|
269
|
-
const result = await Component({ ...props, ...slots, children });
|
|
270
|
-
return result[AstroJSX];
|
|
271
|
-
} catch (e) {
|
|
272
|
-
throwEnhancedErrorIfMdxComponent(e, Component);
|
|
273
|
-
}
|
|
274
|
-
return false;
|
|
275
|
-
}
|
|
276
|
-
async function renderToStaticMarkup(Component, props = {}, { default: children = null, ...slotted } = {}) {
|
|
277
|
-
const slots = {};
|
|
278
|
-
for (const [key, value] of Object.entries(slotted)) {
|
|
279
|
-
const name = slotName(key);
|
|
280
|
-
slots[name] = value;
|
|
281
|
-
}
|
|
282
|
-
const { result } = this;
|
|
283
|
-
try {
|
|
284
|
-
const html = await renderJSX(result, createVNode(Component, { ...props, ...slots, children }));
|
|
285
|
-
return { html };
|
|
286
|
-
} catch (e) {
|
|
287
|
-
throwEnhancedErrorIfMdxComponent(e, Component);
|
|
288
|
-
throw e;
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
function throwEnhancedErrorIfMdxComponent(error, Component) {
|
|
292
|
-
if (Component[Symbol.for("mdx-component")]) {
|
|
293
|
-
if (AstroUserError.is(error)) return;
|
|
294
|
-
error.title = error.name;
|
|
295
|
-
error.hint = `This issue often occurs when your MDX component encounters runtime errors.`;
|
|
296
|
-
throw error;
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
const renderer = {
|
|
300
|
-
name: "astro:jsx",
|
|
301
|
-
check,
|
|
302
|
-
renderToStaticMarkup
|
|
303
|
-
};
|
|
304
|
-
var server_default = renderer;
|
|
305
|
-
|
|
306
|
-
const renderers = [Object.assign({"name":"@astrojs/react","clientEntrypoint":"@astrojs/react/client.js","serverEntrypoint":"@astrojs/react/server.js"}, { ssr: _renderer0 }),Object.assign({"name":"astro:jsx","serverEntrypoint":"file:///home/runner/work/patternfly-doc-core/patternfly-doc-core/node_modules/@astrojs/mdx/dist/server.js"}, { ssr: server_default }),];
|
|
307
|
-
|
|
308
|
-
export { renderers };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{server/chunks/Accordion_BJka4Qvb.mjs → _worker.js/chunks/Accordion_BNafbla6.mjs}
RENAMED
|
File without changes
|
/package/dist/{server/chunks/Accordion_BQIphkaZ.mjs → _worker.js/chunks/Accordion_CZsuyu9E.mjs}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{server/pages/index.astro.mjs → _worker.js/pages/_section_/_---page_.astro.mjs}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|