@xyd-js/components 0.0.0-build-8a0317f-20251214165542 → 0.0.0-build-c9af03a-20251224161251
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 +2 -2
- package/dist/{Button-DjBpaLuF.js → Button-CpIc0oHt.js} +2 -2
- package/dist/{Button-DjBpaLuF.js.map → Button-CpIc0oHt.js.map} +1 -1
- package/dist/{CodeSample-01rQdSpA.js → CodeSample-DxOeelmK.js} +2 -2
- package/dist/{CodeSample-01rQdSpA.js.map → CodeSample-DxOeelmK.js.map} +1 -1
- package/dist/{Icon-Dm0K2oVd.js → Icon-B67IZfBy.js} +1 -1
- package/dist/{Icon-Dm0K2oVd.js.map → Icon-B67IZfBy.js.map} +1 -1
- package/dist/{PageFirstSlide-C4KyVTWY.js → PageFirstSlide-BYOC1tyH.js} +2 -2
- package/dist/{PageFirstSlide-C4KyVTWY.js.map → PageFirstSlide-BYOC1tyH.js.map} +1 -1
- package/dist/{TabsAnalytics-OtEY-IVF.js → TabsAnalytics-dAugwfID.js} +1 -1
- package/dist/{TabsAnalytics-OtEY-IVF.js.map → TabsAnalytics-dAugwfID.js.map} +1 -1
- package/dist/{Update-DZW4oHtS.js → Update-BKMfG51n.js} +2 -2
- package/dist/{Update-DZW4oHtS.js.map → Update-BKMfG51n.js.map} +1 -1
- package/dist/{VideoGuide-Bn9CpMS8.js → VideoGuide-CtBxbZf7.js} +2 -2
- package/dist/{VideoGuide-Bn9CpMS8.js.map → VideoGuide-CtBxbZf7.js.map} +1 -1
- package/dist/coder.js +1 -1
- package/dist/content.js +1 -1
- package/dist/index.css +96 -96
- package/dist/pages.js +1 -1
- package/dist/system.js +1 -1
- package/dist/{useUXClick-KGnkc4ZV.js → useUXClick-C3pCRW0k.js} +1 -1
- package/dist/{useUXClick-KGnkc4ZV.js.map → useUXClick-C3pCRW0k.js.map} +1 -1
- package/dist/{useUXEvents-CUaLMbsI.js → useUXEvents-B77VyCbG.js} +1 -1
- package/dist/{useUXEvents-CUaLMbsI.js.map → useUXEvents-B77VyCbG.js.map} +1 -1
- package/dist/{useUXScrollDepth-DC_3o9Jj.js → useUXScrollDepth-BzfEc5-v.js} +1 -1
- package/dist/{useUXScrollDepth-DC_3o9Jj.js.map → useUXScrollDepth-BzfEc5-v.js.map} +1 -1
- package/dist/uxsdk.js +1 -1
- package/dist/writer.js +1 -1
- package/package.json +2 -2
package/dist/coder.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{C as Code,b as CodeLoader,c as CodeSample,d as CodeTheme,e as CoderProvider,a as annotations,u as useCodeTheme,w as withCodeTabs}from"./CodeSample-
|
|
1
|
+
export{C as Code,b as CodeLoader,c as CodeSample,d as CodeTheme,e as CoderProvider,a as annotations,u as useCodeTheme,w as withCodeTabs}from"./CodeSample-DxOeelmK.js";import{LANG_NAMES as n,highlight as t,highlightSync as o}from"@code-hike/lighter";import"react";import"./Icon-B67IZfBy.js";import"./TabsAnalytics-dAugwfID.js";import"./coder/themes/cosmo.js";import"openux-js";import"./useUXEvents-B77VyCbG.js";import"./useUXScrollDepth-BzfEc5-v.js";import"radix-ui";import"lucide-react";function s(n){return"string"==typeof n}function r(e,t,s){n.includes(s)||(console.warn(`Unknown language "${s}"`),s="txt");const{lines:r,lang:a,style:i}=o(e.value,s,t,{annotations:[],scopes:!1}),u=p(h(l(r)));return{...e,code:e.value,tokens:u,lang:a,annotations:[],themeName:"string"==typeof t?t:t?.name||"unknown",style:i}}async function i(e,o,s){n.includes(s)||(console.warn(`Unknown language "${s}"`),s="txt");const{lines:r,lang:a,style:i}=await t(e.value,s,o,{annotations:[],scopes:!1}),u=p(h(l(r)));return{...e,code:e.value,tokens:u,lang:a,annotations:[],themeName:"string"==typeof o?o:o?.name||"unknown",style:i}}function l(n){const e=[];return n.forEach((t,o)=>{if("lines"in t)throw new Error("Shouldnt be groups");{const s=function(n){return n.map(n=>{if("tokens"in n)throw new Error("Shouldnt be groups");{const e=[n.content],{color:t,...o}=n.style||{};return e.push(t),Object.keys(o).length&&e.push(o),e}})}(t.tokens);e.push(...s),o<n.length-1&&e.push("\n")}}),e}function h(n){const e=[];return n.forEach(n=>{if(s(n))e.push(n);else{const[t,o,s]=function(n){const e=n.trim(),t=n.slice(0,n.indexOf(e)),o=n.slice(n.indexOf(e)+e.length);return[t,e,o]}(n[0]);if(t?.length&&e.push(t),o.length){const t=[...n];t[0]=o,e.push(t)}s?.length&&e.push(s)}}),e}function p(n){const e=[];return n.forEach(n=>{if(s(n)){let t=e[e.length-1];t&&s(t)?e[e.length-1]+=n:""!==n&&e.push(n)}else n[0].length>0&&e.push(n)}),e}export{r as highlight,i as highlightAsync};
|
|
2
2
|
//# sourceMappingURL=coder.js.map
|
package/dist/content.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e,{useRef as t,useState as n,useEffect as r,createContext as a,useContext as i,useMemo as o}from"react";import{G as c,B as s,T as l,S as h,H as m,L as d,a as u,b as p,A as E}from"./VideoGuide-
|
|
1
|
+
import e,{useRef as t,useState as n,useEffect as r,createContext as a,useContext as i,useMemo as o}from"react";import{G as c,B as s,T as l,S as h,H as m,L as d,a as u,b as p,A as E}from"./VideoGuide-CtBxbZf7.js";import{C as f,U as g,D as b,a as v,I as w,H as k,B as C,b as S,c as y,d as L}from"./Update-BKMfG51n.js";import{B as j}from"./Button-CpIc0oHt.js";import{I as T}from"./Icon-B67IZfBy.js";import{T as H}from"./TabsAnalytics-dAugwfID.js";import{b as I,a as U,G as x,P}from"./PageFirstSlide-BYOC1tyH.js";import{c as B}from"./CodeSample-DxOeelmK.js";import"@code-hike/lighter";import"radix-ui";import"lucide-react";import{u as F}from"./useUXEvents-B77VyCbG.js";import"openux-js";import"./useUXClick-C3pCRW0k.js";import"./coder/themes/cosmo.js";import"./useUXScrollDepth-BzfEc5-v.js";const R="shoi6ow";class A{components(){return{...[D,V,z,Y,Z,_,ee].map(e=>e.bind(this)).reduce((e,t)=>({...e,...t()}),{}),...this.options?.components||{}}}noop(){const e=this.components();return{...[...Object.keys(e),...Object.keys(this.options?.components||{})].reduce((e,t)=>(e[t]=()=>null,e),{}),...{Steps:N,Tabs:N,GuideCard:N,Table:N},React:G}}constructor(e,t){this.settings=e,this.options=t}}function N(){return null}function G(){return null}function D(){const t=te.bind(this),n=O.bind(this),r={h1:t=>e.createElement(n,{depth:1,...t,noanchor:!0}),h2:t=>{const r=this.settings?.theme?.appearance;return e.createElement(e.Fragment,null,r?.content?.sectionSeparator?e.createElement(k,null):null,e.createElement(n,{depth:2,...t}))},h3:t=>e.createElement(n,{depth:3,...t}),h4:t=>e.createElement(n,{depth:4,...t}),h5:t=>e.createElement(n,{depth:5,...t}),p:t=>e.createElement(H,t),ul:t=>e.createElement(d,t,t.children),ol:t=>e.createElement(u,t,t.children),li:t=>e.createElement(d.Item,t,t.children),table:t=>{const n=this.settings?.theme?.appearance?.tables?.kind;return e.createElement(l,{kind:n,...t})},tr:t=>e.createElement(l.Tr,t),th:t=>e.createElement(l.Th,t),td:t=>e.createElement(l.Td,t,e.createElement(l.Cell,null,t.children)),code:t=>e.createElement(S,t),pre:t,details:t=>e.createElement(b,t),blockquote:t=>e.createElement(C,t),hr:({children:t,...n})=>e.createElement(k,n),a:t=>e.createElement(re,{...t,as:this?.options?.Link}),br:({children:t,...n})=>e.createElement("br",n),img:({children:t,src:n,alt:r,...a})=>e.createElement(w,{src:n,alt:r,...a}),picture:t=>{const{children:n,...r}=t;return e.createElement("picture",r,n)},source:t=>{const{children:n,...r}=t;return e.createElement("source",r)},input:({children:t,...n})=>e.createElement("input",n),textarea:({children:t,...n})=>e.createElement("textarea",n),div:t=>e.createElement("div",t),span:t=>e.createElement("span",t),iframe:t=>e.createElement("iframe",t),svg:t=>e.createElement("svg",t),feature:t=>e.createElement("div",{"data-feature-flag":t.flag,"data-feature-match":t.match},t.children),React:G};return{...r,H1:r.h1,H2:r.h2,H3:r.h3,H4:r.h4,H5:r.h5,P:r.p,Ul:r.ul,Ol:r.ol,Li:r.li,Table:r.table,Tr:r.tr,Th:r.th}}function O({id:a,depth:i,children:o,label:c,subtitle:s,noanchor:l,style:h}){const d=this?.options?.useNavigation(),u=F(),p=t(null),[E,f]=n(!1);function g(e){const t=window.location.hash===`#${a}`;f(t)}return r(()=>{window.addEventListener("replaceState",g);const e=window.location.hash===`#${a}`;return f(e),e&&p.current&&"loading"!==d?.state&&p.current.scrollIntoView(),()=>{window.removeEventListener("replaceState",g)}},[]),e.createElement(m,{ref:p,id:a,size:i,active:E,onClick:()=>{a&&u.docs.anchor.click({id:a});const e=new URL(window.location.href);e.hash=a,history.replaceState(null,"",e),document.querySelector(`#${a}`)?.scrollIntoView()},label:c,subtitle:s,noanchor:l,style:h},o)}function V(){const t=X.bind(this);t.List=c.List;const n=q.bind(this),r=K.bind(this);return r.Content=M.bind(this),r.Item=Q.bind(this),r.Item.displayName="Tabs.Item",{Callout:v,Details:b,GuideCard:t,Breadcrumbs:n,Steps:h,Tabs:r,Table:l,Badge:s,Button:j,Subtitle(t){const n=t?.children?.props?.children;return e.createElement(m,{size:4,kind:"muted",...t},n)},Update:g,Card:J.bind(this),ColorSchemeButton:f,Feature:t=>e.createElement("div",{"data-feature-flag":t.flag,"data-feature-match":t.match},t.children)}}function z(){return{PageHome:U,PageFirstSlide:I,PageBlogHome:$.bind(this)}}function $(t){return e.createElement(P,{...t,as:this?.options?.Link})}function X(t){return e.createElement(c,{...t,as:this?.options?.Link})}function q(t){return e.createElement(y,{...t,as:this?.options?.Link})}function J(t){return e.createElement(L,{...t,link:this?.options?.Link})}N.Item=()=>null,N.Content=()=>null,N.List=()=>null,N.Head=()=>null,N.Td=()=>null,N.Tr=()=>null,N.Th=()=>null,N.Cell=()=>null,G.Fragment=e.Fragment;const W=a({value:"",onChange:e=>{}});function K(t){const[r,a]=n(t.value);return e.createElement(W,{value:{value:r,onChange:a}},e.createElement(p,{...t,value:r,onChange:e=>{const t=new URL(window.location.href),n=t.searchParams;new URLSearchParams(e).forEach((e,t)=>{n.set(t,e)}),t.search=n.toString(),history.replaceState(null,"",t),a(e)}}))}function M(t){const{onChange:n}=i(W),a=this?.options?.useLocation?.(),o=a?.search,c=new URLSearchParams(o),s=new URLSearchParams(t.value);let l=!0,h=!0;return s.forEach((e,t)=>{const n=c.get(t);n!==e&&(l=!1),n||(h=!1)}),r(()=>{l&&n(t.value)},[l]),h||(l=void 0),e.createElement(p.Content,{...t,defaultActive:l})}function Q(t){const{onChange:n}=i(W),a=this?.options?.useLocation?.(),o=a?.search,c=new URLSearchParams(o),s=new URLSearchParams(t.value);let l=!0;return s.forEach((e,t)=>{c.get(t)!==e&&(l=!1)}),r(()=>{l&&n(t.value)},[l]),e.createElement(p.Item,{...t,as:this?.options?.Link,defaultActive:l})}function Y(){return{Icon:T}}function Z(){return{CodeSample:B}}function _(){return{DirectiveCodeGroup:t=>e.createElement(B,{...t,theme:this.settings?.theme?.coder?.syntaxHighlight||void 0,codeblocks:JSON.parse(t.codeblocks||"[]")})}}function ee(){return{GridDecorator:x}}function te(t){let n;if(t.highlighted)try{const e=JSON.parse(t.highlighted);e&&(n=e)}catch(e){console.error("Error parsing highlighted code",e)}const r=(t?.children?.props?.className||"").replace("language-","");let a;if(t?.descriptionContent){const n=function(e){const t=ae(e);if(!ae)return{};return{component:t?.default}}(t?.descriptionContent);if(n?.component){const t=(i=n?.component,o(()=>i||null,[i]));a=e.createElement(t,{components:this.components()})}}var i;return e.createElement(B,{theme:this.settings?.theme?.coder?.syntaxHighlight||void 0,name:r,description:"string"==typeof t?.title?t?.title:t?.children?.props?.meta,codeblocks:[{value:t?.children?.props?.children,lang:r,meta:r,highlighted:n}],lineNumbers:t?.lineNumbers,size:t?.size,descriptionHead:t?.descriptionHead,descriptionContent:a,descriptionIcon:t?.descriptionIcon})}const ne=/https?:\/\//;function re({href:t="",as:n,newWindow:r,children:a,...i}){const o=n||E;return n||(i.newWindow=r||ne.test(t)),e.createElement(o,{href:t,...i,as:n},a)}function ae(t){const n={Fragment:e.Fragment,jsxs:ie,jsx:ie,jsxDEV:ie};return new Function(...Object.keys(n),t)(n)}const ie=(t,n)=>{const r=t=>t.map((t,n)=>e.isValidElement(t)&&!t.key?e.cloneElement(t,{key:`mdx-${n}`}):Array.isArray(t)?r(t):t);let a;return a=n&&n.children?Array.isArray(n.children)?r(n.children):e.isValidElement(n.children)&&!n.children.key?e.cloneElement(n.children,{key:"mdx-child"}):n.children:[],e.createElement(t,{...n,children:a})};var oe="ca1c472";function ce({children:t,metaComponent:n}){return e.createElement("xyd-content-decorator",{className:oe,"meta-component":n||void 0},t)}export{ce as ContentDecorator,A as ReactContent,R as SearchButtonFullWidth,Z as coderContent,_ as directiveContent,Y as iconContent,D as stdContent,V as writerContent};
|
|
2
2
|
//# sourceMappingURL=content.js.map
|