@cas-smartdesign/util-optional 3.0.1 → 3.0.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.
package/dist/docs/doc.mjs CHANGED
@@ -58,7 +58,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`),A=u,v=d),w===void 0&&(
58
58
  `);document.head.appendChild(yr);Je.registerLanguage("typescript",Oo);Je.registerLanguage("html",_o);Je.registerLanguage("css",Po);function Io(...r){const e=document.createElement("div"),t=document.createElement("div");t.classList.add("tab-control");const n=document.createElement("div");return r.forEach(i=>{e.appendChild(i),i.addEventListener("click",()=>{r.forEach(o=>o.removeAttribute("selected")),i.setAttribute("selected",""),n.innerHTML="",n.appendChild(i.content),n.className=i.className,n.classList.add("tab-content")})}),t.appendChild(e),t.appendChild(n),n.classList.add("tab-content"),r[0].setAttribute("selected",""),n.appendChild(r[0].content),t}function he(r,e){const t=document.createElement("div");return t.role="tab",t.tabIndex=0,t.innerText=r,t.content=e,e.tagName=="PRE"&&t.classList.add("code"),t}function fe(r,e){const t=document.createElement(r);return typeof e=="string"?t.innerHTML=e:e.forEach(n=>{t.appendChild(n)}),t}async function jo(r,e,t){var n,i,o;const s=e.mainContent,a=fe("div",s);a.id=`example-preview-${t}`;const l=typeof e.css=="string"||(n=e.css)==null?void 0:n.label,c=typeof e.css=="string"?e.css:(i=e.css)==null?void 0:i.content,h=Io(he("Preview",a),he("HTML",$e("html",s)),...c?[he(l??"CSS",$e("css",c))]:[],...e.initializer&&e.initializer.content?[he(e.initializer.label??"TS",$e("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(g=>he(g.label,$e(g.language,g.content))));e.description&&r.appendChild(fe("div",e.description));const b=fe("div",[h]);b.classList.add("example"),r.appendChild(b),c&&$o(`#${a.id}`,c),(o=e.initializer)!=null&&o.initialize&&await e.initializer.initialize(a)}function $e(r,e){let t=e.split(/\r?\n/).map(n=>{const i=n.indexOf("///");if(i>-1){const o=n.substring(i+3).trimStart();return o?n.replace(/^(\s*)([^\s].*)$/,`$1${o}`):void 0}return n}).filter(n=>typeof n<"u").join(`
59
59
  `).trim();return r&&r!="raw"&&(t=Je.highlight(t,{language:r}).value),fe("pre",[fe("code",t)])}function $o(r,e){const t=document.createElement("style");t.innerHTML=k().use(_s({prefix:r})).process(e).css,document.head.appendChild(t)}async function Lo(r,e=document.body){const t=zo(e);let n=0;Object.keys(r).forEach(async i=>{const o=document.createElement("div");o.className="example-container",t.appendChild(o);const s=r[i].default;jo(o,s,n++)})}function To(r){const e=document.createElement("div");e.id="examples-container";const t=r.querySelector("#examples");return t?t.after(e):r.appendChild(e),e}function zo(r){return r.children?To(r):r}const Bo=`<h1 id="@cas-smartdesign/util-optional">@cas-smartdesign/util-optional</h1>
60
60
  <p>A container object which may or may not contain a non-null value.</p>
61
- `;document.querySelector("#markdown-container").innerHTML=Bo;Lo(Object.assign({"./examples/example_usage/index.ts":jr}));
61
+ `,Uo=document.querySelector("#markdown-container");Uo.innerHTML=Bo;Lo(Object.assign({"./examples/example_usage/index.ts":jr}),document.querySelector(".markdown-body"));
62
62
  function __vite__mapDeps(indexes) {
63
63
  if (!__vite__mapDeps.viteFileDeps) {
64
64
  __vite__mapDeps.viteFileDeps = []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cas-smartdesign/util-optional",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "A container object which may or may not contain a non-null value.",
5
5
  "main": "dist/optional-with-externals.js",
6
6
  "module": "dist/optional.mjs",
@@ -15,8 +15,8 @@
15
15
  "access": "public"
16
16
  },
17
17
  "devDependencies": {
18
- "@cas-smartdesign/element-preview": "^0.2.1",
19
- "@cas-smartdesign/license-generator": "^1.6.1"
18
+ "@cas-smartdesign/license-generator": "^1.6.3",
19
+ "@cas-smartdesign/element-preview": "^0.2.2"
20
20
  },
21
21
  "scripts": {
22
22
  "version": "pnpm version",