@plasmicapp/cli 0.1.348 → 0.1.349
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/sync-data-tokens.d.ts +5 -0
- package/dist/api.d.ts +6 -0
- package/dist/index.js +712 -602
- package/dist/lib.js +713 -603
- package/dist/plasmic.schema.json +5 -0
- package/dist/utils/config-utils.d.ts +3 -1
- package/package.json +2 -2
- package/src/__mocks__/api.ts +12 -11
- package/src/actions/export.ts +4 -0
- package/src/actions/sync-data-tokens.ts +88 -0
- package/src/actions/sync.ts +10 -0
- package/src/api.ts +8 -0
- package/src/test-common/fixtures.ts +1 -0
- package/src/utils/checksum.ts +18 -1
- package/src/utils/code-utils.ts +29 -1
- package/src/utils/config-utils.ts +5 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ChecksumBundle, ProjectMetaBundle } from "../api";
|
|
2
|
+
import { PlasmicContext, ProjectConfig, ProjectLock } from "../utils/config-utils";
|
|
3
|
+
export declare const DEFAULT_DATA_TOKENS_NAME = "plasmic-data-tokens";
|
|
4
|
+
export declare function syncDataTokens(context: PlasmicContext, projectMeta: ProjectMetaBundle, projectConfig: ProjectConfig, projectLock: ProjectLock, checksums: ChecksumBundle, baseDir: string): Promise<void>;
|
|
5
|
+
export declare function getDataTokensResourcePath(context: PlasmicContext, projectConfig: ProjectConfig): string;
|
package/dist/api.d.ts
CHANGED
|
@@ -43,6 +43,10 @@ export interface StyleTokensProviderBundle {
|
|
|
43
43
|
id: string;
|
|
44
44
|
module: string;
|
|
45
45
|
}
|
|
46
|
+
export interface DataTokensBundle {
|
|
47
|
+
id: string;
|
|
48
|
+
module: string;
|
|
49
|
+
}
|
|
46
50
|
export interface ProjectModuleBundle {
|
|
47
51
|
id: string;
|
|
48
52
|
module: string;
|
|
@@ -60,6 +64,7 @@ export interface ProjectMetaBundle {
|
|
|
60
64
|
globalContextBundle?: GlobalContextBundle;
|
|
61
65
|
splitsProviderBundle?: SplitsProviderBundle;
|
|
62
66
|
styleTokensProviderBundle?: StyleTokensProviderBundle;
|
|
67
|
+
dataTokensBundle?: DataTokensBundle;
|
|
63
68
|
projectModuleBundle?: ProjectModuleBundle;
|
|
64
69
|
reactWebExportedFiles?: Array<{
|
|
65
70
|
fileName: string;
|
|
@@ -153,6 +158,7 @@ export interface ChecksumBundle {
|
|
|
153
158
|
globalContextsChecksum: string;
|
|
154
159
|
splitsProviderChecksum: string;
|
|
155
160
|
styleTokensProviderChecksum: string;
|
|
161
|
+
dataTokensChecksum: string;
|
|
156
162
|
projectModuleChecksum: string;
|
|
157
163
|
}
|
|
158
164
|
export interface CodeComponentMeta {
|