@nmorph/nmorph-ui-kit 2.2.48 → 2.2.49

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.
@@ -1,4 +1,4 @@
1
- const a = "2.2.48", e = {
1
+ const a = "2.2.49", e = {
2
2
  version: a
3
3
  };
4
4
  export {
@@ -1,5 +1,6 @@
1
1
  import { INmorphAudioPreviewProps } from './types';
2
2
  import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ import { NmorphAudioPreviewSurface } from '../..';
3
4
  declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphAudioPreviewProps, {
4
5
  audioRef: Ref<HTMLAudioElement, HTMLAudioElement>;
5
6
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
@@ -20,6 +21,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphAudioPre
20
21
  error: boolean;
21
22
  width: string | number;
22
23
  durationMs: number;
24
+ surface: NmorphAudioPreviewSurface;
25
+ embedded: boolean;
26
+ showIcon: boolean;
27
+ showHeader: boolean;
23
28
  compact: boolean;
24
29
  preload: "metadata" | "auto" | "none";
25
30
  downloadHref: string;
@@ -1,8 +1,13 @@
1
+ export type NmorphAudioPreviewSurface = 'card' | 'soft' | 'plain';
1
2
  export interface INmorphAudioPreviewProps {
2
3
  src: string;
3
4
  name?: string;
4
5
  durationMs?: number;
5
6
  width?: number | string;
7
+ surface?: NmorphAudioPreviewSurface;
8
+ embedded?: boolean;
9
+ showIcon?: boolean;
10
+ showHeader?: boolean;
6
11
  compact?: boolean;
7
12
  preload?: 'none' | 'metadata' | 'auto';
8
13
  downloadHref?: string;
@@ -1,6 +1,6 @@
1
1
  import { INmorphFileCardProps } from './types';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- import { NmorphFileCardSurface } from '../..';
3
+ import { NmorphFileCardSurface, NmorphFileCardMediaPreview } from '../..';
4
4
  declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphFileCardProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
5
5
  error: () => any;
6
6
  download: () => any;
@@ -14,13 +14,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphFileCard
14
14
  error: boolean;
15
15
  size: number;
16
16
  previewSrc: string;
17
+ surface: NmorphFileCardSurface;
17
18
  compact: boolean;
18
19
  downloadHref: string;
19
20
  errorText: string;
20
21
  showDefaultActions: boolean;
21
22
  extension: string;
22
23
  mimeType: string;
23
- surface: NmorphFileCardSurface;
24
+ mediaPreview: NmorphFileCardMediaPreview;
24
25
  showExtensionBadge: boolean;
25
26
  iconSurface: boolean;
26
27
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>, {
@@ -1,4 +1,5 @@
1
1
  export type NmorphFileCardSurface = 'card' | 'soft' | 'plain';
2
+ export type NmorphFileCardMediaPreview = 'none' | 'audio';
2
3
  export interface INmorphFileCardProps {
3
4
  name: string;
4
5
  extension?: string;
@@ -6,6 +7,7 @@ export interface INmorphFileCardProps {
6
7
  size?: number;
7
8
  previewSrc?: string;
8
9
  downloadHref?: string;
10
+ mediaPreview?: NmorphFileCardMediaPreview;
9
11
  surface?: NmorphFileCardSurface;
10
12
  showExtensionBadge?: boolean;
11
13
  iconSurface?: boolean;
@@ -1,7 +1,9 @@
1
1
  import { INmorphVideoPreviewProps } from './types';
2
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- import { NmorphVideoPreviewFit } from '../..';
4
- declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphVideoPreviewProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2
+ import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ import { NmorphVideoPreviewFit, NmorphVideoPreviewSurface } from '../..';
4
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphVideoPreviewProps, {
5
+ videoRef: Ref<HTMLVideoElement, HTMLVideoElement>;
6
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
5
7
  error: (val: Event) => any;
6
8
  pause: (val: Event) => any;
7
9
  play: (val: Event) => any;
@@ -21,6 +23,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphVideoPre
21
23
  width: string | number;
22
24
  fit: NmorphVideoPreviewFit;
23
25
  durationMs: number;
26
+ surface: NmorphVideoPreviewSurface;
24
27
  compact: boolean;
25
28
  preload: "metadata" | "auto" | "none";
26
29
  downloadHref: string;
@@ -30,7 +33,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphVideoPre
30
33
  playsinline: boolean;
31
34
  poster: string;
32
35
  controls: boolean;
33
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>, {
36
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
37
+ videoRef: HTMLVideoElement;
38
+ }, HTMLDivElement>, {
34
39
  actions?(_: {}): any;
35
40
  }>;
36
41
  export default _default;
@@ -1,4 +1,5 @@
1
1
  export type NmorphVideoPreviewFit = 'cover' | 'contain';
2
+ export type NmorphVideoPreviewSurface = 'card' | 'soft' | 'plain';
2
3
  export interface INmorphVideoPreviewProps {
3
4
  src: string;
4
5
  poster?: string;
@@ -6,6 +7,7 @@ export interface INmorphVideoPreviewProps {
6
7
  width?: number | string;
7
8
  height?: number | string;
8
9
  durationMs?: number;
10
+ surface?: NmorphVideoPreviewSurface;
9
11
  compact?: boolean;
10
12
  controls?: boolean;
11
13
  muted?: boolean;
@@ -10,10 +10,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphAlertCom
10
10
  title: string;
11
11
  type: "error" | "success" | "warning" | "info";
12
12
  id: string;
13
+ showIcon: boolean;
13
14
  bordered: boolean;
14
15
  closable: boolean;
15
16
  content: string;
16
- showIcon: boolean;
17
17
  closeIconPosition: string;
18
18
  backgroundColor: string;
19
19
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {