@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.
- package/astro.config.mjs +3 -4
- package/cli/cli.ts +60 -19
- package/dist/.assetsignore +2 -0
- package/dist/{client/_astro/Button.BQCwQ5pE.js → _astro/Button.BVfR1y85.js} +1 -1
- package/dist/_astro/CSSTable.E6iSHjec.js +1 -0
- package/dist/_astro/ClientRouter.astro_astro_type_script_index_0_lang.CtSceO8m.js +1 -0
- package/dist/{client/_astro/Content.B4M2qzJY.js → _astro/Content.CYLxURqU.js} +1 -1
- package/dist/{client/_astro/DropdownList.cxp03sS4.js → _astro/DropdownList.-xE7qrND.js} +1 -1
- package/dist/{client/_astro/LiveExample.DjPiO80i.js → _astro/LiveExample.CVVccYEB.js} +3 -3
- package/dist/{client/_astro/Navigation.kbLxctIo.js → _astro/Navigation.CONcolRR.js} +1 -1
- package/dist/{client/_astro/PageContext.miTsIqVo.js → _astro/PageContext.BUbWpNW2.js} +1 -1
- package/dist/{client/_astro/PageSidebarBody.B0AJe8Hg.js → _astro/PageSidebarBody.CDWZuFeK.js} +1 -1
- package/dist/{client/_astro/PageToggle.CMZ3C1v1.js → _astro/PageToggle.Dnbvoa7R.js} +1 -1
- package/dist/{client/_astro/SearchInput.DhHo7yPx.js → _astro/SearchInput.BNt7BTX_.js} +1 -1
- package/dist/{client/_astro/SectionGallery.3ABpQwE4.js → _astro/SectionGallery.Dwb-QA5z.js} +1 -1
- package/dist/{client/_astro/Toolbar.CroDQcyv.js → _astro/Toolbar.DNd68Ck-.js} +1 -1
- package/dist/{client/_astro/ToolbarContent.UH3ZRlHp.js → _astro/ToolbarContent.C58gpKLu.js} +1 -1
- package/dist/{client/_astro/angle-left-icon.teo8GC0v.js → _astro/angle-left-icon.CfKwuSCS.js} +1 -1
- package/dist/{client/_astro/bars-icon.Dk6ua1rr.js → _astro/bars-icon.wdJgEs3A.js} +1 -1
- package/dist/_astro/client.DN8ES6L5.js +1 -0
- package/dist/{client/_astro/divider.tlrBPkzg.js → _astro/divider.BLVh3KnH.js} +1 -1
- package/dist/{client/_astro/github-icon.ByC5XEPt.js → _astro/github-icon.DzpohUp_.js} +1 -1
- package/dist/{client/_astro/index.DYVB4vTo.js → _astro/index.jm6QVFFy.js} +1 -1
- package/dist/{client/_astro/link-icon.BNHnRn73.js → _astro/patternfly_charts.Dp3KzAU6.js} +24 -24
- 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_DLgn_YRm.mjs} +13 -14
- package/dist/{server/chunks/Button_BKhHR-ak.mjs → _worker.js/chunks/Button_CBcC0ViE.mjs} +83 -13
- package/dist/{server/chunks/CSSTable_B8tlH3gz.mjs → _worker.js/chunks/CSSTable_C1dV02qV.mjs} +3 -3
- package/dist/_worker.js/chunks/DocsTables_Br4g5x5_.mjs +20 -0
- package/dist/_worker.js/chunks/PropsTables_Dcd7znAq.mjs +6628 -0
- package/dist/_worker.js/chunks/_@astrojs-ssr-adapter_IMtcR503.mjs +1082 -0
- package/dist/_worker.js/chunks/angle-down-icon_VyCXUC7F.mjs +3686 -0
- package/dist/_worker.js/chunks/astro/server_YsSSp7Ny.mjs +7278 -0
- package/dist/_worker.js/chunks/astro-designed-error-pages_MEt0E9xn.mjs +928 -0
- package/dist/_worker.js/chunks/cloudflare-kv-binding_DMly_2Gl.mjs +107 -0
- package/dist/{server/chunks/_@astrojs-ssr-adapter_CbICuCdt.mjs → _worker.js/chunks/index_BE2AHcwI.mjs} +1295 -1817
- package/dist/_worker.js/chunks/index_CBCp_CJ0.mjs +57 -0
- package/dist/_worker.js/chunks/noop-middleware_CMUpAQ6F.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} +13 -19
- package/dist/_worker.js/manifest_0KWZohUX.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/{client/components/accordion/react → components/accordion}/index.html +14 -64
- package/dist/{client/components/accordion → components/accordion/react}/index.html +14 -64
- 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/DocsTables.astro +28 -0
- package/src/pages/[section]/[...page].astro +7 -11
- package/src/pages/[section]/[page]/[...tab].astro +3 -11
- package/src/pages/props.ts +2 -2
- package/wrangler.jsonc +14 -0
- package/dist/client/_astro/CSSTable.DC79W1Ct.js +0 -1
- 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/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_DsbMfV1U.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}/LiveExample.CxJsMvEq.css +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}/_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}/fa-solid-900.DguXoeIz.woff2 +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.eCxJ45ll.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_CQUal4ef.mjs} +0 -0
- /package/dist/{server/chunks/Accordion_BQIphkaZ.mjs → _worker.js/chunks/Accordion_R7bP3pwr.mjs} +0 -0
- /package/dist/{server/chunks/AllComponents_CRhgTsiT.mjs → _worker.js/chunks/AllComponents_BDKlE-WJ.mjs} +0 -0
- /package/dist/{server/chunks/AllComponents_CjOtwUH6.mjs → _worker.js/chunks/AllComponents_DWDph25H.mjs} +0 -0
- /package/dist/{server/chunks/_astro_data-layer-content_D4Ib_RjR.mjs → _worker.js/chunks/_astro_assets_CfTVyruF.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_BbCqcGJp.mjs} +0 -0
- /package/dist/{server/pages/_section_/_page_/_---tab_.astro.mjs → _worker.js/chunks/sharp_MEdXG7Td.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
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
globalThis.process ??= {}; globalThis.process.env ??= {};
|
|
2
|
+
function defineDriver(factory) {
|
|
3
|
+
return factory;
|
|
4
|
+
}
|
|
5
|
+
function normalizeKey(key, sep = ":") {
|
|
6
|
+
if (!key) {
|
|
7
|
+
return "";
|
|
8
|
+
}
|
|
9
|
+
return key.replace(/[:/\\]/g, sep).replace(/^[:/\\]|[:/\\]$/g, "");
|
|
10
|
+
}
|
|
11
|
+
function joinKeys(...keys) {
|
|
12
|
+
return keys.map((key) => normalizeKey(key)).filter(Boolean).join(":");
|
|
13
|
+
}
|
|
14
|
+
function createError(driver, message, opts) {
|
|
15
|
+
const err = new Error(`[unstorage] [${driver}] ${message}`, opts);
|
|
16
|
+
if (Error.captureStackTrace) {
|
|
17
|
+
Error.captureStackTrace(err, createError);
|
|
18
|
+
}
|
|
19
|
+
return err;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function getBinding(binding) {
|
|
23
|
+
let bindingName = "[binding]";
|
|
24
|
+
if (typeof binding === "string") {
|
|
25
|
+
bindingName = binding;
|
|
26
|
+
binding = globalThis[bindingName] || globalThis.__env__?.[bindingName];
|
|
27
|
+
}
|
|
28
|
+
if (!binding) {
|
|
29
|
+
throw createError(
|
|
30
|
+
"cloudflare",
|
|
31
|
+
`Invalid binding \`${bindingName}\`: \`${binding}\``
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
for (const key of ["get", "put", "delete"]) {
|
|
35
|
+
if (!(key in binding)) {
|
|
36
|
+
throw createError(
|
|
37
|
+
"cloudflare",
|
|
38
|
+
`Invalid binding \`${bindingName}\`: \`${key}\` key is missing`
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return binding;
|
|
43
|
+
}
|
|
44
|
+
function getKVBinding(binding = "STORAGE") {
|
|
45
|
+
return getBinding(binding);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const DRIVER_NAME = "cloudflare-kv-binding";
|
|
49
|
+
const cloudflareKvBinding = defineDriver((opts) => {
|
|
50
|
+
const r = (key = "") => opts.base ? joinKeys(opts.base, key) : key;
|
|
51
|
+
async function getKeys(base = "") {
|
|
52
|
+
base = r(base);
|
|
53
|
+
const binding = getKVBinding(opts.binding);
|
|
54
|
+
const keys = [];
|
|
55
|
+
let cursor = void 0;
|
|
56
|
+
do {
|
|
57
|
+
const kvList = await binding.list({ prefix: base || void 0, cursor });
|
|
58
|
+
keys.push(...kvList.keys);
|
|
59
|
+
cursor = kvList.list_complete ? void 0 : kvList.cursor;
|
|
60
|
+
} while (cursor);
|
|
61
|
+
return keys.map((key) => key.name);
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
name: DRIVER_NAME,
|
|
65
|
+
options: opts,
|
|
66
|
+
getInstance: () => getKVBinding(opts.binding),
|
|
67
|
+
async hasItem(key) {
|
|
68
|
+
key = r(key);
|
|
69
|
+
const binding = getKVBinding(opts.binding);
|
|
70
|
+
return await binding.get(key) !== null;
|
|
71
|
+
},
|
|
72
|
+
getItem(key) {
|
|
73
|
+
key = r(key);
|
|
74
|
+
const binding = getKVBinding(opts.binding);
|
|
75
|
+
return binding.get(key);
|
|
76
|
+
},
|
|
77
|
+
setItem(key, value, topts) {
|
|
78
|
+
key = r(key);
|
|
79
|
+
const binding = getKVBinding(opts.binding);
|
|
80
|
+
return binding.put(
|
|
81
|
+
key,
|
|
82
|
+
value,
|
|
83
|
+
topts ? {
|
|
84
|
+
expirationTtl: topts?.ttl ? Math.max(topts.ttl, opts.minTTL ?? 60) : void 0,
|
|
85
|
+
...topts
|
|
86
|
+
} : void 0
|
|
87
|
+
);
|
|
88
|
+
},
|
|
89
|
+
removeItem(key) {
|
|
90
|
+
key = r(key);
|
|
91
|
+
const binding = getKVBinding(opts.binding);
|
|
92
|
+
return binding.delete(key);
|
|
93
|
+
},
|
|
94
|
+
getKeys(base) {
|
|
95
|
+
return getKeys(base).then(
|
|
96
|
+
(keys) => keys.map((key) => opts.base ? key.slice(opts.base.length) : key)
|
|
97
|
+
);
|
|
98
|
+
},
|
|
99
|
+
async clear(base) {
|
|
100
|
+
const binding = getKVBinding(opts.binding);
|
|
101
|
+
const keys = await getKeys(base);
|
|
102
|
+
await Promise.all(keys.map((key) => binding.delete(key)));
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
export { cloudflareKvBinding as default };
|