@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.
@@ -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
- declare function appsInTossAppJson(options: AppsInTossPluginOptions): Promise<BedrockPluginCore>;
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
- export { type AppManifest, type AppsInTossPluginOptions, type BuildResult, type CreateArtifactOptions, type Permission, appsInToss, appsInTossAppJson, createArtifact, validateAppManifest, validateZip };
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 };
@@ -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
- declare function appsInTossAppJson(options: AppsInTossPluginOptions): Promise<BedrockPluginCore>;
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
- export { type AppManifest, type AppsInTossPluginOptions, type BuildResult, type CreateArtifactOptions, type Permission, appsInToss, appsInTossAppJson, createArtifact, validateAppManifest, validateZip };
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 };