vue-pancake-icons 2.2.6 → 2.2.7

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.
@@ -1,24 +1,35 @@
1
- const r = (t, n) => {
2
- const e = t.__vccOpts || t;
3
- for (const [o, c] of n)
4
- e[o] = c;
1
+ const r = (o, n) => {
2
+ const e = o.__vccOpts || o;
3
+ for (const [t, c] of n)
4
+ e[t] = c;
5
5
  return e;
6
- }, _ = {
6
+ }, a = {
7
7
  name: "hello-world"
8
8
  };
9
- function a(t, n, e, o, c, s) {
9
+ function d(o, n, e, t, c, l) {
10
10
  return " Hello world ";
11
11
  }
12
- const d = /* @__PURE__ */ r(_, [["render", a]]), l = {
12
+ const _ = /* @__PURE__ */ r(a, [["render", d]]), p = {
13
13
  name: "icon-test"
14
14
  };
15
- function p(t, n, e, o, c, s) {
15
+ function i(o, n, e, t, c, l) {
16
16
  return " Icon test ";
17
17
  }
18
- const $ = /* @__PURE__ */ r(l, [["render", p]]), f = {
19
- IconTest: $,
20
- HelloWorld: d
18
+ const u = /* @__PURE__ */ r(p, [["render", i]]), f = {
19
+ IconTest: u,
20
+ HelloWorld: _
21
+ }, s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22
+ __proto__: null,
23
+ default: f
24
+ }, Symbol.toStringTag, { value: "Module" })), m = {
25
+ install(o) {
26
+ for (let n in s) {
27
+ const e = s[n];
28
+ console.log(e, "dmmm"), o.component(e.name, e);
29
+ }
30
+ }
21
31
  };
32
+ typeof window < "u" && window.Vue && window.Vue.use(m);
22
33
  export {
23
- f as default
34
+ m as default
24
35
  };
@@ -1 +1 @@
1
- (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e.VuePancakeIcons=n())})(this,function(){"use strict";const e=(t,s)=>{const o=t.__vccOpts||t;for(const[c,r]of s)o[c]=r;return o},n={name:"hello-world"};function d(t,s,o,c,r,p){return" Hello world "}const i=e(n,[["render",d]]),f={name:"icon-test"};function u(t,s,o,c,r,p){return" Icon test "}return{IconTest:e(f,[["render",u]]),HelloWorld:i}});
1
+ (function(n,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(n=typeof globalThis<"u"?globalThis:n||self,n.VuePancakeIcons=t())})(this,function(){"use strict";const n=(o,c)=>{const e=o.__vccOpts||o;for(const[s,r]of c)e[s]=r;return e},t={name:"hello-world"};function f(o,c,e,s,r,a){return" Hello world "}const u=n(t,[["render",f]]),l={name:"icon-test"};function p(o,c,e,s,r,a){return" Icon test "}const d=Object.freeze(Object.defineProperty({__proto__:null,default:{IconTest:n(l,[["render",p]]),HelloWorld:u}},Symbol.toStringTag,{value:"Module"})),i={install(o){for(let c in d){const e=d[c];console.log(e,"dmmm"),o.component(e.name,e)}}};return typeof window<"u"&&window.Vue&&window.Vue.use(i),i});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-pancake-icons",
3
3
  "private": false,
4
- "version": "2.2.6",
4
+ "version": "2.2.7",
5
5
  "files": [
6
6
  "dist/*",
7
7
  "src/*",
package/vite.config.js CHANGED
@@ -5,7 +5,7 @@ import path from 'path'
5
5
  export default defineConfig({
6
6
  build: {
7
7
  lib: {
8
- entry: path.resolve(__dirname, 'src/components/index.js'),
8
+ entry: path.resolve(__dirname, 'src/install.js'),
9
9
  name: 'VuePancakeIcons',
10
10
  fileName: (format) => `vue-pancake-icons.${format}.js`,
11
11
  },
@@ -20,5 +20,13 @@ export default defineConfig({
20
20
  },
21
21
  },
22
22
  },
23
- plugins: [vue()],
23
+ plugins: [vue({
24
+ template: {
25
+ compilerOptions: {
26
+ isCustomElement: (tag) => {
27
+ return true
28
+ }
29
+ }
30
+ }
31
+ })],
24
32
  })