morghulis 1.0.6 → 1.0.8

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,20 @@
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
+ };
@@ -0,0 +1,2 @@
1
+ import { default as MyComponent } from './MyComponent.vue';
2
+ export default MyComponent;
@@ -0,0 +1,7 @@
1
+ import { App } from 'vue';
2
+ import { default as MyComponent } from './components/MyComponent.vue';
3
+ export { MyComponent };
4
+ declare const _default: {
5
+ install: (app: App) => void;
6
+ };
7
+ export default _default;
@@ -0,0 +1 @@
1
+ .my-component[data-v-7a51d697]{padding:10px;background-color:#f0f0f0;border:1px solid #ddd;border-radius:4px}
@@ -0,0 +1,26 @@
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
+ };
@@ -0,0 +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 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"}})});
package/package.json CHANGED
@@ -1,35 +1,34 @@
1
1
  {
2
2
  "name": "morghulis",
3
- "version": "1.0.6",
4
- "type": "module",
5
- "files": [
6
- "dist"
7
- ],
8
- "main": "./dist/morghulis.umd.cjs",
9
- "module": "./dist/morghulis.js",
10
- "types": "./dist/main.d.ts",
3
+ "version": "1.0.8",
4
+ "main": "dist/morghulis.umd.js",
5
+ "module": "dist/morghulis.es.js",
6
+ "types": "dist/index.d.ts",
11
7
  "exports": {
12
8
  ".": {
13
- "import": "./dist/morghulis.js",
9
+ "import": "./dist/morghulis.es.js",
14
10
  "require": "./dist/morghulis.umd.js"
15
- },
16
- "./dist/style.css": "./dist/style.css"
11
+ }
17
12
  },
13
+ "files": [
14
+ "dist"
15
+ ],
18
16
  "scripts": {
19
- "dev": "vite",
20
- "build": "vite build && vue-tsc --emitDeclarationOnly",
21
- "preview": "vite preview"
17
+ "build": "vite build"
22
18
  },
23
- "dependencies": {
24
- "element-plus": "^2.9.1",
19
+ "keywords": [],
20
+ "author": "",
21
+ "license": "ISC",
22
+ "description": "",
23
+ "peerDependencies": {
25
24
  "vue": "^3.5.13"
26
25
  },
27
26
  "devDependencies": {
28
- "@types/node": "^22.10.2",
27
+ "vite": "^6.1.0",
28
+ "vue": "^3.5.13"
29
+ },
30
+ "dependencies": {
29
31
  "@vitejs/plugin-vue": "^5.2.1",
30
- "@vue/tsconfig": "^0.7.0",
31
- "typescript": "~5.6.2",
32
- "vite": "^6.0.5",
33
- "vue-tsc": "^2.2.0"
32
+ "vite-plugin-dts": "^4.5.0"
34
33
  }
35
34
  }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- npm run build
2
- nrm use npm
3
- npm publish
@@ -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;
package/dist/main.d.ts DELETED
@@ -1,4 +0,0 @@
1
- declare const plugin: {
2
- install: (app: any, options: any) => void;
3
- };
4
- export default plugin;
package/dist/morghulis.js DELETED
@@ -1,37 +0,0 @@
1
- import { defineComponent as a, ref as m, resolveComponent as p, openBlock as u, createBlock as i, withCtx as n, createTextVNode as l, toDisplayString as c, createVNode as _ } from "vue";
2
- const d = /* @__PURE__ */ a({
3
- __name: "VueComponentNpmExample",
4
- props: {
5
- msg: { type: String }
6
- },
7
- setup(e) {
8
- const t = m(0);
9
- return (f, o) => {
10
- const s = p("el-button"), r = p("el-card");
11
- return u(), i(r, null, {
12
- header: n(() => [
13
- l(c(e.msg), 1)
14
- ]),
15
- default: n(() => [
16
- _(s, {
17
- type: "success",
18
- onClick: o[0] || (o[0] = (x) => t.value++)
19
- }, {
20
- default: n(() => [
21
- l("count is " + c(t.value), 1)
22
- ]),
23
- _: 1
24
- })
25
- ]),
26
- _: 1
27
- });
28
- };
29
- }
30
- }), g = {
31
- install: (e, t) => {
32
- e.component("VueComponentNpmExample", d);
33
- }
34
- };
35
- export {
36
- g as default
37
- };
@@ -1 +0,0 @@
1
- (function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t(require("vue")):typeof define=="function"&&define.amd?define(["vue"],t):(e=typeof globalThis<"u"?globalThis:e||self,e.morghulis=t(e.Vue))})(this,function(e){"use strict";const t=e.defineComponent({__name:"VueComponentNpmExample",props:{msg:{type:String}},setup(n){const o=e.ref(0);return(c,i)=>{const p=e.resolveComponent("el-button"),s=e.resolveComponent("el-card");return e.openBlock(),e.createBlock(s,null,{header:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.msg),1)]),default:e.withCtx(()=>[e.createVNode(p,{type:"success",onClick:i[0]||(i[0]=r=>o.value++)},{default:e.withCtx(()=>[e.createTextVNode("count is "+e.toDisplayString(o.value),1)]),_:1})]),_:1})}}});return{install:(n,o)=>{n.component("VueComponentNpmExample",t)}}});
package/dist/vite.svg DELETED
@@ -1 +0,0 @@
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>