morghulis 1.0.8 → 1.0.9
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/README.md +5 -0
- package/dist/morghulis.css +1 -1
- package/dist/morghulis.js +30 -0
- package/dist/morghulis.umd.cjs +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +22 -21
- package/dist/components/MyComponent.vue.d.ts +0 -20
- package/dist/components/index.d.ts +0 -2
- package/dist/index.d.ts +0 -7
- package/dist/morghulis.es.js +0 -26
- package/dist/morghulis.umd.js +0 -1
package/README.md
ADDED
@@ -0,0 +1,5 @@
|
|
1
|
+
# Vue 3 + TypeScript + Vite
|
2
|
+
|
3
|
+
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
4
|
+
|
5
|
+
Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
|
package/dist/morghulis.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.
|
1
|
+
.btn[data-v-a946fd69]{background-color:orange}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { defineComponent as r, createElementBlock as s, openBlock as p, renderSlot as a } from "vue";
|
2
|
+
const l = /* @__PURE__ */ r({
|
3
|
+
__name: "MyComp",
|
4
|
+
props: {
|
5
|
+
text: { type: String, required: !0 }
|
6
|
+
},
|
7
|
+
setup(t) {
|
8
|
+
const o = t, e = () => {
|
9
|
+
alert(`click ${o.text}`);
|
10
|
+
};
|
11
|
+
return (n, c) => (p(), s("button", {
|
12
|
+
class: "btn",
|
13
|
+
onClick: e
|
14
|
+
}, [
|
15
|
+
a(n.$slots, "default", {}, void 0, !0)
|
16
|
+
]));
|
17
|
+
}
|
18
|
+
}), d = (t, o) => {
|
19
|
+
const e = t.__vccOpts || t;
|
20
|
+
for (const [n, c] of o)
|
21
|
+
e[n] = c;
|
22
|
+
return e;
|
23
|
+
}, i = /* @__PURE__ */ d(l, [["__scopeId", "data-v-a946fd69"]]), m = {
|
24
|
+
install: (t) => {
|
25
|
+
t.component("MyComp", i);
|
26
|
+
}
|
27
|
+
};
|
28
|
+
export {
|
29
|
+
m as default
|
30
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
(function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n(require("vue")):typeof define=="function"&&define.amd?define(["vue"],n):(e=typeof globalThis<"u"?globalThis:e||self,e.morghulis=n(e.Vue))})(this,function(e){"use strict";const i=((t,s)=>{const o=t.__vccOpts||t;for(const[c,r]of s)o[c]=r;return o})(e.defineComponent({__name:"MyComp",props:{text:{type:String,required:!0}},setup(t){const s=t,o=()=>{alert(`click ${s.text}`)};return(c,r)=>(e.openBlock(),e.createElementBlock("button",{class:"btn",onClick:o},[e.renderSlot(c.$slots,"default",{},void 0,!0)]))}}),[["__scopeId","data-v-a946fd69"]]);return{install:t=>{t.component("MyComp",i)}}});
|
package/dist/vite.svg
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
package/package.json
CHANGED
@@ -1,34 +1,35 @@
|
|
1
1
|
{
|
2
2
|
"name": "morghulis",
|
3
|
-
"version": "1.0.
|
4
|
-
"
|
5
|
-
"
|
6
|
-
|
7
|
-
|
8
|
-
"
|
9
|
-
|
10
|
-
"require": "./dist/morghulis.umd.js"
|
11
|
-
}
|
3
|
+
"version": "1.0.9",
|
4
|
+
"type": "module",
|
5
|
+
"scripts": {
|
6
|
+
"dev": "vite",
|
7
|
+
"build": "vite build && npm run generate:types",
|
8
|
+
"generate:types": "vue-tsc --declaration --emitDeclarationOnly --outdir ./dist",
|
9
|
+
"preview": "vite preview"
|
12
10
|
},
|
13
11
|
"files": [
|
14
12
|
"dist"
|
15
13
|
],
|
16
|
-
"
|
17
|
-
|
14
|
+
"main": "./dist/morghulis.umd.cjs",
|
15
|
+
"module": "./dist/morghulis.js",
|
16
|
+
"exports": {
|
17
|
+
".": {
|
18
|
+
"import": "./dist/morghulis.js",
|
19
|
+
"require": "./dist/morghulis.umd.cjs"
|
20
|
+
},
|
21
|
+
"./style.css": "./dist/style.css"
|
18
22
|
},
|
19
|
-
"
|
20
|
-
"
|
21
|
-
|
22
|
-
"description": "",
|
23
|
-
"peerDependencies": {
|
23
|
+
"types": "./dist/types.d.ts",
|
24
|
+
"dependencies": {
|
25
|
+
"@types/node": "^22.13.1",
|
24
26
|
"vue": "^3.5.13"
|
25
27
|
},
|
26
28
|
"devDependencies": {
|
27
|
-
"vite": "^6.1.0",
|
28
|
-
"vue": "^3.5.13"
|
29
|
-
},
|
30
|
-
"dependencies": {
|
31
29
|
"@vitejs/plugin-vue": "^5.2.1",
|
32
|
-
"
|
30
|
+
"@vue/tsconfig": "^0.7.0",
|
31
|
+
"typescript": "~5.7.2",
|
32
|
+
"vite": "^6.1.0",
|
33
|
+
"vue-tsc": "^2.2.0"
|
33
34
|
}
|
34
35
|
}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
type __VLS_Props = {
|
2
|
-
msg?: string;
|
3
|
-
};
|
4
|
-
declare function __VLS_template(): {
|
5
|
-
attrs: Partial<{}>;
|
6
|
-
slots: {
|
7
|
-
default?(_: {}): any;
|
8
|
-
};
|
9
|
-
refs: {};
|
10
|
-
rootEl: HTMLDivElement;
|
11
|
-
};
|
12
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
13
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
14
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
15
|
-
export default _default;
|
16
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
17
|
-
new (): {
|
18
|
-
$slots: S;
|
19
|
-
};
|
20
|
-
};
|
package/dist/index.d.ts
DELETED
package/dist/morghulis.es.js
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
import { defineComponent as c, createElementBlock as r, openBlock as p, createTextVNode as a, renderSlot as m, toDisplayString as _ } from "vue";
|
2
|
-
const d = { class: "my-component" }, i = /* @__PURE__ */ c({
|
3
|
-
__name: "MyComponent",
|
4
|
-
props: {
|
5
|
-
msg: {}
|
6
|
-
},
|
7
|
-
setup(o) {
|
8
|
-
return (t, e) => (p(), r("div", d, [
|
9
|
-
a(" this is " + _(t.msg) + ": ", 1),
|
10
|
-
m(t.$slots, "default", {}, void 0, !0)
|
11
|
-
]));
|
12
|
-
}
|
13
|
-
}), l = (o, t) => {
|
14
|
-
const e = o.__vccOpts || o;
|
15
|
-
for (const [n, s] of t)
|
16
|
-
e[n] = s;
|
17
|
-
return e;
|
18
|
-
}, f = /* @__PURE__ */ l(i, [["__scopeId", "data-v-7a51d697"]]), u = (o) => {
|
19
|
-
o.component("MyComponent", f);
|
20
|
-
}, v = {
|
21
|
-
install: u
|
22
|
-
};
|
23
|
-
export {
|
24
|
-
f as MyComponent,
|
25
|
-
v as default
|
26
|
-
};
|
package/dist/morghulis.umd.js
DELETED
@@ -1 +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.morghulis={},t.Vue))})(this,function(t,e){"use strict";const c={class:"my-component"},i=((n,o)=>{const s=n.__vccOpts||n;for(const[d,p]of o)s[d]=p;return s})(e.defineComponent({__name:"MyComponent",props:{msg:{}},setup(n){return(o,s)=>(e.openBlock(),e.createElementBlock("div",c,[e.createTextVNode(" this is "+e.toDisplayString(o.msg)+": ",1),e.renderSlot(o.$slots,"default",{},void 0,!0)]))}}),[["__scopeId","data-v-7a51d697"]]),r={install:n=>{n.component("MyComponent",i)}};t.MyComponent=i,t.default=r,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|