@plasmicapp/cli 0.1.341 → 0.1.343
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/actions/status.d.ts +5 -0
- package/dist/actions/sync-project-module.d.ts +5 -0
- package/dist/actions/sync-style-tokens-provider.d.ts +5 -0
- package/dist/api.d.ts +12 -0
- package/dist/index.js +4932 -4528
- package/dist/lib.js +4370 -4100
- package/dist/plasmic.schema.json +10 -0
- package/dist/utils/config-utils.d.ts +5 -1
- package/package.json +2 -2
- package/src/__mocks__/api.ts +2 -0
- package/src/actions/export.ts +40 -1
- package/src/actions/status.ts +173 -0
- package/src/actions/sync-project-module.ts +88 -0
- package/src/actions/sync-style-tokens-provider.ts +96 -0
- package/src/actions/sync.ts +20 -0
- package/src/api.ts +19 -0
- package/src/deps.ts +1 -1
- package/src/index.ts +13 -1
- package/src/test-common/fixtures.ts +2 -0
- package/src/utils/checksum.ts +37 -0
- package/src/utils/code-utils.ts +73 -6
- package/src/utils/config-utils.ts +11 -1
- package/src/utils/get-context.ts +28 -0
- package/src/utils/test-utils.ts +1 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ChecksumBundle, ProjectMetaBundle } from "../api";
|
|
2
|
+
import { PlasmicContext, ProjectConfig, ProjectLock } from "../utils/config-utils";
|
|
3
|
+
export declare const DEFAULT_PROJECT_MODULE_NAME = "plasmic";
|
|
4
|
+
export declare function syncProjectModule(context: PlasmicContext, projectMeta: ProjectMetaBundle, projectConfig: ProjectConfig, projectLock: ProjectLock, checksums: ChecksumBundle, baseDir: string): Promise<void>;
|
|
5
|
+
export declare function getProjectModuleResourcePath(context: PlasmicContext, projectConfig: ProjectConfig): string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ChecksumBundle, ProjectMetaBundle } from "../api";
|
|
2
|
+
import { PlasmicContext, ProjectConfig, ProjectLock } from "../utils/config-utils";
|
|
3
|
+
export declare const DEFAULT_STYLE_TOKENS_PROVIDER_NAME = "PlasmicStyleTokensProvider";
|
|
4
|
+
export declare function syncStyleTokensProvider(context: PlasmicContext, projectMeta: ProjectMetaBundle, projectConfig: ProjectConfig, projectLock: ProjectLock, checksums: ChecksumBundle, baseDir: string): Promise<void>;
|
|
5
|
+
export declare function getStyleTokensProviderResourcePath(context: PlasmicContext, projectConfig: ProjectConfig): string;
|
package/dist/api.d.ts
CHANGED
|
@@ -39,6 +39,14 @@ export interface SplitsProviderBundle {
|
|
|
39
39
|
id: string;
|
|
40
40
|
module: string;
|
|
41
41
|
}
|
|
42
|
+
export interface StyleTokensProviderBundle {
|
|
43
|
+
id: string;
|
|
44
|
+
module: string;
|
|
45
|
+
}
|
|
46
|
+
export interface ProjectModuleBundle {
|
|
47
|
+
id: string;
|
|
48
|
+
module: string;
|
|
49
|
+
}
|
|
42
50
|
export interface JsBundleTheme {
|
|
43
51
|
themeFileName: string;
|
|
44
52
|
themeModule: string;
|
|
@@ -51,6 +59,8 @@ export interface ProjectMetaBundle {
|
|
|
51
59
|
cssRules: string;
|
|
52
60
|
globalContextBundle?: GlobalContextBundle;
|
|
53
61
|
splitsProviderBundle?: SplitsProviderBundle;
|
|
62
|
+
styleTokensProviderBundle?: StyleTokensProviderBundle;
|
|
63
|
+
projectModuleBundle?: ProjectModuleBundle;
|
|
54
64
|
reactWebExportedFiles?: Array<{
|
|
55
65
|
fileName: string;
|
|
56
66
|
content: string;
|
|
@@ -142,6 +152,8 @@ export interface ChecksumBundle {
|
|
|
142
152
|
projectCssChecksum: string;
|
|
143
153
|
globalContextsChecksum: string;
|
|
144
154
|
splitsProviderChecksum: string;
|
|
155
|
+
styleTokensProviderChecksum: string;
|
|
156
|
+
projectModuleChecksum: string;
|
|
145
157
|
}
|
|
146
158
|
export interface CodeComponentMeta {
|
|
147
159
|
id: string;
|