@xwiki/cristal-uiextension-ui 1.2.0 → 1.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xwiki/cristal-uiextension-ui",
3
- "version": "1.2.0",
3
+ "version": "1.4.0",
4
4
  "license": "LGPL 2.1",
5
5
  "author": "XWiki Org Community <contact@xwiki.org>",
6
6
  "homepage": "https://cristal.xwiki.org/",
@@ -28,8 +28,8 @@
28
28
  "main": "./dist/index.es.js",
29
29
  "types": "./dist/index.d.ts",
30
30
  "dependencies": {
31
- "@xwiki/platform-api": "18.2.0",
32
- "@xwiki/cristal-uiextension-api": "1.2.0"
31
+ "@xwiki/platform-api": "18.4.0",
32
+ "@xwiki/cristal-uiextension-api": "1.4.0"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "reflect-metadata": "0.x",
@@ -37,10 +37,10 @@
37
37
  },
38
38
  "devDependencies": {
39
39
  "typescript": "5.9.3",
40
- "vite": "7.3.1",
40
+ "vite": "7.3.2",
41
41
  "vue": "3.5.30",
42
- "vue-tsc": "3.2.6",
43
- "@xwiki/cristal-dev-config": "1.2.0"
42
+ "vue-tsc": "3.2.9",
43
+ "@xwiki/cristal-dev-config": "1.4.0"
44
44
  },
