@patternfly/patternfly-doc-core 1.10.0 → 1.11.1

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.
Files changed (117) hide show
  1. package/astro.config.mjs +3 -4
  2. package/cli/cli.ts +60 -19
  3. package/dist/.assetsignore +2 -0
  4. package/dist/{client/_astro/Button.BQCwQ5pE.js → _astro/Button.BVfR1y85.js} +1 -1
  5. package/dist/_astro/CSSTable.E6iSHjec.js +1 -0
  6. package/dist/_astro/ClientRouter.astro_astro_type_script_index_0_lang.CtSceO8m.js +1 -0
  7. package/dist/{client/_astro/Content.B4M2qzJY.js → _astro/Content.CYLxURqU.js} +1 -1
  8. package/dist/{client/_astro/DropdownList.cxp03sS4.js → _astro/DropdownList.-xE7qrND.js} +1 -1
  9. package/dist/{client/_astro/LiveExample.DjPiO80i.js → _astro/LiveExample.CVVccYEB.js} +3 -3
  10. package/dist/{client/_astro/Navigation.kbLxctIo.js → _astro/Navigation.CONcolRR.js} +1 -1
  11. package/dist/{client/_astro/PageContext.miTsIqVo.js → _astro/PageContext.BUbWpNW2.js} +1 -1
  12. package/dist/{client/_astro/PageSidebarBody.B0AJe8Hg.js → _astro/PageSidebarBody.CDWZuFeK.js} +1 -1
  13. package/dist/{client/_astro/PageToggle.CMZ3C1v1.js → _astro/PageToggle.Dnbvoa7R.js} +1 -1
  14. package/dist/{client/_astro/SearchInput.DhHo7yPx.js → _astro/SearchInput.BNt7BTX_.js} +1 -1
  15. package/dist/{client/_astro/SectionGallery.3ABpQwE4.js → _astro/SectionGallery.Dwb-QA5z.js} +1 -1
  16. package/dist/{client/_astro/Toolbar.CroDQcyv.js → _astro/Toolbar.DNd68Ck-.js} +1 -1
  17. package/dist/{client/_astro/ToolbarContent.UH3ZRlHp.js → _astro/ToolbarContent.C58gpKLu.js} +1 -1
  18. package/dist/{client/_astro/angle-left-icon.teo8GC0v.js → _astro/angle-left-icon.CfKwuSCS.js} +1 -1
  19. package/dist/{client/_astro/bars-icon.Dk6ua1rr.js → _astro/bars-icon.wdJgEs3A.js} +1 -1
  20. package/dist/_astro/client.DN8ES6L5.js +1 -0
  21. package/dist/{client/_astro/divider.tlrBPkzg.js → _astro/divider.BLVh3KnH.js} +1 -1
  22. package/dist/{client/_astro/github-icon.ByC5XEPt.js → _astro/github-icon.DzpohUp_.js} +1 -1
  23. package/dist/{client/_astro/index.DYVB4vTo.js → _astro/index.jm6QVFFy.js} +1 -1
  24. package/dist/{client/_astro/link-icon.BNHnRn73.js → _astro/patternfly_charts.Dp3KzAU6.js} +24 -24
  25. package/dist/_routes.json +20 -0
  26. package/dist/_worker.js/_@astrojs-ssr-adapter.mjs +2 -0
  27. package/dist/_worker.js/_astro-internal_middleware.mjs +21 -0
  28. package/dist/_worker.js/_noop-actions.mjs +4 -0
  29. package/dist/{server/chunks/AutoLinkHeader_C2GD0g-K.mjs → _worker.js/chunks/AutoLinkHeader_DLgn_YRm.mjs} +13 -14
  30. package/dist/{server/chunks/Button_BKhHR-ak.mjs → _worker.js/chunks/Button_CBcC0ViE.mjs} +83 -13
  31. package/dist/{server/chunks/CSSTable_B8tlH3gz.mjs → _worker.js/chunks/CSSTable_C1dV02qV.mjs} +3 -3
  32. package/dist/_worker.js/chunks/DocsTables_Br4g5x5_.mjs +20 -0
  33. package/dist/_worker.js/chunks/PropsTables_Dcd7znAq.mjs +6628 -0
  34. package/dist/_worker.js/chunks/_@astrojs-ssr-adapter_IMtcR503.mjs +1082 -0
  35. package/dist/_worker.js/chunks/angle-down-icon_VyCXUC7F.mjs +3686 -0
  36. package/dist/_worker.js/chunks/astro/server_YsSSp7Ny.mjs +7278 -0
  37. package/dist/_worker.js/chunks/astro-designed-error-pages_MEt0E9xn.mjs +928 -0
  38. package/dist/_worker.js/chunks/cloudflare-kv-binding_DMly_2Gl.mjs +107 -0
  39. package/dist/{server/chunks/_@astrojs-ssr-adapter_CbICuCdt.mjs → _worker.js/chunks/index_BE2AHcwI.mjs} +1295 -1817
  40. package/dist/_worker.js/chunks/index_CBCp_CJ0.mjs +57 -0
  41. package/dist/_worker.js/chunks/noop-middleware_CMUpAQ6F.mjs +10 -0
  42. package/dist/_worker.js/chunks/parse_EttCPxrw.mjs +271 -0
  43. package/dist/{server/chunks/path_Cvt6sEOY.mjs → _worker.js/chunks/path_C-ZOwaTP.mjs} +2 -1
  44. package/dist/{server/entry.mjs → _worker.js/index.js} +13 -19
  45. package/dist/_worker.js/manifest_0KWZohUX.mjs +100 -0
  46. package/dist/_worker.js/pages/_image.astro.mjs +24 -0
  47. package/dist/_worker.js/pages/_section_/_page_/_---tab_.astro.mjs +1 -0
  48. package/dist/_worker.js/pages/index.astro.mjs +1 -0
  49. package/dist/{server → _worker.js}/pages/props.astro.mjs +3 -2
  50. package/dist/_worker.js/renderers.mjs +484 -0
  51. package/dist/cli/cli.js +46 -12
  52. package/dist/{client/components/accordion/react → components/accordion}/index.html +14 -64
  53. package/dist/{client/components/accordion → components/accordion/react}/index.html +14 -64
  54. package/dist/components/all-components/index.html +47 -0
  55. package/dist/design-foundations/typography/index.html +198 -0
  56. package/dist/{client/design-foundations → design-foundations}/usage-and-behavior/index.html +4 -54
  57. package/dist/get-started/contribute/index.html +94 -0
  58. package/dist/index.html +43 -0
  59. package/package.json +12 -8
  60. package/public/.assetsignore +2 -0
  61. package/src/components/DocsTables.astro +28 -0
  62. package/src/pages/[section]/[...page].astro +7 -11
  63. package/src/pages/[section]/[page]/[...tab].astro +3 -11
  64. package/src/pages/props.ts +2 -2
  65. package/wrangler.jsonc +14 -0
  66. package/dist/client/_astro/CSSTable.DC79W1Ct.js +0 -1
  67. package/dist/client/_astro/ClientRouter.astro_astro_type_script_index_0_lang.Cainpjm5.js +0 -1
  68. package/dist/client/_astro/client.zs76E0tG.js +0 -1
  69. package/dist/client/components/all-components/index.html +0 -97
  70. package/dist/client/design-foundations/typography/index.html +0 -248
  71. package/dist/client/get-started/contribute/index.html +0 -144
  72. package/dist/client/index.html +0 -43
  73. package/dist/server/_@astrojs-ssr-adapter.mjs +0 -1
  74. package/dist/server/_noop-middleware.mjs +0 -3
  75. package/dist/server/chunks/PropsTables_PVzRHJNB.mjs +0 -1750
  76. package/dist/server/chunks/_astro_assets_DaYumpRZ.mjs +0 -1507
  77. package/dist/server/chunks/angle-down-icon_BO1Ed-9Z.mjs +0 -3288
  78. package/dist/server/chunks/astro/server_Cl9jPh4p.mjs +0 -2859
  79. package/dist/server/chunks/astro-designed-error-pages_BFveJFnQ.mjs +0 -282
  80. package/dist/server/chunks/consts_BmVDRGlB.mjs +0 -32
  81. package/dist/server/chunks/sharp_CbOL3WDk.mjs +0 -88
  82. package/dist/server/manifest_DsbMfV1U.mjs +0 -102
  83. package/dist/server/pages/_image.astro.mjs +0 -132
  84. package/dist/server/renderers.mjs +0 -308
  85. /package/dist/{client/PF-HorizontalLogo-Color.svg → PF-HorizontalLogo-Color.svg} +0 -0
  86. /package/dist/{client/PF-HorizontalLogo-Reverse.svg → PF-HorizontalLogo-Reverse.svg} +0 -0
  87. /package/dist/{client/_astro → _astro}/LiveExample.CxJsMvEq.css +0 -0
  88. /package/dist/{client/_astro → _astro}/RedHatDisplayVF-Italic.CRpusWc8.woff2 +0 -0
  89. /package/dist/{client/_astro → _astro}/RedHatDisplayVF.CYDHf1NI.woff2 +0 -0
  90. /package/dist/{client/_astro → _astro}/RedHatMonoVF-Italic.DGQo2ogW.woff2 +0 -0
  91. /package/dist/{client/_astro → _astro}/RedHatMonoVF.C4fMH6Vz.woff2 +0 -0
  92. /package/dist/{client/_astro → _astro}/RedHatTextVF-Italic.Dkj_WqbA.woff2 +0 -0
  93. /package/dist/{client/_astro → _astro}/RedHatTextVF.wYvZ7prR.woff2 +0 -0
  94. /package/dist/{client/_astro → _astro}/_page_.Chv_bGyU.css +0 -0
  95. /package/dist/{client/_astro → _astro}/_page_.CtheD08_.css +0 -0
  96. /package/dist/{client/_astro → _astro}/_page_.D1z73Byz.css +0 -0
  97. /package/dist/{client/_astro → _astro}/_page_.DxJDkZPc.css +0 -0
  98. /package/dist/{client/_astro → _astro}/fa-solid-900.DguXoeIz.woff2 +0 -0
  99. /package/dist/{client/_astro → _astro}/index.BQFV5hT1.js +0 -0
  100. /package/dist/{client/_astro → _astro}/index.CAChmxYj.js +0 -0
  101. /package/dist/{client/_astro → _astro}/index.eCxJ45ll.js +0 -0
  102. /package/dist/{client/_astro → _astro}/page.BTC3Kf3x.js +0 -0
  103. /package/dist/{client/_astro → _astro}/pf-v6-pficon.Dy6oiu9u.woff2 +0 -0
  104. /package/dist/{server/chunks/Accordion_BJka4Qvb.mjs → _worker.js/chunks/Accordion_CQUal4ef.mjs} +0 -0
  105. /package/dist/{server/chunks/Accordion_BQIphkaZ.mjs → _worker.js/chunks/Accordion_R7bP3pwr.mjs} +0 -0
  106. /package/dist/{server/chunks/AllComponents_CRhgTsiT.mjs → _worker.js/chunks/AllComponents_BDKlE-WJ.mjs} +0 -0
  107. /package/dist/{server/chunks/AllComponents_CjOtwUH6.mjs → _worker.js/chunks/AllComponents_DWDph25H.mjs} +0 -0
  108. /package/dist/{server/chunks/_astro_data-layer-content_D4Ib_RjR.mjs → _worker.js/chunks/_astro_assets_CfTVyruF.mjs} +0 -0
  109. /package/dist/{server/chunks/content-assets_DleWbedO.mjs → _worker.js/chunks/_astro_data-layer-content_CgXoS6Mm.mjs} +0 -0
  110. /package/dist/{server/chunks/content-modules_fX1c2JRG.mjs → _worker.js/chunks/content-assets_XqCgPAV2.mjs} +0 -0
  111. /package/dist/{server/pages/_section_/_---page_.astro.mjs → _worker.js/chunks/content-modules_BbCqcGJp.mjs} +0 -0
  112. /package/dist/{server/pages/_section_/_page_/_---tab_.astro.mjs → _worker.js/chunks/sharp_MEdXG7Td.mjs} +0 -0
  113. /package/dist/{server/pages/index.astro.mjs → _worker.js/pages/_section_/_---page_.astro.mjs} +0 -0
  114. /package/dist/{client/avatarImg.svg → avatarImg.svg} +0 -0
  115. /package/dist/{client/avatarImgDark.svg → avatarImgDark.svg} +0 -0
  116. /package/dist/{client/content → content}/typography/line-height.png +0 -0
  117. /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