@skeletonizer/vue 0.0.18-alpha.0 → 0.0.20-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.
package/README.md CHANGED
@@ -1,46 +1,275 @@
1
- # skeletonizer
1
+ # @skeletonizer/vue
2
+ This is the Vue adapter for Skeletonizer. It provides a simple way to create skeletonized views for your Vue application.
2
3
 
3
- This template should help get you started developing with Vue 3 in Vite.
4
+ ## Installation
5
+ To install the package, run the following command:
6
+ `npm install @skeletonizer/vue @skeletonizer/utils --save`
4
7
 
5
- ## Recommended IDE Setup
8
+ `@skeletonizer/vue` is always used in conjunction with `@skeletonizer/utils`. The `@skeletonizer/utils` package provides the core functionality for creating skeletonized views, while the `@skeletonizer/vue` package provides the Vue-specific functionality. **The versions should always match**.
6
9
 
7
- [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
10
+ ## main.ts
11
+ In your `main.ts` file (where you do `createApp`), you need to install the `SkeletonizerPlugin`. The plugin provides the `SkeletonizerSkeleton` component and directive that will be used in your Vue components.
8
12
 
9
- ## Type Support for `.vue` Imports in TS
13
+ ```typescript
14
+ import { createApp } from 'vue';
15
+ import App from './App.vue';
16
+ import { SkeletonizerPlugin } from '@skeletonizer/vue';
10
17
 
11
- TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
18
+ createApp(App)
19
+ .use(SkeletonizerPlugin)
20
+ .mount('#app')
21
+ ```
12
22
 
13
- If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
23
+ ## Component Adjustments
24
+ Generally speaking, all you need to do to use the skeletonizer in the template, is to wrap the part of the template you wish to skeletonize in the `<skeletonizer-skeleton>` component. The `skeletonizer.skeletonConfig`, `skeletonizer.showSkeleton` and `scope` properties must be passed to the `<skeletonizer-skeleton>` as inputs.
25
+ Furthermore, all the data that you wish to access in the skeletonized part of the template must be accessed through the `skeletonizer.proxy(context)` method, except the data that you provide and is available even whilst the data is being loaded (ie. `:show-skeleton="true"`)..
14
26
 
15
- 1. Disable the built-in TypeScript Extension
16
- 1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette
17
- 2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
18
- 2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
27
+ As far as the template goes, it essentially means transforming the code from this:
28
+ ```html
29
+ <div>{{ somePropOrMethodCallAvailableAsync }}</div>
30
+ <div>{{ someAlreadyHardCodedOrInputBoundPropAvailableSync }} </div>
31
+ ```
19
32
 
20
- ## Customize configuration
33
+ into this:
21
34
 
22
- See [Vite Configuration Reference](https://vitejs.dev/config/).
35
+ ```html
36
+ <skeletonizer-skeleton [showSkeleton]="showSkeleton" [config]="skeletonConfig" [scope]="{ somePropOrMethodCallAvailableAsync } ">
37
+ <div>{{ proxy(context).somePropOrMethodCallAvailableAsync }}</div>
38
+ <div>{{ someAlreadyHardCodedOrInputBoundPropAvailableSync }} </div>
39
+ </skeletonizer-skeleton>
40
+ ```
23
41
 
24
- ## Project Setup
42
+ As long as the shape of the properties you access within the skeleton part of the template matches the shape of the data you provide in the `scope` and `skeletonConfig` properties, the skeletonized view will be in sync with the actual view, regardless of changes to the design.
25
43
 
26
- ```sh
27
- npm install
28
- ```
44
+ ## Usage
45
+ You can use Skeletonizer either in a standalone component or in a component that is a part of a module.
29
46
 
30
- ### Compile and Hot-Reload for Development
47
+ If you wish to use Skeletonizer in a standalone component, you need to add `SkeletonizerSkeletonComponent` in the imports of the component.
48
+ The usage in a component that is a part of a module is the same as the standalone component, but you need to add `SkeletonizerSkeletonComponent` in the imports of the **module** where the component is declared.
31
49
 
32
- ```sh
33
- npm run dev
34
- ```
50
+ Every component that uses Skeletonizer should extend `SkeletonAbstractComponent`, which is available in `@skeletonizer/utils`.
51
+ The `SkeletonAbstractComponent` requires you to pass a type argument that represents the data model of the **part(s) of the component that you intend to skeletonize**.
52
+ It also requires you to implement the `skeletonConfig` (type validated against the type argument you pass to `SkeletonAbstractComponent`) and `showSkeleton` properties which must be passed to the `SkeletonizerSkeletonComponent` as inputs.
53
+ By extending the `SkeletonAbstractComponent`, you also get access to the `proxy` method via which you can (type) safely access props and methods **within the skeletonized part of the current component**.
54
+
55
+ In the skeletonized part of the template, you **must** access the data through the `proxy(context)` method.
56
+ You can think of `proxy(context)` in the same way as you would think of `this` in a class method (or in the template, where the `this` is usually omitted when accessing props / methods and we usually call `foo` instead of `this.foo`). The only difference is that when using `proxy(context)`, the content-projected template will use the mocked values when the `showSkeleton` is `true`, and resolved values when `showSkeleton` is `false` - all while maintaining the type safety.
57
+
58
+ For more details about the `SkeletonAbstractComponent`, see the [SkeletonAbstractComponent](/packages/utils/README.md#skeletonabstractcomponent) section.
59
+
60
+ For more details about the `SchemaItem` property, see the [SchemaItem](/packages/utils/README.md#schemaitem) section.
61
+
62
+ For more details about the `skeletonConfig` property, see the [TSchemaConfig](/packages/utils/README.md#tschemaconfig) section.
63
+
64
+
65
+ ```typescript
66
+ import { Component } from '@angular/core';
67
+ import { SkeletonizerSkeletonComponent } from '@skeletonizer/angular';
68
+ import { SchemaItem, SkeletonAbstractComponent, TSchemaConfig } from '@skeletonizer/utils';
69
+ import { DomSanitizer } from '@angular/platform-browser';
70
+
71
+ interface IResource {
72
+ title: string;
73
+ link: string;
74
+ svg: string;
75
+ }
76
+
77
+ // the svgs are just for the sake of the example
78
+ const learnNgSvg: string = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z"/></svg>';
79
+
80
+ const cliDocsSvg: string = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"/></svg>';
81
+
82
+ const loadingSvg: string = '<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><style>.spinner{transform-origin:center;animation:spinner .75s linear infinite}@keyframes spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}</style><g class="spinner"><circle cx="12" cy="2.5" r="1.5" opacity=".14"/><circle cx="16.75" cy="3.77" r="1.5" opacity=".29"/><circle cx="20.23" cy="7.25" r="1.5" opacity=".43"/><circle cx="21.50" cy="12.00" r="1.5" opacity=".57"/><circle cx="20.23" cy="16.75" r="1.5" opacity=".71"/><circle cx="16.75" cy="20.23" r="1.5" opacity=".86"/><circle cx="12" cy="21.5" r="1.5"/></g></svg>';
83
+
84
+ type TSkeletonizedPart = Pick<AppComponent, 'resources' | 'otherPropWeWantToUseInSkeletonizedPart'>;
85
+
86
+ @Component({
87
+ selector: 'my-component',
88
+ template: `
89
+ <h2>{{ pageTitle }}</h2>
90
+
91
+ <skeletonizer-skeleton [showSkeleton]="showSkeleton" [config]="skeletonConfig" [scope]="{ resources, otherPropWeWantToUseInSkeletonizedPart }">
92
+ <ng-template let-context>
93
+ <span>{{ proxy(context).otherPropWeWantToUseInSkeletonizedPart }}</span>
94
+
95
+ <a *ngFor="let resource of proxy(context).resources" target="_blank" rel="noopener" [href]="resource.link">
96
+ <div [innerHTML]="sanitizer.bypassSecurityTrustHtml(resource.svg)"></div>
97
+ <span>{{ resource.title }}</span>
98
+ </a>
99
+ </ng-template>
100
+ </skeletonizer-skeleton>
101
+ `,
102
+ styleUrls: ['./my-component.component.scss'],
103
+ // for standalone components, otherwise add SkeletonizerSkeletonComponent to the module imports of the module where MyComponent is declared
104
+ // standalone: true,
105
+ // imports: [SkeletonizerSkeletonComponent, NgFor], // ngFor is just for the sake of the example where the *ngFor is used in the template
106
+ })
107
+ export class MyComponent extends SkeletonAbstractComponent<TSkeletonizedPart> implements OnInit {
108
+ public pageTitle: string = 'Some prop that we do not wish to skeletonize, but wish to use in the view nonetheless';
109
+ public otherPropWeWantToUseInSkeletonizedPart: string = 'angular';
110
+
111
+ public resources: IResource[] = [];
112
+ public showSkeleton: boolean = true;
35
113
 
36
- ### Type-Check, Compile and Minify for Production
114
+ public readonly skeletonConfig: TSchemaConfig<TSkeletonizedPart> = {
115
+ repeat: 1,
116
+ schemaGenerator: () => ({
117
+ otherPropWeWantToUseInSkeletonizedPart: new SchemaItem<string>().words(3),
118
+ // Array.from({ length: 5 }, () => ({ ... })) is just a simple way of creating an array of 5 objects - you could also hardcode the array if you wanted to
119
+ resources: Array.from({ length: 5 }, () => ({
120
+ title: new SchemaItem<string>().words(3),
121
+ link: new SchemaItem().identical('https://www.google.com'),
122
+ svg: new SchemaItem().identical(loadingSvg),
123
+ })),
124
+ }),
125
+ };
37
126
 
38
- ```sh
39
- npm run build
127
+ public constructor(
128
+ public readonly sanitizer: DomSanitizer,
129
+ ) {
130
+ super();
131
+ }
132
+
133
+ public ngOnInit(): void {
134
+ // simulate loading data
135
+ setTimeout(() => {
136
+ this.resources = [
137
+ {
138
+ title: 'Mocked Resolved Resource #1',
139
+ link: 'https://github.com/lukaVarga/skeletonizer/tree/main/packages/angular/projects/skeletonizer',
140
+ svg: learnNgSvg,
141
+ },
142
+ {
143
+ title: 'Mocked Resolved Resource #2',
144
+ link: 'https://github.com/lukaVarga/skeletonizer/tree/main',
145
+ svg: cliDocsSvg,
146
+ },
147
+ ];
148
+
149
+ this.otherPropWeWantToUseInSkeletonizedPart = 'loaded title'
150
+
151
+ this.showSkeleton = false;
152
+ }, Math.max(3_000, Math.random() * 10_000));
153
+ }
154
+ }
40
155
  ```
41
156
 
42
- ### Run Unit Tests with [Vitest](https://vitest.dev/)
157
+ You can also skeletonize multiple independent parts (ie. parts for which the data gets loaded independently of each-other) of the same component by using the `<skeletonizer-skeleton>` multiple times in the template. Each `skeletonizer-skeleton` component should, in this case, receive its own `showSkeleton` input property, while the `config` and the `scope` can be shared for all of them. That way, the config is defined in a single place and all skeletonized parts enjoy the same level of type safety via the known `proxy(context)` method.
158
+ You can also provide separate config and scope for each `skeletonizer-skeleton` component if needed, although it is recommended that you do not extend `SkeletonAbstractComponent` in this case, and you will need to provide your own (separate) `proxy`-like methods for each of the skeletonized parts of the component to maintain the same level of type safety in the template.
159
+
160
+ ```typescript
161
+ import { Component } from '@angular/core';
162
+ import { SkeletonizerSkeletonComponent } from '@skeletonizer/angular';
163
+ import { SchemaItem, SkeletonAbstractComponent, TSchemaConfig } from '@skeletonizer/utils';
164
+ import { DomSanitizer } from '@angular/platform-browser';
165
+
166
+ interface IResource {
167
+ title: string;
168
+ link: string;
169
+ svg: string;
170
+ }
171
+
172
+ // the svgs are just for the sake of the example
173
+ const learnNgSvg: string = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z"/></svg>';
174
+
175
+ const loadingSvg: string = '<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><style>.spinner{transform-origin:center;animation:spinner .75s linear infinite}@keyframes spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}</style><g class="spinner"><circle cx="12" cy="2.5" r="1.5" opacity=".14"/><circle cx="16.75" cy="3.77" r="1.5" opacity=".29"/><circle cx="20.23" cy="7.25" r="1.5" opacity=".43"/><circle cx="21.50" cy="12.00" r="1.5" opacity=".57"/><circle cx="20.23" cy="16.75" r="1.5" opacity=".71"/><circle cx="16.75" cy="20.23" r="1.5" opacity=".86"/><circle cx="12" cy="21.5" r="1.5"/></g></svg>';
176
+
177
+ type TSkeletonizedPart = Pick<AppComponent, 'resources' | 'otherPropWeWantToUseInSkeletonizedPart'>;
178
+
179
+ @Component({
180
+ selector: 'my-component',
181
+ template: `
182
+ <h2>{{ pageTitle }}</h2>
183
+
184
+ <skeletonizer-skeleton [showSkeleton]="showSkeleton" [config]="skeletonConfig" [scope]="{ resources, otherPropWeWantToUseInSkeletonizedPart }">
185
+ <ng-template let-context>
186
+ <div class="card-container">
187
+ <a *ngFor="let resource of proxy(context).resources" class="card" target="_blank" rel="noopener" [href]="resource.link">
188
+ <div [innerHTML]="sanitizer.bypassSecurityTrustHtml(resource.svg)"></div>
189
+ <span>{{ resource.title }}</span>
190
+ </a>
191
+ </div>
192
+ </ng-template>
193
+ </skeletonizer-skeleton>
43
194
 
44
- ```sh
45
- npm run test:unit
195
+ <skeletonizer-skeleton [showSkeleton]="showOtherSkeleton" [config]="skeletonConfig" [scope]="{ resources, otherPropWeWantToUseInSkeletonizedPart }">
196
+ <ng-template let-context>
197
+ <span>{{ proxy(context).otherPropWeWantToUseInSkeletonizedPart }}</span>
198
+ </ng-template>
199
+ </skeletonizer-skeleton>
200
+ `,
201
+ styleUrls: ['./my-component.component.scss'],
202
+ // for standalone components, otherwise add SkeletonizerSkeletonComponent to the module imports of the module where MyComponent is declared
203
+ // standalone: true,
204
+ // imports: [SkeletonizerSkeletonComponent, NgFor], // ngFor is just for the sake of the example where the *ngFor is used in the template
205
+ })
206
+ export class MyComponent extends SkeletonAbstractComponent<TSkeletonizedPart> implements OnInit {
207
+ public pageTitle: string = 'Some prop that we do not wish to skeletonize, but wish to use in the view nonetheless';
208
+ public otherPropWeWantToUseInSkeletonizedPart: string = 'angular';
209
+
210
+ public resources: IResource[] = [];
211
+ public showSkeleton: boolean = true;
212
+
213
+ public readonly skeletonConfig: TSchemaConfig<TSkeletonizedPart> = {
214
+ repeat: 1,
215
+ schemaGenerator: () => ({
216
+ otherPropWeWantToUseInSkeletonizedPart: new SchemaItem<string>().words(3),
217
+ // Array.from({ length: 5 }, () => ({ ... })) is just a simple way of creating an array of 5 objects - you could also hardcode the array if you wanted to
218
+ resources: Array.from({ length: 5 }, () => ({
219
+ title: new SchemaItem<string>().words(3),
220
+ link: new SchemaItem().identical('https://www.google.com'),
221
+ svg: new SchemaItem().identical(loadingSvg),
222
+ })),
223
+ }),
224
+ };
225
+
226
+ public constructor(
227
+ public readonly sanitizer: DomSanitizer,
228
+ ) {
229
+ super();
230
+ }
231
+
232
+ public ngOnInit(): void {
233
+ setTimeout(() => {
234
+ this.resources = [
235
+ {
236
+ title: 'Mocked Resolved Resource #1',
237
+ link: 'https://github.com/lukaVarga/skeletonizer/tree/main/packages/angular/projects/skeletonizer',
238
+ svg: learnNgSvg,
239
+ },
240
+ {
241
+ title: 'Mocked Resolved Resource #2',
242
+ link: 'https://github.com/lukaVarga/skeletonizer/tree/main',
243
+ svg: cliDocsSvg,
244
+ },
245
+ ];
246
+
247
+ this.showSkeleton = false;
248
+ }, Math.max(3_000, Math.random() * 10_000));
249
+
250
+ setTimeout(() => {
251
+ this.showOtherSkeleton = false;
252
+ }, Math.max(6_000, Math.random() * 10_000));
253
+ }
254
+ }
46
255
  ```
256
+
257
+ ### Color Scheme
258
+ Generally speaking, you shouldn't need to adjust the color scheme of the skeletonized component in most cases. However, should you need to, the color scheme of the skeletonized views can be customized by providing the `colorScheme` property to the `SkeletonizerSkeletonComponent`.
259
+
260
+ For more details about the `colorScheme` property, see the [colorScheme](/packages/utils/README.md#colorscheme) section.
261
+
262
+ ## Contributing
263
+ For Angular adapter-specific contributions, run the following commands to get started:
264
+ - `npm install`
265
+ - adjust the code in the `packages/angular` directory
266
+ - run `npm run build` in the `packages/angular` directory
267
+ - adjust the code in the `packages/angular/src/app` directory to make sure the changes can easily be seen in the example app
268
+ - `npm run dev` in the `packages/angular` directory to start the example app
269
+ - update readme file in the `packages/angular` directory
270
+
271
+ Before submitting a pull request, make sure to run the following commands in `packages/angular` directory:
272
+ - `npm run lint`
273
+ - `npm run type-check`
274
+ - `npm run coverage`
275
+ - `npm run build`
@@ -1,14 +1,11 @@
1
- import { UnwrapRef } from 'vue';
2
1
  import { ISkeletonizerColorSchema, TSchemaConfig } from '@skeletonizer/utils';
3
-
2
+ import { UnwrapRef } from 'vue';
4
3
  declare const _default: <TSkeletonScopeObject extends object>(__VLS_props: {
5
4
  config: TSchemaConfig<TSkeletonScopeObject>;
6
5
  showSkeleton: boolean;
7
6
  scope: TSkeletonScopeObject;
8
7
  colorSchema?: ISkeletonizerColorSchema | undefined;
9
8
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, __VLS_ctx?: {
10
- attrs: any;
11
- emit: any;
12
9
  slots: Readonly<{
13
10
  default?: ((props: {
14
11
  scope: TSkeletonScopeObject | UnwrapRef<TSkeletonScopeObject>;
@@ -22,6 +19,8 @@ declare const _default: <TSkeletonScopeObject extends object>(__VLS_props: {
22
19
  scope: TSkeletonScopeObject | UnwrapRef<TSkeletonScopeObject>;
23
20
  }) | undefined;
24
21
  };
22
+ attrs: any;
23
+ emit: {};
25
24
  } | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
26
25
  props: {
27
26
  config: TSchemaConfig<TSkeletonScopeObject>;
@@ -44,7 +43,7 @@ declare const _default: <TSkeletonScopeObject extends object>(__VLS_props: {
44
43
  scope: TSkeletonScopeObject | UnwrapRef<TSkeletonScopeObject>;
45
44
  }) | undefined;
46
45
  };
47
- emit: any;
46
+ emit: {};
48
47
  }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
49
48
  [key: string]: any;
50
49
  }> & {
@@ -70,7 +69,10 @@ declare const _default: <TSkeletonScopeObject extends object>(__VLS_props: {
70
69
  scope: TSkeletonScopeObject | UnwrapRef<TSkeletonScopeObject>;
71
70
  }) | undefined;
72
71
  };
73
- emit: any;
72
+ emit: {};
74
73
  } | undefined;
75
74
  };
76
75
  export default _default;
76
+ type __VLS_PrettifyLocal<T> = {
77
+ [K in keyof T]: T[K];
78
+ } & {};
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { default as SkeletonizerPlugin } from './main';
2
- import { SkeletonizerComponentComposable } from './composables/skeletonizer.component.composable';
3
1
  import { default as SkeletonizerSkeleton } from './components/SkeletonizerSkeleton.vue';
4
-
2
+ import { SkeletonizerComponentComposable } from './composables/skeletonizer.component.composable';
3
+ import { default as SkeletonizerPlugin } from './main';
5
4
  export { SkeletonizerSkeleton, SkeletonizerComponentComposable, SkeletonizerPlugin };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skeletonizer/vue",
3
- "version": "0.0.18-alpha.0",
3
+ "version": "0.0.20-alpha.0",
4
4
  "description": "The way to skeletonize your Vue.js components",
5
5
  "author": "Luka Varga",
6
6
  "license": "MIT",
@@ -50,33 +50,33 @@
50
50
  "lint-staged": "lint-staged"
51
51
  },
52
52
  "peerDependencies": {
53
- "@skeletonizer/utils": "0.0.16-alpha.0",
53
+ "@skeletonizer/utils": "0.0.20-alpha.0",
54
54
  "vue": "^3.3.4"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@tsconfig/node18": "^2.0.1",
58
58
  "@types/jsdom": "^21.1.6",
59
59
  "@types/node": "^20.12.3",
60
- "@vitejs/plugin-vue": "^5.0.4",
61
- "@vitest/browser": "1.5.1",
62
- "@vue/test-utils": "^2.4.5",
60
+ "@vitejs/plugin-vue": "^5.1.4",
61
+ "@vitest/browser": "2.1.2",
62
+ "@vue/test-utils": "^2.4.6",
63
63
  "@vue/tsconfig": "^0.5.1",
64
64
  "eslint-plugin-vue": "^9.24.0",
65
65
  "jsdom": "^24.0.0",
66
66
  "npm-run-all": "^4.1.5",
67
67
  "sass": "^1.72.0",
68
68
  "typescript": "^5.4.3",
69
- "vite": "^5.2.10",
70
- "vite-plugin-dts": "^3.9.0",
71
- "vitest": "1.5.1",
72
- "vue": "^3.4.25",
69
+ "vite": "^5.4.8",
70
+ "vite-plugin-dts": "^4.2.3",
71
+ "vitest": "2.1.2",
72
+ "vue": "^3.5.11",
73
73
  "vue-eslint-parser": "^9.4.2",
74
- "vue-tsc": "^1.8.27",
75
- "webdriverio": "^8.35.1"
74
+ "vue-tsc": "^2.1.6",
75
+ "webdriverio": "^9.1.2"
76
76
  },
77
77
  "lint-staged": {
78
78
  "**/*.{scss,css}": "stylelint --fix",
79
79
  "**/*.{ts,js,.vue}": "eslint --fix"
80
80
  },
81
- "gitHead": "df7b44bcab02f415fbae5d3676de5df2b5011d05"
81
+ "gitHead": "8c8651dfea6a80f5b85e17ff097e6e23024cc7ac"
82
82
  }
@@ -1,9 +0,0 @@
1
- import { UnwrapNestedRefs } from 'vue';
2
- import { SkeletonAbstractComponent, TSchemaConfig } from '@skeletonizer/utils';
3
-
4
- export declare class SkeletonizerComponentComposable<T extends object> extends SkeletonAbstractComponent<T> {
5
- skeletonConfig: TSchemaConfig<T>;
6
- showSkeleton: boolean;
7
- private constructor();
8
- static generate<T extends object>(skeletonConfig: TSchemaConfig<T>, showSkeleton: boolean): UnwrapNestedRefs<SkeletonizerComponentComposable<T>>;
9
- }
package/dist/main.d.ts DELETED
@@ -1,6 +0,0 @@
1
- import { App } from 'vue';
2
-
3
- declare const _default: {
4
- install: (app: App) => void;
5
- };
6
- export default _default;