45
45
  "scripts": {
46
46
  "api-extractor:local": "api-extractor run --local",
package/dist/index.d.cts DELETED
@@ -1,29 +0,0 @@
1
- /**
2
- * See the LICENSE file distributed with this work for additional
3
- * information regarding copyright ownership.
4
- *
5
- * This is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU Lesser General Public License as
7
- * published by the Free Software Foundation; either version 2.1 of
8
- * the License, or (at your option) any later version.
9
- *
10
- * This software is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
- * Lesser General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU Lesser General Public
16
- * License along with this software; if not, write to the Free
17
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
- */
20
- /**
21
- * @since 0.11
22
- * @beta
23
- */
24
- declare const UIExtensionsAnnotated: import('vue').DefineComponent<{
25
- uixName: string;
26
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
27
- uixName: string;
28
- }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
- export { UIExtensionsAnnotated as UIExtensions };
package/dist/index.d.ts DELETED
@@ -1,29 +0,0 @@
1
- /**
2
- * See the LICENSE file distributed with this work for additional
3
- * information regarding copyright ownership.
4
- *
5
- * This is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU Lesser General Public License as
7
- * published by the Free Software Foundation; either version 2.1 of
8
- * the License, or (at your option) any later version.
9
- *
10
- * This software is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
- * Lesser General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU Lesser General Public
16
- * License along with this software; if not, write to the Free
17
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19
- */
20
- /**
21
- * @since 0.11
22
- * @beta
23
- */
24
- declare const UIExtensionsAnnotated: import('vue').DefineComponent<{
25
- uixName: string;
26
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
27
- uixName: string;
28
- }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
- export { UIExtensionsAnnotated as UIExtensions };
package/dist/index.es.js DELETED
@@ -1,23 +0,0 @@
1
- import { defineComponent as c, inject as m, withAsyncContext as i, openBlock as p, createElementBlock as l, Fragment as x, renderList as u, createVNode as _, resolveDynamicComponent as d } from "vue";
2
- const E = /* @__PURE__ */ c({
3
- __name: "UIExtensions",
4
- props: {
5
- uixName: {}
6
- },
7
- async setup(r) {
8
- let e, n;
9
- const a = m("cristal").getContainer().get("UIExtensionsManager"), o = [];
10
- for (let t of ([e, n] = i(() => a.list(r.uixName)), e = await e, n(), e))
11
- o.push({
12
- id: t.id,
13
- component: ([e, n] = i(() => t.component()), e = await e, n(), e)
14
- });
15
- return (t, g) => (p(), l(x, null, u(o, (s) => _(d(s.component), {
16
- key: s.id
17
- })), 64));
18
- }
19
- }), C = E;
20
- export {
21
- C as UIExtensions
22
- };
23
- //# sourceMappingURL=index.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.es.js","sources":["../src/vue/UIExtensions.vue","../src/index.ts"],"sourcesContent":["<!--\n See the LICENSE file distributed with this work for additional\n information regarding copyright ownership.\n\n This is free software; you can redistribute it and/or modify it\n under the terms of the GNU Lesser General Public License as\n published by the Free Software Foundation; either version 2.1 of\n the License, or (at your option) any later version.\n\n This software is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n Lesser General Public License for more details.\n\n You should have received a copy of the GNU Lesser General Public\n License along with this software; if not, write to the Free\n Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n\n<script lang=\"ts\" setup>\nimport { inject } from \"vue\";\nimport type { UIExtensionsManager } from \"@xwiki/cristal-uiextension-api\";\nimport type { CristalApp } from \"@xwiki/platform-api\";\nimport type { Component } from \"vue\";\n//\nconst { uixName } = defineProps<{\n uixName: string;\n}>();\n\nconst cristal = inject<CristalApp>(\"cristal\")!;\n\nconst uixManager: UIExtensionsManager = cristal\n .getContainer()\n .get<UIExtensionsManager>(\"UIExtensionsManager\")!;\n\nconst uiExtensions: { id: string; component: Component }[] = [];\nfor (let uiExtension of await uixManager.list(uixName)) {\n uiExtensions.push({\n id: uiExtension.id,\n component: await uiExtension.component(),\n });\n}\n</script>\n\n<template>\n <component\n :is=\"uix.component\"\n v-for=\"uix in uiExtensions\"\n :key=\"uix.id\"\n ></component>\n</template>\n","/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport UIExtensions from \"./vue/UIExtensions.vue\";\n\n/**\n * @since 0.11\n * @beta\n */\nconst UIExtensionsAnnotated = UIExtensions;\n\nexport { UIExtensionsAnnotated as UIExtensions };\n"],"names":["uixManager","inject","uiExtensions","uiExtension","__temp","__restore","_withAsyncContext","__props","_createElementBlock","_Fragment","_renderList","uix","_createVNode","_resolveDynamicComponent","UIExtensionsAnnotated","UIExtensions"],"mappings":";;;;;;;;AAgCA,UAAMA,IAFUC,EAAmB,SAAS,EAGzC,aAAA,EACA,IAAyB,qBAAqB,GAE3CC,IAAuD,CAAA;AAC7D,aAASC,MAAe,CAAAC,GAAAC,CAAA,IAAAC,EAAA,MAAMN,EAAW,KAAKO,EAAA,OAAO,CAAA;AACnD,MAAAL,EAAa,KAAK;AAAA,QAChB,IAAIC,EAAY;AAAA,QAChB,YAAW,CAAAC,GAAAC,CAAA,IAAAC,EAAA,MAAMH,EAAY,UAAA,CAAU;OACxC;2BAKDK,EAIaC,GAAA,MAAAC,EAFGR,GAAY,CAAnBS,MAFTC,EAIaC,EAHNF,EAAI,SAAS,GAAA;AAAA,MAEjB,KAAKA,EAAI;AAAA,IAAA;;ICvBRG,IAAwBC;"}
package/dist/index.umd.js DELETED
@@ -1,2 +0,0 @@
1
- (function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t["cristal_uiextension-ui"]={},t.Vue))})(this,(function(t,e){"use strict";const r=e.defineComponent({__name:"UIExtensions",props:{uixName:{}},async setup(a){let n,i;const d=e.inject("cristal").getContainer().get("UIExtensionsManager"),s=[];for(let o of([n,i]=e.withAsyncContext(()=>d.list(a.uixName)),n=await n,i(),n))s.push({id:o.id,component:([n,i]=e.withAsyncContext(()=>o.component()),n=await n,i(),n)});return(o,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(s,c=>e.createVNode(e.resolveDynamicComponent(c.component),{key:c.id})),64))}});t.UIExtensions=r,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}));
2
- //# sourceMappingURL=index.umd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.umd.js","sources":["../src/index.ts","../src/vue/UIExtensions.vue"],"sourcesContent":["/**\n * See the LICENSE file distributed with this work for additional\n * information regarding copyright ownership.\n *\n * This is free software; you can redistribute it and/or modify it\n * under the terms of the GNU Lesser General Public License as\n * published by the Free Software Foundation; either version 2.1 of\n * the License, or (at your option) any later version.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public\n * License along with this software; if not, write to the Free\n * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n * 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n */\n\nimport UIExtensions from \"./vue/UIExtensions.vue\";\n\n/**\n * @since 0.11\n * @beta\n */\nconst UIExtensionsAnnotated = UIExtensions;\n\nexport { UIExtensionsAnnotated as UIExtensions };\n","<!--\n See the LICENSE file distributed with this work for additional\n information regarding copyright ownership.\n\n This is free software; you can redistribute it and/or modify it\n under the terms of the GNU Lesser General Public License as\n published by the Free Software Foundation; either version 2.1 of\n the License, or (at your option) any later version.\n\n This software is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n Lesser General Public License for more details.\n\n You should have received a copy of the GNU Lesser General Public\n License along with this software; if not, write to the Free\n Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA\n 02110-1301 USA, or see the FSF site: http://www.fsf.org.\n-->\n\n<script lang=\"ts\" setup>\nimport { inject } from \"vue\";\nimport type { UIExtensionsManager } from \"@xwiki/cristal-uiextension-api\";\nimport type { CristalApp } from \"@xwiki/platform-api\";\nimport type { Component } from \"vue\";\n//\nconst { uixName } = defineProps<{\n uixName: string;\n}>();\n\nconst cristal = inject<CristalApp>(\"cristal\")!;\n\nconst uixManager: UIExtensionsManager = cristal\n .getContainer()\n .get<UIExtensionsManager>(\"UIExtensionsManager\")!;\n\nconst uiExtensions: { id: string; component: Component }[] = [];\nfor (let uiExtension of await uixManager.list(uixName)) {\n uiExtensions.push({\n id: uiExtension.id,\n component: await uiExtension.component(),\n });\n}\n</script>\n\n<template>\n <component\n :is=\"uix.component\"\n v-for=\"uix in uiExtensions\"\n :key=\"uix.id\"\n ></component>\n</template>\n"],"names":["UIExtensionsAnnotated","uixManager","inject","uiExtensions","uiExtension","__temp","__restore","_withAsyncContext","__props","_createElementBlock","_Fragment","_renderList","uix","_createVNode","_resolveDynamicComponent"],"mappings":"+QA0BA,MAAMA,qFCMN,MAAMC,EAFUC,EAAAA,OAAmB,SAAS,EAGzC,aAAA,EACA,IAAyB,qBAAqB,EAE3CC,EAAuD,CAAA,EAC7D,QAASC,KAAe,CAAAC,EAAAC,CAAA,EAAAC,EAAAA,iBAAA,IAAMN,EAAW,KAAKO,EAAA,OAAO,CAAA,mBACnDL,EAAa,KAAK,CAChB,GAAIC,EAAY,GAChB,WAAW,CAAAC,EAAAC,CAAA,EAAAC,EAAAA,iBAAA,IAAMH,EAAY,UAAA,CAAU,mBACxC,8BAKDK,EAAAA,mBAIaC,EAAAA,SAAA,KAAAC,aAFGR,EAAPS,GAFTC,cAIaC,EAAAA,wBAHNF,EAAI,SAAS,EAAA,CAEjB,IAAKA,EAAI,EAAA"}
@@ -1,5 +0,0 @@
1
- type __VLS_Props = {
2
- uixName: string;
3
- };
4
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
5
- export default _default;