@wippy-fe/proxy 0.0.1 → 0.0.6
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/{index.d.ts → index.d.mts} +3 -6
- package/index.mjs +1 -0
- package/index.ts +19 -0
- package/package.json +8 -4
- package/tsconfig.json +4 -0
- package/tsup.config.ts +8 -0
- package/index.js +0 -5
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import * as nanoevents from 'nanoevents';
|
|
1
|
+
import * as nanoevents from 'nanoevents';
|
|
3
2
|
import { ConfirmationOptions } from 'primevue/confirmationoptions';
|
|
4
3
|
import * as primevue_toast from 'primevue/toast';
|
|
5
4
|
import * as axios from 'axios';
|
|
@@ -581,8 +580,8 @@ interface ApiRoutes {
|
|
|
581
580
|
undo: string;
|
|
582
581
|
redo: string;
|
|
583
582
|
};
|
|
584
|
-
|
|
585
|
-
|
|
583
|
+
components: {
|
|
584
|
+
list: string;
|
|
586
585
|
};
|
|
587
586
|
tools: {
|
|
588
587
|
byName: string;
|
|
@@ -862,5 +861,3 @@ declare const loadWebComponent: (componentId: string, tagName?: string) => Promi
|
|
|
862
861
|
declare const addIcons: (addCollectionFn: typeof addCollection) => void;
|
|
863
862
|
|
|
864
863
|
export { addIcons, api, config, resolvers as default, define, form, host, hostCss, iframe, loadCss, loadWebComponent, on, tailwindConfig };
|
|
865
|
-
|
|
866
|
-
}
|
package/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const I=""+new URL("assets/fonts.css",import.meta.url).href,j=""+new URL("assets/iframe.css",import.meta.url).href,Y=""+new URL("assets/data-content.css",import.meta.url).href,L=""+new URL("assets/tailwind.css",import.meta.url).href,B=""+new URL("assets/theme-config.css",import.meta.url).href,X=I,H=j,V=Y,W=L,T=B,N=Object.freeze(Object.defineProperty({__proto__:null,fontCssUrl:X,iframeCssUrl:H,markdownCssUrl:V,primeVueCssUrl:W,themeConfigUrl:T},Symbol.toStringTag,{value:"Module"})),G="wippy",Z=1772122748,J={agent:{body:'<path fill="currentColor" d="M6.332 3A2.33 2.33 0 004 5.332v1.889a3.943 3.943 0 003.943 3.943h3.776a3.944 3.944 0 003.945-3.943V5.332A2.333 2.333 0 0013.33 3Zm0 1.166h6.998c.644 0 1.166.522 1.166 1.166v1.889a2.777 2.777 0 01-2.777 2.777H7.943a2.777 2.777 0 01-2.777-2.777V5.332c0-.644.522-1.166 1.166-1.166m1.584 1.887a.993.993 0 10.001 1.985.993.993 0 00-.001-1.985m3.732 0a.993.993 0 10.002 1.985.993.993 0 00-.002-1.985m-1.923 5.853a5.72 5.72 0 00-4.047 1.678 5.73 5.73 0 00-1.6 3.104l-.021.144-.022.176c-.038.344.246.625.592.625.3 0 .546-.212.639-.49a1 1 0 00.03-.135l.005-.028a4.48 4.48 0 012.713-3.48 4.47 4.47 0 016.136 3.48l.004.028a1 1 0 00.032.135c.092.278.339.49.638.49.346 0 .63-.281.592-.625l-.021-.176-.022-.145a5.72 5.72 0 00-1.6-3.103 5.73 5.73 0 00-4.048-1.678"/>'},logo:{body:'<g fill="none"><path fill="#FF8201" d="m236 99-1 9c0 12 3 25 12 34q6 6 15 9c8 4 17 9 22 16 6 8 7 23 20 23 6 0 10-4 9-10-1-9-7-17-12-23l-3-4 16 4c20 9 35 26 42 46l3 11 1-2c3-9 3-19-1-28l8 4c9 6 15 17 19 27a109 109 0 017 64l-2 8 2 13c1 5 4 9 6 13a51 51 0 015 12l1 3c4 24-13 47-30 61a176 176 0 01-127 36c-39-4-90-24-115-55-11-15-16-36-8-53 4-7 10-13 10-21-1-7-4-10-6-16-6-12-6-26-5-39 2-17 10-41 24-52l8-4-2 8 1 16 2 4 1-5 3-9c4-10 11-17 12-28l1-9-2-14c7 2 13 8 17 13 6 7 8 15 10 24 2 8 7 18 15 21h8c8-5 1-13-2-17-23-26-11-68 14-88z"/><path fill="#FFB90B" d="m236 99-1 9c0 12 3 25 12 34q6 6 15 9c8 4 17 9 22 16 6 8 7 23 20 23 6 0 10-4 9-10-1-9-7-17-12-23l-3-4 16 4c20 9 35 26 42 46l3 11-2 3c-2 6-6 10-11 14-2 2-3 3-7 3l-13 3-2 1-5 3c-3 2-8 6-9 10l-2 2-5 9c-4 6-10 11-17 13-6 2-16 3-22 2l-10-4c-4-2-6-4-7-8-2-4-1-6-5-9-5-3-15-2-20-4v1-1c-2-4-7-9-11-11l-4-3-3-1c-8-3-15-3-23-3-10 1-23-13-24-21l1-5 3-9c4-10 11-17 12-28l1-9-2-14c7 2 13 8 17 13 6 7 8 15 10 24 2 8 7 18 15 21h8c8-5 1-13-2-17-23-26-11-68 14-88z"/><path fill="#FE5800" d="m236 99-1 9c0 12 3 25 12 34q6 6 15 9c8 4 17 9 22 16 6 8 7 23 20 23 6 0 10-4 9-10-1-9-7-17-12-23l-3-4 16 4c20 9 35 26 42 46l3 11-2 3c-2 6-6 10-11 14-2 2-3 3-7 3 10-18 0-38-14-50 1 7 0 14-4 20-2 3-6 3-10 4-7 1-19-6-24-10-4-3-9-9-12-15l-4-9c-4-6-10-9-16-13l-12-8-10-14-3-7-3 5-2 8c-2 7-2 14-1 22 4 13 17 15 19 34 0 4 0 8-3 12-3 5-9 9-15 10-7 1-15 0-21-4-10-7-15-17-18-29l-2-10c-4 6-9 13-10 20-3 10-2 23 4 31l3 3c-10 1-23-13-24-21l1-5 3-9c4-10 11-17 12-28l1-9-2-14c7 2 13 8 17 13 6 7 8 15 10 24 2 8 7 18 15 21h8c8-5 1-13-2-17-23-26-11-68 14-88z"/><path fill="#00A2E4" d="m230 233 6-1 14-2h34l17 2c4 1 21 4 23 6l-5 3c-3 2-8 6-9 10l-2 2-5 9c-4 6-10 11-17 13-6 2-16 3-22 2l-10-4c-4-2-6-4-7-8-2-4-1-6-5-9-5-3-15-2-20-4v1-1c-2-4-7-9-11-11l-4-3 15-3z"/><path fill="#FEEE5D" d="M255 182c5 2 6 4 10 8 6 7 10 16 16 22 6 5 12 8 19 8 5-1 9-2 13-5v5c-1 5-4 8-8 10l-3 1-1 1-17-2h-34l-14 2-6 1-1-1c1-2 7-5 10-6l9-9c7-9 4-14 5-25z"/><path fill="#2E478E" d="m359 184 8 4c9 6 15 17 19 27a109 109 0 017 64l-2 8 2 13c1 5 4 9 6 13a51 51 0 015 12l1 3c4 24-13 47-30 61a176 176 0 01-127 36c-39-4-90-24-115-55-11-15-16-36-8-53 4-7 10-13 10-21-1-7-4-10-6-16-6-12-6-26-5-39 2-17 10-41 24-52l8-4-2 8 1 16 2 4c1 8 14 22 24 21 8 0 15 0 23 3l3 1 4 3c4 2 9 7 11 11l-1 2c-6-6-11-10-20-13-12-4-20-2-31 4l-2 1-13 12-1 4-3 6-4 10-1 4-1 8c-1 10 0 19-7 26l-3 7c-4 10-2 20 2 29 13 26 48 42 74 51 15 5 35 10 50 11 26 1 54-7 77-18 21-10 46-26 54-49 3-10 3-22-3-31l-5-10c-1-9 0-18-2-26v-20c1-17-4-33-11-48 0 4-2 8-4 12-2 5-4 10-9 14l-3 4-9-3a36 36 0 00-28 9l-2 2c-1 0-6 3-6 1 1-4 6-8 9-10l5-3 2-1 13-3c4 0 5-1 7-3a38 38 0 0013-17l1-2c3-9 3-19-1-28"/><path fill="#FE5800" d="m146 282-3-5a71 71 0 013-65l1 4 2 6c5 10 10 18 21 23l-2 1-13 12-1 4-3 6-4 10z"/><path fill="#FEB509" d="M155 258c-5-8-8-17-8-27l2-9c5 10 10 18 21 23l-2 1zl-1 4-3 6z"/><path fill="#0E0D26" d="m402 319 2 6-1-1z"/><path fill="#0073D1" d="M310 251c0 2 5-1 6-1v1l-2 2-5 14-1 4c-2 12-7 22-18 29-7 5-18 6-27 4-13-3-23-13-28-24l-7-15-5-9-1-1-1-1 1-2v1-1c5 2 15 1 20 4 4 3 3 5 5 9 1 4 3 6 7 8l10 4c6 1 16 0 22-2 7-2 13-7 17-13l5-9z"/><path fill="#0E0D26" d="M222 252v1l1 3-1-1-1-1z"/><path fill="#0A183F" d="m311 253-1 1z"/><path fill="#FEEE5D" d="m316 250 2-2 8-5c6-3 14-5 20-4l9 3 4 2c4 2 7 4 9 7l3 4 2 2v1c-1 1-3 0-4-1l-8-5c-6-3-10-3-16-3-15 0-26 12-34 23v-5 2h-2v-2l5-14 2-2zm-146-5c11-6 19-8 31-4 9 3 14 7 20 13l1 1c-1 1 1 4 1 6 0 4 0 7 2 11l-5-6c-9-9-19-16-32-17-12-1-22 1-30 10l-3 4v-1h-1l1-4 13-12z"/><path fill="#FEB509" d="M367 224h1c2 7 3 15 1 22l-1 5c-2-3-5-5-9-7l-4-2 3-4c5-4 7-9 9-14m2 33c1 1 3 2 4 1v-1l2 4v2c-2 0-5-3-6-4z"/><path fill="#0A183F" d="M208 329c-9 12-23 14-36 8-8-3-15-10-18-18-4-11-4-24 1-35 3-9 13-19 23-20l11 1 1 1 4 1c17 7 25 30 21 47l-1 2c0 4-4 10-6 13"/><path fill="#FEFEFE" d="M208 329c-9 12-23 14-36 8-8-3-15-10-18-18-4-11-4-24 1-35 3-9 13-19 23-20l11 1 1 1c-7 2-12 6-16 12-8 14-6 38 8 47 9 6 23 2 29-5l3-4c0 4-4 10-6 13"/><path fill="#0073D1" d="M208 329a28 28 0 01-39-3c-7-8-9-17-9-27 0-14 10-31 24-34h5l1 1c-7 2-12 6-16 12-8 14-6 38 8 47 9 6 23 2 29-5l3-4c0 4-4 10-6 13"/><path fill="#FEFEFE" d="M195 280a9 9 0 114 18 9 9 0 01-4-18"/><path fill="#0A183F" d="M346 265c4-1 9-1 14 1 19 10 24 38 16 56-5 14-21 22-35 16-4-1-8-5-11-8l-7-12-2-8c-3-16 5-38 21-44z"/><path fill="#0073D1" d="M346 265c4-1 9-1 14 1 19 10 24 38 16 56-5 14-21 22-35 16-4-1-8-5-11-8l-7-12c1-1 1 0 2 1l8 7c5 2 10 2 15 1 24-8 20-57-6-60v-1z"/><path fill="#FEFEFE" d="M346 265c4-1 9-1 14 1 19 10 24 38 16 56-5 14-21 22-35 16-4-1-8-5-11-8 5 3 10 5 16 5 15 0 26-15 27-30a40 40 0 00-1-13c-2-11-8-21-18-25z"/><path fill="#015FD1" d="M373 305h-1l1-8z"/><path fill="#FEFEFE" d="M337 279a9 9 0 113 19 9 9 0 01-3-19"/><path fill="#0A183F" d="M168 345c6 0 9 4 14 7a121 121 0 0053 23c10 0 17-1 26-3a151 151 0 0130 0c10 2 19 3 28 0 13-4 25-11 35-20 5-4 10-11 17-5l1 5c-4 0-5-2-8 1l-10 10c-10 8-23 16-35 19-10 3-19 1-29 0l-12-1c-12 0-23 1-35 3-20 2-40-6-56-18l-9-7c-3-2-6-6-10-7h-6c-3 0-1-2 0-3 1-3 3-4 6-4"/><path fill="#0A183F" d="M241 344c7-1 19 11 10 13-5 0-11-2-13-8-1-2 0-4 3-5m65 0c6-1 7 3 4 7q-3 4.5-9 6c-4 0-7-1-4-6 1-3 5-6 9-7"/></g>',left:110,top:90,width:305,height:340},tool:{body:'<g fill="none"><g clip-path="url(#svgID0)"><path fill="currentColor" d="M12.616 7.432a2.95 2.95 0 01-3.13.873l-3.955 4.55a1.163 1.163 0 01-1.754-1.528l3.962-4.554a2.944 2.944 0 013.378-4.127L9.6 4.414l.495 1.443 1.5.291 1.518-1.772a2.94 2.94 0 01-.496 3.057z"/></g><defs><clipPath id="svgID0"><path fill="#fff" d="M0 0h16v16H0z"/></clipPath></defs></g>',width:16,height:16},user:{body:'<path fill="currentColor" d="M14.263 10.613c1.097 0 1.987.89 1.987 1.987v.662c0 2.613-2.464 5.3-6.625 5.3S3 15.876 3 13.263V12.6c0-1.098.89-1.987 1.987-1.987zm0 1.325H4.987a.66.66 0 00-.663.662v.662c0 1.905 1.898 3.976 5.3 3.976s5.3-2.07 5.3-3.976V12.6a.66.66 0 00-.663-.662M9.625 2a3.644 3.644 0 110 7.288 3.644 3.644 0 010-7.288m0 1.325a2.319 2.319 0 100 4.638 2.319 2.319 0 000-4.638"/>'}},K=20,Q=20,aa={prefix:G,lastModified:Z,icons:J,width:K,height:Q};function ta(a,e){var t;const i=(t=e.customization)==null?void 0:t.icons;i&&a({prefix:"custom",icons:i}),a(aa)}function $(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var w={},z={},U;function ea(){return U||(U=1,function(a){Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return i}});function e(t,n){return{handler:t,config:n}}e.withOptions=function(t,n=()=>({})){const l=function(p){return{__options:p,handler:t(p),config:n(p)}};return l.__isOptionsFunction=!0,l.__pluginFunction=t,l.__configFunction=n,l};const i=e}(z)),z}var F;function ra(){return F||(F=1,function(a){Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return t}});const e=i(ea());function i(n){return n&&n.__esModule?n:{default:n}}const t=e.default}(w)),w}var x,M;function D(){if(M)return x;M=1;let a=ra();return x=(a.__esModule?a:{default:a}).default,x}var _={},R;function ia(){return R||(R=1,function(a){Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return i}});const e=t=>Object.assign({},...Object.entries(t??{}).flatMap(([n,l])=>typeof l=="object"?Object.entries(e(l)).map(([p,v])=>({[n+(p==="DEFAULT"?"":`-${p}`)]:v})):[{[`${n}`]:l}])),i=e}(_)),_}var C,O;function oa(){return O||(O=1,C={importDefault:e=>e&&e.__esModule?e.default:e}),C}var P,S;function na(){if(S)return P;S=1;const a=ia(),{importDefault:e}=oa(),i=e(a),t=["track","thumb","corner"],n=(o,s)=>s?{"@supports (-moz-appearance:none)":o}:o,l=({addBase:o},s)=>{o({"*":n({"scrollbar-color":"initial","scrollbar-width":"initial"},s==="pseudoelements")})},p=()=>({...Object.fromEntries(t.map(o=>[[`&::-webkit-scrollbar-${o}`,{"background-color":`var(--scrollbar-${o})`,"border-radius":`var(--scrollbar-${o}-radius)`}]]).flat())}),v=({preferPseudoElements:o})=>({".scrollbar":{...p(),...n({"scrollbar-width":"auto","scrollbar-color":"var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)"},o),"&::-webkit-scrollbar":{display:"block",width:"var(--scrollbar-width, 16px)",height:"var(--scrollbar-height, 16px)"}},".scrollbar-thin":{...p(),...n({"scrollbar-width":"thin","scrollbar-color":"var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)"},o),"&::-webkit-scrollbar":{display:"block",width:"8px",height:"8px"}},".scrollbar-none":{...n({"scrollbar-width":"none"},o),"&::-webkit-scrollbar":{display:"none"}}}),f=o=>typeof o=="function"?o({}):o;return P={addBaseStyles:l,addBaseSizeUtilities:({addUtilities:o},s)=>{o(v({preferPseudoElements:s==="pseudoelements"}))},addColorUtilities:({matchUtilities:o,theme:s})=>{const u=i(s("colors")),b=Object.fromEntries(Object.entries(u).map(([y,g])=>[y,f(g)]));t.forEach(y=>{o({[`scrollbar-${y}`]:g=>({[`--scrollbar-${y}`]:f(g)})},{values:b,type:"color"})})},addRoundedUtilities:({theme:o,matchUtilities:s})=>{t.forEach(u=>{s({[`scrollbar-${u}-rounded`]:b=>({[`--scrollbar-${u}-radius`]:b})},{values:o("borderRadius")})})},addSizeUtilities:({matchUtilities:o,theme:s})=>{["width","height"].forEach(u=>{o({[`scrollbar-${u[0]}`]:b=>({[`--scrollbar-${u}`]:b})},{values:s(u)})})}},P}var k,q;function la(){return q||(q=1,k={addVariants:({addVariant:e})=>{e("scrollbar-hover","&::-webkit-scrollbar-thumb:hover"),e("scrollbar-track-hover","&::-webkit-scrollbar-track:hover"),e("scrollbar-corner-hover","&::-webkit-scrollbar-corner:hover"),e("scrollbar-active","&::-webkit-scrollbar-thumb:active"),e("scrollbar-track-active","&::-webkit-scrollbar-track:active")}}),k}var E,A;function sa(){if(A)return E;A=1;const a=D(),{addBaseStyles:e,addBaseSizeUtilities:i,addColorUtilities:t,addRoundedUtilities:n,addSizeUtilities:l}=na(),{addVariants:p}=la();return E=a.withOptions((v={})=>f=>{let h=v.preferredStrategy??v.preferredstrategy??"standard";h!=="standard"&&h!=="pseudoelements"&&(console.warn("WARNING: tailwind-scrollbar preferredStrategy should be 'standard' or 'pseudoelements'"),h="standard"),e(f,h),i(f,h),t(f),p(f),v.nocompatible&&(n(f),l(f))}),E}var ca=sa();const pa=$(ca);var da=D();const fa=$(da);var r=a=>`color-mix(in srgb, ${a} calc(100% * <alpha-value>), transparent)`,ua={extend:{colors:{primary:r("var(--p-primary-color)"),"primary-emphasis":r("var(--p-primary-hover-color)"),"primary-emphasis-alt":r("var(--p-primary-active-color)"),"primary-contrast":r("var(--p-primary-contrast-color)"),"primary-50":r("var(--p-primary-50)"),"primary-100":r("var(--p-primary-100)"),"primary-200":r("var(--p-primary-200)"),"primary-300":r("var(--p-primary-300)"),"primary-400":r("var(--p-primary-400)"),"primary-500":r("var(--p-primary-500)"),"primary-600":r("var(--p-primary-600)"),"primary-700":r("var(--p-primary-700)"),"primary-800":r("var(--p-primary-800)"),"primary-900":r("var(--p-primary-900)"),"primary-950":r("var(--p-primary-950)"),"surface-0":r("var(--p-surface-0)"),"surface-50":r("var(--p-surface-50)"),"surface-100":r("var(--p-surface-100)"),"surface-200":r("var(--p-surface-200)"),"surface-300":r("var(--p-surface-300)"),"surface-400":r("var(--p-surface-400)"),"surface-500":r("var(--p-surface-500)"),"surface-600":r("var(--p-surface-600)"),"surface-700":r("var(--p-surface-700)"),"surface-800":r("var(--p-surface-800)"),"surface-900":r("var(--p-surface-900)"),"surface-950":r("var(--p-surface-950)")},keyframes:{enter:{from:{opacity:"var(--p-enter-opacity, 1)",transform:"translate3d(var(--p-enter-translate-x, 0), var(--p-enter-translate-y, 0), 0) scale3d(var(--p-enter-scale, 1), var(--p-enter-scale, 1), var(--p-enter-scale, 1)) rotate(var(--p-enter-rotate, 0))"}},leave:{to:{opacity:"var(--p-leave-opacity, 1)",transform:"translate3d(var(--p-leave-translate-x, 0), var(--p-leave-translate-y, 0), 0) scale3d(var(--p-leave-scale, 1), var(--p-leave-scale, 1), var(--p-leave-scale, 1)) rotate(var(--p-leave-rotate, 0))"}},fadein:{"0%":{opacity:"0"},"100%":{opacity:"1"}},fadeout:{"0%":{opacity:"1"},"100%":{opacity:"0"}},scalein:{"0%":{opacity:"0",transform:"scaleY(0.8)",transition:"transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1)"},"100%":{opacity:"1",transform:"scaleY(1)"}},slidedown:{"0%":{maxHeight:"0"},"100%":{maxHeight:"auto"}},slideup:{"0%":{maxHeight:"1000px"},"100%":{maxHeight:"0"}},fadeinleft:{"0%":{opacity:"0",transform:"translateX(-100%)",transition:"transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1)"},"100%":{opacity:"1",transform:"translateX(0%)"}},fadeoutleft:{"0%":{opacity:"1",transform:"translateX(0%)",transition:"transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1)"},"100%":{opacity:"0",transform:"translateX(-100%)"}},fadeinright:{"0%":{opacity:"0",transform:"translateX(100%)",transition:"transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1)"},"100%":{opacity:"1",transform:"translateX(0%)"}},fadeoutright:{"0%":{opacity:"1",transform:"translateX(0%)",transition:"transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1)"},"100%":{opacity:"0",transform:"translateX(100%)"}},fadeinup:{"0%":{opacity:"0",transform:"translateY(-100%)",transition:"transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1)"},"100%":{opacity:"1",transform:"translateY(0%)"}},fadeoutup:{"0%":{opacity:"1",transform:"translateY(0%)",transition:"transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1)"},"100%":{opacity:"0",transform:"translateY(-100%)"}},fadeindown:{"0%":{opacity:"0",transform:"translateY(100%)",transition:"transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1)"},"100%":{opacity:"1",transform:"translateY(0%)"}},fadeoutdown:{"0%":{opacity:"1",transform:"translateY(0%)",transition:"transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1)"},"100%":{opacity:"0",transform:"translateY(100%)"}},width:{"0%":{width:"0"},"100%":{width:"100%"}},flip:{from:{transform:"perspective(2000px) rotateX(-100deg)"},to:{transform:"perspective(2000px) rotateX(0)"}},flipleft:{from:{transform:"perspective(2000px) rotateY(-100deg)",opacity:"0"},to:{transform:"perspective(2000px) rotateY(0)",opacity:"1"}},flipright:{from:{transform:"perspective(2000px) rotateY(100deg)",opacity:"0"},to:{transform:"perspective(2000px) rotateY(0)",opacity:"1"}},flipup:{from:{transform:"perspective(2000px) rotateX(-100deg)",opacity:"0"},to:{transform:"perspective(2000px) rotateX(0)",opacity:"1"}},zoomin:{from:{transform:"scale3d(0.3, 0.3, 0.3)",opacity:"0"},"50%":{opacity:"1"}},zoomindown:{from:{transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",opacity:"0"},"60%":{transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",opacity:"1"}},zoominleft:{from:{transform:"scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",opacity:"0"},"60%":{transform:"scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",opacity:"1"}},zoominright:{from:{transform:"scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",opacity:"0"},"60%":{transform:"scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",opacity:"1"}},zoominup:{from:{transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",opacity:"0"},"60%":{transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",opacity:"1"}}},animation:{fadein:"fadein 0.15s linear",fadeout:"fadeout 0.15s linear",slidedown:"slidedown 0.45s ease-in-out",slideup:"slideup 0.45s cubic-bezier(0, 1, 0, 1)",scalein:"scalein 0.15s linear",fadeinleft:"fadeinleft 0.15s linear",fadeoutleft:"fadeoutleft 0.15s linear",fadeinright:"fadeinright 0.15s linear",fadeoutright:"fadeoutright 0.15s linear",fadeinup:"fadeinup 0.15s linear",fadeoutup:"fadeoutup 0.15s linear",fadeindown:"fadeindown 0.15s linear",fadeoutdown:"fadeoutdown 0.15s linear",width:"width 0.45s linear",flip:"flip 0.15s linear",flipup:"flipup 0.15s linear",flipleft:"flipleft 0.15s linear",flipright:"flipright 0.15s linear",zoomin:"zoomin 0.15s linear",zoomindown:"zoomindown 0.15s linear",zoominleft:"zoominleft 0.15s linear",zoominright:"zoominright 0.15s linear",zoominup:"zoominup 0.15s linear"},animationDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",400:"400ms",500:"500ms",700:"700ms",1e3:"1000ms"},animationDuration:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",400:"400ms",500:"500ms",700:"700ms",1e3:"1000ms",2e3:"2000ms",3e3:"3000ms"},animationOpacity:({theme:a})=>a("opacity"),animationTranslate:({theme:a})=>a("translate"),animationScale:({theme:a})=>a("scale"),animationRotate:({theme:a})=>a("rotate")}},ma=({addUtilities:a})=>{a({".backface-visible":{"backface-visibility":"visible"},".backface-hidden":{"backface-visibility":"hidden"}})},va=({matchUtilities:a,theme:e})=>{a({"animate-delay":i=>({"animation-delay":i})},{values:e("animationDelay")})},ha=({addUtilities:a})=>{a({".animate-normal":{"animation-direction":"normal"},".animate-reverse":{"animation-direction":"reverse"},".animate-alternate":{"animation-direction":"alternate"},".animate-alternate-reverse":{"animation-direction":"alternate-reverse"}})},ba=({matchUtilities:a,theme:e})=>{a({"animate-duration":i=>({"animation-duration":i})},{values:e("animationDuration")})},ya=({addUtilities:a,matchUtilities:e,theme:i})=>{a({"@keyframes enter":i("keyframes.enter"),"@keyframes leave":i("keyframes.leave"),".animate-enter":{"animation-name":"enter","--p-enter-opacity":"initial","--p-enter-scale":"initial","--p-enter-rotate":"initial","--p-enter-translate-x":"initial","--p-enter-translate-y":"initial"},".animate-leave":{"animation-name":"leave","--p-leave-opacity":"initial","--p-leave-scale":"initial","--p-leave-rotate":"initial","--p-leave-translate-x":"initial","--p-leave-translate-y":"initial"}}),e({"fade-in":t=>({"--p-enter-opacity":t}),"fade-out":t=>({"--p-leave-opacity":t})},{values:i("animationOpacity")}),e({"zoom-in":t=>({"--p-enter-scale":t}),"zoom-out":t=>({"--p-leave-scale":t})},{values:i("animationScale")}),e({"spin-in":t=>({"--p-enter-rotate":t}),"spin-out":t=>({"--p-leave-rotate":t})},{values:i("animationRotate")}),e({"slide-in-from-t":t=>({"--p-enter-translate-y":`-${t}`}),"slide-in-from-b":t=>({"--p-enter-translate-y":t}),"slide-in-from-l":t=>({"--p-enter-translate-x":`-${t}`}),"slide-in-from-r":t=>({"--p-enter-translate-x":t}),"slide-out-from-t":t=>({"--p-leave-translate-y":`-${t}`}),"slide-out-from-b":t=>({"--p-leave-translate-y":t}),"slide-out-from-l":t=>({"--p-leave-translate-x":`-${t}`}),"slide-out-from-r":t=>({"--p-leave-translate-x":t})},{values:i("translate")})},ga=({addUtilities:a})=>{a({".animate-fill-none":{"animation-fill-mode":"none"},".animate-fill-forwards":{"animation-fill-mode":"forwards"},".animate-fill-backwards":{"animation-fill-mode":"backwards"},".animate-fill-both":{"animation-fill-mode":"both"}})},wa=({addUtilities:a})=>{a({".animate-infinite":{"animation-iteration-count":"infinite"},".animate-once":{"animation-iteration-count":"1"},".animate-twice":{"animation-iteration-count":"2"}})},za=({addUtilities:a})=>{a({".animate-running":{"animation-play-state":"running"},".animate-paused":{"animation-play-state":"paused"}})},xa=({addUtilities:a})=>{a({".border-surface":{"border-color":"var(--p-content-border-color)"},".bg-emphasis":{background:"var(--p-content-hover-background)",color:"var(--p-content-hover-color)"},".bg-highlight":{background:"var(--p-highlight-background)",color:"var(--p-highlight-color)"},".bg-highlight-emphasis":{background:"var(--p-highlight-focus-background)",color:"var(--p-highlight-focus-color)"},".rounded-border":{"border-radius":"var(--p-content-border-radius)"},".text-color":{color:"var(--p-text-color)"},".text-color-emphasis":{color:"var(--p-text-hover-color)"},".text-muted-color":{color:"var(--p-text-muted-color)"},".text-muted-color-emphasis":{color:"var(--p-text-hover-muted-color)"}})},_a=({addUtilities:a})=>{a({".animate-ease-linear":{"animation-timing-function":"linear"},".animate-ease-in":{"animation-timing-function":"cubic-bezier(0.4, 0, 1, 1)"},".animate-ease-out":{"animation-timing-function":"cubic-bezier(0, 0, 0.2, 1)"},".animate-ease-in-out":{"animation-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)"}})},d={backface:ma,delay:va,direction:ha,duration:ba,enterleave:ya,fillMode:ga,iterationCount:wa,playState:za,preset:xa,timingFunction:_a},Ca=fa(a=>{d.backface(a),d.delay(a),d.direction(a),d.duration(a),d.fillMode(a),d.iterationCount(a),d.playState(a),d.timingFunction(a),d.preset(a),d.enterleave(a)},{theme:ua});const Pa={content:["./index.html","./src/**/*.{vue,ts}"],theme:{extend:{colors:{secondary:{50:"var(--p-secondary-50)",100:"var(--p-secondary-100)",200:"var(--p-secondary-200)",300:"var(--p-secondary-300)",400:"var(--p-secondary-400)",500:"var(--p-secondary-500)",600:"var(--p-secondary-600)",700:"var(--p-secondary-700)",800:"var(--p-secondary-800)",900:"var(--p-secondary-900)",950:"var(--p-secondary-950)"}}}},plugins:[Ca,pa({nocompatible:!0,preferredStrategy:"pseudoelements"})]},ka="__WIPPY_APP_CONFIG__",Ea="__WIPPY_APP_API__";function m(){const a=window[Ea];if(!a)throw new Error('@wippy-fe/proxy: Proxy globals not found. For dev/testing without the Wippy host, add <script src="dev-proxy.js"><\/script> to your HTML.');return a}function Ua(){const a=window[ka];if(!a)throw new Error('@wippy-fe/proxy: App config globals not found. For dev/testing without the Wippy host, add <script src="dev-proxy.js"><\/script> to your HTML.');return a}const c={get api(){return m().api},get host(){return m().host},get iframe(){return console.warn("Attention: `iframe` is deprecated, use `host` instead to host calls"),m().iframe},get on(){return m().on},get config(){return m().config},get form(){return console.warn("Attention: `form` is deprecated, use direct api calls instead"),m().form},get loadWebComponent(){return m().loadWebComponent},hostCss:N,tailwindConfig:Pa,define:(a,e)=>{const i=new URL(a),n=new URLSearchParams(i.search).get("declare-tag");n&&customElements.define(n,e)},loadCss:async a=>(await m().api.get(a)).data,addIcons:a=>{ta(a,Ua())}},Oa=c.define,Sa=c.api,qa=c.host,Aa=c.iframe,$a=c.on,Da=c.config,Ia=c.form,ja=c.hostCss,Ya=c.loadCss,La=c.tailwindConfig,Ba=c.loadWebComponent,Xa=c.addIcons;export{Xa as addIcons,Sa as api,Da as config,c as default,Oa as define,Ia as form,qa as host,ja as hostCss,Aa as iframe,Ya as loadCss,Ba as loadWebComponent,$a as on,La as tailwindConfig};
|
package/index.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// TODO: This package currently gets its compiled output (index.mjs) copied from
|
|
2
|
+
// the host's web-component build (public/@wippy/proxy.js). Eventually this should
|
|
3
|
+
// have its own build pipeline via package.json scripts, with index.ts driving
|
|
4
|
+
// both types and compiled output from within the package.
|
|
5
|
+
export {
|
|
6
|
+
addIcons,
|
|
7
|
+
api,
|
|
8
|
+
config,
|
|
9
|
+
default,
|
|
10
|
+
define,
|
|
11
|
+
form,
|
|
12
|
+
host,
|
|
13
|
+
hostCss,
|
|
14
|
+
iframe,
|
|
15
|
+
loadCss,
|
|
16
|
+
loadWebComponent,
|
|
17
|
+
on,
|
|
18
|
+
tailwindConfig,
|
|
19
|
+
} from '../../src/proxy/entry.web-component'
|
package/package.json
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wippy-fe/proxy",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "
|
|
5
|
-
"main": "index.
|
|
6
|
-
"
|
|
3
|
+
"version": "0.0.6",
|
|
4
|
+
"description": "Proxy API for Wippy child micro-frontends",
|
|
5
|
+
"main": "index.mjs",
|
|
6
|
+
"module": "index.mjs",
|
|
7
|
+
"types": "index.d.mts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build:types": "tsup"
|
|
10
|
+
}
|
|
7
11
|
}
|
package/tsconfig.json
ADDED
package/tsup.config.ts
ADDED