@redocly/realm 0.80.1 → 0.80.2

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.
@@ -1,21 +1,21 @@
1
- import{RUNTIME_RESOURCES_DIR as o}from"../../shared/constants.js";import{withPathPrefix as s}from"../../shared/urls.js";import{INIT_BROWSER_HOOKS_SCRIPT as d}from"./init-browser-hooks-script.js";const p=`
1
+ import{DEFAULT_LOCALE_PLACEHOLDER as d,RUNTIME_RESOURCES_DIR as o}from"../../shared/constants.js";import{withPathPrefix as s}from"../../shared/urls.js";import{INIT_BROWSER_HOOKS_SCRIPT as p}from"./init-browser-hooks-script.js";const y=`
2
2
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700&display=swap" />
3
3
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:300,400,600,700&display=swap" />
4
- `;function S({bodyHtml:r,linkTags:l,title:i,favicon:e,preload:n,headScriptTags:a,postBodyScriptTags:h,preBodyScriptTags:m,lang:t,fonts:c=p}){return`<!doctype html>
5
- <html${t?` lang="${t}"`:""}>
4
+ `;function R({bodyHtml:r,linkTags:i,title:l,favicon:t,preload:n,headScriptTags:a,postBodyScriptTags:h,preBodyScriptTags:m,lang:e,fonts:c=y}){return`<!doctype html>
5
+ <html${e&&e!=d?` lang="${e}"`:""}>
6
6
  <head>
7
7
  <meta name="viewport" content="width=device-width, initial-scale=1">
8
8
  <meta charset="UTF-8">
9
- ${i||""}
10
- ${e&&`<link rel="icon" href="${e}" />`||""}
11
- ${d}
9
+ ${l||""}
10
+ ${t&&`<link rel="icon" href="${t}" />`||""}
11
+ ${p}
12
12
  ${n?.join(`
13
13
  `)||""}
14
14
  <style>
15
15
  body { margin: 0 }
16
16
  </style>
17
17
  ${c||""}
18
- ${l||""}
18
+ ${i||""}
19
19
  ${a||""}
20
20
  <link rel="stylesheet" href="${s(o)}/browser-entry.css" />
21
21
  </head>
@@ -25,4 +25,4 @@ import{RUNTIME_RESOURCES_DIR as o}from"../../shared/constants.js";import{withPat
25
25
  <script async type="module" src="${s(o)}/browser-entry.js"></script>
26
26
  ${h||""}
27
27
  </body>
28
- </html>`}export{S as htmlTemplate};
28
+ </html>`}export{R as htmlTemplate};
@@ -1 +1 @@
1
- {"version":3,"file":"template.js","sourceRoot":"","sources":["../../../../../src/server/ssr/template.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAE3E,MAAM,YAAY,GAAG;;;CAGpB,CAAC;AAEF,MAAM,UAAU,YAAY,CAAC,EAC3B,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,OAAO,EACP,OAAO,EACP,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,IAAI,EACJ,KAAK,GAAG,YAAY,GAGrB;IACC,MAAM,QAAQ,GAAG,IAAI,CAAC,CAAC,CAAC,UAAU,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAC/C,OAAO;SACA,QAAQ;;;;MAIX,KAAK,IAAI,EAAE;MACX,CAAC,OAAO,IAAI,0BAA0B,OAAO,MAAM,CAAC,IAAI,EAAE;MAC1D,yBAAyB;MACzB,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;;;;MAIzB,KAAK,IAAI,EAAE;MACX,QAAQ,IAAI,EAAE;MACd,cAAc,IAAI,EAAE;mCACS,cAAc,CAAC,qBAAqB,CAAC;;;MAGlE,iBAAiB,IAAI,EAAE;6BACA,QAAQ;uCACE,cAAc,CAC/C,qBAAqB,CACtB;MACC,kBAAkB,IAAI,EAAE;;UAEpB,CAAC;AACX,CAAC"}
1
+ {"version":3,"file":"template.js","sourceRoot":"","sources":["../../../../../src/server/ssr/template.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAC9F,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAE3E,MAAM,YAAY,GAAG;;;CAGpB,CAAC;AAEF,MAAM,UAAU,YAAY,CAAC,EAC3B,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,OAAO,EACP,OAAO,EACP,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,IAAI,EACJ,KAAK,GAAG,YAAY,GAGrB;IACC,MAAM,QAAQ,GAAG,IAAI,IAAI,IAAI,IAAI,0BAA0B,CAAC,CAAC,CAAC,UAAU,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IACrF,OAAO;SACA,QAAQ;;;;MAIX,KAAK,IAAI,EAAE;MACX,CAAC,OAAO,IAAI,0BAA0B,OAAO,MAAM,CAAC,IAAI,EAAE;MAC1D,yBAAyB;MACzB,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;;;;MAIzB,KAAK,IAAI,EAAE;MACX,QAAQ,IAAI,EAAE;MACd,cAAc,IAAI,EAAE;mCACS,cAAc,CAAC,qBAAqB,CAAC;;;MAGlE,iBAAiB,IAAI,EAAE;6BACA,QAAQ;uCACE,cAAc,CAC/C,qBAAqB,CACtB;MACC,kBAAkB,IAAI,EAAE;;UAEpB,CAAC;AACX,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/realm",
3
- "version": "0.80.1",
3
+ "version": "0.80.2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "bin": {