morghulis 2.0.24 → 2.0.30

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.
@@ -0,0 +1,5 @@
1
+ type __VLS_Props = {
2
+ msg: 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;
@@ -1,7 +1,7 @@
1
+ import { App } from 'vue';
1
2
  import MyComp from './MyComp.vue';
2
- import { App } from "vue";
3
3
  declare const Morghulis: {
4
4
  install(app: App): void;
5
5
  };
6
- export { MyComp };
7
6
  export default Morghulis;
7
+ export { MyComp };
@@ -1,27 +1,24 @@
1
- import { defineComponent as l, ref as c, createElementBlock as r, openBlock as a, Fragment as i, createElementVNode as o, toDisplayString as s } from "vue";
2
- const m = { class: "my" }, p = { class: "card" }, u = /* @__PURE__ */ l({
1
+ import { defineComponent as r, ref as m, createElementBlock as p, openBlock as i, createElementVNode as l, toDisplayString as t } from "vue";
2
+ const a = /* @__PURE__ */ r({
3
3
  __name: "MyComp",
4
4
  props: {
5
- msg: { type: String }
5
+ msg: {}
6
6
  },
7
- setup(t) {
8
- const e = c(0);
9
- return (d, n) => (a(), r(i, null, [
10
- o("h1", m, s(t.msg), 1),
11
- o("div", p, [
12
- o("button", {
13
- type: "button",
14
- onClick: n[0] || (n[0] = (g) => e.value++)
15
- }, "count is " + s(e.value), 1)
16
- ])
17
- ], 64));
7
+ setup(e) {
8
+ const o = m(0);
9
+ return (s, n) => (i(), p("div", null, [
10
+ l("h2", null, t(s.msg), 1),
11
+ l("button", {
12
+ onClick: n[0] || (n[0] = (c) => o.value++)
13
+ }, "Clicked " + t(o.value) + " times", 1)
14
+ ]));
18
15
  }
19
- }), y = {
20
- install(t) {
21
- console.log("[Morghulis] install called"), t.component("MyComp", u);
16
+ }), d = {
17
+ install(e) {
18
+ console.log("[Morghulis] install called"), e.component("MyComp", a);
22
19
  }
23
20
  };
24
21
  export {
25
- u as MyComp,
26
- y as default
22
+ a as MyComp,
23
+ d as default
27
24
  };
@@ -1 +1 @@
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.Morghulis={},t.Vue))})(this,function(t,e){"use strict";const l={class:"my"},c={class:"card"},o=e.defineComponent({__name:"MyComp",props:{msg:{type:String}},setup(n){const s=e.ref(0);return(d,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h1",l,e.toDisplayString(n.msg),1),e.createElementVNode("div",c,[e.createElementVNode("button",{type:"button",onClick:i[0]||(i[0]=u=>s.value++)},"count is "+e.toDisplayString(s.value),1)])],64))}}),r={install(n){console.log("[Morghulis] install called"),n.component("MyComp",o)}};t.MyComp=o,t.default=r,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
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.Morghulis={},n.Vue))})(this,function(n,e){"use strict";const t=e.defineComponent({__name:"MyComp",props:{msg:{}},setup(o){const l=e.ref(0);return(u,i)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("h2",null,e.toDisplayString(u.msg),1),e.createElementVNode("button",{onClick:i[0]||(i[0]=r=>l.value++)},"Clicked "+e.toDisplayString(l.value)+" times",1)]))}}),s={install(o){console.log("[Morghulis] install called"),o.component("MyComp",t)}};n.MyComp=t,n.default=s,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,33 +1,28 @@
1
1
  {
2
2
  "name": "morghulis",
3
- "version": "2.0.24",
4
- "type": "module",
5
- "files": [
6
- "dist"
7
- ],
3
+ "version": "2.0.30",
8
4
  "main": "./dist/morghulis.umd.js",
9
5
  "module": "./dist/morghulis.es.js",
10
- "types": "./dist/types/index.d.ts",
6
+ "types": "./dist/index.d.ts",
11
7
  "exports": {
12
8
  ".": {
13
9
  "import": "./dist/morghulis.es.js",
14
10
  "require": "./dist/morghulis.umd.js",
15
- "types": "./dist/types/index.d.ts"
11
+ "types": "./dist/index.d.ts"
16
12
  }
17
13
  },
14
+ "files": ["dist"],
18
15
  "scripts": {
19
- "dev": "vite",
20
- "build": "vite build && vue-tsc --emitDeclarationOnly",
21
- "preview": "vite preview"
16
+ "build": "vite build && vue-tsc --emitDeclarationOnly"
22
17
  },
23
- "dependencies": {
24
- "vue": "^3.5.13"
18
+ "peerDependencies": {
19
+ "vue": "^3.0.0"
25
20
  },
26
21
  "devDependencies": {
27
- "@types/node": "^22.14.0",
28
22
  "@vitejs/plugin-vue": "^5.2.3",
29
- "typescript": "~5.8.0",
30
- "vite": "^6.2.4",
31
- "vue-tsc": "^2.2.8"
23
+ "typescript": "^5.0.0",
24
+ "vite": "^6.0.0",
25
+ "vue": "^3.3.0",
26
+ "vue-tsc": "^2.0.0"
32
27
  }
33
28
  }
package/README.md DELETED
@@ -1 +0,0 @@
1
- # Vue Component npm Example
@@ -1,10 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- msg: {
3
- type: StringConstructor;
4
- };
5
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
6
- msg: {
7
- type: StringConstructor;
8
- };
9
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
10
- export default _default;