@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
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type WebSocketContextType = {
|
|
2
|
+
sendMessage: (msg: any) => void;
|
|
3
|
+
isConnected: boolean;
|
|
4
|
+
reconnect: () => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const WebSocketProvider: ({ children }: {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const useWebSocket: () => WebSocketContextType;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useAutoModeTimer: (intervalMs?: number) => void;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export { initLibConfig, getConfig } from './config';
|
|
2
|
+
export type { Config } from './config';
|
|
3
|
+
export * from './components/buttons';
|
|
4
|
+
export * from './components/modos';
|
|
5
|
+
export * from './components/nodos';
|
|
6
|
+
export * from './components/overlay';
|
|
7
|
+
export * from './components/simulation-views';
|
|
8
|
+
export * from './components/DynamicLucideIcon';
|
|
9
|
+
export { default as FontSizeManager } from './components/FontSizeManager';
|
|
10
|
+
export { default as ControlPanel } from './components/control-panel';
|
|
11
|
+
export { default as LayoutIframe } from './components/layout-iframe';
|
|
12
|
+
export { default as LayoutTransparent } from './components/layout-transparent';
|
|
13
|
+
export { default as LayoutWorld } from './components/layout-world';
|
|
14
|
+
export { default as Layout } from './components/layout';
|
|
15
|
+
export { default as MinimizeWrapper } from './components/minimize-wrapper';
|
|
16
|
+
export { default as PointButton } from './components/point-button';
|
|
17
|
+
export { default as ShipNavigation } from './components/ship-navigation';
|
|
18
|
+
export { default as TitleSection } from './components/title-section';
|
|
19
|
+
export { default as VideoBackground } from './components/video-background';
|
|
20
|
+
export * from './components/websocket-status';
|
|
21
|
+
export * from './hooks';
|
|
22
|
+
export { default as FullScreenPage } from './pages/FullScreenPage';
|
|
23
|
+
export { default as ItemPage } from './pages/ItemPage';
|
|
24
|
+
export type { Item, ItemDetail, ItemCard, LinkItem, ItemPageProps } from './pages/ItemPage';
|
|
25
|
+
export { default as SlidePage } from './pages/SlidePage';
|
|
26
|
+
export { default as WorldPage } from './pages/WorldPage';
|
|
27
|
+
export * from './contexts/EventContext';
|
|
28
|
+
export * from './contexts/MinimizeContext';
|
|
29
|
+
export * from './contexts/ShowcaseContext';
|
|
30
|
+
export * from './contexts/VideoContext';
|
|
31
|
+
export * from './contexts/WebSocketContext';
|
|
32
|
+
export { default as RouteListener } from './utils/RouteListener';
|
|
33
|
+
export * from './utils/utils';
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
export interface ItemCard {
|
|
2
|
+
title: string;
|
|
3
|
+
subtitle: string;
|
|
4
|
+
imageUrl: string;
|
|
5
|
+
webUrl: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ItemDetail {
|
|
8
|
+
name: string;
|
|
9
|
+
items: Item[];
|
|
10
|
+
}
|
|
11
|
+
export interface LinkItem {
|
|
12
|
+
text?: string | null;
|
|
13
|
+
icon: string;
|
|
14
|
+
url: string;
|
|
15
|
+
transparent: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface PptItem {
|
|
18
|
+
name?: string | null;
|
|
19
|
+
icon?: string | null;
|
|
20
|
+
image: Media[] | null;
|
|
21
|
+
}
|
|
22
|
+
export interface MediaFormat {
|
|
23
|
+
name: string;
|
|
24
|
+
hash: string;
|
|
25
|
+
ext: string;
|
|
26
|
+
mime: string;
|
|
27
|
+
path: string | null;
|
|
28
|
+
width: number;
|
|
29
|
+
height: number;
|
|
30
|
+
size: number;
|
|
31
|
+
sizeInBytes: number;
|
|
32
|
+
url: string;
|
|
33
|
+
}
|
|
34
|
+
export interface MediaFormats {
|
|
35
|
+
thumbnail: MediaFormat;
|
|
36
|
+
large: MediaFormat;
|
|
37
|
+
small: MediaFormat;
|
|
38
|
+
medium: MediaFormat;
|
|
39
|
+
}
|
|
40
|
+
export interface Media {
|
|
41
|
+
documentId: string;
|
|
42
|
+
name: string;
|
|
43
|
+
alternativeText: string;
|
|
44
|
+
caption: string;
|
|
45
|
+
width: number;
|
|
46
|
+
height: number;
|
|
47
|
+
formats: MediaFormats;
|
|
48
|
+
hash: string;
|
|
49
|
+
ext: string;
|
|
50
|
+
mime: string;
|
|
51
|
+
size: number;
|
|
52
|
+
url: string;
|
|
53
|
+
previewUrl: string | null;
|
|
54
|
+
provider: string;
|
|
55
|
+
provider_metadata: any | null;
|
|
56
|
+
createdAt: string;
|
|
57
|
+
updatedAt: string;
|
|
58
|
+
publishedAt: string;
|
|
59
|
+
}
|
|
60
|
+
export interface TabFeature {
|
|
61
|
+
description?: string;
|
|
62
|
+
text?: string;
|
|
63
|
+
}
|
|
64
|
+
export interface TabCard {
|
|
65
|
+
id?: number;
|
|
66
|
+
title: string;
|
|
67
|
+
subtitle: string;
|
|
68
|
+
tagName?: string | null;
|
|
69
|
+
tagUrl?: string | null;
|
|
70
|
+
width?: "full" | "half" | "third";
|
|
71
|
+
features?: TabFeature[];
|
|
72
|
+
images?: any[];
|
|
73
|
+
}
|
|
74
|
+
export interface Tab {
|
|
75
|
+
id?: number;
|
|
76
|
+
name: string;
|
|
77
|
+
icon?: string | null;
|
|
78
|
+
cards?: TabCard[];
|
|
79
|
+
}
|
|
80
|
+
export interface Item {
|
|
81
|
+
slug: string;
|
|
82
|
+
shortName?: string | null;
|
|
83
|
+
title: string;
|
|
84
|
+
subtitle?: string | null;
|
|
85
|
+
homeButton?: string | null;
|
|
86
|
+
playButton?: string | null;
|
|
87
|
+
nodesId?: number | null;
|
|
88
|
+
cards?: ItemCard[] | null;
|
|
89
|
+
simulation?: ItemDetail | null;
|
|
90
|
+
webUrl?: string | null;
|
|
91
|
+
links?: LinkItem[] | null;
|
|
92
|
+
thumb?: string | null;
|
|
93
|
+
background?: string | null;
|
|
94
|
+
videoBackground?: string | null;
|
|
95
|
+
ppts?: PptItem[] | null;
|
|
96
|
+
tab?: Tab[] | null;
|
|
97
|
+
}
|
|
98
|
+
export interface ItemPageProps {
|
|
99
|
+
world: "catalog" | "showcases" | "developments" | "platforms" | "app-library";
|
|
100
|
+
worldSlug?: string;
|
|
101
|
+
overlay?: boolean;
|
|
102
|
+
itemsData: Item[];
|
|
103
|
+
}
|
|
104
|
+
declare const ItemPage: React.FC<ItemPageProps>;
|
|
105
|
+
export default ItemPage;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ShipNavigationItem } from '../components/ship-navigation';
|
|
2
|
+
import { Item } from './ItemPage';
|
|
3
|
+
|
|
4
|
+
interface WorldProps {
|
|
5
|
+
items?: ShipNavigationItem[];
|
|
6
|
+
world: "catalog" | "showcases" | "developments" | "platforms" | "";
|
|
7
|
+
overlay?: boolean;
|
|
8
|
+
title: Item;
|
|
9
|
+
}
|
|
10
|
+
declare const WorldPage: React.FC<WorldProps>;
|
|
11
|
+
export default WorldPage;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.yarl__fullsize{height:100%;width:100%}.yarl__relative{position:relative}.yarl__portal{inset:0;opacity:0;overflow:hidden;position:fixed;transition:opacity var(--yarl__fade_animation_duration,.25s) var(--yarl__fade_animation_timing_function,ease);z-index:var(--yarl__portal_zindex,9999)}.yarl__portal_open{opacity:1}.yarl__container{background-color:var(--yarl__container_background_color,var(--yarl__color_backdrop,#000));inset:0;outline:none;overflow:hidden;overscroll-behavior:var(--yarl__controller_overscroll_behavior,contain);position:absolute;touch-action:var(--yarl__controller_touch_action,none);-webkit-user-select:none;-moz-user-select:none;user-select:none}.yarl__carousel{align-content:center;align-items:stretch;display:flex;flex:0 0 auto;height:100%;justify-content:center;opacity:var(--yarl__pull_opacity,1);transform:translate(var(--yarl__swipe_offset,0),var(--yarl__pull_offset,0));width:calc(100% + (var(--yarl__carousel_slides_count) - 1)*(100% + var(--yarl__carousel_spacing_px, 0)*1px + var(--yarl__carousel_spacing_percent, 0)*1%))}.yarl__carousel_with_slides{-moz-column-gap:calc(var(--yarl__carousel_spacing_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_spacing_percent, 0)*1%);column-gap:calc(var(--yarl__carousel_spacing_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_spacing_percent, 0)*1%)}.yarl__flex_center{align-content:center;align-items:center;display:flex;justify-content:center}.yarl__slide{flex:1;overflow:hidden;padding:calc(var(--yarl__carousel_padding_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_padding_percent, 0)*1%);position:relative}[dir=rtl] .yarl__slide{--yarl__direction:-1}.yarl__slide_image{max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain;touch-action:var(--yarl__controller_touch_action,none);-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-touch-callout:none}.yarl__slide_image_cover{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.yarl__slide_image_loading{opacity:0}@media screen and (min-width:800px){.yarl__slide_wrapper:not(.yarl__slide_wrapper_interactive) .yarl__slide_image{-webkit-backface-visibility:hidden;-webkit-transform:translateZ(0);-webkit-transform-style:preserve-3d}}.yarl__slide_placeholder{left:50%;line-height:0;position:absolute;top:50%;transform:translate(-50%) translateY(-50%)}.yarl__slide_loading{animation:yarl__delayed_fadein 1s linear;color:var(--yarl__slide_icon_loading_color,var(--yarl__color_button,hsla(0,0%,100%,.8)))}.yarl__slide_loading line{animation:yarl__stroke_opacity 1s linear infinite}.yarl__slide_loading line:first-of-type{animation-delay:-1.875s}.yarl__slide_loading line:nth-of-type(2){animation-delay:-1.75s}.yarl__slide_loading line:nth-of-type(3){animation-delay:-1.625s}.yarl__slide_loading line:nth-of-type(4){animation-delay:-1.5s}.yarl__slide_loading line:nth-of-type(5){animation-delay:-1.375s}.yarl__slide_loading line:nth-of-type(6){animation-delay:-1.25s}.yarl__slide_loading line:nth-of-type(7){animation-delay:-1.125s}.yarl__slide_loading line:nth-of-type(8){animation-delay:-1s}.yarl__slide_error{color:var(--yarl__slide_icon_error_color,red);height:var(--yarl__slide_icon_error_size,48px);width:var(--yarl__slide_icon_error_size,48px)}@media(prefers-reduced-motion){.yarl__portal,.yarl__slide{transition:unset}.yarl__slide_loading,.yarl__slide_loading line{animation:unset}}.yarl__toolbar{display:flex;justify-content:flex-end;inset:0 0 auto auto;padding:var(--yarl__toolbar_padding,8px);position:absolute}[dir=rtl] .yarl__toolbar{inset:0 auto auto 0}.yarl__icon{height:var(--yarl__icon_size,32px);width:var(--yarl__icon_size,32px)}.yarl__button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--yarl__button_background_color,transparent);border:var(--yarl__button_border,0);color:var(--yarl__color_button,hsla(0,0%,100%,.8));cursor:pointer;filter:var(--yarl__button_filter,drop-shadow(2px 2px 2px rgba(0,0,0,.8)));line-height:0;margin:var(--yarl__button_margin,0);outline:none;padding:var(--yarl__button_padding,8px);-webkit-tap-highlight-color:transparent}.yarl__button:focus{color:var(--yarl__color_button_active,#fff)}.yarl__button:focus:not(:focus-visible){color:var(--yarl__color_button,hsla(0,0%,100%,.8))}.yarl__button:focus-visible{color:var(--yarl__color_button_active,#fff)}@media(hover:hover){.yarl__button:focus-visible:hover,.yarl__button:focus:hover,.yarl__button:hover{color:var(--yarl__color_button_active,#fff)}}.yarl__button:disabled{color:var(--yarl__color_button_disabled,hsla(0,0%,100%,.4));cursor:default}.yarl__navigation_next,.yarl__navigation_prev{padding:var(--yarl__navigation_button_padding,24px 16px);position:absolute;top:50%;transform:translateY(-50%)}.yarl__navigation_prev{left:0}[dir=rtl] .yarl__navigation_prev{left:unset;right:0;transform:translateY(-50%) rotate(180deg)}.yarl__navigation_next{right:0}[dir=rtl] .yarl__navigation_next{left:0;right:unset;transform:translateY(-50%) rotate(180deg)}.yarl__no_scroll{height:100%;overflow:hidden;overscroll-behavior:none}@keyframes yarl__delayed_fadein{0%{opacity:0}80%{opacity:0}to{opacity:1}}@keyframes yarl__stroke_opacity{0%{stroke-opacity:1}to{stroke-opacity:.125}}
|