@embeddable.com/sdk-core 4.1.6 → 4.1.7-next.0

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.
@@ -58,6 +58,7 @@ export type ResolvedEmbeddableConfig = {
58
58
  archiveFile: string;
59
59
  errorFallbackComponent?: string;
60
60
  bundleHash?: string;
61
+ componentsWithPreview?: string[];
61
62
  customizationFile: string;
62
63
  lifecycleHooksFile: string;
63
64
  componentLibraries: string[] | ComponentLibraryConfig[];
package/lib/index.esm.js CHANGED
@@ -996,6 +996,7 @@ async function createManifest({ ctx, typesFileName, metaFileName, editorsMetaFil
996
996
  nodeVersion: process.version,
997
997
  platform: process.platform,
998
998
  bundleHash: ctx.client.bundleHash,
999
+ previews: ctx.client.componentsWithPreview,
999
1000
  sdkVersions,
1000
1001
  packageManager,
1001
1002
  packageManagerVersion,
@@ -22227,6 +22228,11 @@ var dev = async () => {
22227
22228
  if (sys === null || sys === void 0 ? void 0 : sys.onProcessInterrupt) {
22228
22229
  sys.onProcessInterrupt(async () => await onClose(server, sys, watchers, config));
22229
22230
  }
22231
+ // Build plugins first to populate componentsWithPreview
22232
+ if (config.pushComponents) {
22233
+ breadcrumbs.push("build plugins with coordination");
22234
+ await executePluginBuilds(config, watchers);
22235
+ }
22230
22236
  breadcrumbs.push("create manifest");
22231
22237
  await createManifest({
22232
22238
  ctx: {
@@ -22243,8 +22249,6 @@ var dev = async () => {
22243
22249
  });
22244
22250
  await sendBuildChanges(config);
22245
22251
  if (config.pushComponents) {
22246
- breadcrumbs.push("build plugins with coordination");
22247
- await executePluginBuilds(config, watchers);
22248
22252
  const customCanvasCssWatch = globalCustomCanvasWatcher(config);
22249
22253
  watchers.push(customCanvasCssWatch);
22250
22254
  if (themeWatcher) {