@plasmicapp/cli 0.1.335 → 0.1.337
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/api.d.ts +8 -2
- package/dist/index.js +35145 -36822
- package/dist/lib.js +35164 -36841
- package/dist/plasmic.schema.json +18 -0
- package/dist/utils/code-utils.d.ts +1 -0
- package/dist/utils/config-utils.d.ts +11 -0
- package/dist/utils/rsc-config.d.ts +5 -0
- package/package.json +2 -2
- package/src/actions/sync-components.ts +26 -1
- package/src/actions/sync.ts +3 -3
- package/src/api.ts +15 -2
- package/src/utils/code-utils.ts +93 -2
- package/src/utils/config-utils.ts +12 -0
- package/src/utils/file-utils.ts +8 -2
- package/src/utils/rsc-config.ts +56 -0
package/dist/api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import socketio from "socket.io-client";
|
|
2
2
|
import { AuthConfig, CodeConfig, CustomFunctionConfig, FontConfig, I18NConfig, ImagesConfig, StyleConfig } from "./utils/config-utils";
|
|
3
3
|
import { Metadata } from "./utils/get-context";
|
|
4
4
|
export declare class AppServerError extends Error {
|
|
@@ -18,6 +18,12 @@ export interface ComponentBundle {
|
|
|
18
18
|
isPage: boolean;
|
|
19
19
|
path?: string;
|
|
20
20
|
plumeType?: string;
|
|
21
|
+
rscMetadata?: {
|
|
22
|
+
pageWrappers: Record<"client" | "server", {
|
|
23
|
+
module: string;
|
|
24
|
+
fileName: string;
|
|
25
|
+
}>;
|
|
26
|
+
};
|
|
21
27
|
}
|
|
22
28
|
export interface GlobalVariantBundle {
|
|
23
29
|
id: string;
|
|
@@ -238,7 +244,7 @@ export declare class PlasmicApi {
|
|
|
238
244
|
uploadBundle(projectId: string, bundleName: string, bundleJs: string, css: string[], metaJson: string, genModulePath: string | undefined, genCssPaths: string[], pkgVersion: string | undefined, extraPropMetaJson: string | undefined, themeProviderWrapper: string | undefined, themeModule: string | undefined): Promise<StyleTokensMap>;
|
|
239
245
|
projectStyleTokens(projectId: string, branchName: string, versionRange?: string): Promise<StyleTokensMap>;
|
|
240
246
|
projectIcons(projectId: string, branchName: string, versionRange?: string, iconIds?: string[]): Promise<ProjectIconsResponse>;
|
|
241
|
-
connectSocket():
|
|
247
|
+
connectSocket(): ReturnType<typeof socketio>;
|
|
242
248
|
private post;
|
|
243
249
|
private get;
|
|
244
250
|
private makeErrorMessage;
|