@diplodoc/cli 4.12.0 → 4.12.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/assets/app.js +1 -1
- package/build/index.js +1 -1
- package/package.json +2 -2
package/assets/app.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{var e,t={3616:(e,t,n)=>{"use strict";var o=n(7294),r=n(745),i=n(7725),a=n(7537),c=n(
|
|
1
|
+
(()=>{var e,t={3616:(e,t,n)=>{"use strict";var o=n(7294),r=n(745),i=n(7725),a=n(7537),c=n(8534),l=n(7332),s=n(293),d=n(9609),m=n(4990);const u=(0,o.memo)((({mobileView:e,theme:t,onChangeTheme:n,textSize:r,onChangeTextSize:i,wideFormat:a,onChangeWideFormat:l,showMiniToc:s,onChangeShowMiniToc:u})=>o.createElement(d.C,{controlClassName:"Control",controlSize:c.$D.L,isWideView:e,isMobileView:e},o.createElement(m.Z,{className:"Controls",theme:t,onChangeTheme:n,wideFormat:a,onChangeWideFormat:l,showMiniToc:s,onChangeShowMiniToc:u,textSize:r,onChangeTextSize:i}))));function h(e){return"boolean"==typeof e?e:!!e&&"true"===e}u.displayName="HeaderControls";const f=(0,n(2853).Z)("Layout");function w(){return null}function g(){return null}function p(){return null}const S=e=>{const{children:t,doc:n}=e;let r,i,a;return o.Children.forEach(t,(e=>{switch(e.type){case w:r=e.props.children;break;case g:i=e.props.children;break;case p:a=e.props.children}})),o.createElement("div",{className:f()},r&&o.createElement("div",{className:f("header")},r),o.createElement("div",{className:f("body")},i&&o.createElement("div",{className:f("content")},i),a&&o.createElement("div",{className:f("footer",{doc:n})},a)))};S.displayName="Layout",S.defaultProps={doc:!1},S.Header=w,S.Content=g,S.Footer=p;const v={theme:c.Q2.Light,textSize:c.tF.M,showMiniToc:!0,wideFormat:!0,fullScreen:!1};function y(e){if("undefined"==typeof sessionStorage)return v[e];try{return sessionStorage.getItem(e)||v[e]}catch{return v[e]}}function b(e,t){return n=>{!function(e,t){try{sessionStorage.setItem(e,String(t))}catch{}}(e,n),t(n)}}n(9380),n(8648);var E=n(5289),C=n(9295),T=n(5584);function M(e){const{theme:t}=e;return o.createElement(o.Fragment,null,o.createElement(T.r,null),o.createElement(C.S,null),o.createElement(E.u,{theme:t===c.Q2.Dark?"dark":"neutral",zoom:{showMenu:!0,bindKeys:!0}}))}function F(e){const{data:t,...n}=e,r=t.leading?l.IU:s.Z;return o.createElement(S,null,o.createElement(S.Content,null,o.createElement(r,Object.assign({},t,n))))}function _(e){const t={...e};return function(e){return Array.isArray(e.items)}(e)&&(t.items=e.items.map(_)),void 0!==e.url&&(t.url=e.url.replace(/^\/?/,"/")),t}function x(e){const{data:t,router:n,lang:r}=e,{navigation:c}=t.toc,l=function(){const e=function(){const e=y("theme"),t=y("textSize"),n=y("showMiniToc"),o=y("wideFormat"),r=y("fullScreen");return{theme:e,textSize:t,showMiniToc:h(n),wideFormat:h(o),fullScreen:h(r)}}(),[t,n]=(0,o.useState)(e.wideFormat),[r,i]=(0,o.useState)(e.fullScreen),[a,c]=(0,o.useState)(e.showMiniToc),[l,s]=(0,o.useState)(e.theme),[d,m]=(0,o.useState)(e.textSize);return{theme:l,onChangeTheme:b("theme",s),textSize:d,onChangeTextSize:b("textSize",m),wideFormat:t,onChangeWideFormat:b("wideFormat",n),showMiniToc:a,onChangeShowMiniToc:b("showMiniToc",c),fullScreen:r,onChangeFullScreen:b("fullScreen",i)}}(),s=function(){const[e,t]=(0,o.useState)("undefined"!=typeof document&&document.body.clientWidth<769),n=(0,o.useCallback)((()=>{t(document.body.clientWidth<769)}),[]);return(0,o.useEffect)(n,[n]),(0,o.useEffect)((()=>(window.addEventListener("resize",n),()=>window.removeEventListener("resize",n))),[n]),e}(),{theme:d,textSize:m,wideFormat:f,fullScreen:w,showMiniToc:g,onChangeFullScreen:p}=l,S=!w&&Boolean(c),v={headerHeight:S?64:0,data:t,router:n,lang:r,wideFormat:f,showMiniToc:g,theme:d,textSize:m,fullScreen:w,onChangeFullScreen:p};if((0,o.useEffect)((()=>{!function({theme:e,mobileView:t=!1,wideFormat:n=!1,fullHeader:o=!1}){document.body.className=["g-root",t?"mobile":"desktop",n&&"dc-root_wide-format",o&&"dc-root_full-header","light"===e&&"g-root_theme_light","dark"===e&&"g-root_theme_dark"].filter(Boolean).join(" ")}({theme:d,mobileView:s,wideFormat:f,fullHeader:S})}),[d,s,f,S]),!c)return o.createElement("div",{className:"App"},o.createElement(F,Object.assign({},v,l)),o.createElement(M,{theme:d}));const{header:E={},logo:C}=c,{leftItems:T=[],rightItems:x=[]}=E,O=x.some((e=>"controls"===e.type));return o.createElement("div",{className:"App"},o.createElement(i.W,{theme:d},o.createElement(a.C,{custom:{navigation:{controls:()=>o.createElement(u,Object.assign({},l,{mobileView:s}))},blocks:{page:()=>o.createElement(F,Object.assign({},v,O?{}:l))}},content:{blocks:[{type:"page"}]},navigation:S?{header:{withBorder:!0,leftItems:T.map(_),rightItems:x.map(_)},logo:C}:void 0})),o.createElement(M,{theme:d}))}const O=document.getElementById("root"),z=window.__DATA__;if(!O)throw new Error("Root element not found!");window.STATIC_CONTENT?(0,r.a)(O,o.createElement(x,z)):(0,r.s)(O).render(o.createElement(x,z))},9380:()=>{"undefined"!=typeof Element&&function(e){const t=e.matches||e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector;e.matches=e.matchesSelector=t||function(e){const t=this;return Array.prototype.some.call(document.querySelectorAll(e),(e=>e===t))}}(Element.prototype),"undefined"!=typeof document&&document.addEventListener("click",(e=>{const t=e.target.href,n=window.location.origin;if(e.target.matches(".dc-doc-layout__center a")&&t.startsWith(n)){e.preventDefault();const n="index",o=".html";if(t.endsWith("/"))return void(window.location.href=`${t}${n}${o}`);const r=t.split("#");if(r.length>0&&!r[0].endsWith(o))return r[0]+=o,void(window.location.href=r.join("#"));window.location.href=t}}))},3615:(e,t,n)=>{"use strict";function o(){}n.d(t,{Z:()=>o})},4654:()=>{}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.m=t,o.amdO={},e=[],o.O=(t,n,r,i)=>{if(!n){var a=1/0;for(d=0;d<e.length;d++){for(var[n,r,i]=e[d],c=!0,l=0;l<n.length;l++)(!1&i||a>=i)&&Object.keys(o.O).every((e=>o.O[e](n[l])))?n.splice(l--,1):(c=!1,i<a&&(a=i));if(c){e.splice(d--,1);var s=r();void 0!==s&&(t=s)}}return t}i=i||0;for(var d=e.length;d>0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[n,r,i]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={143:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var r,i,[a,c,l]=n,s=0;if(a.some((t=>0!==e[t]))){for(r in c)o.o(c,r)&&(o.m[r]=c[r]);if(l)var d=l(o)}for(t&&t(n);s<a.length;s++)i=a[s],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return o.O(d)},n=self.webpackChunk_diplodoc_client=self.webpackChunk_diplodoc_client||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var r=o.O(void 0,[514,736],(()=>o(3616)));r=o.O(r)})();
|
|
2
2
|
//# sourceMappingURL=app.js.map
|
package/build/index.js
CHANGED
|
@@ -4247,7 +4247,7 @@ import_yargs.default.command(build).command(publish).command(xliff).command(tran
|
|
|
4247
4247
|
default: false,
|
|
4248
4248
|
describe: "Run in quiet mode. Don't write logs to stdout",
|
|
4249
4249
|
type: "boolean"
|
|
4250
|
-
}).group(["config", "strict", "quiet", "help", "version"], "Common options:").version(true ? "4.12.
|
|
4250
|
+
}).group(["config", "strict", "quiet", "help", "version"], "Common options:").version(true ? "4.12.1" : "").help().parse((0, import_helpers.hideBin)(process.argv), {}, (err, { strict }, output) => {
|
|
4251
4251
|
console.timeEnd(MAIN_TIMER_ID);
|
|
4252
4252
|
if (err) {
|
|
4253
4253
|
console.error(err);
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"author": "Yandex Data UI Team <data-ui@yandex-team.ru>",
|
|
4
4
|
"description": "Make documentation using yfm-docs in Markdown and HTML formats",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "4.12.
|
|
6
|
+
"version": "4.12.1",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "git@github.com:diplodoc-platform/cli.git"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@aws-sdk/client-s3": "^3.369.0",
|
|
34
|
-
"@diplodoc/client": "^2.0.
|
|
34
|
+
"@diplodoc/client": "^2.0.2",
|
|
35
35
|
"@diplodoc/latex-extension": "^1.0.3",
|
|
36
36
|
"@diplodoc/markdown-translation": "^1.1.0",
|
|
37
37
|
"@diplodoc/mermaid-extension": "^1.2.1",
|