@plasmicapp/cli 0.1.317 → 0.1.318
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-splits-provider.d.ts +5 -0
- package/dist/api.d.ts +6 -0
- package/dist/index.js +1526 -1371
- package/dist/lib.js +1527 -1372
- 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 +1 -0
- package/src/actions/export.ts +19 -0
- package/src/actions/sync-splits-provider.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 +19 -0
- package/src/utils/code-utils.ts +63 -1
- package/src/utils/config-utils.ts +6 -1
- package/src/utils/get-context.ts +13 -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_SPLITS_PROVIDER_NAME = "PlasmicSplitsProvider";
|
|
4
|
+
export declare function syncSplitsProvider(context: PlasmicContext, projectMeta: ProjectMetaBundle, projectConfig: ProjectConfig, projectLock: ProjectLock, checksums: ChecksumBundle, baseDir: string): Promise<void>;
|
|
5
|
+
export declare function getSplitsProviderResourcePath(context: PlasmicContext, projectConfig: ProjectConfig): string;
|
package/dist/api.d.ts
CHANGED
|
@@ -29,6 +29,10 @@ export interface GlobalContextBundle {
|
|
|
29
29
|
id: string;
|
|
30
30
|
contextModule: string;
|
|
31
31
|
}
|
|
32
|
+
export interface SplitsProviderBundle {
|
|
33
|
+
id: string;
|
|
34
|
+
module: string;
|
|
35
|
+
}
|
|
32
36
|
export interface JsBundleTheme {
|
|
33
37
|
themeFileName: string;
|
|
34
38
|
themeModule: string;
|
|
@@ -41,6 +45,7 @@ export interface ProjectMetaBundle {
|
|
|
41
45
|
cssRules: string;
|
|
42
46
|
jsBundleThemes?: JsBundleTheme[];
|
|
43
47
|
globalContextBundle?: GlobalContextBundle;
|
|
48
|
+
splitsProviderBundle?: SplitsProviderBundle;
|
|
44
49
|
}
|
|
45
50
|
export interface IconBundle {
|
|
46
51
|
id: string;
|
|
@@ -127,6 +132,7 @@ export interface ChecksumBundle {
|
|
|
127
132
|
globalVariantChecksums: Array<[string, string]>;
|
|
128
133
|
projectCssChecksum: string;
|
|
129
134
|
globalContextsChecksum: string;
|
|
135
|
+
splitsProviderChecksum: string;
|
|
130
136
|
}
|
|
131
137
|
export interface CodeComponentMeta {
|
|
132
138
|
id: string;
|