@diplodoc/cli 4.23.0 → 4.23.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 +2 -2
- package/package.json +2 -2
package/assets/app.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{var e,t={7276:(e,t,n)=>{"use strict";var o=n(6540),r=n(5338),a=n(7658),c=n(3233),i=n(7028),l=n(8184),s=n(4957),d=n(9269),m=n(6141),u=n(5379);const h=(0,o.memo)((({mobileView:e,theme:t,onChangeTheme:n,textSize:r,onChangeTextSize:a,wideFormat:c,onChangeWideFormat:i,showMiniToc:s,onChangeShowMiniToc:d,lang:h,langs:f,onChangeLang:g})=>o.createElement(m.n,{controlClassName:"Control",controlSize:l.Uv.L,isWideView:e,isMobileView:e},o.createElement(u.A,{className:"Controls",theme:t,onChangeTheme:n,wideFormat:c,onChangeWideFormat:i,showMiniToc:s,onChangeShowMiniToc:d,textSize:r,onChangeTextSize:a,lang:h,langs:f,onChangeLang:g}))));h.displayName="HeaderControls";const f=["ar","arc","ckb","dv","fa","ha","he","khw","ks","ps","sd","ur","uz_AF","yi"];let g=function(e){return e.RTL="rtl",e.LTR="ltr",e}({});function
|
|
1
|
+
(()=>{var e,t={7276:(e,t,n)=>{"use strict";var o=n(6540),r=n(5338),a=n(7658),c=n(3233),i=n(7028),l=n(8184),s=n(4957),d=n(9269),m=n(6141),u=n(5379);const h=(0,o.memo)((({mobileView:e,theme:t,onChangeTheme:n,textSize:r,onChangeTextSize:a,wideFormat:c,onChangeWideFormat:i,showMiniToc:s,onChangeShowMiniToc:d,lang:h,langs:f,onChangeLang:g})=>o.createElement(m.n,{controlClassName:"Control",controlSize:l.Uv.L,isWideView:e,isMobileView:e},o.createElement(u.A,{className:"Controls",theme:t,onChangeTheme:n,wideFormat:c,onChangeWideFormat:i,showMiniToc:s,onChangeShowMiniToc:d,textSize:r,onChangeTextSize:a,lang:h,langs:f,onChangeLang:g}))));h.displayName="HeaderControls";const f=["ar","arc","ckb","dv","fa","ha","he","khw","ks","ps","sd","ur","uz_AF","yi"];let g=function(e){return e.RTL="rtl",e.LTR="ltr",e}({});function w(e){return"boolean"==typeof e?e:!!e&&"true"===e}new Set(["href","src","url","href","icon","image","desktop","mobile","tablet","previewImg","image","avatar","logo","light","dark"]);var p=n(3614);const S=(0,p.A)("Layout");function E(){return null}function b(){return null}function v(){return null}const y=e=>{const{children:t,doc:n}=e;let r,a,c;return o.Children.forEach(t,(e=>{switch(e.type){case E:r=e.props.children;break;case b:a=e.props.children;break;case v:c=e.props.children}})),o.createElement("div",{className:S()},r&&o.createElement("div",{className:S("header")},r),o.createElement("div",{className:S("body")},a&&o.createElement("div",{className:S("content")},a),c&&o.createElement("div",{className:S("footer",{doc:n})},c)))};y.displayName="Layout",y.defaultProps={doc:!1},y.Header=E,y.Content=b,y.Footer=v;const C={theme:l.Sx.Light,textSize:l.ov.M,showMiniToc:!0,wideFormat:!0,fullScreen:!1};function T(e){if("undefined"==typeof sessionStorage)return C[e];try{return sessionStorage.getItem(e)||C[e]}catch{return C[e]}}function k(e,t){return n=>{!function(e,t){try{sessionStorage.setItem(e,String(t))}catch{}}(e,n),t(n)}}n(4186),n(553);var M=n(5905),F=n(358),x=n(8432),_=n(8058),N=n(2445),O=n(3259),z=n(1998),j=n(2945),L=n(4012);const A=(0,p.A)("pc-page-constructor"),P=(0,p.A)("pc-constructor-row"),I=({children:e})=>e?o.createElement(_.f,{className:P()},o.createElement(N.f,null,e)):null;function W({data:{data:e},theme:t}){const n=(0,O.d)(e?.background,t);return o.createElement("div",{className:A("docs")},o.createElement("div",{className:A("wrapper")},e?.blocks&&n&&o.createElement(z.A,Object.assign({},n,{className:A("background")})),o.createElement(j.x,null,o.createElement(I,null,o.createElement(L.F,{items:e?.blocks})))))}function H(e){const{theme:t}=e;return o.createElement(o.Fragment,null,o.createElement(x.v,null),o.createElement(F.l,null),o.createElement(M.A,{theme:t===l.Sx.Dark?"dark":"neutral",zoom:{showMenu:!0,bindKeys:!0}}))}function V(e){const{data:t,...n}=e,r=(0,s.$T)(e?.type);return o.createElement(y,null,o.createElement(y.Content,null,o.createElement(r,Object.assign({},t,n))))}function K(e){const{data:t,router:n,lang:r,langs:m}=e,{navigation:u}=t.toc;(0,d.jK)({lang:r});const p=function(){const e=function(){const e=T("theme"),t=T("textSize"),n=T("showMiniToc"),o=T("wideFormat"),r=T("fullScreen");return{theme:e,textSize:t,showMiniToc:w(n),wideFormat:w(o),fullScreen:w(r)}}(),[t,n]=(0,o.useState)(e.wideFormat),[r,a]=(0,o.useState)(e.fullScreen),[c,i]=(0,o.useState)(e.showMiniToc),[l,s]=(0,o.useState)(e.theme),[d,m]=(0,o.useState)(e.textSize);return{theme:l,onChangeTheme:k("theme",s),textSize:d,onChangeTextSize:k("textSize",m),wideFormat:t,onChangeWideFormat:k("wideFormat",n),showMiniToc:c,onChangeShowMiniToc:k("showMiniToc",i),fullScreen:r,onChangeFullScreen:k("fullScreen",a)}}(),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}(),E=(0,o.useCallback)((e=>{const t=(0,s.UZ)(n,e);window.location.replace(t)}),[n]),{theme:b,textSize:v,wideFormat:y,fullScreen:C,showMiniToc:M,onChangeFullScreen:F}=p,x=!C&&Boolean(u),_=x?64:0,N=(0,s.M5)(t),O={headerHeight:_,data:t,router:n,lang:r,langs:m,wideFormat:y,showMiniToc:M,theme:b,textSize:v,fullScreen:C,onChangeFullScreen:F,type:N},z=function(e){return f.includes(e)?g.RTL:g.LTR}(r),j=N===l.KG.PageConstructor&&"data"in t&&"fullScreen"in t.data&&t.data.fullScreen,L="App "+(j?"fullscreen-mode":"document-mode");(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:b,mobileView:S,wideFormat:y,fullHeader:x})}),[b,S,y,x]);const A={...p,onChangeLang:E};if(!u)return o.createElement("div",{className:L},o.createElement(i.N,{theme:b,direction:z},o.createElement(V,Object.assign({},O,A),N===l.KG.PageConstructor&&o.createElement(a.Z,{theme:b},o.createElement(c.i,{custom:{blocks:{page:()=>o.createElement(W,{data:t,theme:b})}},content:j?t.data:{blocks:[{type:"page",resetPaddings:!0}]}}))),o.createElement(H,{theme:b})));const{header:P={},logo:I}=u,{leftItems:K=[],rightItems:R=[]}=P,B=R.some((e=>"controls"===e.type));return o.createElement("div",{className:L},o.createElement(i.N,{theme:b,direction:z},o.createElement(a.Z,{theme:b},o.createElement(c.i,{custom:{navigation:{controls:()=>o.createElement(h,Object.assign({},A,O,{onChangeLang:E,mobileView:S}))},blocks:{page:()=>o.createElement(V,Object.assign({},O,B?{}:A),N===l.KG.PageConstructor&&"data"in t&&o.createElement(W,{data:t,theme:b}))}},content:j?t.data:{blocks:[{type:"page",resetPaddings:!0}]},navigation:x?{header:{withBorder:!0,leftItems:K,rightItems:R},logo:I}:void 0}))),o.createElement(H,{theme:b}))}const R=document.getElementById("root"),B=window.__DATA__;if(!R)throw new Error("Root element not found!");window.STATIC_CONTENT?(0,r.c)(R,o.createElement(K,B)):(0,r.H)(R).render(o.createElement(K,B))},4186:()=>{"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}}))},7040:(e,t,n)=>{"use strict";function o(){}n.d(t,{A:()=>o})},2634:()=>{}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(a.exports,a,a.exports,o),a.loaded=!0,a.exports}o.m=t,o.amdO={},e=[],o.O=(t,n,r,a)=>{if(!n){var c=1/0;for(d=0;d<e.length;d++){for(var[n,r,a]=e[d],i=!0,l=0;l<n.length;l++)(!1&a||c>=a)&&Object.keys(o.O).every((e=>o.O[e](n[l])))?n.splice(l--,1):(i=!1,a<c&&(c=a));if(i){e.splice(d--,1);var s=r();void 0!==s&&(t=s)}}return t}a=a||0;for(var d=e.length;d>0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[n,r,a]},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={524:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var r,a,[c,i,l]=n,s=0;if(c.some((t=>0!==e[t]))){for(r in i)o.o(i,r)&&(o.m[r]=i[r]);if(l)var d=l(o)}for(t&&t(n);s<c.length;s++)a=c[s],o.o(e,a)&&e[a]&&e[a][0](),e[a]=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,[644,121],(()=>o(7276)));r=o.O(r)})();
|
|
2
2
|
//# sourceMappingURL=app.js.map
|
package/build/index.js
CHANGED
|
@@ -261714,7 +261714,7 @@ var parser3 = import_yargs.default.command(build).option("config", {
|
|
|
261714
261714
|
default: false,
|
|
261715
261715
|
describe: "Run in quiet mode. Don't write logs to stdout",
|
|
261716
261716
|
type: "boolean"
|
|
261717
|
-
}).group(["config", "strict", "quiet", "help", "version"], "Common options:").version(true ? "4.23.
|
|
261717
|
+
}).group(["config", "strict", "quiet", "help", "version"], "Common options:").version(true ? "4.23.1" : "").help();
|
|
261718
261718
|
var Build = class extends BaseProgram(command, {
|
|
261719
261719
|
config: {
|
|
261720
261720
|
// scope: 'build',
|
|
@@ -266121,7 +266121,7 @@ var Program = class extends BaseProgram("Program", {
|
|
|
266121
266121
|
constructor() {
|
|
266122
266122
|
super(...arguments);
|
|
266123
266123
|
this.command = new Command2(NAME).helpOption(true).allowUnknownOption(false).version(
|
|
266124
|
-
true ? "4.23.
|
|
266124
|
+
true ? "4.23.1" : "",
|
|
266125
266125
|
"--version",
|
|
266126
266126
|
"Output the version number"
|
|
266127
266127
|
).usage(USAGE);
|
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.23.
|
|
6
|
+
"version": "4.23.1",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "git@github.com:diplodoc-platform/cli.git"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"node": ">=18.*"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@diplodoc/client": "^2.6.
|
|
38
|
+
"@diplodoc/client": "^2.6.2",
|
|
39
39
|
"@diplodoc/translation": "^1.1.0",
|
|
40
40
|
"katex": "^0.16.9",
|
|
41
41
|
"shelljs": "0.8.5",
|