@plasmicapp/loader-react 1.0.169 → 1.0.170

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.
@@ -1165,6 +1165,9 @@ function matchesPagePath(pagePath, lookup) {
1165
1165
  params: params
1166
1166
  };
1167
1167
  }
1168
+ function isDynamicPagePath(path) {
1169
+ return !!path.match(/\[[^/]*\]/);
1170
+ }
1168
1171
 
1169
1172
  function matchesCompMeta(lookup, meta) {
1170
1173
  if (lookup.projectId && meta.projectId !== lookup.projectId) {
@@ -1868,7 +1871,7 @@ var InternalPlasmicComponentLoader = /*#__PURE__*/function () {
1868
1871
  }();
1869
1872
 
1870
1873
  _proto.fetchPages = /*#__PURE__*/function () {
1871
- var _fetchPages = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4() {
1874
+ var _fetchPages = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4(opts) {
1872
1875
  var data;
1873
1876
  return runtime_1.wrap(function _callee4$(_context4) {
1874
1877
  while (1) {
@@ -1883,7 +1886,7 @@ var InternalPlasmicComponentLoader = /*#__PURE__*/function () {
1883
1886
  case 3:
1884
1887
  data = _context4.sent;
1885
1888
  return _context4.abrupt("return", data.components.filter(function (comp) {
1886
- return comp.isPage && comp.path;
1889
+ return comp.isPage && comp.path && ((opts == null ? void 0 : opts.includeDynamicPages) || !isDynamicPagePath(comp.path));
1887
1890
  }));
1888
1891
 
1889
1892
  case 5:
@@ -1894,7 +1897,7 @@ var InternalPlasmicComponentLoader = /*#__PURE__*/function () {
1894
1897
  }, _callee4, this);
1895
1898
  }));
1896
1899
 
1897
- function fetchPages() {
1900
+ function fetchPages(_x2) {
1898
1901
  return _fetchPages.apply(this, arguments);
1899
1902
  }
1900
1903
 
@@ -1974,7 +1977,7 @@ var InternalPlasmicComponentLoader = /*#__PURE__*/function () {
1974
1977
  }, _callee6, this);
1975
1978
  }));
1976
1979
 
1977
- function fetchMissingData(_x2) {
1980
+ function fetchMissingData(_x3) {
1978
1981
  return _fetchMissingData.apply(this, arguments);
1979
1982
  }
1980
1983
 
@@ -2015,7 +2018,7 @@ var InternalPlasmicComponentLoader = /*#__PURE__*/function () {
2015
2018
  }, _callee7, this);
2016
2019
  }));
2017
2020
 
2018
- function getActiveVariation$1(_x3) {
2021
+ function getActiveVariation$1(_x4) {
2019
2022
  return _getActiveVariation2.apply(this, arguments);
2020
2023
  }
2021
2024
 
@@ -2297,12 +2300,12 @@ var PlasmicComponentLoader = /*#__PURE__*/function () {
2297
2300
  _proto2.fetchPages =
2298
2301
  /*#__PURE__*/
2299
2302
  function () {
2300
- var _fetchPages2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee11() {
2303
+ var _fetchPages2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee11(opts) {
2301
2304
  return runtime_1.wrap(function _callee11$(_context11) {
2302
2305
  while (1) {
2303
2306
  switch (_context11.prev = _context11.next) {
2304
2307
  case 0:
2305
- return _context11.abrupt("return", this.__internal.fetchPages());
2308
+ return _context11.abrupt("return", this.__internal.fetchPages(opts));
2306
2309
 
2307
2310
  case 1:
2308
2311
  case "end":
@@ -2312,7 +2315,7 @@ var PlasmicComponentLoader = /*#__PURE__*/function () {
2312
2315
  }, _callee11, this);
2313
2316
  }));
2314
2317
 
2315
- function fetchPages() {
2318
+ function fetchPages(_x5) {
2316
2319
  return _fetchPages2.apply(this, arguments);
2317
2320
  }
2318
2321
 
@@ -2364,7 +2367,7 @@ var PlasmicComponentLoader = /*#__PURE__*/function () {
2364
2367
  }, _callee13, this);
2365
2368
  }));
2366
2369
 
2367
- function _getActiveVariation(_x4) {
2370
+ function _getActiveVariation(_x6) {
2368
2371
  return _getActiveVariation3.apply(this, arguments);
2369
2372
  }
2370
2373
 
@@ -2402,7 +2405,7 @@ var PlasmicComponentLoader = /*#__PURE__*/function () {
2402
2405
  }, _callee14, this);
2403
2406
  }));
2404
2407
 
2405
- function getActiveVariation(_x5) {
2408
+ function getActiveVariation(_x7) {
2406
2409
  return _getActiveVariation4.apply(this, arguments);
2407
2410
  }
2408
2411