lty-protocol 1.0.2 → 1.0.3

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/dist/index.d.ts CHANGED
@@ -1,5 +1,31 @@
1
- import { default as MyButton } from './components/MyButton.vue';
2
1
  import { Plugin } from 'vue';
2
+ export declare const ExportedMyButton: {
3
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
4
+ onClick?: (() => any) | undefined;
5
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
+ click: () => any;
7
+ }, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLButtonElement, import('vue').ComponentProvideOptions, {
8
+ P: {};
9
+ B: {};
10
+ D: {};
11
+ C: {};
12
+ M: {};
13
+ Defaults: {};
14
+ }, Readonly<{}> & Readonly<{
15
+ onClick?: (() => any) | undefined;
16
+ }>, {}, {}, {}, {}, {}>;
17
+ __isFragment?: never;
18
+ __isTeleport?: never;
19
+ __isSuspense?: never;
20
+ } & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{
21
+ onClick?: (() => any) | undefined;
22
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
23
+ click: () => any;
24
+ }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
25
+ $slots: {
26
+ default?(_: {}): any;
27
+ };
28
+ });
29
+ export { ExportedMyButton as MyButton };
3
30
  declare const Protocol: Plugin;
4
- export { MyButton };
5
31
  export default Protocol;
@@ -1,34 +1,35 @@
1
- import { defineComponent as s, openBlock as r, createElementBlock as a, renderSlot as l } from "vue";
2
- const m = /* @__PURE__ */ s({
1
+ import { defineComponent as r, openBlock as a, createElementBlock as l, renderSlot as u } from "vue";
2
+ const i = /* @__PURE__ */ r({
3
3
  name: "MyButton",
4
4
  __name: "MyButton",
5
5
  emits: ["click"],
6
- setup(o, { emit: t }) {
7
- const n = t, e = () => {
8
- n("click");
6
+ setup(o, { emit: n }) {
7
+ const t = n, e = () => {
8
+ t("click");
9
9
  };
10
- return (c, u) => (r(), a("button", {
10
+ return (c, _) => (a(), l("button", {
11
11
  class: "my-btn",
12
12
  onClick: e
13
13
  }, [
14
- l(c.$slots, "default", {}, void 0, !0)
14
+ u(c.$slots, "default", {}, void 0, !0)
15
15
  ]));
16
16
  }
17
- }), _ = (o, t) => {
18
- const n = o.__vccOpts || o;
19
- for (const [e, c] of t)
20
- n[e] = c;
21
- return n;
22
- }, i = /* @__PURE__ */ _(m, [["__scopeId", "data-v-c654f959"]]), p = [
23
- i
24
- ], d = {
17
+ }), m = (o, n) => {
18
+ const t = o.__vccOpts || o;
19
+ for (const [e, c] of n)
20
+ t[e] = c;
21
+ return t;
22
+ }, p = /* @__PURE__ */ m(i, [["__scopeId", "data-v-c654f959"]]), s = {
23
+ MyButton: p
24
+ }, { MyButton: f } = s, y = {
25
25
  install(o) {
26
- p.forEach((t) => {
27
- o.component(t.name, t);
26
+ Object.entries(s).forEach(([n, t]) => {
27
+ o.component(n, t);
28
28
  });
29
29
  }
30
30
  };
31
31
  export {
32
- i as MyButton,
33
- d as default
32
+ f as ExportedMyButton,
33
+ f as MyButton,
34
+ y as default
34
35
  };
@@ -1 +1 @@
1
- (function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e["lty-protocol"]={},e.Vue))})(this,(function(e,t){"use strict";const u=((o,n)=>{const c=o.__vccOpts||o;for(const[s,i]of n)c[s]=i;return c})(t.defineComponent({name:"MyButton",__name:"MyButton",emits:["click"],setup(o,{emit:n}){const c=n,s=()=>{c("click")};return(i,_)=>(t.openBlock(),t.createElementBlock("button",{class:"my-btn",onClick:s},[t.renderSlot(i.$slots,"default",{},void 0,!0)]))}}),[["__scopeId","data-v-c654f959"]]),l=[u],r={install(o){l.forEach(n=>{o.component(n.name,n)})}};e.MyButton=u,e.default=r,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
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["lty-protocol"]={},t.Vue))})(this,(function(t,e){"use strict";const u={MyButton:((n,c)=>{const o=n.__vccOpts||n;for(const[s,i]of c)o[s]=i;return o})(e.defineComponent({name:"MyButton",__name:"MyButton",emits:["click"],setup(n,{emit:c}){const o=c,s=()=>{o("click")};return(i,_)=>(e.openBlock(),e.createElementBlock("button",{class:"my-btn",onClick:s},[e.renderSlot(i.$slots,"default",{},void 0,!0)]))}}),[["__scopeId","data-v-c654f959"]])},{MyButton:r}=u,l={install(n){Object.entries(u).forEach(([c,o])=>{n.component(c,o)})}};t.ExportedMyButton=r,t.MyButton=r,t.default=l,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lty-protocol",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "main": "dist/lty-protocol.umd.js",
5
5
  "module": "dist/lty-protocol.mjs",
6
6
  "style": "dist/lty-protocol.css",