@devstgo/stgo-salta-components-react 0.1.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/README.md +73 -0
- package/dist/components/DynamicLucideIcon.d.ts +7 -0
- package/dist/components/FontSizeManager.d.ts +8 -0
- package/dist/components/buttons/CardsButton.d.ts +5 -0
- package/dist/components/buttons/IconButton.d.ts +9 -0
- package/dist/components/buttons/LinkItemButton.d.ts +8 -0
- package/dist/components/buttons/MinimizeButton.d.ts +1 -0
- package/dist/components/buttons/NodosButton.d.ts +6 -0
- package/dist/components/buttons/SimulacionButton.d.ts +5 -0
- package/dist/components/buttons/index.d.ts +6 -0
- package/dist/components/control-panel.d.ts +1 -0
- package/dist/components/layout-iframe.d.ts +4 -0
- package/dist/components/layout-transparent.d.ts +3 -0
- package/dist/components/layout-world.d.ts +9 -0
- package/dist/components/layout.d.ts +5 -0
- package/dist/components/minimize-wrapper.d.ts +5 -0
- package/dist/components/modos/CardsMode.d.ts +8 -0
- package/dist/components/modos/IframeMode.d.ts +7 -0
- package/dist/components/modos/LauncherMode.d.ts +5 -0
- package/dist/components/modos/LightBoxMode.d.ts +7 -0
- package/dist/components/modos/SimulationMode.d.ts +8 -0
- package/dist/components/modos/VideoMode.d.ts +6 -0
- package/dist/components/modos/index.d.ts +6 -0
- package/dist/components/nodos/custom-modal.d.ts +7 -0
- package/dist/components/nodos/index.d.ts +4 -0
- package/dist/components/nodos/interactive-visualization.d.ts +103 -0
- package/dist/components/nodos/mobile-message.d.ts +7 -0
- package/dist/components/nodos/no-product-modal.d.ts +8 -0
- package/dist/components/overlay/gradient-overlay.d.ts +8 -0
- package/dist/components/overlay/immersive-modal.d.ts +6 -0
- package/dist/components/overlay/index.d.ts +3 -0
- package/dist/components/overlay/warp-overlay.d.ts +11 -0
- package/dist/components/point-button.d.ts +7 -0
- package/dist/components/ship-navigation.d.ts +14 -0
- package/dist/components/simulation-views/InfoCard.d.ts +15 -0
- package/dist/components/simulation-views/TabView.d.ts +10 -0
- package/dist/components/simulation-views/index.d.ts +3 -0
- package/dist/components/simulation-views/types.d.ts +85 -0
- package/dist/components/title-section.d.ts +8 -0
- package/dist/components/video-background.d.ts +5 -0
- package/dist/components/websocket-status.d.ts +1 -0
- package/dist/config.d.ts +16 -0
- package/dist/contexts/EventContext.d.ts +11 -0
- package/dist/contexts/MinimizeContext.d.ts +13 -0
- package/dist/contexts/ShowcaseContext.d.ts +12 -0
- package/dist/contexts/VideoContext.d.ts +12 -0
- package/dist/contexts/WebSocketContext.d.ts +10 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useAutoModeTimer.d.ts +1 -0
- package/dist/hooks/useScreenSize.d.ts +6 -0
- package/dist/index.d.ts +33 -0
- package/dist/pages/FullScreenPage.d.ts +8 -0
- package/dist/pages/ItemPage.d.ts +105 -0
- package/dist/pages/SlidePage.d.ts +4 -0
- package/dist/pages/WorldPage.d.ts +11 -0
- package/dist/stgo-salta-components-react.css +1 -0
- package/dist/stgo-salta-components-react.js +15389 -0
- package/dist/stgo-salta-components-react.umd.cjs +519 -0
- package/dist/utils/RouteListener.d.ts +2 -0
- package/dist/utils/utils.d.ts +19 -0
- package/package.json +64 -0
package/README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# React + TypeScript + Vite
|
|
2
|
+
|
|
3
|
+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
|
4
|
+
|
|
5
|
+
Currently, two official plugins are available:
|
|
6
|
+
|
|
7
|
+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh
|
|
8
|
+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
|
9
|
+
|
|
10
|
+
## React Compiler
|
|
11
|
+
|
|
12
|
+
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
|
|
13
|
+
|
|
14
|
+
## Expanding the ESLint configuration
|
|
15
|
+
|
|
16
|
+
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
|
|
17
|
+
|
|
18
|
+
```js
|
|
19
|
+
export default defineConfig([
|
|
20
|
+
globalIgnores(['dist']),
|
|
21
|
+
{
|
|
22
|
+
files: ['**/*.{ts,tsx}'],
|
|
23
|
+
extends: [
|
|
24
|
+
// Other configs...
|
|
25
|
+
|
|
26
|
+
// Remove tseslint.configs.recommended and replace with this
|
|
27
|
+
tseslint.configs.recommendedTypeChecked,
|
|
28
|
+
// Alternatively, use this for stricter rules
|
|
29
|
+
tseslint.configs.strictTypeChecked,
|
|
30
|
+
// Optionally, add this for stylistic rules
|
|
31
|
+
tseslint.configs.stylisticTypeChecked,
|
|
32
|
+
|
|
33
|
+
// Other configs...
|
|
34
|
+
],
|
|
35
|
+
languageOptions: {
|
|
36
|
+
parserOptions: {
|
|
37
|
+
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
38
|
+
tsconfigRootDir: import.meta.dirname,
|
|
39
|
+
},
|
|
40
|
+
// other options...
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
])
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
|
|
47
|
+
|
|
48
|
+
```js
|
|
49
|
+
// eslint.config.js
|
|
50
|
+
import reactX from 'eslint-plugin-react-x'
|
|
51
|
+
import reactDom from 'eslint-plugin-react-dom'
|
|
52
|
+
|
|
53
|
+
export default defineConfig([
|
|
54
|
+
globalIgnores(['dist']),
|
|
55
|
+
{
|
|
56
|
+
files: ['**/*.{ts,tsx}'],
|
|
57
|
+
extends: [
|
|
58
|
+
// Other configs...
|
|
59
|
+
// Enable lint rules for React
|
|
60
|
+
reactX.configs['recommended-typescript'],
|
|
61
|
+
// Enable lint rules for React DOM
|
|
62
|
+
reactDom.configs.recommended,
|
|
63
|
+
],
|
|
64
|
+
languageOptions: {
|
|
65
|
+
parserOptions: {
|
|
66
|
+
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
67
|
+
tsconfigRootDir: import.meta.dirname,
|
|
68
|
+
},
|
|
69
|
+
// other options...
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
])
|
|
73
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function MinimizeButton(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function ControlPanel(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ShipNavigationItem } from './ship-navigation';
|
|
2
|
+
|
|
3
|
+
interface WorldProps {
|
|
4
|
+
items: ShipNavigationItem[];
|
|
5
|
+
world: "catalog" | "showcases" | "developments" | "platforms" | "";
|
|
6
|
+
worldSlug?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const WorldLayout: React.FC<WorldProps>;
|
|
9
|
+
export default WorldLayout;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ItemDetail } from '../../pages/ItemPage';
|
|
2
|
+
|
|
3
|
+
interface SimulationModeProps {
|
|
4
|
+
item: ItemDetail;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
}
|
|
7
|
+
export default function SimulationMode({ item, onClose }: SimulationModeProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface CustomModalProps {
|
|
2
|
+
showLinkModal: boolean;
|
|
3
|
+
setShowLinkModal: (show: boolean) => void;
|
|
4
|
+
modalUrl: string;
|
|
5
|
+
}
|
|
6
|
+
export default function CustomModal({ showLinkModal, setShowLinkModal, modalUrl, }: CustomModalProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
type RingNode = {
|
|
2
|
+
id: number;
|
|
3
|
+
label: string;
|
|
4
|
+
color: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
active: boolean;
|
|
7
|
+
url: string;
|
|
8
|
+
};
|
|
9
|
+
type Product = {
|
|
10
|
+
id: string;
|
|
11
|
+
label: string;
|
|
12
|
+
innerRingIds: number[];
|
|
13
|
+
outerRingIds: number[];
|
|
14
|
+
expandableNodeIds?: number[];
|
|
15
|
+
url: string;
|
|
16
|
+
};
|
|
17
|
+
type ProductData = {
|
|
18
|
+
globalTags: {
|
|
19
|
+
label: string;
|
|
20
|
+
url: string;
|
|
21
|
+
}[];
|
|
22
|
+
innerRingNodes: RingNode[];
|
|
23
|
+
outerRingNodes: RingNode[];
|
|
24
|
+
products: Product[];
|
|
25
|
+
relationships: {
|
|
26
|
+
innerRing_to_products?: {
|
|
27
|
+
innerRingId: number;
|
|
28
|
+
productIds: string[];
|
|
29
|
+
}[];
|
|
30
|
+
outerRing_to_products?: {
|
|
31
|
+
outerRingId: number;
|
|
32
|
+
productIds: string[];
|
|
33
|
+
}[];
|
|
34
|
+
innerRing_to_outerRing?: {
|
|
35
|
+
innerRingId: number;
|
|
36
|
+
outerRingIds: number[];
|
|
37
|
+
}[];
|
|
38
|
+
outerRing_to_innerRing?: {
|
|
39
|
+
outerRingId: number;
|
|
40
|
+
innerRingIds: number[];
|
|
41
|
+
}[];
|
|
42
|
+
innerRing_to_innerRing?: {
|
|
43
|
+
innerRingId: number;
|
|
44
|
+
innerRingIds: number[];
|
|
45
|
+
}[];
|
|
46
|
+
outerRing_to_outerRing?: {
|
|
47
|
+
outerRingId: number;
|
|
48
|
+
outerRingIds: number[];
|
|
49
|
+
}[];
|
|
50
|
+
innerRing_to_expandableNodes?: {
|
|
51
|
+
innerRingId: number;
|
|
52
|
+
expandableNodeIds: number[];
|
|
53
|
+
}[];
|
|
54
|
+
outerRing_to_expandableNodes?: {
|
|
55
|
+
outerRingId: number;
|
|
56
|
+
expandableNodeIds: number[];
|
|
57
|
+
}[];
|
|
58
|
+
expandableNode_to_innerRing?: {
|
|
59
|
+
expandableNodeId: number;
|
|
60
|
+
innerRingIds: number[];
|
|
61
|
+
}[];
|
|
62
|
+
expandableNode_to_outerRing?: {
|
|
63
|
+
expandableNodeId: number;
|
|
64
|
+
outerRingIds: number[];
|
|
65
|
+
}[];
|
|
66
|
+
expandableNode_to_expandableNodes?: {
|
|
67
|
+
expandableNodeId: number;
|
|
68
|
+
expandableNodeIds: number[];
|
|
69
|
+
}[];
|
|
70
|
+
expandableNode_to_products?: {
|
|
71
|
+
expandableNodeId: number;
|
|
72
|
+
productIds: string[];
|
|
73
|
+
}[];
|
|
74
|
+
};
|
|
75
|
+
valuePropositions?: {
|
|
76
|
+
id: number;
|
|
77
|
+
title: string;
|
|
78
|
+
description: string;
|
|
79
|
+
icon?: string;
|
|
80
|
+
}[];
|
|
81
|
+
techDevelopments?: {
|
|
82
|
+
id: number;
|
|
83
|
+
title: string;
|
|
84
|
+
description: string;
|
|
85
|
+
icon?: string;
|
|
86
|
+
}[];
|
|
87
|
+
expandableNodes?: {
|
|
88
|
+
parentId: number;
|
|
89
|
+
childNodes: {
|
|
90
|
+
id: number;
|
|
91
|
+
label: string;
|
|
92
|
+
icon?: string;
|
|
93
|
+
url?: string;
|
|
94
|
+
}[];
|
|
95
|
+
}[];
|
|
96
|
+
};
|
|
97
|
+
interface InteractiveVisualizationProps {
|
|
98
|
+
hotspot: number;
|
|
99
|
+
dataEs?: ProductData;
|
|
100
|
+
dataEn?: ProductData;
|
|
101
|
+
}
|
|
102
|
+
export default function InteractiveVisualization({ hotspot, dataEs, dataEn }: InteractiveVisualizationProps): import("react/jsx-runtime").JSX.Element;
|
|
103
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type NoProductModalProps = {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
type: "inner" | "outer";
|
|
5
|
+
itemName: string;
|
|
6
|
+
};
|
|
7
|
+
export default function NoProductModal({ isOpen, onClose, type, itemName }: NoProductModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface WarpOverlayProps {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
size: {
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
};
|
|
8
|
+
hotspot: number;
|
|
9
|
+
}
|
|
10
|
+
export default function WarpOverlay({ isOpen, onClose, size, hotspot }: WarpOverlayProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface ShipNavigationItem {
|
|
2
|
+
name: string;
|
|
3
|
+
slug: string;
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
}
|
|
7
|
+
interface ShipNavigationProps {
|
|
8
|
+
items: ShipNavigationItem[];
|
|
9
|
+
parent?: string;
|
|
10
|
+
selectedShip: string;
|
|
11
|
+
onShipSelect: (ship: string) => void;
|
|
12
|
+
}
|
|
13
|
+
export default function ShipNavigation({ items, parent, selectedShip, onShipSelect }: ShipNavigationProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CardData } from './types';
|
|
2
|
+
|
|
3
|
+
interface InfoCardProps {
|
|
4
|
+
card: CardData;
|
|
5
|
+
isExpanded: boolean;
|
|
6
|
+
isOtherExpanded: boolean;
|
|
7
|
+
collapsedUniformHeight?: boolean;
|
|
8
|
+
onToggle: () => void;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
expandedContent?: React.ReactNode;
|
|
11
|
+
delay?: number;
|
|
12
|
+
gridSpan?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare function InfoCard({ card, isExpanded, isOtherExpanded, collapsedUniformHeight, onToggle, onClose, expandedContent, delay, gridSpan, }: Readonly<InfoCardProps>): import("react/jsx-runtime").JSX.Element | null;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Tab } from './types';
|
|
2
|
+
|
|
3
|
+
interface TabViewProps {
|
|
4
|
+
tab?: Tab;
|
|
5
|
+
tabIndex?: number;
|
|
6
|
+
expandedCardId: string | null;
|
|
7
|
+
setExpandedCardId: (id: string | null) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function TabView({ tab, tabIndex, expandedCardId, setExpandedCardId }: Readonly<TabViewProps>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export type ViewLevel = 'basic' | 'medium' | 'advanced' | null;
|
|
2
|
+
export interface CardData {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
icon: React.ComponentType<{
|
|
7
|
+
className?: string;
|
|
8
|
+
}>;
|
|
9
|
+
tag: string;
|
|
10
|
+
tagColor?: string;
|
|
11
|
+
tagUrl?: string;
|
|
12
|
+
keyPoints?: string[];
|
|
13
|
+
images?: any[];
|
|
14
|
+
width?: 'full' | 'half' | 'third';
|
|
15
|
+
}
|
|
16
|
+
export interface Feature {
|
|
17
|
+
text?: string;
|
|
18
|
+
description?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface ContentCard {
|
|
21
|
+
title: string;
|
|
22
|
+
subtitle: string;
|
|
23
|
+
tagName?: string;
|
|
24
|
+
tagUrl?: string;
|
|
25
|
+
width: 'full' | 'half' | 'third';
|
|
26
|
+
features: Feature[];
|
|
27
|
+
images?: any[];
|
|
28
|
+
}
|
|
29
|
+
export interface Tab {
|
|
30
|
+
name: string;
|
|
31
|
+
icon?: string;
|
|
32
|
+
cards: ContentCard[];
|
|
33
|
+
}
|
|
34
|
+
export interface MetricData {
|
|
35
|
+
label: string;
|
|
36
|
+
value: string;
|
|
37
|
+
color: string;
|
|
38
|
+
}
|
|
39
|
+
export interface CapabilityData {
|
|
40
|
+
icon: React.ComponentType<{
|
|
41
|
+
className?: string;
|
|
42
|
+
}>;
|
|
43
|
+
title: string;
|
|
44
|
+
description: string;
|
|
45
|
+
}
|
|
46
|
+
export interface UseCaseData {
|
|
47
|
+
title: string;
|
|
48
|
+
description: string;
|
|
49
|
+
stat: string;
|
|
50
|
+
}
|
|
51
|
+
export interface TechStackData {
|
|
52
|
+
category: string;
|
|
53
|
+
technologies: string;
|
|
54
|
+
}
|
|
55
|
+
export interface RoadmapItem {
|
|
56
|
+
quarter: string;
|
|
57
|
+
title: string;
|
|
58
|
+
description: string;
|
|
59
|
+
}
|
|
60
|
+
export interface ResourceItem {
|
|
61
|
+
icon: React.ComponentType<{
|
|
62
|
+
className?: string;
|
|
63
|
+
}>;
|
|
64
|
+
title: string;
|
|
65
|
+
description: string;
|
|
66
|
+
category?: string;
|
|
67
|
+
url?: string;
|
|
68
|
+
}
|
|
69
|
+
export interface SpecificationData {
|
|
70
|
+
label: string;
|
|
71
|
+
value: string;
|
|
72
|
+
}
|
|
73
|
+
export interface IntegrationData {
|
|
74
|
+
name: string;
|
|
75
|
+
available: boolean;
|
|
76
|
+
}
|
|
77
|
+
export interface SimulationInfoData {
|
|
78
|
+
title: string;
|
|
79
|
+
subtitle: string;
|
|
80
|
+
views: {
|
|
81
|
+
basic: CardData[];
|
|
82
|
+
medium: CardData[];
|
|
83
|
+
advanced: CardData[];
|
|
84
|
+
};
|
|
85
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function WebSocketStatusWidget(): import("react/jsx-runtime").JSX.Element;
|
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface Config {
|
|
2
|
+
remoteUrl: string;
|
|
3
|
+
wsUrl?: string;
|
|
4
|
+
wsRoom?: string;
|
|
5
|
+
cinematics?: boolean;
|
|
6
|
+
cinematicsOnChangeLocation?: boolean;
|
|
7
|
+
baseUrl?: string;
|
|
8
|
+
backgroundIframeUrl?: string;
|
|
9
|
+
showcasesUrl?: string[];
|
|
10
|
+
controlPanelLevels?: {
|
|
11
|
+
title: string;
|
|
12
|
+
slug: string;
|
|
13
|
+
}[];
|
|
14
|
+
}
|
|
15
|
+
export declare const initLibConfig: (cfg: Config) => void;
|
|
16
|
+
export declare const getConfig: () => Config;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type EventContextType = {
|
|
2
|
+
lastEvent: any;
|
|
3
|
+
setLastEvent: (data: any) => void;
|
|
4
|
+
internalEvent: any;
|
|
5
|
+
setInternalEvent: (data: any) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const EventProvider: ({ children }: {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const useEvent: () => EventContextType;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
interface MinimizeContextType {
|
|
4
|
+
isMinimized: boolean;
|
|
5
|
+
setMinimized: (value: boolean) => void;
|
|
6
|
+
toggleMinimized: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const MinimizeProvider: ({ children }: {
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const useMinimize: () => MinimizeContextType;
|
|
12
|
+
export declare const useOptionalMinimize: () => MinimizeContextType | undefined;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
interface ShowcaseContextType {
|
|
4
|
+
isAutoMode: boolean;
|
|
5
|
+
toggleAutoMode: () => void;
|
|
6
|
+
setIsAutoMode: (value: boolean) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const ShowcaseProvider: ({ children }: {
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const useShowcase: () => ShowcaseContextType;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
interface VideoContextType {
|
|
4
|
+
currentVideo: string;
|
|
5
|
+
setVideo: (videoUrl: string, smooth?: boolean) => void;
|
|
6
|
+
isTransitioning: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function VideoProvider({ children }: {
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function useVideo(): VideoContextType;
|
|
12
|
+
export {};
|