@comergehq/studio 0.1.12 → 0.1.15
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.mts +26 -3
- package/dist/index.d.ts +26 -3
- package/dist/index.js +538 -307
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +544 -313
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -1
- package/src/components/{floating-draggable-button/FloatingDraggableButton.tsx → bubble/Bubble.tsx} +3 -3
- package/src/components/{floating-draggable-button → bubble}/constants.ts +2 -2
- package/src/components/bubble/index.ts +4 -0
- package/src/components/{floating-draggable-button → bubble}/types.ts +3 -3
- package/src/components/index.ts +2 -2
- package/src/core/services/http/baseUrl.ts +1 -1
- package/src/core/services/http/public.ts +7 -7
- package/src/data/apps/bundles/remote.ts +17 -0
- package/src/data/apps/bundles/repository.ts +14 -0
- package/src/data/apps/bundles/types.ts +15 -0
- package/src/studio/ComergeStudio.tsx +17 -9
- package/src/studio/bootstrap/StudioBootstrap.tsx +2 -2
- package/src/studio/bootstrap/useStudioBootstrap.ts +7 -7
- package/src/studio/hooks/useBundleManager.ts +323 -19
- package/src/studio/ui/RuntimeRenderer.tsx +24 -1
- package/src/studio/ui/StudioOverlay.tsx +6 -6
- package/src/components/floating-draggable-button/index.ts +0 -4
package/dist/index.d.mts
CHANGED
|
@@ -3,16 +3,39 @@ import * as _comergehq_studio_control from '@comergehq/studio-control';
|
|
|
3
3
|
import { ViewStyle } from 'react-native';
|
|
4
4
|
import { SupabaseClient } from '@supabase/supabase-js';
|
|
5
5
|
|
|
6
|
+
type EmbeddedBaseBundle = {
|
|
7
|
+
module: number;
|
|
8
|
+
meta?: BaseBundleMeta | null;
|
|
9
|
+
assetsModule?: number;
|
|
10
|
+
assetsMeta?: EmbeddedAssetsMeta | null;
|
|
11
|
+
};
|
|
12
|
+
type EmbeddedBaseBundles = {
|
|
13
|
+
ios?: EmbeddedBaseBundle;
|
|
14
|
+
android?: EmbeddedBaseBundle;
|
|
15
|
+
};
|
|
16
|
+
type EmbeddedAssetsMeta = {
|
|
17
|
+
checksumSha256: string | null;
|
|
18
|
+
size: number | null;
|
|
19
|
+
};
|
|
20
|
+
type BaseBundleMeta = {
|
|
21
|
+
fingerprint: string;
|
|
22
|
+
bundleId: string;
|
|
23
|
+
checksumSha256: string | null;
|
|
24
|
+
size: number | null;
|
|
25
|
+
updatedAt: string;
|
|
26
|
+
};
|
|
27
|
+
|
|
6
28
|
type ComergeStudioProps = {
|
|
7
29
|
appId: string;
|
|
8
|
-
|
|
30
|
+
clientKey: string;
|
|
9
31
|
appKey?: string;
|
|
10
32
|
onNavigateHome?: () => void;
|
|
11
33
|
style?: ViewStyle;
|
|
12
|
-
|
|
34
|
+
showBubble?: boolean;
|
|
13
35
|
studioControlOptions?: _comergehq_studio_control.StudioControlOptions;
|
|
36
|
+
embeddedBaseBundles?: EmbeddedBaseBundles;
|
|
14
37
|
};
|
|
15
|
-
declare function ComergeStudio({ appId,
|
|
38
|
+
declare function ComergeStudio({ appId, clientKey, appKey, onNavigateHome, style, showBubble, studioControlOptions, embeddedBaseBundles, }: ComergeStudioProps): react_jsx_runtime.JSX.Element;
|
|
16
39
|
|
|
17
40
|
declare function setSupabaseClient(client: SupabaseClient): void;
|
|
18
41
|
|
package/dist/index.d.ts
CHANGED
|
@@ -3,16 +3,39 @@ import * as _comergehq_studio_control from '@comergehq/studio-control';
|
|
|
3
3
|
import { ViewStyle } from 'react-native';
|
|
4
4
|
import { SupabaseClient } from '@supabase/supabase-js';
|
|
5
5
|
|
|
6
|
+
type EmbeddedBaseBundle = {
|
|
7
|
+
module: number;
|
|
8
|
+
meta?: BaseBundleMeta | null;
|
|
9
|
+
assetsModule?: number;
|
|
10
|
+
assetsMeta?: EmbeddedAssetsMeta | null;
|
|
11
|
+
};
|
|
12
|
+
type EmbeddedBaseBundles = {
|
|
13
|
+
ios?: EmbeddedBaseBundle;
|
|
14
|
+
android?: EmbeddedBaseBundle;
|
|
15
|
+
};
|
|
16
|
+
type EmbeddedAssetsMeta = {
|
|
17
|
+
checksumSha256: string | null;
|
|
18
|
+
size: number | null;
|
|
19
|
+
};
|
|
20
|
+
type BaseBundleMeta = {
|
|
21
|
+
fingerprint: string;
|
|
22
|
+
bundleId: string;
|
|
23
|
+
checksumSha256: string | null;
|
|
24
|
+
size: number | null;
|
|
25
|
+
updatedAt: string;
|
|
26
|
+
};
|
|
27
|
+
|
|
6
28
|
type ComergeStudioProps = {
|
|
7
29
|
appId: string;
|
|
8
|
-
|
|
30
|
+
clientKey: string;
|
|
9
31
|
appKey?: string;
|
|
10
32
|
onNavigateHome?: () => void;
|
|
11
33
|
style?: ViewStyle;
|
|
12
|
-
|
|
34
|
+
showBubble?: boolean;
|
|
13
35
|
studioControlOptions?: _comergehq_studio_control.StudioControlOptions;
|
|
36
|
+
embeddedBaseBundles?: EmbeddedBaseBundles;
|
|
14
37
|
};
|
|
15
|
-
declare function ComergeStudio({ appId,
|
|
38
|
+
declare function ComergeStudio({ appId, clientKey, appKey, onNavigateHome, style, showBubble, studioControlOptions, embeddedBaseBundles, }: ComergeStudioProps): react_jsx_runtime.JSX.Element;
|
|
16
39
|
|
|
17
40
|
declare function setSupabaseClient(client: SupabaseClient): void;
|
|
18
41
|
|