@redocly/realm 0.124.2 → 0.124.3
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/CHANGELOG.md +12 -0
- package/dist/client/runtime/generated/browser-plugins.js +12 -0
- package/dist/client/runtime/generated/package.json +1 -0
- package/dist/client/runtime/generated/routes.js +6 -0
- package/dist/client/runtime/generated/templates.js +27 -0
- package/dist/server/esbuild/cache/server/api-request-handlers-entry.js +13 -0
- package/dist/server/esbuild/cache/server/chunks/403-QNUJFFYN.js +21 -0
- package/dist/server/esbuild/cache/server/chunks/403OIDC-XVNN4OKQ.js +20 -0
- package/dist/server/esbuild/cache/server/chunks/404-TJA4JKKM.js +22 -0
- package/dist/server/esbuild/cache/server/chunks/AsyncApiDocs-DO2XADGJ.js +5012 -0
- package/dist/server/esbuild/cache/server/chunks/AsyncApiDocs-LWZY6WLJ.css +228 -0
- package/dist/server/esbuild/cache/server/chunks/CatalogClassic-62FIL6VX.js +27 -0
- package/dist/server/esbuild/cache/server/chunks/CompilationError-3AK7S6GQ.js +28 -0
- package/dist/server/esbuild/cache/server/chunks/ErrorDetails-NOXCZVSO.css +228 -0
- package/dist/server/esbuild/cache/server/chunks/ErrorDetails-Z6XTH26B.js +32 -0
- package/dist/server/esbuild/cache/server/chunks/GraphQLDocs-R7GIPOHX.js +14517 -0
- package/dist/server/esbuild/cache/server/chunks/GraphQLDocs-XWEZKQTJ.css +228 -0
- package/dist/server/esbuild/cache/server/chunks/Invite-JG7HOKGB.js +72 -0
- package/dist/server/esbuild/cache/server/chunks/Markdown-U5QMVBIW.js +90 -0
- package/dist/server/esbuild/cache/server/chunks/OpenAPIDocs-33NUY4VY.js +93 -0
- package/dist/server/esbuild/cache/server/chunks/OpenAPIDocs-QNK5DFJC.css +228 -0
- package/dist/server/esbuild/cache/server/chunks/ar-QYSYPAAE.js +9 -0
- package/dist/server/esbuild/cache/server/chunks/changelog.page-P7J4MWQX.js +9133 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-27G3BZUU.js +6053 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-37VWTTWG.js +112 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-3F23673J.js +63 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-5Q7CA7UT.js +3610 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-5RECXZNE.js +23042 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-5WWZZ3I5.js +148 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-65DJDEU7.js +21923 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-6TWMFDXM.js +50 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-6ZPXNRVV.js +72349 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-72YI47PJ.js +61 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-AOEKZ7MP.js +1653 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-ARMFCOWJ.js +58 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-CEMEM3CC.js +1201 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-CYRM4SZM.js +200 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-CZ4WUWHR.js +145 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-EPDKKVDX.js +49 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-F2FIOV3B.js +3564 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-FN46NAFA.js +880 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-FWP7SBRO.js +40 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-HH6YBD7K.js +39 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-HMCVWUH5.js +21734 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-IPLOR6BM.js +39 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-IU4AXQIQ.js +20 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-OFZF52DH.js +367 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-ORVLLFH3.js +34 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-PLCILU3C.js +189 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-PP5BCTYO.js +481 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-PS2DM6W4.js +233 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-PX5DFLJN.js +6418 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-QD5LMSMC.js +39 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-R2ATFYSQ.js +18 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-RAOSTGG5.js +68 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-RD675JLY.js +63 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-RP4GABLB.js +104 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-TSM7ATHM.js +63 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-UNPSJPQX.js +421 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-UOJU7UCE.js +117 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-VQWN4DGI.js +117 -0
- package/dist/server/esbuild/cache/server/chunks/chunk-ZTN3K75A.js +17085 -0
- package/dist/server/esbuild/cache/server/chunks/de-NFTIOJWS.js +9 -0
- package/dist/server/esbuild/cache/server/chunks/en-MHWJMBVA.js +9 -0
- package/dist/server/esbuild/cache/server/chunks/es-FNU5GYZ3.js +9 -0
- package/dist/server/esbuild/cache/server/chunks/fr-26CHXVGL.js +9 -0
- package/dist/server/esbuild/cache/server/chunks/get-server-props-6AZWGXNL.js +23 -0
- package/dist/server/esbuild/cache/server/chunks/get-server-props-7QLMUENA.js +35 -0
- package/dist/server/esbuild/cache/server/chunks/get-server-props-CBKOAQ63.js +23 -0
- package/dist/server/esbuild/cache/server/chunks/get-server-props-UVJ7E655.js +257 -0
- package/dist/server/esbuild/cache/server/chunks/get-server-props-custom-fields-3L6PMPKS.js +30 -0
- package/dist/server/esbuild/cache/server/chunks/getMachineId-bsd-XBQCAKER.js +41 -0
- package/dist/server/esbuild/cache/server/chunks/getMachineId-darwin-75TDDERU.js +41 -0
- package/dist/server/esbuild/cache/server/chunks/getMachineId-linux-ZVY3HPZF.js +33 -0
- package/dist/server/esbuild/cache/server/chunks/getMachineId-unsupported-Z55ZGKX4.js +24 -0
- package/dist/server/esbuild/cache/server/chunks/getMachineId-win-XFRAFDV7.js +43 -0
- package/dist/server/esbuild/cache/server/chunks/hi-LMIMTEVV.js +9 -0
- package/dist/server/esbuild/cache/server/chunks/it-KQBB6UHC.js +9 -0
- package/dist/server/esbuild/cache/server/chunks/ja-M4G7SWOW.js +9 -0
- package/dist/server/esbuild/cache/server/chunks/ko-UMCYPTNU.js +9 -0
- package/dist/server/esbuild/cache/server/chunks/lib-7OVRXOGN.js +9738 -0
- package/dist/server/esbuild/cache/server/chunks/mock-server-request-handler-EPNUNSB4.js +19760 -0
- package/dist/server/esbuild/cache/server/chunks/openapi-PYAD6YIG.js +211 -0
- package/dist/server/esbuild/cache/server/chunks/openapi-SWJOOCDZ.css +228 -0
- package/dist/server/esbuild/cache/server/chunks/pl-WFS4SBNZ.js +9 -0
- package/dist/server/esbuild/cache/server/chunks/pt-BR-6UMAIW4R.js +9 -0
- package/dist/server/esbuild/cache/server/chunks/pt-H3U3OOD6.js +9 -0
- package/dist/server/esbuild/cache/server/chunks/replay-SG7SV62B.js +44 -0
- package/dist/server/esbuild/cache/server/chunks/replay-tauri-path-CUezwea2-PVNYM2NO.js +51 -0
- package/dist/server/esbuild/cache/server/chunks/ru-XWABYCCX.js +9 -0
- package/dist/server/esbuild/cache/server/chunks/schema-OQNNVD4I.js +9 -0
- package/dist/server/esbuild/cache/server/chunks/spec-download.api-224C7JPA.js +2678 -0
- package/dist/server/esbuild/cache/server/chunks/spec-download.api-456PUG54.js +36 -0
- package/dist/server/esbuild/cache/server/chunks/template-NMUEV3UV.css +228 -0
- package/dist/server/esbuild/cache/server/chunks/template-TMZOF26J.js +6490 -0
- package/dist/server/esbuild/cache/server/chunks/uk-SANI42KH.js +9 -0
- package/dist/server/esbuild/cache/server/chunks/zh-FC3S2NSG.js +9 -0
- package/dist/server/esbuild/cache/server/middleware-entry.js +9 -0
- package/dist/server/esbuild/cache/server/migrations/catalog-sqlite/0000_initial_migration.sql +46 -0
- package/dist/server/esbuild/cache/server/migrations/catalog-sqlite/meta/0000_snapshot.json +307 -0
- package/dist/server/esbuild/cache/server/migrations/catalog-sqlite/meta/_journal.json +13 -0
- package/dist/server/esbuild/cache/server/migrations/main-sqlite/0000_initial_migration.sql +11 -0
- package/dist/server/esbuild/cache/server/migrations/main-sqlite/meta/0000_snapshot.json +82 -0
- package/dist/server/esbuild/cache/server/migrations/main-sqlite/meta/_journal.json +13 -0
- package/dist/server/esbuild/cache/server/package.json +1 -0
- package/dist/server/esbuild/cache/server/server-entry.css +294 -0
- package/dist/server/esbuild/cache/server/server-entry.js +1716 -0
- package/dist/server/esbuild/cache/server/server-props-entry.js +15 -0
- package/dist/server/esbuild/cache/server/user-tags-entry.js +9 -0
- package/package.json +5 -5
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { createRequire as topLevelCreateRequire } from 'module';
|
|
2
|
+
const require = topLevelCreateRequire(import.meta.url);
|
|
3
|
+
|
|
4
|
+
// ../../packages/portal/products/realm/dist/server/utils/conflict-resolvers.js
|
|
5
|
+
var t = class {
|
|
6
|
+
occurrences = /* @__PURE__ */ new Map();
|
|
7
|
+
resolve(c) {
|
|
8
|
+
let e2 = c;
|
|
9
|
+
for (; this.occurrences.has(e2); ) {
|
|
10
|
+
const r = (this.occurrences.get(e2) || 0) + 1;
|
|
11
|
+
this.occurrences.set(e2, r), e2 = c + "-" + r;
|
|
12
|
+
}
|
|
13
|
+
return this.occurrences.set(e2, 0), e2;
|
|
14
|
+
}
|
|
15
|
+
reset() {
|
|
16
|
+
this.occurrences.clear();
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
// ../../packages/portal/products/realm/dist/server/utils/slugger.js
|
|
21
|
+
var A = /[\0-\x1F!-,:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\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uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g;
|
|
22
|
+
var B = class {
|
|
23
|
+
uniqueKeyResolver = new t();
|
|
24
|
+
slug(D, C = false) {
|
|
25
|
+
let F = e(D, C === true);
|
|
26
|
+
return F = this.uniqueKeyResolver.resolve(F), F;
|
|
27
|
+
}
|
|
28
|
+
reset() {
|
|
29
|
+
this.uniqueKeyResolver.reset();
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
var s = new B();
|
|
33
|
+
function e(u, D = false) {
|
|
34
|
+
return typeof u != "string" ? "" : (D || (u = u.toLowerCase()), u.replace(A, "").replace(/ /g, "-"));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export {
|
|
38
|
+
s
|
|
39
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { createRequire as topLevelCreateRequire } from 'module';
|
|
2
|
+
const require = topLevelCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
__esm
|
|
5
|
+
} from "./chunk-6TWMFDXM.js";
|
|
6
|
+
|
|
7
|
+
// ../../node_modules/.pnpm/@opentelemetry+resources@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/execAsync.js
|
|
8
|
+
import * as child_process from "child_process";
|
|
9
|
+
import * as util from "util";
|
|
10
|
+
var execAsync;
|
|
11
|
+
var init_execAsync = __esm({
|
|
12
|
+
"../../node_modules/.pnpm/@opentelemetry+resources@2.0.1_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/execAsync.js"() {
|
|
13
|
+
execAsync = util.promisify(child_process.exec);
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
export {
|
|
18
|
+
execAsync,
|
|
19
|
+
init_execAsync
|
|
20
|
+
};
|
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
import { createRequire as topLevelCreateRequire } from 'module';
|
|
2
|
+
const require = topLevelCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
m
|
|
5
|
+
} from "./chunk-72YI47PJ.js";
|
|
6
|
+
import {
|
|
7
|
+
__commonJS,
|
|
8
|
+
__require,
|
|
9
|
+
__toESM
|
|
10
|
+
} from "./chunk-6TWMFDXM.js";
|
|
11
|
+
|
|
12
|
+
// ../../node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/package.json
|
|
13
|
+
var require_package = __commonJS({
|
|
14
|
+
"../../node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/package.json"(exports, module) {
|
|
15
|
+
module.exports = {
|
|
16
|
+
name: "dotenv",
|
|
17
|
+
version: "16.4.5",
|
|
18
|
+
description: "Loads environment variables from .env file",
|
|
19
|
+
main: "lib/main.js",
|
|
20
|
+
types: "lib/main.d.ts",
|
|
21
|
+
exports: {
|
|
22
|
+
".": {
|
|
23
|
+
types: "./lib/main.d.ts",
|
|
24
|
+
require: "./lib/main.js",
|
|
25
|
+
default: "./lib/main.js"
|
|
26
|
+
},
|
|
27
|
+
"./config": "./config.js",
|
|
28
|
+
"./config.js": "./config.js",
|
|
29
|
+
"./lib/env-options": "./lib/env-options.js",
|
|
30
|
+
"./lib/env-options.js": "./lib/env-options.js",
|
|
31
|
+
"./lib/cli-options": "./lib/cli-options.js",
|
|
32
|
+
"./lib/cli-options.js": "./lib/cli-options.js",
|
|
33
|
+
"./package.json": "./package.json"
|
|
34
|
+
},
|
|
35
|
+
scripts: {
|
|
36
|
+
"dts-check": "tsc --project tests/types/tsconfig.json",
|
|
37
|
+
lint: "standard",
|
|
38
|
+
"lint-readme": "standard-markdown",
|
|
39
|
+
pretest: "npm run lint && npm run dts-check",
|
|
40
|
+
test: "tap tests/*.js --100 -Rspec",
|
|
41
|
+
"test:coverage": "tap --coverage-report=lcov",
|
|
42
|
+
prerelease: "npm test",
|
|
43
|
+
release: "standard-version"
|
|
44
|
+
},
|
|
45
|
+
repository: {
|
|
46
|
+
type: "git",
|
|
47
|
+
url: "git://github.com/motdotla/dotenv.git"
|
|
48
|
+
},
|
|
49
|
+
funding: "https://dotenvx.com",
|
|
50
|
+
keywords: [
|
|
51
|
+
"dotenv",
|
|
52
|
+
"env",
|
|
53
|
+
".env",
|
|
54
|
+
"environment",
|
|
55
|
+
"variables",
|
|
56
|
+
"config",
|
|
57
|
+
"settings"
|
|
58
|
+
],
|
|
59
|
+
readmeFilename: "README.md",
|
|
60
|
+
license: "BSD-2-Clause",
|
|
61
|
+
devDependencies: {
|
|
62
|
+
"@definitelytyped/dtslint": "^0.0.133",
|
|
63
|
+
"@types/node": "^18.11.3",
|
|
64
|
+
decache: "^4.6.1",
|
|
65
|
+
sinon: "^14.0.1",
|
|
66
|
+
standard: "^17.0.0",
|
|
67
|
+
"standard-markdown": "^7.1.0",
|
|
68
|
+
"standard-version": "^9.5.0",
|
|
69
|
+
tap: "^16.3.0",
|
|
70
|
+
tar: "^6.1.11",
|
|
71
|
+
typescript: "^4.8.4"
|
|
72
|
+
},
|
|
73
|
+
engines: {
|
|
74
|
+
node: ">=12"
|
|
75
|
+
},
|
|
76
|
+
browser: {
|
|
77
|
+
fs: false
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
// ../../node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js
|
|
84
|
+
var require_main = __commonJS({
|
|
85
|
+
"../../node_modules/.pnpm/dotenv@16.4.5/node_modules/dotenv/lib/main.js"(exports, module) {
|
|
86
|
+
var fs = __require("fs");
|
|
87
|
+
var path = __require("path");
|
|
88
|
+
var os = __require("os");
|
|
89
|
+
var crypto = __require("crypto");
|
|
90
|
+
var packageJson = require_package();
|
|
91
|
+
var version = packageJson.version;
|
|
92
|
+
var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
|
|
93
|
+
function parse(src) {
|
|
94
|
+
const obj = {};
|
|
95
|
+
let lines = src.toString();
|
|
96
|
+
lines = lines.replace(/\r\n?/mg, "\n");
|
|
97
|
+
let match;
|
|
98
|
+
while ((match = LINE.exec(lines)) != null) {
|
|
99
|
+
const key = match[1];
|
|
100
|
+
let value = match[2] || "";
|
|
101
|
+
value = value.trim();
|
|
102
|
+
const maybeQuote = value[0];
|
|
103
|
+
value = value.replace(/^(['"`])([\s\S]*)\1$/mg, "$2");
|
|
104
|
+
if (maybeQuote === '"') {
|
|
105
|
+
value = value.replace(/\\n/g, "\n");
|
|
106
|
+
value = value.replace(/\\r/g, "\r");
|
|
107
|
+
}
|
|
108
|
+
obj[key] = value;
|
|
109
|
+
}
|
|
110
|
+
return obj;
|
|
111
|
+
}
|
|
112
|
+
function _parseVault(options) {
|
|
113
|
+
const vaultPath = _vaultPath(options);
|
|
114
|
+
const result = DotenvModule.configDotenv({ path: vaultPath });
|
|
115
|
+
if (!result.parsed) {
|
|
116
|
+
const err = new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);
|
|
117
|
+
err.code = "MISSING_DATA";
|
|
118
|
+
throw err;
|
|
119
|
+
}
|
|
120
|
+
const keys = _dotenvKey(options).split(",");
|
|
121
|
+
const length = keys.length;
|
|
122
|
+
let decrypted;
|
|
123
|
+
for (let i = 0; i < length; i++) {
|
|
124
|
+
try {
|
|
125
|
+
const key = keys[i].trim();
|
|
126
|
+
const attrs = _instructions(result, key);
|
|
127
|
+
decrypted = DotenvModule.decrypt(attrs.ciphertext, attrs.key);
|
|
128
|
+
break;
|
|
129
|
+
} catch (error) {
|
|
130
|
+
if (i + 1 >= length) {
|
|
131
|
+
throw error;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
return DotenvModule.parse(decrypted);
|
|
136
|
+
}
|
|
137
|
+
function _log(message) {
|
|
138
|
+
console.log(`[dotenv@${version}][INFO] ${message}`);
|
|
139
|
+
}
|
|
140
|
+
function _warn(message) {
|
|
141
|
+
console.log(`[dotenv@${version}][WARN] ${message}`);
|
|
142
|
+
}
|
|
143
|
+
function _debug(message) {
|
|
144
|
+
console.log(`[dotenv@${version}][DEBUG] ${message}`);
|
|
145
|
+
}
|
|
146
|
+
function _dotenvKey(options) {
|
|
147
|
+
if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) {
|
|
148
|
+
return options.DOTENV_KEY;
|
|
149
|
+
}
|
|
150
|
+
if (process.env.DOTENV_KEY && process.env.DOTENV_KEY.length > 0) {
|
|
151
|
+
return process.env.DOTENV_KEY;
|
|
152
|
+
}
|
|
153
|
+
return "";
|
|
154
|
+
}
|
|
155
|
+
function _instructions(result, dotenvKey) {
|
|
156
|
+
let uri;
|
|
157
|
+
try {
|
|
158
|
+
uri = new URL(dotenvKey);
|
|
159
|
+
} catch (error) {
|
|
160
|
+
if (error.code === "ERR_INVALID_URL") {
|
|
161
|
+
const err = new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");
|
|
162
|
+
err.code = "INVALID_DOTENV_KEY";
|
|
163
|
+
throw err;
|
|
164
|
+
}
|
|
165
|
+
throw error;
|
|
166
|
+
}
|
|
167
|
+
const key = uri.password;
|
|
168
|
+
if (!key) {
|
|
169
|
+
const err = new Error("INVALID_DOTENV_KEY: Missing key part");
|
|
170
|
+
err.code = "INVALID_DOTENV_KEY";
|
|
171
|
+
throw err;
|
|
172
|
+
}
|
|
173
|
+
const environment = uri.searchParams.get("environment");
|
|
174
|
+
if (!environment) {
|
|
175
|
+
const err = new Error("INVALID_DOTENV_KEY: Missing environment part");
|
|
176
|
+
err.code = "INVALID_DOTENV_KEY";
|
|
177
|
+
throw err;
|
|
178
|
+
}
|
|
179
|
+
const environmentKey = `DOTENV_VAULT_${environment.toUpperCase()}`;
|
|
180
|
+
const ciphertext = result.parsed[environmentKey];
|
|
181
|
+
if (!ciphertext) {
|
|
182
|
+
const err = new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${environmentKey} in your .env.vault file.`);
|
|
183
|
+
err.code = "NOT_FOUND_DOTENV_ENVIRONMENT";
|
|
184
|
+
throw err;
|
|
185
|
+
}
|
|
186
|
+
return { ciphertext, key };
|
|
187
|
+
}
|
|
188
|
+
function _vaultPath(options) {
|
|
189
|
+
let possibleVaultPath = null;
|
|
190
|
+
if (options && options.path && options.path.length > 0) {
|
|
191
|
+
if (Array.isArray(options.path)) {
|
|
192
|
+
for (const filepath of options.path) {
|
|
193
|
+
if (fs.existsSync(filepath)) {
|
|
194
|
+
possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
} else {
|
|
198
|
+
possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
|
|
199
|
+
}
|
|
200
|
+
} else {
|
|
201
|
+
possibleVaultPath = path.resolve(process.cwd(), ".env.vault");
|
|
202
|
+
}
|
|
203
|
+
if (fs.existsSync(possibleVaultPath)) {
|
|
204
|
+
return possibleVaultPath;
|
|
205
|
+
}
|
|
206
|
+
return null;
|
|
207
|
+
}
|
|
208
|
+
function _resolveHome(envPath) {
|
|
209
|
+
return envPath[0] === "~" ? path.join(os.homedir(), envPath.slice(1)) : envPath;
|
|
210
|
+
}
|
|
211
|
+
function _configVault(options) {
|
|
212
|
+
_log("Loading env from encrypted .env.vault");
|
|
213
|
+
const parsed = DotenvModule._parseVault(options);
|
|
214
|
+
let processEnv = process.env;
|
|
215
|
+
if (options && options.processEnv != null) {
|
|
216
|
+
processEnv = options.processEnv;
|
|
217
|
+
}
|
|
218
|
+
DotenvModule.populate(processEnv, parsed, options);
|
|
219
|
+
return { parsed };
|
|
220
|
+
}
|
|
221
|
+
function configDotenv(options) {
|
|
222
|
+
const dotenvPath = path.resolve(process.cwd(), ".env");
|
|
223
|
+
let encoding = "utf8";
|
|
224
|
+
const debug = Boolean(options && options.debug);
|
|
225
|
+
if (options && options.encoding) {
|
|
226
|
+
encoding = options.encoding;
|
|
227
|
+
} else {
|
|
228
|
+
if (debug) {
|
|
229
|
+
_debug("No encoding is specified. UTF-8 is used by default");
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
let optionPaths = [dotenvPath];
|
|
233
|
+
if (options && options.path) {
|
|
234
|
+
if (!Array.isArray(options.path)) {
|
|
235
|
+
optionPaths = [_resolveHome(options.path)];
|
|
236
|
+
} else {
|
|
237
|
+
optionPaths = [];
|
|
238
|
+
for (const filepath of options.path) {
|
|
239
|
+
optionPaths.push(_resolveHome(filepath));
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
let lastError;
|
|
244
|
+
const parsedAll = {};
|
|
245
|
+
for (const path2 of optionPaths) {
|
|
246
|
+
try {
|
|
247
|
+
const parsed = DotenvModule.parse(fs.readFileSync(path2, { encoding }));
|
|
248
|
+
DotenvModule.populate(parsedAll, parsed, options);
|
|
249
|
+
} catch (e) {
|
|
250
|
+
if (debug) {
|
|
251
|
+
_debug(`Failed to load ${path2} ${e.message}`);
|
|
252
|
+
}
|
|
253
|
+
lastError = e;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
let processEnv = process.env;
|
|
257
|
+
if (options && options.processEnv != null) {
|
|
258
|
+
processEnv = options.processEnv;
|
|
259
|
+
}
|
|
260
|
+
DotenvModule.populate(processEnv, parsedAll, options);
|
|
261
|
+
if (lastError) {
|
|
262
|
+
return { parsed: parsedAll, error: lastError };
|
|
263
|
+
} else {
|
|
264
|
+
return { parsed: parsedAll };
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
function config2(options) {
|
|
268
|
+
if (_dotenvKey(options).length === 0) {
|
|
269
|
+
return DotenvModule.configDotenv(options);
|
|
270
|
+
}
|
|
271
|
+
const vaultPath = _vaultPath(options);
|
|
272
|
+
if (!vaultPath) {
|
|
273
|
+
_warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${vaultPath}. Did you forget to build it?`);
|
|
274
|
+
return DotenvModule.configDotenv(options);
|
|
275
|
+
}
|
|
276
|
+
return DotenvModule._configVault(options);
|
|
277
|
+
}
|
|
278
|
+
function decrypt(encrypted, keyStr) {
|
|
279
|
+
const key = Buffer.from(keyStr.slice(-64), "hex");
|
|
280
|
+
let ciphertext = Buffer.from(encrypted, "base64");
|
|
281
|
+
const nonce = ciphertext.subarray(0, 12);
|
|
282
|
+
const authTag = ciphertext.subarray(-16);
|
|
283
|
+
ciphertext = ciphertext.subarray(12, -16);
|
|
284
|
+
try {
|
|
285
|
+
const aesgcm = crypto.createDecipheriv("aes-256-gcm", key, nonce);
|
|
286
|
+
aesgcm.setAuthTag(authTag);
|
|
287
|
+
return `${aesgcm.update(ciphertext)}${aesgcm.final()}`;
|
|
288
|
+
} catch (error) {
|
|
289
|
+
const isRange = error instanceof RangeError;
|
|
290
|
+
const invalidKeyLength = error.message === "Invalid key length";
|
|
291
|
+
const decryptionFailed = error.message === "Unsupported state or unable to authenticate data";
|
|
292
|
+
if (isRange || invalidKeyLength) {
|
|
293
|
+
const err = new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");
|
|
294
|
+
err.code = "INVALID_DOTENV_KEY";
|
|
295
|
+
throw err;
|
|
296
|
+
} else if (decryptionFailed) {
|
|
297
|
+
const err = new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");
|
|
298
|
+
err.code = "DECRYPTION_FAILED";
|
|
299
|
+
throw err;
|
|
300
|
+
} else {
|
|
301
|
+
throw error;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
function populate(processEnv, parsed, options = {}) {
|
|
306
|
+
const debug = Boolean(options && options.debug);
|
|
307
|
+
const override = Boolean(options && options.override);
|
|
308
|
+
if (typeof parsed !== "object") {
|
|
309
|
+
const err = new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");
|
|
310
|
+
err.code = "OBJECT_REQUIRED";
|
|
311
|
+
throw err;
|
|
312
|
+
}
|
|
313
|
+
for (const key of Object.keys(parsed)) {
|
|
314
|
+
if (Object.prototype.hasOwnProperty.call(processEnv, key)) {
|
|
315
|
+
if (override === true) {
|
|
316
|
+
processEnv[key] = parsed[key];
|
|
317
|
+
}
|
|
318
|
+
if (debug) {
|
|
319
|
+
if (override === true) {
|
|
320
|
+
_debug(`"${key}" is already defined and WAS overwritten`);
|
|
321
|
+
} else {
|
|
322
|
+
_debug(`"${key}" is already defined and was NOT overwritten`);
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
} else {
|
|
326
|
+
processEnv[key] = parsed[key];
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
var DotenvModule = {
|
|
331
|
+
configDotenv,
|
|
332
|
+
_configVault,
|
|
333
|
+
_parseVault,
|
|
334
|
+
config: config2,
|
|
335
|
+
decrypt,
|
|
336
|
+
parse,
|
|
337
|
+
populate
|
|
338
|
+
};
|
|
339
|
+
module.exports.configDotenv = DotenvModule.configDotenv;
|
|
340
|
+
module.exports._configVault = DotenvModule._configVault;
|
|
341
|
+
module.exports._parseVault = DotenvModule._parseVault;
|
|
342
|
+
module.exports.config = DotenvModule.config;
|
|
343
|
+
module.exports.decrypt = DotenvModule.decrypt;
|
|
344
|
+
module.exports.parse = DotenvModule.parse;
|
|
345
|
+
module.exports.populate = DotenvModule.populate;
|
|
346
|
+
module.exports = DotenvModule;
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
|
|
350
|
+
// ../../packages/portal/products/realm/dist/shared/env.js
|
|
351
|
+
var u = __toESM(require_main(), 1);
|
|
352
|
+
function f(e) {
|
|
353
|
+
return process.env[e];
|
|
354
|
+
}
|
|
355
|
+
function x() {
|
|
356
|
+
const e = process.env, n = Object.entries(e).filter(([r]) => r.startsWith(m));
|
|
357
|
+
return Object.fromEntries(n);
|
|
358
|
+
}
|
|
359
|
+
function j() {
|
|
360
|
+
return f("REDOCLY_ENV") === "production";
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
export {
|
|
364
|
+
f,
|
|
365
|
+
x,
|
|
366
|
+
j
|
|
367
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { createRequire as topLevelCreateRequire } from 'module';
|
|
2
|
+
const require = topLevelCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
init_styled_components_esm,
|
|
5
|
+
init_utils,
|
|
6
|
+
styled_components_esm_default,
|
|
7
|
+
typography
|
|
8
|
+
} from "./chunk-27G3BZUU.js";
|
|
9
|
+
import {
|
|
10
|
+
__esm
|
|
11
|
+
} from "./chunk-6TWMFDXM.js";
|
|
12
|
+
|
|
13
|
+
// ../../packages/theme/src/components/Typography/H3.ts
|
|
14
|
+
var H3;
|
|
15
|
+
var init_H3 = __esm({
|
|
16
|
+
"../../packages/theme/src/components/Typography/H3.ts"() {
|
|
17
|
+
init_styled_components_esm();
|
|
18
|
+
init_utils();
|
|
19
|
+
H3 = styled_components_esm_default.h3.attrs(({
|
|
20
|
+
className
|
|
21
|
+
}) => ({
|
|
22
|
+
"data-component-name": "Typography/H3",
|
|
23
|
+
className
|
|
24
|
+
})).withConfig({
|
|
25
|
+
displayName: "H3",
|
|
26
|
+
componentId: "sc-unaodq-0"
|
|
27
|
+
})(["color:var(--h3-text-color);margin:var(--h3-margin-top) 0 var(--h3-margin-bottom);", ";"], typography("h3"));
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export {
|
|
32
|
+
H3,
|
|
33
|
+
init_H3
|
|
34
|
+
};
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { createRequire as topLevelCreateRequire } from 'module';
|
|
2
|
+
const require = topLevelCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
PageNavigation
|
|
5
|
+
} from "./chunk-CZ4WUWHR.js";
|
|
6
|
+
import {
|
|
7
|
+
Breadcrumbs,
|
|
8
|
+
EditPageButton,
|
|
9
|
+
init_Breadcrumbs,
|
|
10
|
+
init_EditPageButton
|
|
11
|
+
} from "./chunk-PS2DM6W4.js";
|
|
12
|
+
import {
|
|
13
|
+
init_hooks,
|
|
14
|
+
useThemeConfig,
|
|
15
|
+
useThemeHooks,
|
|
16
|
+
useTimeAgo
|
|
17
|
+
} from "./chunk-F2FIOV3B.js";
|
|
18
|
+
import {
|
|
19
|
+
CODE_GROUP_SNIPPET_NAME_KEY,
|
|
20
|
+
CodeSnippetContext,
|
|
21
|
+
init_CodeSnippetContext
|
|
22
|
+
} from "./chunk-5WWZZ3I5.js";
|
|
23
|
+
import {
|
|
24
|
+
DEFAULT_LOCALE_PLACEHOLDER,
|
|
25
|
+
breakpoints,
|
|
26
|
+
init_constants,
|
|
27
|
+
init_styled_components_esm,
|
|
28
|
+
init_utils,
|
|
29
|
+
styled_components_esm_default
|
|
30
|
+
} from "./chunk-27G3BZUU.js";
|
|
31
|
+
|
|
32
|
+
// ../../packages/theme/src/layouts/DocumentationLayout.tsx
|
|
33
|
+
init_styled_components_esm();
|
|
34
|
+
init_EditPageButton();
|
|
35
|
+
init_utils();
|
|
36
|
+
import React2 from "react";
|
|
37
|
+
|
|
38
|
+
// ../../packages/theme/src/components/LastUpdated/LastUpdated.tsx
|
|
39
|
+
init_styled_components_esm();
|
|
40
|
+
init_constants();
|
|
41
|
+
init_hooks();
|
|
42
|
+
import React, { useMemo } from "react";
|
|
43
|
+
function LastUpdated(props) {
|
|
44
|
+
const {
|
|
45
|
+
markdown: {
|
|
46
|
+
lastUpdatedBlock = {}
|
|
47
|
+
} = {}
|
|
48
|
+
} = useThemeConfig();
|
|
49
|
+
const {
|
|
50
|
+
useTranslate,
|
|
51
|
+
useL10nConfig
|
|
52
|
+
} = useThemeHooks();
|
|
53
|
+
const {
|
|
54
|
+
format: timeagoFormat
|
|
55
|
+
} = useTimeAgo();
|
|
56
|
+
const {
|
|
57
|
+
translate
|
|
58
|
+
} = useTranslate();
|
|
59
|
+
const {
|
|
60
|
+
currentLocale
|
|
61
|
+
} = useL10nConfig();
|
|
62
|
+
const formats = useMemo(() => ({
|
|
63
|
+
timeago: (date) => timeagoFormat(date),
|
|
64
|
+
iso: (date) => date.toISOString().split("T")[0],
|
|
65
|
+
short: (date, locale2) => date.toLocaleDateString(locale2, {
|
|
66
|
+
month: "short",
|
|
67
|
+
day: "numeric",
|
|
68
|
+
year: "numeric"
|
|
69
|
+
}),
|
|
70
|
+
long: (date, locale2) => date.toLocaleDateString(locale2, {
|
|
71
|
+
month: "long",
|
|
72
|
+
day: "numeric",
|
|
73
|
+
year: "numeric"
|
|
74
|
+
})
|
|
75
|
+
}), [timeagoFormat]);
|
|
76
|
+
if (lastUpdatedBlock?.hide) {
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
const lastModified = props.lastModified;
|
|
80
|
+
const format = props.format || lastUpdatedBlock.format || "timeago";
|
|
81
|
+
const locale = props.locale || lastUpdatedBlock.locale || (currentLocale !== DEFAULT_LOCALE_PLACEHOLDER ? currentLocale || "en-US" : "en-US");
|
|
82
|
+
const isoDate = lastModified.toISOString().split("T")[0];
|
|
83
|
+
const lastUpdatedString = formats[format](lastModified, locale);
|
|
84
|
+
const translationKey = format === "timeago" ? "page.lastUpdated.timeago" : "page.lastUpdated.on";
|
|
85
|
+
const text = format === "timeago" ? translate(translationKey, "Last updated") + " " : translate(translationKey, "Last updated on");
|
|
86
|
+
return /* @__PURE__ */ React.createElement(LastUpdatedWrapper, { className: props.className, "data-component-name": "LastUpdated/LastUpdated", rawOnPrint: format === "timeago", "data-print-datetime": isoDate, "data-translation-key": translationKey }, text, " ", /* @__PURE__ */ React.createElement("time", { dateTime: isoDate }, lastUpdatedString));
|
|
87
|
+
}
|
|
88
|
+
var LastUpdatedWrapper = styled_components_esm_default.div.withConfig({
|
|
89
|
+
displayName: "LastUpdated__LastUpdatedWrapper",
|
|
90
|
+
componentId: "sc-1wktrwl-0"
|
|
91
|
+
})(["color:var(--last-updated-text-color);font-size:var(--last-updated-font-size);font-family:var(--last-updated-font-family);line-height:var(--last-updated-line-height);padding-bottom:30px;", ""], ({
|
|
92
|
+
rawOnPrint
|
|
93
|
+
}) => rawOnPrint && `@media print {
|
|
94
|
+
time {
|
|
95
|
+
display: none;
|
|
96
|
+
}
|
|
97
|
+
&::after {
|
|
98
|
+
content: attr(data-print-datetime);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
`);
|
|
102
|
+
|
|
103
|
+
// ../../packages/theme/src/layouts/DocumentationLayout.tsx
|
|
104
|
+
init_Breadcrumbs();
|
|
105
|
+
init_CodeSnippetContext();
|
|
106
|
+
|
|
107
|
+
// ../../packages/theme/src/core/hooks/use-local-state.ts
|
|
108
|
+
import { useState, useEffect } from "react";
|
|
109
|
+
function getInitialValue(key, initialValue) {
|
|
110
|
+
if (typeof window === "undefined") {
|
|
111
|
+
return initialValue;
|
|
112
|
+
}
|
|
113
|
+
try {
|
|
114
|
+
const savedValue = localStorage.getItem(key);
|
|
115
|
+
if (savedValue) {
|
|
116
|
+
return JSON.parse(savedValue);
|
|
117
|
+
}
|
|
118
|
+
} catch (error) {
|
|
119
|
+
console.error(`Error reading from localStorage for key "${key}":`, error);
|
|
120
|
+
}
|
|
121
|
+
return initialValue;
|
|
122
|
+
}
|
|
123
|
+
function useLocalState(key, initialValue) {
|
|
124
|
+
const [value, setValue] = useState(() => getInitialValue(key, initialValue));
|
|
125
|
+
useEffect(() => {
|
|
126
|
+
try {
|
|
127
|
+
localStorage.setItem(key, JSON.stringify(value));
|
|
128
|
+
} catch (error) {
|
|
129
|
+
console.error(`Error writing to localStorage for key "${key}":`, error);
|
|
130
|
+
}
|
|
131
|
+
}, [key, value]);
|
|
132
|
+
return [value, setValue];
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// ../../packages/theme/src/layouts/DocumentationLayout.tsx
|
|
136
|
+
function DocumentationLayout({
|
|
137
|
+
tableOfContent,
|
|
138
|
+
feedback,
|
|
139
|
+
config,
|
|
140
|
+
editPage,
|
|
141
|
+
lastModified,
|
|
142
|
+
nextPage,
|
|
143
|
+
prevPage,
|
|
144
|
+
className,
|
|
145
|
+
children
|
|
146
|
+
}) {
|
|
147
|
+
const {
|
|
148
|
+
editPage: themeEditPage
|
|
149
|
+
} = config || {};
|
|
150
|
+
const mergedConf = editPage ? {
|
|
151
|
+
...themeEditPage,
|
|
152
|
+
...editPage
|
|
153
|
+
} : void 0;
|
|
154
|
+
const [activeSnippetName, setActiveSnippetName] = useLocalState(CODE_GROUP_SNIPPET_NAME_KEY, "");
|
|
155
|
+
return /* @__PURE__ */ React2.createElement(CodeSnippetContext.Provider, { value: {
|
|
156
|
+
activeSnippetName,
|
|
157
|
+
setActiveSnippetName
|
|
158
|
+
} }, /* @__PURE__ */ React2.createElement(LayoutWrapper, { "data-component-name": "Layout/DocumentationLayout", className }, /* @__PURE__ */ React2.createElement(ContentWrapper, { withToc: !config?.toc?.hide }, /* @__PURE__ */ React2.createElement(Breadcrumbs2, null), /* @__PURE__ */ React2.createElement(LayoutTop, null, lastModified && /* @__PURE__ */ React2.createElement(LastUpdated, { lastModified: new Date(lastModified) }), mergedConf && /* @__PURE__ */ React2.createElement(EditPageButton, { to: mergedConf.to })), children, /* @__PURE__ */ React2.createElement(LayoutBottom, null, feedback), /* @__PURE__ */ React2.createElement(PageNavigation, { nextPage, prevPage })), tableOfContent));
|
|
159
|
+
}
|
|
160
|
+
var LayoutWrapper = styled_components_esm_default.div.attrs(({
|
|
161
|
+
className
|
|
162
|
+
}) => ({
|
|
163
|
+
className
|
|
164
|
+
})).withConfig({
|
|
165
|
+
displayName: "DocumentationLayout__LayoutWrapper",
|
|
166
|
+
componentId: "sc-1e1mekb-0"
|
|
167
|
+
})(["display:flex;flex:1;width:100%;"]);
|
|
168
|
+
var ContentWrapper = styled_components_esm_default.section.withConfig({
|
|
169
|
+
displayName: "DocumentationLayout__ContentWrapper",
|
|
170
|
+
componentId: "sc-1e1mekb-1"
|
|
171
|
+
})(["--md-content-font-size:var(--font-size-lg);--md-content-line-height:var(--line-height-lg);--md-table-font-size:var(--md-content-font-size);--md-table-line-height:var(--md-content-line-height);--md-tabs-content-font-size:var(--md-content-font-size);--md-tabs-content-line-height:var(--md-content-line-height);max-width:var(--md-content-max-width);width:90%;margin:0 auto;padding:var(--md-content-padding);article:first-child > h1:first-child{margin-top:0;}@media screen and (min-width:", "){width:", ";}"], breakpoints.medium, ({
|
|
172
|
+
withToc
|
|
173
|
+
}) => withToc ? `calc(90% - var(--toc-width))` : "90%");
|
|
174
|
+
var LayoutTop = styled_components_esm_default.div.withConfig({
|
|
175
|
+
displayName: "DocumentationLayout__LayoutTop",
|
|
176
|
+
componentId: "sc-1e1mekb-2"
|
|
177
|
+
})(["display:flex;justify-content:space-between;flex-flow:row nowrap;"]);
|
|
178
|
+
var Breadcrumbs2 = styled_components_esm_default(Breadcrumbs).withConfig({
|
|
179
|
+
displayName: "DocumentationLayout__Breadcrumbs",
|
|
180
|
+
componentId: "sc-1e1mekb-3"
|
|
181
|
+
})(["margin-bottom:var(--breadcrumbs-margin-bottom);"]);
|
|
182
|
+
var LayoutBottom = styled_components_esm_default(LayoutTop).withConfig({
|
|
183
|
+
displayName: "DocumentationLayout__LayoutBottom",
|
|
184
|
+
componentId: "sc-1e1mekb-4"
|
|
185
|
+
})(["> *{margin:25px 0;}"]);
|
|
186
|
+
|
|
187
|
+
export {
|
|
188
|
+
DocumentationLayout
|
|
189
|
+
};
|