@vnejs/plugins.views.screens.gallery.full 0.1.2 → 0.1.3

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.
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.js ADDED
@@ -0,0 +1,5 @@
1
+ import { regPlugin } from "@vnejs/shared";
2
+ import { PARAMS, PLUGIN_NAME, SUBSCRIBE_EVENTS } from "@vnejs/plugins.views.screens.gallery.full.contract";
3
+ import { GalleryFullController } from "./modules/controller.js";
4
+ import { GalleryFullView } from "./modules/view.js";
5
+ regPlugin(PLUGIN_NAME, { events: SUBSCRIBE_EVENTS, params: PARAMS }, [GalleryFullController, GalleryFullView]);
@@ -0,0 +1,18 @@
1
+ import { ModuleController } from "@vnejs/module.components";
2
+ import type { GalleryFullPluginConstants, GalleryFullPluginEvents, GalleryFullPluginParams, GalleryFullPluginSettings } from "../types.js";
3
+ import type { GalleryFullChoosePayload, GalleryFullPluginState } from "../utils/gallery.full.js";
4
+ export declare class GalleryFullController extends ModuleController<GalleryFullPluginEvents, GalleryFullPluginConstants, GalleryFullPluginSettings, GalleryFullPluginParams, GalleryFullPluginState> {
5
+ name: string;
6
+ updateEvent: "vne:gallery_full:update";
7
+ emitHide: () => undefined;
8
+ controls: {
9
+ abstract_back: () => undefined;
10
+ abstract_menu: () => undefined;
11
+ abstract_gamemenu: () => undefined;
12
+ };
13
+ controlsIndex: number;
14
+ subscribe: () => void;
15
+ beforeShow: (args?: {}) => Promise<void>;
16
+ afterHide: () => void;
17
+ onGalleryViewChoose: ({ index }?: GalleryFullChoosePayload) => undefined;
18
+ }
@@ -0,0 +1,27 @@
1
+ import { ModuleController } from "@vnejs/module.components";
2
+ export class GalleryFullController extends ModuleController {
3
+ name = "gallery.full.controller";
4
+ updateEvent = this.EVENTS.GALLERY_FULL_VIEW.UPDATE;
5
+ emitHide = () => void this.emit(this.EVENTS.GALLERY_FULL_VIEW.HIDE);
6
+ controls = {
7
+ [this.CONST.CONTROLS.BUTTONS.BACK]: this.emitHide,
8
+ [this.CONST.CONTROLS.BUTTONS.MENU]: this.emitHide,
9
+ [this.CONST.CONTROLS.BUTTONS.GAMEMENU]: this.emitHide,
10
+ };
11
+ controlsIndex = this.PARAMS.GALLERY_FULL_VIEW.ZINDEX;
12
+ subscribe = () => {
13
+ this.on(this.EVENTS.GALLERY_FULL_VIEW.SHOW, this.onShow);
14
+ this.on(this.EVENTS.GALLERY_FULL_VIEW.HIDE, this.onHide);
15
+ this.on(this.EVENTS.GALLERY.CHOOSE, this.onGalleryViewChoose);
16
+ };
17
+ beforeShow = async (args = {}) => {
18
+ const { index = 0 } = args;
19
+ const galleryState = this.globalState?.["gallery.controller"];
20
+ const { fullName = "", mediaType = "" } = galleryState?.currentItems?.[index] ?? {};
21
+ return this.updateState({
22
+ bgSrc: (await this.loadImageMedia(fullName, mediaType, this.shared.settings[this.SETTINGS.LAYER.QUALITY])).src,
23
+ });
24
+ };
25
+ afterHide = () => this.setDefaultState();
26
+ onGalleryViewChoose = ({ index } = {}) => void this.emit(this.EVENTS.GALLERY_FULL_VIEW.SHOW, { index });
27
+ }
@@ -0,0 +1,10 @@
1
+ import { ModuleView } from "@vnejs/module.components";
2
+ import type { GalleryFullPluginConstants, GalleryFullPluginEvents, GalleryFullPluginParams, GalleryFullPluginSettings } from "../types.js";
3
+ import type { GalleryFullPluginState } from "../utils/gallery.full.js";
4
+ export declare class GalleryFullView extends ModuleView<GalleryFullPluginEvents, GalleryFullPluginConstants, GalleryFullPluginSettings, GalleryFullPluginParams, GalleryFullPluginState> {
5
+ name: string;
6
+ animationTime: number;
7
+ updateEvent: "vne:gallery_full:update";
8
+ renderFunc: import("@vnejs/module.components").ViewRenderFunc<GalleryFullPluginState>;
9
+ updateHandler: (state?: GalleryFullPluginState | undefined) => Promise<void>;
10
+ }
@@ -0,0 +1,9 @@
1
+ import { ModuleView } from "@vnejs/module.components";
2
+ import { render } from "../view/index.js";
3
+ export class GalleryFullView extends ModuleView {
4
+ name = "gallery.full.view";
5
+ animationTime = this.PARAMS.GALLERY_FULL_VIEW.TRANSITION;
6
+ updateEvent = this.EVENTS.GALLERY_FULL_VIEW.UPDATE;
7
+ renderFunc = render;
8
+ updateHandler = this.onUpdateStoreComponent;
9
+ }
@@ -0,0 +1,9 @@
1
+ import type { ModuleComponentsConstants, ModuleComponentsEvents, ModuleComponentsParams, ModuleComponentsSettings } from "@vnejs/module.components";
2
+ import type { SettingsKeys as LayerSettingsKeys, PluginName as LayerPluginName } from "@vnejs/plugins.canvas.layer.contract";
3
+ import type { Constants as ControlsConstants, PluginName as ControlsPluginName } from "@vnejs/plugins.controls.contract";
4
+ import type { PluginName as GalleryPluginName, SubscribeEvents as GallerySubscribeEvents } from "@vnejs/plugins.views.screens.gallery.contract";
5
+ import type { Params, PluginName, SubscribeEvents } from "@vnejs/plugins.views.screens.gallery.full.contract";
6
+ export type GalleryFullPluginEvents = ModuleComponentsEvents & Record<PluginName, SubscribeEvents> & Record<GalleryPluginName, GallerySubscribeEvents>;
7
+ export type GalleryFullPluginConstants = ModuleComponentsConstants & Record<ControlsPluginName, ControlsConstants>;
8
+ export type GalleryFullPluginSettings = ModuleComponentsSettings & Record<LayerPluginName, LayerSettingsKeys>;
9
+ export type GalleryFullPluginParams = ModuleComponentsParams & Record<PluginName, Params>;
package/dist/types.js ADDED
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,18 @@
1
+ export type GalleryFullPluginState = {
2
+ isShow: boolean;
3
+ isForce: boolean;
4
+ bgSrc?: string;
5
+ };
6
+ export type GalleryFullShowPayload = {
7
+ index?: number;
8
+ };
9
+ export type GalleryFullChoosePayload = {
10
+ index?: number;
11
+ };
12
+ export type GalleryControllerGlobalItem = {
13
+ fullName?: string;
14
+ mediaType?: string;
15
+ };
16
+ export type GalleryControllerGlobalState = {
17
+ currentItems?: GalleryControllerGlobalItem[];
18
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { ViewRenderFunc } from "@vnejs/module.components";
2
+ import type { GalleryFullPluginState } from "../utils/gallery.full.js";
3
+ export declare const render: ViewRenderFunc<GalleryFullPluginState>;
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { PositionBox, Screen, Svg, createRenderFunc, useCallback, useMemo, useStoreState } from "@vnejs/uis.react";
3
+ const GalleryFull = ({ store, onMount, PARAMS, emit, EVENTS }) => {
4
+ const { isShow = false, isForce = false, bgSrc = "" } = useStoreState(store, onMount);
5
+ const propsView = PARAMS.GALLERY_FULL_VIEW.VIEW_PROPS;
6
+ const propsScreen = useMemo(() => ({ ...propsView.screen, isShow, isForce, isDisableAutoread: isShow, bgSrc }), [isShow, isForce, bgSrc, propsView.screen]);
7
+ const onClose = useCallback(() => void emit(EVENTS.GALLERY_FULL_VIEW.HIDE), [emit, EVENTS.GALLERY_FULL_VIEW.HIDE]);
8
+ const propsClose = useMemo(() => ({ ...propsView.close.props, onClick: onClose }), [propsView.close.props, onClose]);
9
+ return (_jsx(Screen, { ...propsScreen, children: _jsx(PositionBox, { ...propsView.close.position, children: _jsx(Svg.Cross, { ...propsClose }) }) }));
10
+ };
11
+ export const render = createRenderFunc(GalleryFull);
package/package.json CHANGED
@@ -1,17 +1,47 @@
1
1
  {
2
2
  "name": "@vnejs/plugins.views.screens.gallery.full",
3
- "version": "0.1.2",
4
- "main": "index.js",
3
+ "version": "0.1.3",
4
+ "description": "",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "import": "./dist/index.js",
11
+ "require": "./dist/index.js",
12
+ "default": "./dist/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "src",
18
+ "tsconfig.json"
19
+ ],
5
20
  "scripts": {
6
21
  "test": "echo \"Error: no test specified\" && exit 1",
22
+ "build": "npx @vnejs/monorepo package",
7
23
  "publish:major:plugin": "npm run publish:major",
8
24
  "publish:minor:plugin": "npm run publish:minor",
9
25
  "publish:patch:plugin": "npm run publish:patch",
10
- "publish:major": "npm version major && npm publish --access public",
11
- "publish:minor": "npm version minor && npm publish --access public",
12
- "publish:patch": "npm version patch && npm publish --access public"
26
+ "publish:major": "npx @vnejs/monorepo publish major --access public",
27
+ "publish:minor": "npx @vnejs/monorepo publish minor --access public",
28
+ "publish:patch": "npx @vnejs/monorepo publish patch --access public"
13
29
  },
14
30
  "author": "",
15
31
  "license": "ISC",
16
- "description": ""
32
+ "dependencies": {
33
+ "@vnejs/plugins.views.screens.gallery.full.contract": "~0.0.1"
34
+ },
35
+ "peerDependencies": {
36
+ "@vnejs/module": "~0.0.1",
37
+ "@vnejs/module.components": "~0.0.1",
38
+ "@vnejs/plugins.canvas.layer.contract": "~0.0.1",
39
+ "@vnejs/plugins.controls.contract": "~0.0.1",
40
+ "@vnejs/plugins.views.screens.gallery.contract": "~0.0.1",
41
+ "@vnejs/shared": "~0.0.9",
42
+ "@vnejs/uis.react": "~0.1.0"
43
+ },
44
+ "devDependencies": {
45
+ "@vnejs/configs.ts-common": "~0.0.1"
46
+ }
17
47
  }
