@apps-in-toss/plugins 0.0.0-dev.1744801739343 → 0.0.0-dev.1752049503789
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 +26546 -26199
- package/dist/index.d.cts +27 -7
- package/dist/index.d.ts +27 -7
- package/dist/index.js +26554 -26211
- package/package.json +9 -7
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GranitePluginCore } from '@granite-js/plugin-core';
|
|
2
2
|
import typia, { tags } from 'typia';
|
|
3
3
|
|
|
4
4
|
type PermissionReadWrite = 'read' | 'write';
|
|
@@ -47,11 +47,25 @@ interface AppsInTossPluginOptions {
|
|
|
47
47
|
* - `inverted`: 반전 테마 (검은 배경)
|
|
48
48
|
*/
|
|
49
49
|
type BridgeTheme = 'basic' | 'inverted';
|
|
50
|
+
declare const validateAppInTossPluginOptions: (input: unknown) => typia.IValidation<AppsInTossPluginOptions>;
|
|
50
51
|
|
|
51
|
-
declare function appsInTossEsbuildConfig(envScript: string):
|
|
52
|
-
declare function appsInTossMetroConfig(envScriptPath: string):
|
|
53
|
-
declare function appsInTossAppJson(options: Pick<AppsInTossPluginOptions, 'permissions'>): Promise<
|
|
54
|
-
declare function
|
|
52
|
+
declare function appsInTossEsbuildConfig(envScript: string): GranitePluginCore;
|
|
53
|
+
declare function appsInTossMetroConfig(envScriptPath: string): GranitePluginCore;
|
|
54
|
+
declare function appsInTossAppJson(options: Pick<AppsInTossPluginOptions, 'permissions'>): Promise<GranitePluginCore>;
|
|
55
|
+
declare function appsInTossPostNotice(): GranitePluginCore;
|
|
56
|
+
declare function appsInToss(options: AppsInTossPluginOptions): (GranitePluginCore | Promise<GranitePluginCore>)[];
|
|
57
|
+
|
|
58
|
+
declare function analytics(): GranitePluginCore;
|
|
59
|
+
|
|
60
|
+
interface AppsInTossBuildMetadata {
|
|
61
|
+
runtimeVersion: string;
|
|
62
|
+
deploymentId: string;
|
|
63
|
+
bundleFiles: string[];
|
|
64
|
+
packageJson: {
|
|
65
|
+
dependencies: Record<string, string>;
|
|
66
|
+
devDependencies: Record<string, string>;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
55
69
|
|
|
56
70
|
type BuildResult = {
|
|
57
71
|
jsFile: string;
|
|
@@ -65,7 +79,8 @@ interface CreateArtifactOptions {
|
|
|
65
79
|
reactNativeVersion: string;
|
|
66
80
|
appJsonPath: string;
|
|
67
81
|
outfile: string;
|
|
68
|
-
deploymentId:
|
|
82
|
+
deploymentId: AppsInTossBuildMetadata['deploymentId'];
|
|
83
|
+
packageJson: AppsInTossBuildMetadata['packageJson'];
|
|
69
84
|
additionalFilesToZip?: {
|
|
70
85
|
path: string;
|
|
71
86
|
name: string;
|
|
@@ -81,4 +96,9 @@ declare function setupRuntimeSetupScript(config: Pick<AppsInTossPluginOptions, '
|
|
|
81
96
|
path: string;
|
|
82
97
|
};
|
|
83
98
|
|
|
84
|
-
|
|
99
|
+
declare function collectDependencyVersions(rootDir: string): Promise<{
|
|
100
|
+
dependencies: Record<string, string>;
|
|
101
|
+
devDependencies: Record<string, string>;
|
|
102
|
+
}>;
|
|
103
|
+
|
|
104
|
+
export { type AppManifest, type AppsInTossPluginOptions, type BridgeTheme, type BuildResult, type CreateArtifactOptions, type Permission, analytics, appsInToss, appsInTossAppJson, appsInTossEsbuildConfig, appsInTossMetroConfig, appsInTossPostNotice, collectDependencyVersions, createArtifact, setupRuntimeSetupScript, validateAppInTossPluginOptions, validateAppManifest, validateZip };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GranitePluginCore } from '@granite-js/plugin-core';
|
|
2
2
|
import typia, { tags } from 'typia';
|
|
3
3
|
|
|
4
4
|
type PermissionReadWrite = 'read' | 'write';
|
|
@@ -47,11 +47,25 @@ interface AppsInTossPluginOptions {
|
|
|
47
47
|
* - `inverted`: 반전 테마 (검은 배경)
|
|
48
48
|
*/
|
|
49
49
|
type BridgeTheme = 'basic' | 'inverted';
|
|
50
|
+
declare const validateAppInTossPluginOptions: (input: unknown) => typia.IValidation<AppsInTossPluginOptions>;
|
|
50
51
|
|
|
51
|
-
declare function appsInTossEsbuildConfig(envScript: string):
|
|
52
|
-
declare function appsInTossMetroConfig(envScriptPath: string):
|
|
53
|
-
declare function appsInTossAppJson(options: Pick<AppsInTossPluginOptions, 'permissions'>): Promise<
|
|
54
|
-
declare function
|
|
52
|
+
declare function appsInTossEsbuildConfig(envScript: string): GranitePluginCore;
|
|
53
|
+
declare function appsInTossMetroConfig(envScriptPath: string): GranitePluginCore;
|
|
54
|
+
declare function appsInTossAppJson(options: Pick<AppsInTossPluginOptions, 'permissions'>): Promise<GranitePluginCore>;
|
|
55
|
+
declare function appsInTossPostNotice(): GranitePluginCore;
|
|
56
|
+
declare function appsInToss(options: AppsInTossPluginOptions): (GranitePluginCore | Promise<GranitePluginCore>)[];
|
|
57
|
+
|
|
58
|
+
declare function analytics(): GranitePluginCore;
|
|
59
|
+
|
|
60
|
+
interface AppsInTossBuildMetadata {
|
|
61
|
+
runtimeVersion: string;
|
|
62
|
+
deploymentId: string;
|
|
63
|
+
bundleFiles: string[];
|
|
64
|
+
packageJson: {
|
|
65
|
+
dependencies: Record<string, string>;
|
|
66
|
+
devDependencies: Record<string, string>;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
55
69
|
|
|
56
70
|
type BuildResult = {
|
|
57
71
|
jsFile: string;
|
|
@@ -65,7 +79,8 @@ interface CreateArtifactOptions {
|
|
|
65
79
|
reactNativeVersion: string;
|
|
66
80
|
appJsonPath: string;
|
|
67
81
|
outfile: string;
|
|
68
|
-
deploymentId:
|
|
82
|
+
deploymentId: AppsInTossBuildMetadata['deploymentId'];
|
|
83
|
+
packageJson: AppsInTossBuildMetadata['packageJson'];
|
|
69
84
|
additionalFilesToZip?: {
|
|
70
85
|
path: string;
|
|
71
86
|
name: string;
|
|
@@ -81,4 +96,9 @@ declare function setupRuntimeSetupScript(config: Pick<AppsInTossPluginOptions, '
|
|
|
81
96
|
path: string;
|
|
82
97
|
};
|
|
83
98
|
|
|
84
|
-
|
|
99
|
+
declare function collectDependencyVersions(rootDir: string): Promise<{
|
|
100
|
+
dependencies: Record<string, string>;
|
|
101
|
+
devDependencies: Record<string, string>;
|
|
102
|
+
}>;
|
|
103
|
+
|
|
104
|
+
export { type AppManifest, type AppsInTossPluginOptions, type BridgeTheme, type BuildResult, type CreateArtifactOptions, type Permission, analytics, appsInToss, appsInTossAppJson, appsInTossEsbuildConfig, appsInTossMetroConfig, appsInTossPostNotice, collectDependencyVersions, createArtifact, setupRuntimeSetupScript, validateAppInTossPluginOptions, validateAppManifest, validateZip };
|