@webstudio-is/react-sdk 0.138.0 → 0.140.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.
package/lib/index.js CHANGED
@@ -295,7 +295,6 @@ var ReactSdkContext = createContext({
295
295
  assetBaseUrl: "/",
296
296
  imageBaseUrl: "/",
297
297
  imageLoader: ({ src }) => src,
298
- pagesPaths: /* @__PURE__ */ new Set(),
299
298
  resources: {}
300
299
  });
301
300
  var useResource = (name) => {
@@ -332,7 +331,6 @@ var createElementsTree = ({
332
331
  value: {
333
332
  renderer,
334
333
  imageLoader,
335
- pagesPaths: /* @__PURE__ */ new Set(),
336
334
  assetBaseUrl,
337
335
  imageBaseUrl,
338
336
  resources: {}
@@ -1325,16 +1323,7 @@ var getClosestInstance = (instancePath, currentInstance, closestComponent) => {
1325
1323
  };
1326
1324
 
1327
1325
  // src/generator.ts
1328
- import { getPagePath as getPagePath2 } from "@webstudio-is/sdk";
1329
1326
  var generateUtilsExport = (siteData) => {
1330
- const pagesPaths = [siteData.pages.homePage.path];
1331
- for (const page of siteData.pages.pages) {
1332
- const path = getPagePath2(page.id, siteData.pages);
1333
- pagesPaths.push(path);
1334
- }
1335
- const generatedPagesPaths = `export const pagesPaths = new Set(${JSON.stringify(
1336
- pagesPaths
1337
- )})`;
1338
1327
  const formsProperties = /* @__PURE__ */ new Map();
1339
1328
  for (const prop of siteData.props.values()) {
1340
1329
  if (prop.type === "string") {
@@ -1352,8 +1341,6 @@ var generateUtilsExport = (siteData) => {
1352
1341
  Array.from(formsProperties.entries())
1353
1342
  )})`;
1354
1343
  return `
1355
- ${generatedPagesPaths}
1356
-
1357
1344
  ${generatedFormsProperties}
1358
1345
  `;
1359
1346
  };