@templatical/media-library 0.8.0 → 0.8.2

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,11 +1,19 @@
1
- import { AuthManager } from '../../core/src/cloud/index.ts';
1
+ import type { AuthManager } from '@templatical/core/cloud';
2
2
  import { ComponentOptionsMixin } from 'vue';
3
3
  import { ComponentProvideOptions } from 'vue';
4
4
  import { ComputedRef } from 'vue';
5
5
  import { DefineComponent } from 'vue';
6
6
  import { PublicProps } from 'vue';
7
7
  import { Ref } from 'vue';
8
- import { SdkAuthConfig } from '../../../core/src/cloud/index.ts';
8
+ import type { SdkAuthConfig } from '@templatical/core/cloud';
9
+
10
+ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
11
+ select: (item: MediaItem) => any;
12
+ close: () => any;
13
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ onSelect?: ((item: MediaItem) => any) | undefined;
15
+ onClose?: (() => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
9
17
 
10
18
  declare type __VLS_Props = {
11
19
  visible: boolean;
@@ -213,13 +221,7 @@ export declare interface MediaLibraryInstance {
213
221
  unmount(): void;
214
222
  }
215
223
 
216
- export declare const MediaLibraryModal: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
217
- select: (item: MediaItem) => any;
218
- close: () => any;
219
- }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
220
- onSelect?: ((item: MediaItem) => any) | undefined;
221
- onClose?: (() => any) | undefined;
222
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
224
+ export declare const MediaLibraryModal: typeof __VLS_export;
223
225
 
224
226
  export declare interface MediaRequestContext {
225
227
  accept?: MediaCategory[];
@@ -5,6 +5,7 @@ import { Cropper as re } from "vue-advanced-cropper";
5
5
  import { onClickOutside as ie, useClipboard as ae, useDebounceFn as oe, useDropZone as se, useEventListener as ce, useFileDialog as le, useIntersectionObserver as ue } from "@vueuse/core";
6
6
  //#region src/api-client.ts
7
7
  var de = class {
8
+ authManager;
8
9
  constructor(e) {
9
10
  this.authManager = e;
10
11
  }
package/package.json CHANGED
@@ -1,24 +1,23 @@
1
1
  {
2
2
  "name": "@templatical/media-library",
3
3
  "description": "Media library management for Templatical email editor",
4
- "version": "0.8.0",
4
+ "version": "0.8.2",
5
5
  "bugs": "https://github.com/templatical/sdk/issues",
6
6
  "dependencies": {
7
- "@lucide/vue": "^1.11.0",
8
- "@vueuse/core": "^14.2.1",
7
+ "@lucide/vue": "^1.16.0",
8
+ "@vueuse/core": "^14.3.0",
9
9
  "vue-advanced-cropper": "^2.8.9",
10
- "@templatical/core": "0.8.0",
11
- "@templatical/types": "0.8.0"
10
+ "@templatical/core": "0.8.2",
11
+ "@templatical/types": "0.8.2"
12
12
  },
13
13
  "devDependencies": {
14
- "@vitejs/plugin-vue": "^6.0.6",
15
- "@vue/test-utils": "^2.4.8",
14
+ "@vitejs/plugin-vue": "^6.0.7",
15
+ "@vue/test-utils": "^2.4.10",
16
16
  "typescript": "^6.0.3",
17
- "vite": "^8.0.10",
18
- "vite-plugin-dts": "^4.5.4",
19
- "vitest": "^4.1.5",
20
- "vue": "^3.5.33",
21
- "vue-tsc": "^3.2.7"
17
+ "vite": "^8.0.13",
18
+ "vitest": "^4.1.6",
19
+ "vue": "^3.5.34",
20
+ "vue-tsc": "^3.2.9"
22
21
  },
23
22
  "exports": {
24
23
  ".": {
@@ -56,8 +55,8 @@
56
55
  "type": "module",
57
56
  "types": "./dist/index.d.ts",
58
57
  "scripts": {
59
- "build": "vite build",
60
- "build:all": "vite build && vite build --config vite.cdn.config.ts",
58
+ "build": "vite build && vue-tsc -p tsconfig.build.json && api-extractor run --local && rm -rf dist/types",
59
+ "build:all": "pnpm run build && vite build --config vite.cdn.config.ts",
61
60
  "build:cdn": "vite build --config vite.cdn.config.ts",
62
61
  "test": "vitest run",
63
62
  "typecheck": "vue-tsc --noEmit"