@do11y/ui 0.0.9 → 0.1.0
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/README.md +4 -1
- package/dist/bundled/components.js +1 -0
- package/dist/bundled/docs.js +1 -1
- package/dist/bundled/sandbox.js +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
# @do11y/ui
|
|
2
2
|
|
|
3
|
-
A very bare-bones UI for [`@do11y/docs`](https://github.com/sq11y/do11y/tree/main/packages/docs).
|
|
3
|
+
A very bare-bones UI library for [`@do11y/docs`](https://github.com/sq11y/do11y/tree/main/packages/docs).
|
|
4
|
+
|
|
5
|
+
- Provides a simple app for the documentation site that provides the relevant routes, and a dummy app for sandboxes.
|
|
6
|
+
- Provides the `Do11yIframe` and `Do11ySandboxIframe` components used by the sandbox plugins to allow for iframe imports.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as c,computed as u,createBlock as m,createElementBlock as s,openBlock as t,resolveDynamicComponent as l,mergeProps as f,useTemplateRef as d,ref as i,nextTick as p,Fragment as y,createElementVNode as I,createCommentVNode as k,Teleport as v,renderSlot as x}from"vue";const _=["src"],B=c({__name:"SandboxIframe",props:{id:{},source:{},customIframe:{},customIframeProps:{}},setup(e){const r=e,o=u(()=>`/sandbox?id=${r.id}`);return(a,n)=>e.customIframe?(t(),m(l(e.customIframe),f({key:0,id:e.id,url:o.value,source:e.source},e.customIframeProps),null,16,["id","url","source"])):(t(),s("iframe",{key:1,src:o.value},null,8,_))}}),C=c({inheritAttrs:!1,__name:"Iframe",setup(e){const r=d("iframe"),o=i(!1),a=async()=>{await p(),o.value=!0};return(n,h)=>(t(),s(y,null,[I("iframe",{ref_key:"iframe",ref:r,onLoad:a},null,544),o.value?(t(),m(v,{key:0,to:r.value?.contentWindow?.document.body},[x(n.$slots,"default")],8,["to"])):k("",!0)],64))}});export{C as Do11yIframe,B as Do11ySandboxIframe};
|
package/dist/bundled/docs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{renderSlot as a,createApp as
|
|
1
|
+
import{renderSlot as a,createApp as p,h as o}from"vue";import c from"do11y:routes";import{createRouter as n,createWebHashHistory as i}from"vue-router";import e from"do11y:options";import{_ as m}from"./_plugin-vue_export-helper.js";const s=n({history:i("/"),routes:c}),f={};function u(r,t){return a(r.$slots,"default")}const _=m(f,[["render",u]]);(async()=>{const r=(await e.Site()).default,t=p(o(_,void 0,()=>o(r)));await e.setup?.(t,s),t.use(s),t.mount("#app")})();
|
package/dist/bundled/sandbox.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{renderSlot as c,h as t,createApp as s}from"vue";import{parseQuery as
|
|
1
|
+
import{renderSlot as c,h as t,createApp as s}from"vue";import{parseQuery as p}from"vue-router";import i from"do11y:sandbox";import e from"do11y:options";import{_ as d}from"./_plugin-vue_export-helper.js";const m={};function f(o,n){return c(o.$slots,"default")}const _=d(m,[["render",f]]),u=p(window.location.search),{component:a}=i.find(({url:o})=>o===u.id)??{};a&&(async()=>{const o=(await e.Sandbox?.())?.default,n=await a(),r=s(t(_,void 0,()=>o?t(o,void 0,()=>t(n)):t(n)));await e.setupSandbox?.(r),r.mount("#app")})();
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@do11y/ui",
|
|
3
3
|
"description": "The UI for @do11y/docs - a very bare-bones tool to help document Vue components.",
|
|
4
|
-
"version": "0.0
|
|
4
|
+
"version": "0.1.0",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"module": "./dist/bundled/components.js",
|
|
6
7
|
"repository": {
|
|
7
8
|
"type": "git",
|
|
8
9
|
"url": "https://github.com/sq11y/do11y"
|