package/src/index.ts ADDED
@@ -0,0 +1,7 @@
1
+ import { regPlugin } from "@vnejs/shared";
2
+ import { PARAMS, PLUGIN_NAME, SUBSCRIBE_EVENTS } from "@vnejs/plugins.views.screens.gallery.full.contract";
3
+
4
+ import { GalleryFullController } from "./modules/controller.js";
5
+ import { GalleryFullView } from "./modules/view.js";
6
+
7
+ regPlugin(PLUGIN_NAME, { events: SUBSCRIBE_EVENTS, params: PARAMS }, [GalleryFullController, GalleryFullView]);
@@ -0,0 +1,50 @@
1
+ import { ModuleController } from "@vnejs/module.components";
2
+
3
+ import type { GalleryFullPluginConstants, GalleryFullPluginEvents, GalleryFullPluginParams, GalleryFullPluginSettings } from "../types.js";
4
+ import type {
5
+ GalleryControllerGlobalState,
6
+ GalleryFullChoosePayload,
7
+ GalleryFullPluginState,
8
+ GalleryFullShowPayload,
9
+ } from "../utils/gallery.full.js";
10
+
11
+ export class GalleryFullController extends ModuleController<
12
+ GalleryFullPluginEvents,
13
+ GalleryFullPluginConstants,
14
+ GalleryFullPluginSettings,
15
+ GalleryFullPluginParams,
16
+ GalleryFullPluginState
17
+ > {
18
+ name = "gallery.full.controller";
19
+
20
+ updateEvent = this.EVENTS.GALLERY_FULL_VIEW.UPDATE;
21
+
22
+ emitHide = () => void this.emit(this.EVENTS.GALLERY_FULL_VIEW.HIDE);
23
+
24
+ controls = {
25
+ [this.CONST.CONTROLS.BUTTONS.BACK]: this.emitHide,
26
+ [this.CONST.CONTROLS.BUTTONS.MENU]: this.emitHide,
27
+ [this.CONST.CONTROLS.BUTTONS.GAMEMENU]: this.emitHide,
28
+ };
29
+ controlsIndex = this.PARAMS.GALLERY_FULL_VIEW.ZINDEX;
30
+
31
+ subscribe = () => {
32
+ this.on(this.EVENTS.GALLERY_FULL_VIEW.SHOW, this.onShow);
33
+ this.on(this.EVENTS.GALLERY_FULL_VIEW.HIDE, this.onHide);
34
+
35
+ this.on(this.EVENTS.GALLERY.CHOOSE, this.onGalleryViewChoose);
36
+ };
37
+
38
+ beforeShow = async (args = {}) => {
39
+ const { index = 0 } = args as GalleryFullShowPayload;
40
+ const galleryState = this.globalState?.["gallery.controller"] as GalleryControllerGlobalState | undefined;
41
+ const { fullName = "", mediaType = "" } = galleryState?.currentItems?.[index] ?? {};
42
+
43
+ return this.updateState({
44
+ bgSrc: (await this.loadImageMedia(fullName, mediaType, this.shared.settings[this.SETTINGS.LAYER.QUALITY])).src,
45
+ });
46
+ };
47
+ afterHide = () => this.setDefaultState();
48
+
49
+ onGalleryViewChoose = ({ index }: GalleryFullChoosePayload = {}) => void this.emit(this.EVENTS.GALLERY_FULL_VIEW.SHOW, { index });
50
+ }
@@ -0,0 +1,21 @@
1
+ import { ModuleView } from "@vnejs/module.components";
2
+
3
+ import { render } from "../view/index.js";
4
+ import type { GalleryFullPluginConstants, GalleryFullPluginEvents, GalleryFullPluginParams, GalleryFullPluginSettings } from "../types.js";
5
+ import type { GalleryFullPluginState } from "../utils/gallery.full.js";
6
+
7
+ export class GalleryFullView extends ModuleView<
8
+ GalleryFullPluginEvents,
9
+ GalleryFullPluginConstants,
10
+ GalleryFullPluginSettings,
11
+ GalleryFullPluginParams,
12
+ GalleryFullPluginState
13
+ > {
14
+ name = "gallery.full.view";
15
+
16
+ animationTime = this.PARAMS.GALLERY_FULL_VIEW.TRANSITION;
17
+ updateEvent = this.EVENTS.GALLERY_FULL_VIEW.UPDATE;
18
+
19
+ renderFunc = render;
20
+ updateHandler = this.onUpdateStoreComponent;
21
+ }
package/src/types.ts ADDED
@@ -0,0 +1,15 @@
1
+ import type { ModuleComponentsConstants, ModuleComponentsEvents, ModuleComponentsParams, ModuleComponentsSettings } from "@vnejs/module.components";
2
+ import type { SettingsKeys as LayerSettingsKeys, PluginName as LayerPluginName } from "@vnejs/plugins.canvas.layer.contract";
3
+ import type { Constants as ControlsConstants, PluginName as ControlsPluginName } from "@vnejs/plugins.controls.contract";
4
+ import type { PluginName as GalleryPluginName, SubscribeEvents as GallerySubscribeEvents } from "@vnejs/plugins.views.screens.gallery.contract";
5
+ import type { Params, PluginName, SubscribeEvents } from "@vnejs/plugins.views.screens.gallery.full.contract";
6
+
7
+ export type GalleryFullPluginEvents = ModuleComponentsEvents &
8
+ Record<PluginName, SubscribeEvents> &
9
+ Record<GalleryPluginName, GallerySubscribeEvents>;
10
+
11
+ export type GalleryFullPluginConstants = ModuleComponentsConstants & Record<ControlsPluginName, ControlsConstants>;
12
+
13
+ export type GalleryFullPluginSettings = ModuleComponentsSettings & Record<LayerPluginName, LayerSettingsKeys>;
14
+
15
+ export type GalleryFullPluginParams = ModuleComponentsParams & Record<PluginName, Params>;
@@ -0,0 +1,22 @@
1
+ export type GalleryFullPluginState = {
2
+ isShow: boolean;
3
+ isForce: boolean;
4
+ bgSrc?: string;
5
+ };
6
+
7
+ export type GalleryFullShowPayload = {
8
+ index?: number;
9
+ };
10
+
11
+ export type GalleryFullChoosePayload = {
12
+ index?: number;
13
+ };
14
+
15
+ export type GalleryControllerGlobalItem = {
16
+ fullName?: string;
17
+ mediaType?: string;
18
+ };
19
+
20
+ export type GalleryControllerGlobalState = {
21
+ currentItems?: GalleryControllerGlobalItem[];
22
+ };
@@ -0,0 +1,37 @@
1
+ import type { ViewRenderFunc } from "@vnejs/module.components";
2
+ import type { ReactComponentProps } from "@vnejs/uis.react";
3
+ import { PositionBox, Screen, Svg, createRenderFunc, useCallback, useMemo, useStoreState } from "@vnejs/uis.react";
4
+
5
+ import type { GalleryFullPluginConstants, GalleryFullPluginEvents, GalleryFullPluginParams, GalleryFullPluginSettings } from "../types.js";
6
+ import type { GalleryFullPluginState } from "../utils/gallery.full.js";
7
+
8
+ type GalleryFullComponentProps = ReactComponentProps<
9
+ GalleryFullPluginEvents,
10
+ GalleryFullPluginConstants,
11
+ GalleryFullPluginSettings,
12
+ GalleryFullPluginParams,
13
+ GalleryFullPluginState
14
+ >;
15
+
16
+ const GalleryFull = ({ store, onMount, PARAMS, emit, EVENTS }: GalleryFullComponentProps) => {
17
+ const { isShow = false, isForce = false, bgSrc = "" } = useStoreState<GalleryFullPluginState>(store, onMount);
18
+
19
+ const propsView = PARAMS.GALLERY_FULL_VIEW.VIEW_PROPS;
20
+
21
+ const propsScreen = useMemo(
22
+ () => ({ ...propsView.screen, isShow, isForce, isDisableAutoread: isShow, bgSrc }),
23
+ [isShow, isForce, bgSrc, propsView.screen],
24
+ );
25
+ const onClose = useCallback(() => void emit(EVENTS.GALLERY_FULL_VIEW.HIDE), [emit, EVENTS.GALLERY_FULL_VIEW.HIDE]);
26
+ const propsClose = useMemo(() => ({ ...propsView.close.props, onClick: onClose }), [propsView.close.props, onClose]);
27
+
28
+ return (
29
+ <Screen {...propsScreen}>
30
+ <PositionBox {...propsView.close.position}>
31
+ <Svg.Cross {...propsClose} />
32
+ </PositionBox>
33
+ </Screen>
34
+ );
35
+ };
36
+
37
+ export const render: ViewRenderFunc<GalleryFullPluginState> = createRenderFunc(GalleryFull);
package/tsconfig.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "@vnejs/configs.ts-common/tsconfig.json",
3
+ "compilerOptions": {
4
+ "rootDir": "src",
5
+ "outDir": "dist",
6
+ "jsx": "react-jsx"
7
+ },
8
+ "include": ["src/**/*.ts", "src/**/*.tsx"],
9
+ "exclude": ["dist", "node_modules"]
10
+ }
package/const/events.js DELETED
@@ -1,5 +0,0 @@
1
- export const SUBSCRIBE_EVENTS = {
2
- SHOW: "vne:gallery_full:show",
3
- HIDE: "vne:gallery_full:hide",
4
- UPDATE: "vne:gallery_full:update",
5
- };
package/const/params.js DELETED
@@ -1,7 +0,0 @@
1
- export const TRANSITION = 500;
2
- export const ZINDEX = 9000;
3
-
4
- export const VIEW_PROPS = {
5
- screen: { isIgnoreOnScreenshot: true, zIndex: ZINDEX, transition: TRANSITION },
6
- close: { position: { right: 120, top: 90 }, props: { size: 60 } },
7
- };
package/index.js DELETED
@@ -1,9 +0,0 @@
1
- import { regPlugin } from "@vnejs/shared";
2
-
3
- import { SUBSCRIBE_EVENTS } from "./const/events";
4
- import * as params from "./const/params";
5
-
6
- import { GalleryFullController } from "./modules/controller";
7
- import { GalleryFullView } from "./modules/view";
8
-
9
- regPlugin("GALLERY_FULL_VIEW", { events: SUBSCRIBE_EVENTS, params }, [GalleryFullController, GalleryFullView]);
@@ -1,32 +0,0 @@
1
- import { ModuleController } from "@vnejs/module.components";
2
-
3
- export class GalleryFullController extends ModuleController {
4
- name = "gallery.full.controller";
5
-
6
- updateEvent = this.EVENTS.GALLERY_FULL_VIEW.UPDATE;
7
-
8
- emitHide = () => this.emit(this.EVENTS.GALLERY_FULL_VIEW.HIDE);
9
-
10
- controls = {
11
- [this.CONST.CONTROLS.BUTTONS.BACK]: this.emitHide,
12
- [this.CONST.CONTROLS.BUTTONS.MENU]: this.emitHide,
13
- [this.CONST.CONTROLS.BUTTONS.GAMEMENU]: this.emitHide,
14
- };
15
- controlsIndex = this.PARAMS.GALLERY_FULL_VIEW.ZINDEX;
16
-
17
- subscribe = () => {
18
- this.on(this.EVENTS.GALLERY_FULL_VIEW.SHOW, this.onShow);
19
- this.on(this.EVENTS.GALLERY_FULL_VIEW.HIDE, this.onHide);
20
-
21
- this.on(this.EVENTS.GALLERY.CHOOSE, this.onGalleryViewChoose);
22
- };
23
-
24
- beforeShow = async ({ index } = {}) => {
25
- const { fullName, mediaType } = this.globalState?.["gallery.controller"].currentItems[index];
26
-
27
- return this.updateState({ bgSrc: (await this.loadImageMedia(fullName, mediaType, this.shared.settings[this.SETTINGS.LAYER.QUALITY])).src });
28
- };
29
- afterHide = () => this.setDefaultState();
30
-
31
- onGalleryViewChoose = ({ index } = {}) => this.emit(this.EVENTS.GALLERY_FULL_VIEW.SHOW, { index });
32
- }
package/modules/view.js DELETED
@@ -1,13 +0,0 @@
1
- import { ModuleView } from "@vnejs/module.components";
2
-
3
- import { render } from "../view";
4
-
5
- export class GalleryFullView extends ModuleView {
6
- name = "gallery.full.view";
7
-
8
- animationTime = this.PARAMS.GALLERY_FULL_VIEW.TRANSITION;
9
- updateEvent = this.EVENTS.GALLERY_FULL_VIEW.UPDATE;
10
-
11
- renderFunc = render;
12
- updateHandler = this.onUpdateStoreComponent;
13
- }
package/view/index.jsx DELETED
@@ -1,26 +0,0 @@
1
- import { useEffect, useMemo, useState } from "react";
2
- import { createRoot } from "react-dom/client";
3
-
4
- import { PositionBox, Screen, Svg } from "@vnejs/uis.react";
5
-
6
- const GalleryFull = ({ store, onMount, ...props } = {}) => {
7
- const [{ isShow = false, isForce = false, bgSrc = "" }, setState] = useState({});
8
-
9
- useEffect(() => store.subscribe(setState), []);
10
- useEffect(() => void onMount(), []);
11
-
12
- const propsView = props.PARAMS.GALLERY_FULL_VIEW.VIEW_PROPS;
13
-
14
- const propsScreen = useMemo(() => ({ ...propsView.screen, isShow, isForce, isDisableAutoread: isShow, bgSrc }), [isShow, isForce, bgSrc]);
15
- const propsClose = useMemo(() => ({ ...propsView.close.props, onClick: () => props.emit(props.EVENTS.GALLERY_FULL_VIEW.HIDE) }), []);
16
-
17
- return (
18
- <Screen {...propsScreen}>
19
- <PositionBox {...propsView.close.position}>
20
- <Svg.Cross {...propsClose} />
21
- </PositionBox>
22
- </Screen>
23
- );
24
- };
25
-
26
- export const render = (props, root) => createRoot(root).render(<GalleryFull {...props} />);