@apps-in-toss/framework 0.0.13 → 0.0.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.cjs +251 -32
- package/dist/index.d.cts +424 -7
- package/dist/index.d.ts +424 -7
- package/dist/index.js +246 -25
- package/dist/plugins/index.cjs +344 -308
- package/dist/plugins/index.d.cts +23 -3
- package/dist/plugins/index.d.ts +23 -3
- package/dist/plugins/index.js +350 -317
- package/package.json +8 -8
- package/src/async-bridges.ts +2 -0
package/dist/plugins/index.d.cts
CHANGED
|
@@ -33,11 +33,24 @@ type AppManifest = {
|
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
35
|
declare const validateAppManifest: (input: unknown) => typia.IValidation<AppManifest>;
|
|
36
|
-
|
|
37
36
|
interface AppsInTossPluginOptions {
|
|
37
|
+
brand: {
|
|
38
|
+
displayName: string;
|
|
39
|
+
primaryColor: string;
|
|
40
|
+
icon: string;
|
|
41
|
+
bridgeColorMode: BridgeTheme;
|
|
42
|
+
};
|
|
38
43
|
permissions: AppManifest['permissions'];
|
|
39
44
|
}
|
|
40
|
-
|
|
45
|
+
/**
|
|
46
|
+
* - `basic`: 기본 테마 (흰 배경)
|
|
47
|
+
* - `inverted`: 반전 테마 (검은 배경)
|
|
48
|
+
*/
|
|
49
|
+
type BridgeTheme = 'basic' | 'inverted';
|
|
50
|
+
|
|
51
|
+
declare function appsInTossEsbuildConfig(envScript: string): BedrockPluginCore;
|
|
52
|
+
declare function appsInTossMetroConfig(envScriptPath: string): BedrockPluginCore;
|
|
53
|
+
declare function appsInTossAppJson(options: Pick<AppsInTossPluginOptions, 'permissions'>): Promise<BedrockPluginCore>;
|
|
41
54
|
declare function appsInToss(options: AppsInTossPluginOptions): (BedrockPluginCore | Promise<BedrockPluginCore>)[];
|
|
42
55
|
|
|
43
56
|
interface CompileHbcOptions {
|
|
@@ -73,4 +86,11 @@ interface CreateArtifactOptions {
|
|
|
73
86
|
declare function validateZip(zipPath: string): Promise<void>;
|
|
74
87
|
declare function createArtifact(options: CreateArtifactOptions, deps: CreateCompressedBytecodeDependencies): Promise<string>;
|
|
75
88
|
|
|
76
|
-
|
|
89
|
+
declare function setupRuntimeSetupScript(config: Pick<AppsInTossPluginOptions, 'brand'> & {
|
|
90
|
+
deploymentId: string;
|
|
91
|
+
}): {
|
|
92
|
+
contents: string;
|
|
93
|
+
path: string;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export { type AppManifest, type AppsInTossPluginOptions, type BridgeTheme, type BuildResult, type CreateArtifactOptions, type Permission, appsInToss, appsInTossAppJson, appsInTossEsbuildConfig, appsInTossMetroConfig, createArtifact, setupRuntimeSetupScript, validateAppManifest, validateZip };
|
package/dist/plugins/index.d.ts
CHANGED
|
@@ -33,11 +33,24 @@ type AppManifest = {
|
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
35
|
declare const validateAppManifest: (input: unknown) => typia.IValidation<AppManifest>;
|
|
36
|
-
|
|
37
36
|
interface AppsInTossPluginOptions {
|
|
37
|
+
brand: {
|
|
38
|
+
displayName: string;
|
|
39
|
+
primaryColor: string;
|
|
40
|
+
icon: string;
|
|
41
|
+
bridgeColorMode: BridgeTheme;
|
|
42
|
+
};
|
|
38
43
|
permissions: AppManifest['permissions'];
|
|
39
44
|
}
|
|
40
|
-
|
|
45
|
+
/**
|
|
46
|
+
* - `basic`: 기본 테마 (흰 배경)
|
|
47
|
+
* - `inverted`: 반전 테마 (검은 배경)
|
|
48
|
+
*/
|
|
49
|
+
type BridgeTheme = 'basic' | 'inverted';
|
|
50
|
+
|
|
51
|
+
declare function appsInTossEsbuildConfig(envScript: string): BedrockPluginCore;
|
|
52
|
+
declare function appsInTossMetroConfig(envScriptPath: string): BedrockPluginCore;
|
|
53
|
+
declare function appsInTossAppJson(options: Pick<AppsInTossPluginOptions, 'permissions'>): Promise<BedrockPluginCore>;
|
|
41
54
|
declare function appsInToss(options: AppsInTossPluginOptions): (BedrockPluginCore | Promise<BedrockPluginCore>)[];
|
|
42
55
|
|
|
43
56
|
interface CompileHbcOptions {
|
|
@@ -73,4 +86,11 @@ interface CreateArtifactOptions {
|
|
|
73
86
|
declare function validateZip(zipPath: string): Promise<void>;
|
|
74
87
|
declare function createArtifact(options: CreateArtifactOptions, deps: CreateCompressedBytecodeDependencies): Promise<string>;
|
|
75
88
|
|
|
76
|
-
|
|
89
|
+
declare function setupRuntimeSetupScript(config: Pick<AppsInTossPluginOptions, 'brand'> & {
|
|
90
|
+
deploymentId: string;
|
|
91
|
+
}): {
|
|
92
|
+
contents: string;
|
|
93
|
+
path: string;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export { type AppManifest, type AppsInTossPluginOptions, type BridgeTheme, type BuildResult, type CreateArtifactOptions, type Permission, appsInToss, appsInTossAppJson, appsInTossEsbuildConfig, appsInTossMetroConfig, createArtifact, setupRuntimeSetupScript, validateAppManifest, validateZip };
|