@supernova-studio/client 0.48.34 → 0.48.36

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.mjs CHANGED
@@ -781,10 +781,6 @@ var ContentLoaderPayload = z33.object({
781
781
  location: z33.string()
782
782
  })
783
783
  );
784
- function slugify(str, options) {
785
- const slug = slugifyImplementation(str ?? "", options);
786
- return slug?.length > 0 ? slug : "item";
787
- }
788
784
  var RESERVED_SLUGS = [
789
785
  "workspaces",
790
786
  "workspace",
@@ -4519,12 +4515,12 @@ function buildDocPagePublishPaths(groups, pages, routingVersion) {
4519
4515
  for (const page of pages) {
4520
4516
  const parentChain = calculateElementParentChain(page.parentPersistentId, groupPersistentIdToGroupMap);
4521
4517
  let pathV1 = `${page.userSlug || page.slug}.html`;
4522
- let pathV2 = `${slugify(page.meta.name)}-${page.shortPersistentId}`;
4518
+ let pathV2 = `${page.slug}-${page.shortPersistentId}`;
4523
4519
  for (const parent of parentChain) {
4524
4520
  if (!parent.parentPersistentId)
4525
4521
  continue;
4526
- pathV1 = `${parent.userSlug || parent.slug}/${pathV1}`;
4527
- pathV2 = `${slugify(parent.meta.name)}/${pathV2}`;
4522
+ pathV1 = `${parent.userSlug || parent.slug || "root"}/${pathV1}`;
4523
+ pathV2 = `${parent.slug || "root"}/${pathV2}`;
4528
4524
  }
4529
4525
  pathV1 = `/${pathV1}`;
4530
4526
  pathV2 = `/${pathV2}`;