@xwiki/cristal-user-ui 0.22.0 → 0.23.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/CHANGELOG.md +11 -0
- package/dist/index.es.js +7 -7
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as s, createElementBlock as n, openBlock as r, toDisplayString as t } from "vue";
|
|
2
|
+
const o = ["href"], a = { key: 1 }, c = /* @__PURE__ */ s({
|
|
3
3
|
__name: "CUser",
|
|
4
4
|
props: {
|
|
5
5
|
user: {}
|
|
6
6
|
},
|
|
7
|
-
setup(
|
|
8
|
-
return (
|
|
7
|
+
setup(e) {
|
|
8
|
+
return (i, m) => e.user.profile ? (r(), n("a", {
|
|
9
9
|
key: 0,
|
|
10
10
|
href: e.user.profile
|
|
11
|
-
},
|
|
11
|
+
}, t(e.user.name), 9, o)) : (r(), n("span", a, t(e.user.name), 1));
|
|
12
12
|
}
|
|
13
|
-
}),
|
|
13
|
+
}), f = c;
|
|
14
14
|
export {
|
|
15
|
-
|
|
15
|
+
f as User
|
|
16
16
|
};
|
|
17
17
|
//# sourceMappingURL=index.es.js.map
|
package/dist/index.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../src/vue/CUser.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<script lang=\"ts\" setup>\n// For now this component is mostly useful to centralize user display use. Several ways to display user or users must be\n// provided over time, and more adapted to the design systems.\nimport type { UserDetails } from \"@xwiki/cristal-authentication-api\";\n\ndefineProps<{ user: UserDetails }>();\n</script>\n\n<template>\n <a v-if=\"user.profile\" :href=\"user.profile\">\n {{ user.name }}\n </a>\n <span v-else>{{ user.name }}</span>\n</template>\n\n<style scoped></style>\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 User from \"./vue/CUser.vue\";\n\n/**\n * @since 0.12\n * @beta\n */\nconst UserAnnotated = User;\n\nexport { UserAnnotated as User };\n"],"names":["
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../src/vue/CUser.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<script lang=\"ts\" setup>\n// For now this component is mostly useful to centralize user display use. Several ways to display user or users must be\n// provided over time, and more adapted to the design systems.\nimport type { UserDetails } from \"@xwiki/cristal-authentication-api\";\n\ndefineProps<{ user: UserDetails }>();\n</script>\n\n<template>\n <a v-if=\"user.profile\" :href=\"user.profile\">\n {{ user.name }}\n </a>\n <span v-else>{{ user.name }}</span>\n</template>\n\n<style scoped></style>\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 User from \"./vue/CUser.vue\";\n\n/**\n * @since 0.12\n * @beta\n */\nconst UserAnnotated = User;\n\nexport { UserAnnotated as User };\n"],"names":["__props","_createElementBlock","_toDisplayString","_hoisted_1","_hoisted_2","UserAnnotated","User"],"mappings":";;;;;;;qBA4BWA,EAAA,KAAK,gBAAdC,EAEI,KAAA;AAAA;MAFoB,MAAMD,EAAA,KAAK;AAAA,IAAA,GAC9BE,EAAAF,EAAA,KAAK,IAAI,GAAA,GAAAG,CAAA,WAEdF,EAAmC,QAAAG,GAAAF,EAAnBF,EAAA,KAAK,IAAI,GAAA,CAAA;AAAA;ICLrBK,IAAgBC;"}
|
package/dist/index.umd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(n,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(n=typeof globalThis<"u"?globalThis:n||self,e(n["cristal_user-ui"]={},n.Vue))})(this,(function(n,e){"use strict";const
|
|
1
|
+
(function(n,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(n=typeof globalThis<"u"?globalThis:n||self,e(n["cristal_user-ui"]={},n.Vue))})(this,(function(n,e){"use strict";const o=["href"],i={key:1},s=e.defineComponent({__name:"CUser",props:{user:{}},setup(t){return(c,f)=>t.user.profile?(e.openBlock(),e.createElementBlock("a",{key:0,href:t.user.profile},e.toDisplayString(t.user.name),9,o)):(e.openBlock(),e.createElementBlock("span",i,e.toDisplayString(t.user.name),1))}});n.User=s,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})}));
|
|
2
2
|
//# sourceMappingURL=index.umd.js.map
|
package/dist/index.umd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.umd.js","sources":["../src/index.ts","../src/vue/CUser.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 User from \"./vue/CUser.vue\";\n\n/**\n * @since 0.12\n * @beta\n */\nconst UserAnnotated = User;\n\nexport { UserAnnotated as User };\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<script lang=\"ts\" setup>\n// For now this component is mostly useful to centralize user display use. Several ways to display user or users must be\n// provided over time, and more adapted to the design systems.\nimport type { UserDetails } from \"@xwiki/cristal-authentication-api\";\n\ndefineProps<{ user: UserDetails }>();\n</script>\n\n<template>\n <a v-if=\"user.profile\" :href=\"user.profile\">\n {{ user.name }}\n </a>\n <span v-else>{{ user.name }}</span>\n</template>\n\n<style scoped></style>\n"],"names":["UserAnnotated","
|
|
1
|
+
{"version":3,"file":"index.umd.js","sources":["../src/index.ts","../src/vue/CUser.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 User from \"./vue/CUser.vue\";\n\n/**\n * @since 0.12\n * @beta\n */\nconst UserAnnotated = User;\n\nexport { UserAnnotated as User };\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<script lang=\"ts\" setup>\n// For now this component is mostly useful to centralize user display use. Several ways to display user or users must be\n// provided over time, and more adapted to the design systems.\nimport type { UserDetails } from \"@xwiki/cristal-authentication-api\";\n\ndefineProps<{ user: UserDetails }>();\n</script>\n\n<template>\n <a v-if=\"user.profile\" :href=\"user.profile\">\n {{ user.name }}\n </a>\n <span v-else>{{ user.name }}</span>\n</template>\n\n<style scoped></style>\n"],"names":["UserAnnotated","__props","_createElementBlock","_toDisplayString","_hoisted_1","_hoisted_2"],"mappings":"mSA0BMA,0ECEKC,EAAA,KAAK,uBAAdC,EAAAA,mBAEI,IAAA,OAFoB,KAAMD,EAAA,KAAK,OAAA,EAC9BE,EAAAA,gBAAAF,EAAA,KAAK,IAAI,EAAA,EAAAG,CAAA,kBAEdF,EAAAA,mBAAmC,OAAAG,EAAAF,kBAAnBF,EAAA,KAAK,IAAI,EAAA,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xwiki/cristal-user-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"license": "LGPL 2.1",
|
|
5
5
|
"author": "XWiki Org Community <contact@xwiki.org>",
|
|
6
6
|
"homepage": "https://cristal.xwiki.org/",
|
|
@@ -28,18 +28,18 @@
|
|
|
28
28
|
"main": "./dist/index.es.js",
|
|
29
29
|
"types": "./dist/index.d.ts",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@xwiki/cristal-authentication-api": "0.
|
|
31
|
+
"@xwiki/cristal-authentication-api": "0.23.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"reflect-metadata": "0.x",
|
|
35
35
|
"vue": "3.x"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"typescript": "5.9.
|
|
39
|
-
"vite": "7.1.
|
|
40
|
-
"vue": "3.5.
|
|
38
|
+
"typescript": "5.9.3",
|
|
39
|
+
"vite": "7.1.9",
|
|
40
|
+
"vue": "3.5.22",
|
|
41
41
|
"vue-tsc": "2.2.12",
|
|
42
|
-
"@xwiki/cristal-dev-config": "0.
|
|
42
|
+
"@xwiki/cristal-dev-config": "0.23.0"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"api-extractor:local": "api-extractor run --local",
|