@stonecrop/desktop 0.3.4 → 0.3.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/dist/desktop.js +64 -43
- package/dist/desktop.js.map +1 -1
- package/dist/desktop.umd.cjs +1 -1
- package/dist/desktop.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +5 -5
package/dist/desktop.umd.cjs
CHANGED
|
@@ -8,7 +8,7 @@ Only state can be modified.`);i[0]="$state",be=!1,o.set(a,i,o.state.value),be=!0
|
|
|
8
8
|
state: () => new MyClass()
|
|
9
9
|
Found in store "${g.$id}".`),m&&a&&n.hydrate&&n.hydrate(g.$state,m),l=!0,p=!0,g}/*! #__NO_SIDE_EFFECTS__ */function ns(e,t,n){let o,s;const a=typeof t=="function";o=e,s=a?n:t;function i(c,u){const l=r.hasInjectionContext();if(c=(process.env.NODE_ENV==="test"&&Ie&&Ie._testing?null:c)||(l?r.inject(dn,null):null),c&&Ve(c),process.env.NODE_ENV!=="production"&&!Ie)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
10
10
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
11
|
-
This will fail in production.`);c=Ie,c._s.has(o)||(a?bt(o,t,s,c):Sn(o,s,c),process.env.NODE_ENV!=="production"&&(i._pinia=c));const p=c._s.get(o);if(process.env.NODE_ENV!=="production"&&u){const d="__hot:"+o,f=a?bt(d,t,s,c,!0):Sn(d,K({},s),c,!0);u._hotUpdate(f),delete c.state.value[d],c._s.delete(d)}if(process.env.NODE_ENV!=="production"&&ue){const d=r.getCurrentInstance();if(d&&d.proxy&&!u){const f=d.proxy,h="_pStores"in f?f._pStores:f._pStores={};h[o]=p}}return p}return i.$id=o,i}const os=ns("data",()=>{const e=r.ref([]),t=r.ref({});return{records:e,record:t}});function xn(e){e||(e=r.inject("$registry"));
|
|
11
|
+
This will fail in production.`);c=Ie,c._s.has(o)||(a?bt(o,t,s,c):Sn(o,s,c),process.env.NODE_ENV!=="production"&&(i._pinia=c));const p=c._s.get(o);if(process.env.NODE_ENV!=="production"&&u){const d="__hot:"+o,f=a?bt(d,t,s,c,!0):Sn(d,K({},s),c,!0);u._hotUpdate(f),delete c.state.value[d],c._s.delete(d)}if(process.env.NODE_ENV!=="production"&&ue){const d=r.getCurrentInstance();if(d&&d.proxy&&!u){const f=d.proxy,h="_pStores"in f?f._pStores:f._pStores={};h[o]=p}}return p}return i.$id=o,i}const os=ns("data",()=>{const e=r.ref([]),t=r.ref({});return{records:e,record:t}});function xn(e){e||(e=r.inject("$registry"));let t;try{t=os()}catch{throw new Error("Please enable the Stonecrop plugin before using the Stonecrop composable")}const n=r.ref(new Sr(e,t)),o=r.ref(!1);return r.onBeforeMount(async()=>{var s,a;const i=e.router.currentRoute.value,c=(s=i.params.records)==null?void 0:s.toString().toLowerCase(),u=(a=i.params.record)==null?void 0:a.toString().toLowerCase();if(!c&&!u)return;const l=await e.getMeta(c);e.addDoctype(l),n.value.setup(l),c&&(u?await n.value.getRecord(l,u):await n.value.getRecords(l)),n.value.runAction(l,"LOAD",u?[u]:void 0),o.value=!0}),{stonecrop:n,isReady:o}}Y(class lt{constructor(t,n){if(Y(this,"name"),Y(this,"router"),Y(this,"registry"),Y(this,"getMeta"),lt._root)return lt._root;lt._root=this,this.name="Registry",this.router=t,this.registry={},this.getMeta=n}addDoctype(t){t.doctype in Object.keys(this.registry)||(this.registry[t.slug]=t),this.router.hasRoute(t.doctype)||this.router.addRoute({path:`/${t.slug}`,name:t.slug,component:t.component})}},"_root");/*!
|
|
12
12
|
* vue-router v4.5.0
|
|
13
13
|
* (c) 2024 Eduardo San Martin Morote
|
|
14
14
|
* @license MIT
|