@vibes.diy/use-vibes-base 0.0.0-dev-fresh-data
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/LICENSE.md +232 -0
- package/ManualRedirectStrategy.d.ts +24 -0
- package/ManualRedirectStrategy.js +289 -0
- package/ManualRedirectStrategy.js.map +1 -0
- package/README.md +549 -0
- package/components/AuthWall/AuthWall.d.ts +8 -0
- package/components/AuthWall/AuthWall.js +161 -0
- package/components/AuthWall/AuthWall.js.map +1 -0
- package/components/AuthWall/AuthWall.styles.d.ts +24 -0
- package/components/AuthWall/AuthWall.styles.js +82 -0
- package/components/AuthWall/AuthWall.styles.js.map +1 -0
- package/components/BrutalistCard/BrutalistCard.d.ts +8 -0
- package/components/BrutalistCard/BrutalistCard.js +11 -0
- package/components/BrutalistCard/BrutalistCard.js.map +1 -0
- package/components/BrutalistCard/BrutalistCard.styles.d.ts +4 -0
- package/components/BrutalistCard/BrutalistCard.styles.js +66 -0
- package/components/BrutalistCard/BrutalistCard.styles.js.map +1 -0
- package/components/BrutalistCard/index.d.ts +3 -0
- package/components/BrutalistCard/index.js +2 -0
- package/components/BrutalistCard/index.js.map +1 -0
- package/components/ControlsBar.d.ts +20 -0
- package/components/ControlsBar.js +108 -0
- package/components/ControlsBar.js.map +1 -0
- package/components/HiddenMenuWrapper/HiddenMenuWrapper.d.ts +7 -0
- package/components/HiddenMenuWrapper/HiddenMenuWrapper.js +103 -0
- package/components/HiddenMenuWrapper/HiddenMenuWrapper.js.map +1 -0
- package/components/HiddenMenuWrapper/HiddenMenuWrapper.styles.d.ts +31 -0
- package/components/HiddenMenuWrapper/HiddenMenuWrapper.styles.js +86 -0
- package/components/HiddenMenuWrapper/HiddenMenuWrapper.styles.js.map +1 -0
- package/components/ImgGen.css +675 -0
- package/components/ImgGen.d.ts +23 -0
- package/components/ImgGen.js +260 -0
- package/components/ImgGen.js.map +1 -0
- package/components/ImgGenUtils/AsyncImg.d.ts +7 -0
- package/components/ImgGenUtils/AsyncImg.js +41 -0
- package/components/ImgGenUtils/AsyncImg.js.map +1 -0
- package/components/ImgGenUtils/ImgGenDisplay.d.ts +3 -0
- package/components/ImgGenUtils/ImgGenDisplay.js +240 -0
- package/components/ImgGenUtils/ImgGenDisplay.js.map +1 -0
- package/components/ImgGenUtils/ImgGenDisplayPlaceholder.d.ts +3 -0
- package/components/ImgGenUtils/ImgGenDisplayPlaceholder.js +99 -0
- package/components/ImgGenUtils/ImgGenDisplayPlaceholder.js.map +1 -0
- package/components/ImgGenUtils/ImgGenDisplayUtils.d.ts +27 -0
- package/components/ImgGenUtils/ImgGenDisplayUtils.js +95 -0
- package/components/ImgGenUtils/ImgGenDisplayUtils.js.map +1 -0
- package/components/ImgGenUtils/ImgGenError.d.ts +3 -0
- package/components/ImgGenUtils/ImgGenError.js +9 -0
- package/components/ImgGenUtils/ImgGenError.js.map +1 -0
- package/components/ImgGenUtils/ImgGenFileDrop.d.ts +11 -0
- package/components/ImgGenUtils/ImgGenFileDrop.js +56 -0
- package/components/ImgGenUtils/ImgGenFileDrop.js.map +1 -0
- package/components/ImgGenUtils/ImgGenModal.d.ts +25 -0
- package/components/ImgGenUtils/ImgGenModal.js +67 -0
- package/components/ImgGenUtils/ImgGenModal.js.map +1 -0
- package/components/ImgGenUtils/ImgGenModeUtils.d.ts +9 -0
- package/components/ImgGenUtils/ImgGenModeUtils.js +59 -0
- package/components/ImgGenUtils/ImgGenModeUtils.js.map +1 -0
- package/components/ImgGenUtils/ImgGenPromptWaiting.d.ts +11 -0
- package/components/ImgGenUtils/ImgGenPromptWaiting.js +40 -0
- package/components/ImgGenUtils/ImgGenPromptWaiting.js.map +1 -0
- package/components/ImgGenUtils/ImgGenUploadWaiting.d.ts +16 -0
- package/components/ImgGenUtils/ImgGenUploadWaiting.js +155 -0
- package/components/ImgGenUtils/ImgGenUploadWaiting.js.map +1 -0
- package/components/ImgGenUtils/index.d.ts +6 -0
- package/components/ImgGenUtils/index.js +7 -0
- package/components/ImgGenUtils/index.js.map +1 -0
- package/components/ImgGenUtils/overlays/DeleteConfirmationOverlay.d.ts +9 -0
- package/components/ImgGenUtils/overlays/DeleteConfirmationOverlay.js +31 -0
- package/components/ImgGenUtils/overlays/DeleteConfirmationOverlay.js.map +1 -0
- package/components/ImgGenUtils/overlays/ImageOverlay.d.ts +22 -0
- package/components/ImgGenUtils/overlays/ImageOverlay.js +11 -0
- package/components/ImgGenUtils/overlays/ImageOverlay.js.map +1 -0
- package/components/ImgGenUtils/types.d.ts +29 -0
- package/components/ImgGenUtils/types.js +2 -0
- package/components/ImgGenUtils/types.js.map +1 -0
- package/components/ImgGenUtils.d.ts +2 -0
- package/components/ImgGenUtils.js +3 -0
- package/components/ImgGenUtils.js.map +1 -0
- package/components/PromptBar.d.ts +11 -0
- package/components/PromptBar.js +24 -0
- package/components/PromptBar.js.map +1 -0
- package/components/VibeControl.d.ts +13 -0
- package/components/VibeControl.js +74 -0
- package/components/VibeControl.js.map +1 -0
- package/components/VibesButton/VibesButton.d.ts +10 -0
- package/components/VibesButton/VibesButton.js +20 -0
- package/components/VibesButton/VibesButton.js.map +1 -0
- package/components/VibesButton/VibesButton.styles.d.ts +6 -0
- package/components/VibesButton/VibesButton.styles.js +35 -0
- package/components/VibesButton/VibesButton.styles.js.map +1 -0
- package/components/VibesPanel/VibesPanel.d.ts +6 -0
- package/components/VibesPanel/VibesPanel.js +115 -0
- package/components/VibesPanel/VibesPanel.js.map +1 -0
- package/components/VibesPanel/index.d.ts +1 -0
- package/components/VibesPanel/index.js +2 -0
- package/components/VibesPanel/index.js.map +1 -0
- package/components/VibesSwitch/VibesSwitch.d.ts +6 -0
- package/components/VibesSwitch/VibesSwitch.js +54 -0
- package/components/VibesSwitch/VibesSwitch.js.map +1 -0
- package/components/VibesSwitch/VibesSwitch.styles.d.ts +4 -0
- package/components/VibesSwitch/VibesSwitch.styles.js +5 -0
- package/components/VibesSwitch/VibesSwitch.styles.js.map +1 -0
- package/constants.d.ts +4 -0
- package/constants.js +5 -0
- package/constants.js.map +1 -0
- package/events.d.ts +7 -0
- package/events.js +4 -0
- package/events.js.map +1 -0
- package/hooks/image-gen/image-generator.d.ts +11 -0
- package/hooks/image-gen/image-generator.js +146 -0
- package/hooks/image-gen/image-generator.js.map +1 -0
- package/hooks/image-gen/index.d.ts +7 -0
- package/hooks/image-gen/index.js +6 -0
- package/hooks/image-gen/index.js.map +1 -0
- package/hooks/image-gen/use-image-gen.d.ts +2 -0
- package/hooks/image-gen/use-image-gen.js +554 -0
- package/hooks/image-gen/use-image-gen.js.map +1 -0
- package/hooks/image-gen/utils.d.ts +19 -0
- package/hooks/image-gen/utils.js +150 -0
- package/hooks/image-gen/utils.js.map +1 -0
- package/hooks/use-image-gen.d.ts +1 -0
- package/hooks/use-image-gen.js +2 -0
- package/hooks/use-image-gen.js.map +1 -0
- package/hooks/vibes-gen/IframeVibesComponent.d.ts +10 -0
- package/hooks/vibes-gen/IframeVibesComponent.js +67 -0
- package/hooks/vibes-gen/IframeVibesComponent.js.map +1 -0
- package/hooks/vibes-gen/index.d.ts +2 -0
- package/hooks/vibes-gen/index.js +2 -0
- package/hooks/vibes-gen/index.js.map +1 -0
- package/hooks/vibes-gen/use-vibes.d.ts +3 -0
- package/hooks/vibes-gen/use-vibes.js +185 -0
- package/hooks/vibes-gen/use-vibes.js.map +1 -0
- package/index.d.ts +68 -0
- package/index.js +340 -0
- package/index.js.map +1 -0
- package/install-tracker.d.ts +30 -0
- package/install-tracker.js +246 -0
- package/install-tracker.js.map +1 -0
- package/package.json +47 -0
- package/stories/VibeControl.stories.d.ts +13 -0
- package/stories/VibeControl.stories.js +195 -0
- package/stories/VibeControl.stories.js.map +1 -0
- package/tsconfig.json +18 -0
- package/utils/appSlug.d.ts +17 -0
- package/utils/appSlug.js +175 -0
- package/utils/appSlug.js.map +1 -0
- package/utils/base64.d.ts +1 -0
- package/utils/base64.js +13 -0
- package/utils/base64.js.map +1 -0
- package/utils/debug.d.ts +2 -0
- package/utils/debug.js +8 -0
- package/utils/debug.js.map +1 -0
- package/utils/style-utils.d.ts +4 -0
- package/utils/style-utils.js +15 -0
- package/utils/style-utils.js.map +1 -0
- package/utils/styles.d.ts +325 -0
- package/utils/styles.js +328 -0
- package/utils/styles.js.map +1 -0
- package/utils/vibe-control-styles.d.ts +148 -0
- package/utils/vibe-control-styles.js +170 -0
- package/utils/vibe-control-styles.js.map +1 -0
- package/vibe-app-mount.d.ts +13 -0
- package/vibe-app-mount.js +124 -0
- package/vibe-app-mount.js.map +1 -0
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
export type VibeControlPosition = 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
|
|
2
|
+
export declare const vibeControlTheme: {
|
|
3
|
+
colors: {
|
|
4
|
+
buttonBg: string;
|
|
5
|
+
buttonBgHover: string;
|
|
6
|
+
buttonText: string;
|
|
7
|
+
buttonBorder: string;
|
|
8
|
+
overlayBackdrop: string;
|
|
9
|
+
overlayBg: string;
|
|
10
|
+
overlayText: string;
|
|
11
|
+
overlayBorder: string;
|
|
12
|
+
closeButtonBg: string;
|
|
13
|
+
closeButtonBgHover: string;
|
|
14
|
+
closeButtonText: string;
|
|
15
|
+
accent: string;
|
|
16
|
+
shadow: string;
|
|
17
|
+
};
|
|
18
|
+
dimensions: {
|
|
19
|
+
buttonWidth: string;
|
|
20
|
+
buttonHeight: string;
|
|
21
|
+
buttonPadding: string;
|
|
22
|
+
buttonBorderRadius: string;
|
|
23
|
+
buttonPosition: string;
|
|
24
|
+
overlayPadding: string;
|
|
25
|
+
overlayBorderRadius: string;
|
|
26
|
+
overlayMaxWidth: string;
|
|
27
|
+
overlayMaxHeight: string;
|
|
28
|
+
closeButtonSize: string;
|
|
29
|
+
closeButtonBorderRadius: string;
|
|
30
|
+
};
|
|
31
|
+
typography: {
|
|
32
|
+
buttonFontSize: string;
|
|
33
|
+
buttonFontWeight: string;
|
|
34
|
+
buttonLineHeight: string;
|
|
35
|
+
overlayTitleFontSize: string;
|
|
36
|
+
overlayTitleFontWeight: string;
|
|
37
|
+
overlayTitleLineHeight: string;
|
|
38
|
+
overlayBodyFontSize: string;
|
|
39
|
+
overlayBodyLineHeight: string;
|
|
40
|
+
};
|
|
41
|
+
effects: {
|
|
42
|
+
buttonShadow: string;
|
|
43
|
+
buttonShadowHover: string;
|
|
44
|
+
overlayShadow: string;
|
|
45
|
+
transition: string;
|
|
46
|
+
backdropFilter: string;
|
|
47
|
+
};
|
|
48
|
+
zIndex: {
|
|
49
|
+
button: number;
|
|
50
|
+
overlay: number;
|
|
51
|
+
backdrop: number;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
export declare const createVibeControlStyles: (position?: VibeControlPosition) => {
|
|
55
|
+
button: {
|
|
56
|
+
position: "fixed";
|
|
57
|
+
width: string;
|
|
58
|
+
height: string;
|
|
59
|
+
padding: string;
|
|
60
|
+
backgroundColor: string;
|
|
61
|
+
color: string;
|
|
62
|
+
border: string;
|
|
63
|
+
borderRadius: string;
|
|
64
|
+
fontSize: string;
|
|
65
|
+
fontWeight: string;
|
|
66
|
+
lineHeight: string;
|
|
67
|
+
cursor: string;
|
|
68
|
+
boxShadow: string;
|
|
69
|
+
transition: string;
|
|
70
|
+
zIndex: number;
|
|
71
|
+
display: string;
|
|
72
|
+
alignItems: string;
|
|
73
|
+
justifyContent: string;
|
|
74
|
+
userSelect: "none";
|
|
75
|
+
};
|
|
76
|
+
buttonHover: {
|
|
77
|
+
backgroundColor: string;
|
|
78
|
+
boxShadow: string;
|
|
79
|
+
transform: string;
|
|
80
|
+
};
|
|
81
|
+
backdrop: {
|
|
82
|
+
position: "fixed";
|
|
83
|
+
top: number;
|
|
84
|
+
left: number;
|
|
85
|
+
right: number;
|
|
86
|
+
bottom: number;
|
|
87
|
+
backgroundColor: string;
|
|
88
|
+
backdropFilter: string;
|
|
89
|
+
zIndex: number;
|
|
90
|
+
display: string;
|
|
91
|
+
alignItems: string;
|
|
92
|
+
justifyContent: string;
|
|
93
|
+
};
|
|
94
|
+
overlay: {
|
|
95
|
+
backgroundColor: string;
|
|
96
|
+
color: string;
|
|
97
|
+
border: string;
|
|
98
|
+
borderRadius: string;
|
|
99
|
+
padding: string;
|
|
100
|
+
maxWidth: string;
|
|
101
|
+
maxHeight: string;
|
|
102
|
+
width: string;
|
|
103
|
+
boxShadow: string;
|
|
104
|
+
position: "relative";
|
|
105
|
+
overflow: "auto";
|
|
106
|
+
};
|
|
107
|
+
overlayTitle: {
|
|
108
|
+
fontSize: string;
|
|
109
|
+
fontWeight: string;
|
|
110
|
+
lineHeight: string;
|
|
111
|
+
margin: string;
|
|
112
|
+
paddingRight: string;
|
|
113
|
+
};
|
|
114
|
+
closeButton: {
|
|
115
|
+
position: "absolute";
|
|
116
|
+
top: string;
|
|
117
|
+
right: string;
|
|
118
|
+
width: string;
|
|
119
|
+
height: string;
|
|
120
|
+
backgroundColor: string;
|
|
121
|
+
color: string;
|
|
122
|
+
border: string;
|
|
123
|
+
borderRadius: string;
|
|
124
|
+
cursor: string;
|
|
125
|
+
display: string;
|
|
126
|
+
alignItems: string;
|
|
127
|
+
justifyContent: string;
|
|
128
|
+
fontSize: string;
|
|
129
|
+
fontWeight: string;
|
|
130
|
+
transition: string;
|
|
131
|
+
};
|
|
132
|
+
closeButtonHover: {
|
|
133
|
+
backgroundColor: string;
|
|
134
|
+
};
|
|
135
|
+
content: {
|
|
136
|
+
fontSize: string;
|
|
137
|
+
lineHeight: string;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
export declare const defaultVibeControlClasses: {
|
|
141
|
+
button: string;
|
|
142
|
+
backdrop: string;
|
|
143
|
+
overlay: string;
|
|
144
|
+
overlayTitle: string;
|
|
145
|
+
closeButton: string;
|
|
146
|
+
content: string;
|
|
147
|
+
};
|
|
148
|
+
export type VibeControlClasses = typeof defaultVibeControlClasses;
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
export const vibeControlTheme = {
|
|
2
|
+
colors: {
|
|
3
|
+
buttonBg: 'var(--vc-button-bg, #dc2626)',
|
|
4
|
+
buttonBgHover: 'var(--vc-button-bg-hover, #b91c1c)',
|
|
5
|
+
buttonText: 'var(--vc-button-text, #ffffff)',
|
|
6
|
+
buttonBorder: 'var(--vc-button-border, #dc2626)',
|
|
7
|
+
overlayBackdrop: 'var(--vc-overlay-backdrop, rgba(0, 0, 0, 0.5))',
|
|
8
|
+
overlayBg: 'var(--vc-overlay-bg, #ffffff)',
|
|
9
|
+
overlayText: 'var(--vc-overlay-text, #333333)',
|
|
10
|
+
overlayBorder: 'var(--vc-overlay-border, #e0e0e0)',
|
|
11
|
+
closeButtonBg: 'var(--vc-close-bg, #f5f5f5)',
|
|
12
|
+
closeButtonBgHover: 'var(--vc-close-bg-hover, #e0e0e0)',
|
|
13
|
+
closeButtonText: 'var(--vc-close-text, #666666)',
|
|
14
|
+
accent: 'var(--vc-accent, #0066cc)',
|
|
15
|
+
shadow: 'var(--vc-shadow, rgba(0, 0, 0, 0.15))',
|
|
16
|
+
},
|
|
17
|
+
dimensions: {
|
|
18
|
+
buttonWidth: '120px',
|
|
19
|
+
buttonHeight: '40px',
|
|
20
|
+
buttonPadding: '8px 16px',
|
|
21
|
+
buttonBorderRadius: '20px',
|
|
22
|
+
buttonPosition: '20px', // Distance from edge
|
|
23
|
+
overlayPadding: '24px',
|
|
24
|
+
overlayBorderRadius: '12px',
|
|
25
|
+
overlayMaxWidth: '800px',
|
|
26
|
+
overlayMaxHeight: '90vh',
|
|
27
|
+
closeButtonSize: '32px',
|
|
28
|
+
closeButtonBorderRadius: '16px',
|
|
29
|
+
},
|
|
30
|
+
typography: {
|
|
31
|
+
buttonFontSize: '14px',
|
|
32
|
+
buttonFontWeight: '600',
|
|
33
|
+
buttonLineHeight: '1.2',
|
|
34
|
+
overlayTitleFontSize: '24px',
|
|
35
|
+
overlayTitleFontWeight: '700',
|
|
36
|
+
overlayTitleLineHeight: '1.3',
|
|
37
|
+
overlayBodyFontSize: '16px',
|
|
38
|
+
overlayBodyLineHeight: '1.5',
|
|
39
|
+
},
|
|
40
|
+
effects: {
|
|
41
|
+
buttonShadow: '0 2px 8px rgba(0, 0, 0, 0.15)',
|
|
42
|
+
buttonShadowHover: '0 4px 12px rgba(0, 0, 0, 0.2)',
|
|
43
|
+
overlayShadow: '0 8px 32px rgba(0, 0, 0, 0.2)',
|
|
44
|
+
transition: '0.2s ease-in-out',
|
|
45
|
+
backdropFilter: 'blur(4px)',
|
|
46
|
+
},
|
|
47
|
+
zIndex: {
|
|
48
|
+
button: 1000,
|
|
49
|
+
overlay: 1100,
|
|
50
|
+
backdrop: 1050,
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
export const createVibeControlStyles = (position = 'bottom-right') => {
|
|
54
|
+
const pos = vibeControlTheme.dimensions.buttonPosition;
|
|
55
|
+
const anchor = {};
|
|
56
|
+
switch (position) {
|
|
57
|
+
case 'bottom-right':
|
|
58
|
+
anchor.bottom = pos;
|
|
59
|
+
anchor.right = pos;
|
|
60
|
+
break;
|
|
61
|
+
case 'bottom-left':
|
|
62
|
+
anchor.bottom = pos;
|
|
63
|
+
anchor.left = pos;
|
|
64
|
+
break;
|
|
65
|
+
case 'top-right':
|
|
66
|
+
anchor.top = pos;
|
|
67
|
+
anchor.right = pos;
|
|
68
|
+
break;
|
|
69
|
+
case 'top-left':
|
|
70
|
+
anchor.top = pos;
|
|
71
|
+
anchor.left = pos;
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
button: {
|
|
76
|
+
position: 'fixed',
|
|
77
|
+
...anchor,
|
|
78
|
+
width: vibeControlTheme.dimensions.buttonWidth,
|
|
79
|
+
height: vibeControlTheme.dimensions.buttonHeight,
|
|
80
|
+
padding: vibeControlTheme.dimensions.buttonPadding,
|
|
81
|
+
backgroundColor: vibeControlTheme.colors.buttonBg,
|
|
82
|
+
color: vibeControlTheme.colors.buttonText,
|
|
83
|
+
border: `1px solid ${vibeControlTheme.colors.buttonBorder}`,
|
|
84
|
+
borderRadius: vibeControlTheme.dimensions.buttonBorderRadius,
|
|
85
|
+
fontSize: vibeControlTheme.typography.buttonFontSize,
|
|
86
|
+
fontWeight: vibeControlTheme.typography.buttonFontWeight,
|
|
87
|
+
lineHeight: vibeControlTheme.typography.buttonLineHeight,
|
|
88
|
+
cursor: 'pointer',
|
|
89
|
+
boxShadow: vibeControlTheme.effects.buttonShadow,
|
|
90
|
+
transition: `background-color ${vibeControlTheme.effects.transition}, box-shadow ${vibeControlTheme.effects.transition}, transform ${vibeControlTheme.effects.transition}`,
|
|
91
|
+
zIndex: vibeControlTheme.zIndex.button,
|
|
92
|
+
display: 'flex',
|
|
93
|
+
alignItems: 'center',
|
|
94
|
+
justifyContent: 'center',
|
|
95
|
+
userSelect: 'none',
|
|
96
|
+
},
|
|
97
|
+
buttonHover: {
|
|
98
|
+
backgroundColor: vibeControlTheme.colors.buttonBgHover,
|
|
99
|
+
boxShadow: vibeControlTheme.effects.buttonShadowHover,
|
|
100
|
+
transform: 'translateY(-2px)',
|
|
101
|
+
},
|
|
102
|
+
backdrop: {
|
|
103
|
+
position: 'fixed',
|
|
104
|
+
top: 0,
|
|
105
|
+
left: 0,
|
|
106
|
+
right: 0,
|
|
107
|
+
bottom: 0,
|
|
108
|
+
backgroundColor: vibeControlTheme.colors.overlayBackdrop,
|
|
109
|
+
backdropFilter: vibeControlTheme.effects.backdropFilter,
|
|
110
|
+
zIndex: vibeControlTheme.zIndex.backdrop,
|
|
111
|
+
display: 'flex',
|
|
112
|
+
alignItems: 'center',
|
|
113
|
+
justifyContent: 'center',
|
|
114
|
+
},
|
|
115
|
+
overlay: {
|
|
116
|
+
backgroundColor: vibeControlTheme.colors.overlayBg,
|
|
117
|
+
color: vibeControlTheme.colors.overlayText,
|
|
118
|
+
border: `1px solid ${vibeControlTheme.colors.overlayBorder}`,
|
|
119
|
+
borderRadius: vibeControlTheme.dimensions.overlayBorderRadius,
|
|
120
|
+
padding: vibeControlTheme.dimensions.overlayPadding,
|
|
121
|
+
maxWidth: vibeControlTheme.dimensions.overlayMaxWidth,
|
|
122
|
+
maxHeight: vibeControlTheme.dimensions.overlayMaxHeight,
|
|
123
|
+
width: '90%',
|
|
124
|
+
boxShadow: vibeControlTheme.effects.overlayShadow,
|
|
125
|
+
position: 'relative',
|
|
126
|
+
overflow: 'auto',
|
|
127
|
+
},
|
|
128
|
+
overlayTitle: {
|
|
129
|
+
fontSize: vibeControlTheme.typography.overlayTitleFontSize,
|
|
130
|
+
fontWeight: vibeControlTheme.typography.overlayTitleFontWeight,
|
|
131
|
+
lineHeight: vibeControlTheme.typography.overlayTitleLineHeight,
|
|
132
|
+
margin: '0 0 16px 0',
|
|
133
|
+
paddingRight: '40px',
|
|
134
|
+
},
|
|
135
|
+
closeButton: {
|
|
136
|
+
position: 'absolute',
|
|
137
|
+
top: vibeControlTheme.dimensions.overlayPadding,
|
|
138
|
+
right: vibeControlTheme.dimensions.overlayPadding,
|
|
139
|
+
width: vibeControlTheme.dimensions.closeButtonSize,
|
|
140
|
+
height: vibeControlTheme.dimensions.closeButtonSize,
|
|
141
|
+
backgroundColor: vibeControlTheme.colors.closeButtonBg,
|
|
142
|
+
color: vibeControlTheme.colors.closeButtonText,
|
|
143
|
+
border: 'none',
|
|
144
|
+
borderRadius: vibeControlTheme.dimensions.closeButtonBorderRadius,
|
|
145
|
+
cursor: 'pointer',
|
|
146
|
+
display: 'flex',
|
|
147
|
+
alignItems: 'center',
|
|
148
|
+
justifyContent: 'center',
|
|
149
|
+
fontSize: '18px',
|
|
150
|
+
fontWeight: 'bold',
|
|
151
|
+
transition: `background-color ${vibeControlTheme.effects.transition}`,
|
|
152
|
+
},
|
|
153
|
+
closeButtonHover: {
|
|
154
|
+
backgroundColor: vibeControlTheme.colors.closeButtonBgHover,
|
|
155
|
+
},
|
|
156
|
+
content: {
|
|
157
|
+
fontSize: vibeControlTheme.typography.overlayBodyFontSize,
|
|
158
|
+
lineHeight: vibeControlTheme.typography.overlayBodyLineHeight,
|
|
159
|
+
},
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
export const defaultVibeControlClasses = {
|
|
163
|
+
button: '',
|
|
164
|
+
backdrop: '',
|
|
165
|
+
overlay: '',
|
|
166
|
+
overlayTitle: '',
|
|
167
|
+
closeButton: '',
|
|
168
|
+
content: '',
|
|
169
|
+
};
|
|
170
|
+
//# sourceMappingURL=vibe-control-styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vibe-control-styles.js","sourceRoot":"","sources":["../../jsr/utils/vibe-control-styles.ts"],"names":[],"mappings":"AAyBA,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAE9B,MAAM,EAAE;QACN,QAAQ,EAAE,8BAA8B;QACxC,aAAa,EAAE,oCAAoC;QACnD,UAAU,EAAE,gCAAgC;QAC5C,YAAY,EAAE,kCAAkC;QAEhD,eAAe,EAAE,gDAAgD;QACjE,SAAS,EAAE,+BAA+B;QAC1C,WAAW,EAAE,iCAAiC;QAC9C,aAAa,EAAE,mCAAmC;QAElD,aAAa,EAAE,6BAA6B;QAC5C,kBAAkB,EAAE,mCAAmC;QACvD,eAAe,EAAE,+BAA+B;QAEhD,MAAM,EAAE,2BAA2B;QACnC,MAAM,EAAE,uCAAuC;KAChD;IAGD,UAAU,EAAE;QACV,WAAW,EAAE,OAAO;QACpB,YAAY,EAAE,MAAM;QACpB,aAAa,EAAE,UAAU;QACzB,kBAAkB,EAAE,MAAM;QAC1B,cAAc,EAAE,MAAM,EAAE,qBAAqB;QAE7C,cAAc,EAAE,MAAM;QACtB,mBAAmB,EAAE,MAAM;QAC3B,eAAe,EAAE,OAAO;QACxB,gBAAgB,EAAE,MAAM;QAExB,eAAe,EAAE,MAAM;QACvB,uBAAuB,EAAE,MAAM;KAChC;IAGD,UAAU,EAAE;QACV,cAAc,EAAE,MAAM;QACtB,gBAAgB,EAAE,KAAK;QACvB,gBAAgB,EAAE,KAAK;QAEvB,oBAAoB,EAAE,MAAM;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,YAAY,EAAE,gBAAgB,CAAC,UAAU,CAAC,uBAAuB;YACjE,MAAM,EAAE,SAAS;YACjB,OAAO,EAAE,MAAM;YACf,UAAU,EAAE,QAAQ;YACpB,cAAc,EAAE,QAAQ;YACxB,QAAQ,EAAE,MAAM;YAChB,UAAU,EAAE,MAAM;YAClB,UAAU,EAAE,oBAAoB,gBAAgB,CAAC,OAAO,CAAC,UAAU,EAAE;SACtE;QAED,gBAAgB,EAAE;YAChB,eAAe,EAAE,gBAAgB,CAAC,MAAM,CAAC,kBAAkB;SAC5D;QAED,OAAO,EAAE;YACP,QAAQ,EAAE,gBAAgB,CAAC,UAAU,CAAC,mBAAmB;YACzD,UAAU,EAAE,gBAAgB,CAAC,UAAU,CAAC,qBAAqB;SAC9D;KACF,CAAC;AAAA,CACH,CAAC;AAGF,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,MAAM,EAAE,EAAE;IACV,QAAQ,EAAE,EAAE;IACZ,OAAO,EAAE,EAAE;IACX,YAAY,EAAE,EAAE;IAChB,WAAW,EAAE,EAAE;IACf,OAAO,EAAE,EAAE;CACZ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface MountVibesAppOptions {
|
|
3
|
+
readonly container?: string | HTMLElement;
|
|
4
|
+
readonly title?: string;
|
|
5
|
+
readonly imageUrl?: string;
|
|
6
|
+
readonly appComponent?: React.ComponentType;
|
|
7
|
+
}
|
|
8
|
+
export interface MountVibesAppResult {
|
|
9
|
+
unmount: () => void;
|
|
10
|
+
getContainer: () => HTMLElement;
|
|
11
|
+
}
|
|
12
|
+
export declare function mountVibesApp(options?: MountVibesAppOptions): MountVibesAppResult;
|
|
13
|
+
export declare function mountVibesAppToBody(): MountVibesAppResult;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as ReactDOM from 'react-dom/client';
|
|
3
|
+
import { AuthWall } from './components/AuthWall/AuthWall.js';
|
|
4
|
+
import { VIBES_SYNC_ENABLE_EVENT, VIBES_SYNC_ENABLED_CLASS } from './constants.js';
|
|
5
|
+
import { HiddenMenuWrapper } from './components/HiddenMenuWrapper/HiddenMenuWrapper.js';
|
|
6
|
+
import { VibesPanel } from './components/VibesPanel/VibesPanel.js';
|
|
7
|
+
const safeGetLocalStorage = (key) => {
|
|
8
|
+
try {
|
|
9
|
+
return localStorage.getItem(key);
|
|
10
|
+
}
|
|
11
|
+
catch {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
function VibesApp({ title = 'Vibes App', imageUrl = '/screenshot.png', children, }) {
|
|
16
|
+
const syncEnabled = typeof window !== 'undefined' && document.body.classList.contains(VIBES_SYNC_ENABLED_CLASS);
|
|
17
|
+
const wasSyncEnabled = typeof window !== 'undefined' && safeGetLocalStorage('fireproof-sync-enabled') === 'true';
|
|
18
|
+
const mockLogin = typeof window !== 'undefined' &&
|
|
19
|
+
new URLSearchParams(window.location.search).get('mock_login') === 'true';
|
|
20
|
+
const [showAuthWall, setShowAuthWall] = React.useState(!syncEnabled && !mockLogin && !wasSyncEnabled);
|
|
21
|
+
React.useEffect(() => {
|
|
22
|
+
const observer = new MutationObserver(() => {
|
|
23
|
+
const isConnected = document.body.classList.contains(VIBES_SYNC_ENABLED_CLASS);
|
|
24
|
+
setShowAuthWall(!isConnected && !mockLogin && !wasSyncEnabled);
|
|
25
|
+
});
|
|
26
|
+
observer.observe(document.body, {
|
|
27
|
+
attributes: true,
|
|
28
|
+
attributeFilter: ['class'],
|
|
29
|
+
});
|
|
30
|
+
return () => observer.disconnect();
|
|
31
|
+
}, [mockLogin, wasSyncEnabled]);
|
|
32
|
+
const handleLogin = () => {
|
|
33
|
+
document.dispatchEvent(new CustomEvent(VIBES_SYNC_ENABLE_EVENT));
|
|
34
|
+
};
|
|
35
|
+
return (React.createElement(React.Fragment, null,
|
|
36
|
+
React.createElement("div", { style: showAuthWall ? { display: 'none' } : undefined },
|
|
37
|
+
React.createElement(HiddenMenuWrapper, { menuContent: React.createElement(VibesPanel, null) }, children)),
|
|
38
|
+
React.createElement(AuthWall, { onLogin: handleLogin, imageUrl: imageUrl, title: title, open: showAuthWall })));
|
|
39
|
+
}
|
|
40
|
+
export function mountVibesApp(options = {}) {
|
|
41
|
+
const { container: containerOption, title, imageUrl, appComponent } = options;
|
|
42
|
+
let containerElement;
|
|
43
|
+
if (typeof containerOption === 'string') {
|
|
44
|
+
const found = document.querySelector(containerOption);
|
|
45
|
+
if (!found) {
|
|
46
|
+
throw new Error(`VibesApp container not found: ${containerOption}`);
|
|
47
|
+
}
|
|
48
|
+
containerElement = found;
|
|
49
|
+
}
|
|
50
|
+
else if (containerOption instanceof HTMLElement) {
|
|
51
|
+
containerElement = containerOption;
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
containerElement = document.body;
|
|
55
|
+
}
|
|
56
|
+
let contentWrapper = null;
|
|
57
|
+
let originalChildren = [];
|
|
58
|
+
if (containerElement === document.body && !appComponent) {
|
|
59
|
+
const existingWrapper = document.getElementById('vibes-original-content');
|
|
60
|
+
if (!existingWrapper) {
|
|
61
|
+
originalChildren = Array.from(document.body.childNodes);
|
|
62
|
+
contentWrapper = document.createElement('div');
|
|
63
|
+
contentWrapper.id = 'vibes-original-content';
|
|
64
|
+
contentWrapper.style.height = '100%';
|
|
65
|
+
contentWrapper.style.width = '100%';
|
|
66
|
+
contentWrapper.style.position = 'relative';
|
|
67
|
+
originalChildren.forEach((child) => {
|
|
68
|
+
if (contentWrapper) {
|
|
69
|
+
contentWrapper.appendChild(child);
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
document.body.appendChild(contentWrapper);
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
contentWrapper = existingWrapper;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
const root = ReactDOM.createRoot(containerElement);
|
|
79
|
+
const AppComponent = appComponent;
|
|
80
|
+
root.render(React.createElement(VibesApp, { ...(title !== undefined && { title }), ...(imageUrl !== undefined && { imageUrl }) }, AppComponent ? (React.createElement(AppComponent, null)) : contentWrapper ? (React.createElement("div", { ref: (node) => {
|
|
81
|
+
if (node && contentWrapper && node.children.length === 0) {
|
|
82
|
+
node.appendChild(contentWrapper);
|
|
83
|
+
}
|
|
84
|
+
}, style: { height: '100%', width: '100%' } })) : null));
|
|
85
|
+
return {
|
|
86
|
+
unmount: () => {
|
|
87
|
+
setTimeout(() => {
|
|
88
|
+
root.unmount();
|
|
89
|
+
if (contentWrapper && containerElement === document.body) {
|
|
90
|
+
const children = Array.from(contentWrapper.childNodes);
|
|
91
|
+
const wrapperInDom = document.body.contains(contentWrapper);
|
|
92
|
+
for (const child of children) {
|
|
93
|
+
if (wrapperInDom) {
|
|
94
|
+
document.body.insertBefore(child, contentWrapper);
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
document.body.appendChild(child);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
if (wrapperInDom) {
|
|
101
|
+
contentWrapper.remove();
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
const targets = [];
|
|
105
|
+
if (containerElement instanceof HTMLElement)
|
|
106
|
+
targets.push(containerElement);
|
|
107
|
+
if (contentWrapper instanceof HTMLElement)
|
|
108
|
+
targets.push(contentWrapper);
|
|
109
|
+
for (const el of targets) {
|
|
110
|
+
el.style.filter = '';
|
|
111
|
+
el.style.pointerEvents = '';
|
|
112
|
+
el.style.transform = '';
|
|
113
|
+
el.style.transition = '';
|
|
114
|
+
el.style.backgroundColor = '';
|
|
115
|
+
}
|
|
116
|
+
}, 0);
|
|
117
|
+
},
|
|
118
|
+
getContainer: () => containerElement,
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
export function mountVibesAppToBody() {
|
|
122
|
+
return mountVibesApp();
|
|
123
|
+
}
|
|
124
|
+
//# sourceMappingURL=vibe-app-mount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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