@templatical/media-library 0.26.2 → 0.27.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/dist/cdn/media-library.js +894 -888
- package/dist/cdn/media-library.js.map +1 -1
- package/dist/index.d.ts +18 -0
- package/dist/templatical-media-library.js +660 -667
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { DefineComponent } from 'vue';
|
|
|
6
6
|
import { PublicProps } from 'vue';
|
|
7
7
|
import { Ref } from 'vue';
|
|
8
8
|
import type { SdkAuthConfig } from '@templatical/core/cloud';
|
|
9
|
+
import type { UsePlanConfigReturn } from '@templatical/core/cloud';
|
|
9
10
|
|
|
10
11
|
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
11
12
|
select: (item: MediaItem) => any;
|
|
@@ -18,6 +19,23 @@ onClose?: (() => any) | undefined;
|
|
|
18
19
|
declare type __VLS_Props = {
|
|
19
20
|
visible: boolean;
|
|
20
21
|
accept?: MediaCategory[];
|
|
22
|
+
/**
|
|
23
|
+
* Authenticated Cloud session. **A prop, not an injection.** An injection would
|
|
24
|
+
* have to agree with the host on key *identity*: a bare string never resolves
|
|
25
|
+
* the `Symbol` `@templatical/editor` provides, and the miss is silent —
|
|
26
|
+
* `undefined` here means the library opens and does nothing. A prop is checked
|
|
27
|
+
* at compile time, which makes that class of miss impossible rather than merely
|
|
28
|
+
* fixed.
|
|
29
|
+
*/
|
|
30
|
+
authManager: AuthManager;
|
|
31
|
+
/** Scopes every request. Same story as {@link authManager}. */
|
|
32
|
+
projectId: string;
|
|
33
|
+
/**
|
|
34
|
+
* The active plan's config — media limits and the storage gauge. Re-provided
|
|
35
|
+
* under `PLAN_CONFIG_KEY` for the five descendants that call
|
|
36
|
+
* `useMediaCategories`, which is why this one is a prop *and* a provide.
|
|
37
|
+
*/
|
|
38
|
+
planConfig: UsePlanConfigReturn;
|
|
21
39
|
/**
|
|
22
40
|
* Mount target for the modal's teleport. When provided, the modal and
|
|
23
41
|
* its sub-modals render inside this element instead of `document.body`
|