@skeletonizer/vue 0.0.10-alpha.0 → 0.0.11-alpha.0

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,76 @@
1
+ import { UnwrapRef } from 'vue';
2
+ import { ISkeletonizerColorSchema, TSchemaConfig } from '@skeletonizer/utils';
3
+
4
+ declare const _default: <TSkeletonScopeObject extends object>(__VLS_props: {
5
+ config: TSchemaConfig<TSkeletonScopeObject>;
6
+ showSkeleton: boolean;
7
+ scope: TSkeletonScopeObject;
8
+ colorSchema?: ISkeletonizerColorSchema | undefined;
9
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, __VLS_ctx?: {
10
+ attrs: any;
11
+ emit: any;
12
+ slots: Readonly<{
13
+ default?: ((props: {
14
+ scope: TSkeletonScopeObject | UnwrapRef<TSkeletonScopeObject>;
15
+ }) => {
16
+ scope: TSkeletonScopeObject | UnwrapRef<TSkeletonScopeObject>;
17
+ }) | undefined;
18
+ }> & {
19
+ default?: ((props: {
20
+ scope: TSkeletonScopeObject | UnwrapRef<TSkeletonScopeObject>;
21
+ }) => {
22
+ scope: TSkeletonScopeObject | UnwrapRef<TSkeletonScopeObject>;
23
+ }) | undefined;
24
+ };
25
+ } | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
26
+ props: {
27
+ config: TSchemaConfig<TSkeletonScopeObject>;
28
+ showSkeleton: boolean;
29
+ scope: TSkeletonScopeObject;
30
+ colorSchema?: ISkeletonizerColorSchema | undefined;
31
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
32
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
33
+ attrs: any;
34
+ slots: Readonly<{
35
+ default?: ((props: {
36
+ scope: TSkeletonScopeObject | UnwrapRef<TSkeletonScopeObject>;
37
+ }) => {
38
+ scope: TSkeletonScopeObject | UnwrapRef<TSkeletonScopeObject>;
39
+ }) | undefined;
40
+ }> & {
41
+ default?: ((props: {
42
+ scope: TSkeletonScopeObject | UnwrapRef<TSkeletonScopeObject>;
43
+ }) => {
44
+ scope: TSkeletonScopeObject | UnwrapRef<TSkeletonScopeObject>;
45
+ }) | undefined;
46
+ };
47
+ emit: any;
48
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
49
+ [key: string]: any;
50
+ }> & {
51
+ __ctx?: {
52
+ props: {
53
+ config: TSchemaConfig<TSkeletonScopeObject>;
54
+ showSkeleton: boolean;
55
+ scope: TSkeletonScopeObject;
56
+ colorSchema?: ISkeletonizerColorSchema | undefined;
57
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
58
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
59
+ attrs: any;
60
+ slots: Readonly<{
61
+ default?: ((props: {
62
+ scope: TSkeletonScopeObject | UnwrapRef<TSkeletonScopeObject>;
63
+ }) => {
64
+ scope: TSkeletonScopeObject | UnwrapRef<TSkeletonScopeObject>;
65
+ }) | undefined;
66
+ }> & {
67
+ default?: ((props: {
68
+ scope: TSkeletonScopeObject | UnwrapRef<TSkeletonScopeObject>;
69
+ }) => {
70
+ scope: TSkeletonScopeObject | UnwrapRef<TSkeletonScopeObject>;
71
+ }) | undefined;
72
+ };
73
+ emit: any;
74
+ } | undefined;
75
+ };
76
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import { default as SkeletonizerSkeleton } from './components/SkeletonizerSkeleton.vue';
2
+ import { App } from 'vue';
3
+
4
+ declare const _default: {
5
+ install: (app: App) => void;
6
+ };
7
+ export default _default;
8
+ export { SkeletonizerSkeleton };
@@ -1,4 +1,4 @@
1
- import { defineComponent as S, reactive as D, watch as z, resolveDirective as C, openBlock as f, createElementBlock as b, Fragment as I, renderList as N, withDirectives as x, renderSlot as y } from "vue";
1
+ import { defineComponent as S, reactive as D, watch as z, resolveDirective as C, openBlock as f, createElementBlock as b, Fragment as x, renderList as I, withDirectives as N, renderSlot as y } from "vue";
2
2
  var w = (i, e, t) => {
3
3
  if (!e.has(i))
4
4
  throw TypeError("Cannot " + t);
@@ -681,7 +681,7 @@ const V = /* @__PURE__ */ S({
681
681
  { immediate: !0 }
682
682
  ), (s, m) => {
683
683
  const u = C("skeletonize");
684
- return s.showSkeleton ? (f(!0), b(I, { key: 0 }, N(t.viewModels, (h, c) => x((f(), b("div", { key: c }, [
684
+ return s.showSkeleton ? (f(!0), b(x, { key: 0 }, I(t.viewModels, (h, c) => N((f(), b("div", { key: c }, [
685
685
  y(s.$slots, "default", {
686
686
  scope: h.value
687
687
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skeletonizer/vue",
3
- "version": "0.0.10-alpha.0",
3
+ "version": "0.0.11-alpha.0",
4
4
  "description": "The way to skeletonize your Vue.js components",
5
5
  "author": "Luka Varga",
6
6
  "license": "MIT",
@@ -24,6 +24,7 @@
24
24
  "require": "./dist/skeletonizer-vue.umd.js"
25
25
  }
26
26
  },
27
+ "types": "./dist/index.d.ts",
27
28
  "files": [
28
29
  "dist"
29
30
  ],
@@ -66,9 +67,10 @@
66
67
  "npm-run-all": "^4.1.5",
67
68
  "sass": "^1.72.0",
68
69
  "typescript": "^5.4.3",
69
- "vite": "^5.2.7",
70
+ "vite": "^5.2.10",
71
+ "vite-plugin-dts": "^3.9.0",
70
72
  "vitest": "1.5.1",
71
- "vue": "^3.4.21",
73
+ "vue": "^3.4.25",
72
74
  "vue-eslint-parser": "^9.4.2",
73
75
  "vue-tsc": "^1.8.27",
74
76
  "webdriverio": "^8.35.1"
@@ -77,5 +79,5 @@
77
79
  "**/*.{scss,css}": "stylelint --fix",
78
80
  "**/*.{ts,js,.vue}": "eslint --fix"
79
81
  },
80
- "gitHead": "3cfb823e233c3b596348d628c8d561b02f5d7ca7"
82
+ "gitHead": "58cc4586cb75166dd55d5170df7dd195c5aeac88"
81
83
  }
File without changes