@vnejs/contracts.views.screens.gallery 0.2.0 → 0.2.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 +1 -1
- package/dist/params.d.ts +10 -0
- package/dist/params.js +2 -0
- package/package.json +1 -1
- package/src/index.ts +8 -1
- package/src/params.ts +11 -0
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export type PluginName = typeof PLUGIN_NAME;
|
|
|
6
6
|
export { SUBSCRIBE_EVENTS };
|
|
7
7
|
export type { SubscribeEvents } from "./events.js";
|
|
8
8
|
export { PARAMS };
|
|
9
|
-
export type { GalleryTab, GalleryTabContent, GalleryTabs, Params, ViewProps } from "./params.js";
|
|
9
|
+
export type { GalleryTab, GalleryTabContent, GalleryTabContentVariation, GalleryTabs, Params, ViewProps, } from "./params.js";
|
|
10
10
|
declare module "@vnejs/shared" {
|
|
11
11
|
interface VnePluginEventsMap extends Record<typeof PLUGIN_NAME, typeof SUBSCRIBE_EVENTS> {
|
|
12
12
|
}
|
package/dist/params.d.ts
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import type { PositionBoxProps, WidenViewProps } from "@vnejs/uis.react.position-box";
|
|
2
|
+
export type GalleryTabContentVariation = {
|
|
3
|
+
layerChildType: string;
|
|
4
|
+
name: string;
|
|
5
|
+
parts: Record<string, string | number>;
|
|
6
|
+
check?: string;
|
|
7
|
+
};
|
|
2
8
|
export type GalleryTabContent = {
|
|
3
9
|
check: string;
|
|
4
10
|
mediaType: string;
|
|
11
|
+
layerChildType?: string;
|
|
5
12
|
name: string;
|
|
6
13
|
fullName: string;
|
|
14
|
+
variations?: GalleryTabContentVariation[];
|
|
7
15
|
};
|
|
8
16
|
export type GalleryTab = {
|
|
9
17
|
locKey: string;
|
|
@@ -60,6 +68,7 @@ export type ViewProps = WidenViewProps<typeof VIEW_PROPS_DEFAULT>;
|
|
|
60
68
|
export declare const VIEW_PROPS: ViewProps;
|
|
61
69
|
export declare const ROWS: number;
|
|
62
70
|
export declare const COLUMNS: number;
|
|
71
|
+
export declare const AUDIO_NAME: string;
|
|
63
72
|
declare const PARAMS_DEFAULT: {
|
|
64
73
|
TABS: GalleryTabs;
|
|
65
74
|
BACKGROUND: "save";
|
|
@@ -109,6 +118,7 @@ declare const PARAMS_DEFAULT: {
|
|
|
109
118
|
};
|
|
110
119
|
ROWS: number;
|
|
111
120
|
COLUMNS: number;
|
|
121
|
+
AUDIO_NAME: string;
|
|
112
122
|
};
|
|
113
123
|
export type Params = WidenViewProps<typeof PARAMS_DEFAULT>;
|
|
114
124
|
export declare const PARAMS: Params;
|
package/dist/params.js
CHANGED
|
@@ -25,6 +25,7 @@ const VIEW_PROPS_DEFAULT = {
|
|
|
25
25
|
export const VIEW_PROPS = VIEW_PROPS_DEFAULT;
|
|
26
26
|
export const ROWS = 3;
|
|
27
27
|
export const COLUMNS = 3;
|
|
28
|
+
export const AUDIO_NAME = "";
|
|
28
29
|
const PARAMS_DEFAULT = {
|
|
29
30
|
TABS,
|
|
30
31
|
BACKGROUND,
|
|
@@ -34,5 +35,6 @@ const PARAMS_DEFAULT = {
|
|
|
34
35
|
VIEW_PROPS,
|
|
35
36
|
ROWS,
|
|
36
37
|
COLUMNS,
|
|
38
|
+
AUDIO_NAME,
|
|
37
39
|
};
|
|
38
40
|
export const PARAMS = PARAMS_DEFAULT;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -9,7 +9,14 @@ export type PluginName = typeof PLUGIN_NAME;
|
|
|
9
9
|
export { SUBSCRIBE_EVENTS };
|
|
10
10
|
export type { SubscribeEvents } from "./events.js";
|
|
11
11
|
export { PARAMS };
|
|
12
|
-
export type {
|
|
12
|
+
export type {
|
|
13
|
+
GalleryTab,
|
|
14
|
+
GalleryTabContent,
|
|
15
|
+
GalleryTabContentVariation,
|
|
16
|
+
GalleryTabs,
|
|
17
|
+
Params,
|
|
18
|
+
ViewProps,
|
|
19
|
+
} from "./params.js";
|
|
13
20
|
|
|
14
21
|
declare module "@vnejs/shared" {
|
|
15
22
|
interface VnePluginEventsMap extends Record<typeof PLUGIN_NAME, typeof SUBSCRIBE_EVENTS> {}
|
package/src/params.ts
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
import type { PositionBoxProps, WidenViewProps } from "@vnejs/uis.react.position-box";
|
|
2
2
|
|
|
3
|
+
export type GalleryTabContentVariation = {
|
|
4
|
+
layerChildType: string;
|
|
5
|
+
name: string;
|
|
6
|
+
parts: Record<string, string | number>;
|
|
7
|
+
check?: string;
|
|
8
|
+
};
|
|
9
|
+
|
|
3
10
|
export type GalleryTabContent = {
|
|
4
11
|
check: string;
|
|
5
12
|
mediaType: string;
|
|
13
|
+
layerChildType?: string;
|
|
6
14
|
name: string;
|
|
7
15
|
fullName: string;
|
|
16
|
+
variations?: GalleryTabContentVariation[];
|
|
8
17
|
};
|
|
9
18
|
|
|
10
19
|
export type GalleryTab = {
|
|
@@ -49,6 +58,7 @@ export const VIEW_PROPS: ViewProps = VIEW_PROPS_DEFAULT;
|
|
|
49
58
|
|
|
50
59
|
export const ROWS: number = 3;
|
|
51
60
|
export const COLUMNS: number = 3;
|
|
61
|
+
export const AUDIO_NAME: string = "";
|
|
52
62
|
|
|
53
63
|
const PARAMS_DEFAULT = {
|
|
54
64
|
TABS,
|
|
@@ -59,6 +69,7 @@ const PARAMS_DEFAULT = {
|
|
|
59
69
|
VIEW_PROPS,
|
|
60
70
|
ROWS,
|
|
61
71
|
COLUMNS,
|
|
72
|
+
AUDIO_NAME,
|
|
62
73
|
};
|
|
63
74
|
|
|
64
75
|
export type Params = WidenViewProps<typeof PARAMS_DEFAULT>;
|