@uniformdev/project-map 19.79.1-alpha.11 → 19.79.1-alpha.18

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/LICENSE.txt CHANGED
@@ -1,2 +1,2 @@
1
- © 2023 Uniform Systems, Inc. All Rights Reserved.
1
+ © 2024 Uniform Systems, Inc. All Rights Reserved.
2
2
  See details of Uniform Systems, Inc. Master Subscription Agreement here: https://uniform.dev/eula
package/dist/index.d.mts CHANGED
@@ -179,6 +179,15 @@ interface paths {
179
179
  projectMapId?: string;
180
180
  /** The project id that contains the project map tree that this node belongs to */
181
181
  projectId: string;
182
+ /**
183
+ * The ID of a release to fetch the composition data for.
184
+ *
185
+ * - When unspecified, composition data is fetched from base.
186
+ * - When specified, all content is returned as it would appear in the release if it was released now. This includes both content copied to the release and changed, as well as content that is not part of the release.
187
+ *
188
+ * Content copied to a release can be differentiated from base content by the `releaseId` property on the content. If the content is not copied to the release, this property will not be defined.
189
+ */
190
+ releaseId?: string;
182
191
  /** The id of the node to retrieve, cannot have both this parameter and Path */
183
192
  id?: string;
184
193
  /** The path of the root node to retrieve, cannot have both this parameter and Id */
@@ -655,4 +664,4 @@ declare class Route {
655
664
  static dynamicSegmentPrefix: string;
656
665
  }
657
666
 
658
- export { ExpandOptions, MatchedRoute, NodeType, ProjectMapClient, ProjectMapClientOptions, ProjectMapDefinition, ProjectMapDefinitionWithId, ProjectMapDefinitions, ProjectMapDeleteRequest, ProjectMapGetRequest, ProjectMapGetResponse, ProjectMapNode, ProjectMapNodeAllowedQueryString, ProjectMapNodeData, ProjectMapNodeDeleteRequest, ProjectMapNodeGetRequest, ProjectMapNodeGetResponse, ProjectMapNodeUpsertRequest, ProjectMapNodeUpsertRequestNode, ProjectMapNodeWithId, ProjectMapNodeWithProjectMapReference, ProjectMapSubtree, ProjectMapUpsertRequest, ProjectMapUpsertResponse, ROOT_NODE_PATH, Route, UncachedProjectMapClient, UnmatchedRoute };
667
+ export { type ExpandOptions, type MatchedRoute, type NodeType, ProjectMapClient, type ProjectMapClientOptions, type ProjectMapDefinition, type ProjectMapDefinitionWithId, type ProjectMapDefinitions, type ProjectMapDeleteRequest, type ProjectMapGetRequest, type ProjectMapGetResponse, type ProjectMapNode, type ProjectMapNodeAllowedQueryString, type ProjectMapNodeData, type ProjectMapNodeDeleteRequest, type ProjectMapNodeGetRequest, type ProjectMapNodeGetResponse, type ProjectMapNodeUpsertRequest, type ProjectMapNodeUpsertRequestNode, type ProjectMapNodeWithId, type ProjectMapNodeWithProjectMapReference, type ProjectMapSubtree, type ProjectMapUpsertRequest, type ProjectMapUpsertResponse, ROOT_NODE_PATH, Route, UncachedProjectMapClient, type UnmatchedRoute };
package/dist/index.d.ts CHANGED
@@ -179,6 +179,15 @@ interface paths {
179
179
  projectMapId?: string;
180
180
  /** The project id that contains the project map tree that this node belongs to */
181
181
  projectId: string;
182
+ /**
183
+ * The ID of a release to fetch the composition data for.
184
+ *
185
+ * - When unspecified, composition data is fetched from base.
186
+ * - When specified, all content is returned as it would appear in the release if it was released now. This includes both content copied to the release and changed, as well as content that is not part of the release.
187
+ *
188
+ * Content copied to a release can be differentiated from base content by the `releaseId` property on the content. If the content is not copied to the release, this property will not be defined.
189
+ */
190
+ releaseId?: string;
182
191
  /** The id of the node to retrieve, cannot have both this parameter and Path */
183
192
  id?: string;
184
193
  /** The path of the root node to retrieve, cannot have both this parameter and Id */
@@ -655,4 +664,4 @@ declare class Route {
655
664
  static dynamicSegmentPrefix: string;
656
665
  }
657
666
 
658
- export { ExpandOptions, MatchedRoute, NodeType, ProjectMapClient, ProjectMapClientOptions, ProjectMapDefinition, ProjectMapDefinitionWithId, ProjectMapDefinitions, ProjectMapDeleteRequest, ProjectMapGetRequest, ProjectMapGetResponse, ProjectMapNode, ProjectMapNodeAllowedQueryString, ProjectMapNodeData, ProjectMapNodeDeleteRequest, ProjectMapNodeGetRequest, ProjectMapNodeGetResponse, ProjectMapNodeUpsertRequest, ProjectMapNodeUpsertRequestNode, ProjectMapNodeWithId, ProjectMapNodeWithProjectMapReference, ProjectMapSubtree, ProjectMapUpsertRequest, ProjectMapUpsertResponse, ROOT_NODE_PATH, Route, UncachedProjectMapClient, UnmatchedRoute };
667
+ export { type ExpandOptions, type MatchedRoute, type NodeType, ProjectMapClient, type ProjectMapClientOptions, type ProjectMapDefinition, type ProjectMapDefinitionWithId, type ProjectMapDefinitions, type ProjectMapDeleteRequest, type ProjectMapGetRequest, type ProjectMapGetResponse, type ProjectMapNode, type ProjectMapNodeAllowedQueryString, type ProjectMapNodeData, type ProjectMapNodeDeleteRequest, type ProjectMapNodeGetRequest, type ProjectMapNodeGetResponse, type ProjectMapNodeUpsertRequest, type ProjectMapNodeUpsertRequestNode, type ProjectMapNodeWithId, type ProjectMapNodeWithProjectMapReference, type ProjectMapSubtree, type ProjectMapUpsertRequest, type ProjectMapUpsertResponse, ROOT_NODE_PATH, Route, UncachedProjectMapClient, type UnmatchedRoute };
package/dist/index.esm.js CHANGED
@@ -253,13 +253,6 @@ var _Route = class _Route {
253
253
  }
254
254
  const dynamicSegmentValue = dynamicInputValues[dynamicSegmentName];
255
255
  if (!dynamicSegmentValue) {
256
- console.log(
257
- "Missing dynamic input value for",
258
- dynamicSegmentName,
259
- "in",
260
- this.route,
261
- "using literal value"
262
- );
263
256
  return segment;
264
257
  }
265
258
  return encodeRouteComponent(dynamicSegmentValue, doNotEscapeVariables);
@@ -290,9 +283,11 @@ parseRouteOrPath_fn = function(path) {
290
283
  if (!path.startsWith("/") || path === "") {
291
284
  throw new Error(`Path must start with a slash: ${path}`);
292
285
  }
293
- const pathSegments = path.substring(1).split("/");
294
- const [lastSegmentWithoutQuery, queryString] = pathSegments[pathSegments.length - 1].split("?");
295
- pathSegments[pathSegments.length - 1] = lastSegmentWithoutQuery;
286
+ const [pathname, queryString] = path.split("?");
287
+ const pathSegments = pathname.substring(1).split("/");
288
+ if (pathSegments[pathSegments.length - 1] === "") {
289
+ pathSegments.pop();
290
+ }
296
291
  const queryParams = new URLSearchParams(queryString);
297
292
  return { segments: pathSegments, queryParams };
298
293
  };
package/dist/index.js CHANGED
@@ -281,13 +281,6 @@ var _Route = class _Route {
281
281
  }
282
282
  const dynamicSegmentValue = dynamicInputValues[dynamicSegmentName];
283
283
  if (!dynamicSegmentValue) {
284
- console.log(
285
- "Missing dynamic input value for",
286
- dynamicSegmentName,
287
- "in",
288
- this.route,
289
- "using literal value"
290
- );
291
284
  return segment;
292
285
  }
293
286
  return encodeRouteComponent(dynamicSegmentValue, doNotEscapeVariables);
@@ -318,9 +311,11 @@ parseRouteOrPath_fn = function(path) {
318
311
  if (!path.startsWith("/") || path === "") {
319
312
  throw new Error(`Path must start with a slash: ${path}`);
320
313
  }
321
- const pathSegments = path.substring(1).split("/");
322
- const [lastSegmentWithoutQuery, queryString] = pathSegments[pathSegments.length - 1].split("?");
323
- pathSegments[pathSegments.length - 1] = lastSegmentWithoutQuery;
314
+ const [pathname, queryString] = path.split("?");
315
+ const pathSegments = pathname.substring(1).split("/");
316
+ if (pathSegments[pathSegments.length - 1] === "") {
317
+ pathSegments.pop();
318
+ }
324
319
  const queryParams = new URLSearchParams(queryString);
325
320
  return { segments: pathSegments, queryParams };
326
321
  };
package/dist/index.mjs CHANGED
@@ -253,13 +253,6 @@ var _Route = class _Route {
253
253
  }
254
254
  const dynamicSegmentValue = dynamicInputValues[dynamicSegmentName];
255
255
  if (!dynamicSegmentValue) {
256
- console.log(
257
- "Missing dynamic input value for",
258
- dynamicSegmentName,
259
- "in",
260
- this.route,
261
- "using literal value"
262
- );
263
256
  return segment;
264
257
  }
265
258
  return encodeRouteComponent(dynamicSegmentValue, doNotEscapeVariables);
@@ -290,9 +283,11 @@ parseRouteOrPath_fn = function(path) {
290
283
  if (!path.startsWith("/") || path === "") {
291
284
  throw new Error(`Path must start with a slash: ${path}`);
292
285
  }
293
- const pathSegments = path.substring(1).split("/");
294
- const [lastSegmentWithoutQuery, queryString] = pathSegments[pathSegments.length - 1].split("?");
295
- pathSegments[pathSegments.length - 1] = lastSegmentWithoutQuery;
286
+ const [pathname, queryString] = path.split("?");
287
+ const pathSegments = pathname.substring(1).split("/");
288
+ if (pathSegments[pathSegments.length - 1] === "") {
289
+ pathSegments.pop();
290
+ }
296
291
  const queryParams = new URLSearchParams(queryString);
297
292
  return { segments: pathSegments, queryParams };
298
293
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/project-map",
3
- "version": "19.79.1-alpha.11+4547ef846",
3
+ "version": "19.79.1-alpha.18+12234b9350",
4
4
  "description": "Uniform Project Map",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -33,11 +33,11 @@
33
33
  "/dist"
34
34
  ],
35
35
  "dependencies": {
36
- "@uniformdev/canvas": "19.79.1-alpha.11+4547ef846",
37
- "@uniformdev/context": "19.79.1-alpha.11+4547ef846"
36
+ "@uniformdev/canvas": "19.79.1-alpha.18+12234b9350",
37
+ "@uniformdev/context": "19.79.1-alpha.18+12234b9350"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
- "gitHead": "4547ef8469f21f7f2341bcd87203372c4646bc08"
42
+ "gitHead": "12234b9350cfa4209bc7e242701d2dc535ece19e"
43
43
  }