@plasmicapp/loader-react 2.0.10 → 2.0.12

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/index.js CHANGED
@@ -1204,7 +1204,7 @@ var PlasmicComponentLoader = class {
1204
1204
  }
1205
1205
  return this.__internal.loadServerQueriesModule(fileName);
1206
1206
  }
1207
- unstable__getServerQueriesData(renderData, $ctx, $props) {
1207
+ getPlasmicQueriesData(renderData, ctx, props) {
1208
1208
  return __async(this, null, function* () {
1209
1209
  var _a;
1210
1210
  const module2 = this.getExecFuncModule(
@@ -1216,15 +1216,23 @@ var PlasmicComponentLoader = class {
1216
1216
  (_a = renderData.entryCompMetas[0]) == null ? void 0 : _a.displayName
1217
1217
  );
1218
1218
  try {
1219
- const $serverQueries = yield module2 == null ? void 0 : module2.executeServerQueries($ctx, $props);
1220
- return $serverQueries;
1219
+ const queries = yield module2 == null ? void 0 : module2.getPlasmicQueriesData(ctx, props);
1220
+ return queries;
1221
1221
  } catch (err) {
1222
- console.error("Error executing server queries function", err);
1222
+ console.error("Error executing queries function", err);
1223
1223
  return {};
1224
1224
  }
1225
1225
  });
1226
1226
  }
1227
- unstable__generateMetadata(renderData, props) {
1227
+ /**
1228
+ * @deprecated Use {@link PlasmicComponentLoader.getPlasmicQueriesData} instead.
1229
+ */
1230
+ unstable__getServerQueriesData(renderData, ctx, props) {
1231
+ return __async(this, null, function* () {
1232
+ return this.getPlasmicQueriesData(renderData, ctx, props);
1233
+ });
1234
+ }
1235
+ getPlasmicMetadata(renderData, props) {
1228
1236
  return __async(this, null, function* () {
1229
1237
  const module2 = this.getExecFuncModule(
1230
1238
  renderData,
@@ -1244,6 +1252,14 @@ var PlasmicComponentLoader = class {
1244
1252
  }
1245
1253
  });
1246
1254
  }
1255
+ /**
1256
+ * @deprecated Use {@link PlasmicComponentLoader.getPlasmicMetadata} instead.
1257
+ */
1258
+ unstable__generateMetadata(renderData, props) {
1259
+ return __async(this, null, function* () {
1260
+ return this.getPlasmicMetadata(renderData, props);
1261
+ });
1262
+ }
1247
1263
  };
1248
1264
 
1249
1265
  // src/loader-client.ts