@uniformdev/project-map 20.72.3-alpha.3 → 20.72.3-alpha.45

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.d.mts CHANGED
@@ -504,7 +504,17 @@ interface paths {
504
504
  path?: never;
505
505
  cookie?: never;
506
506
  };
507
- /** @description Called to get a list of nodes belonging to a specific path or Id */
507
+ /**
508
+ * @description Called to get a list of nodes belonging to a specific path or Id.
509
+ *
510
+ * Note on branch-scoped permissions: if the caller's role has a
511
+ * branch-scoped PrmNodeRead policy (i.e. read access is configured for
512
+ * specific project map branches only), the response is filtered
513
+ * server-side to nodes within those branches. Consumers should not
514
+ * assume the response contains the entire project map. Users with
515
+ * unscoped PrmNodeRead, PrmSchema, or composition-level read permissions
516
+ * receive the full set (backward-compatible behavior).
517
+ */
508
518
  get: {
509
519
  parameters: {
510
520
  query: {
@@ -1100,6 +1110,7 @@ declare class ProjectMapClient extends ApiClient {
1100
1110
  private setFetchOptions;
1101
1111
  private cleanProjectMapNode;
1102
1112
  }
1113
+ /** @deprecated Pass `bypassCache: true` to {@link ProjectMapClient} instead. */
1103
1114
  declare class UncachedProjectMapClient extends ProjectMapClient {
1104
1115
  constructor(options: Omit<ClientOptions, 'bypassCache'>);
1105
1116
  }
package/dist/index.d.ts CHANGED
@@ -504,7 +504,17 @@ interface paths {
504
504
  path?: never;
505
505
  cookie?: never;
506
506
  };
507
- /** @description Called to get a list of nodes belonging to a specific path or Id */
507
+ /**
508
+ * @description Called to get a list of nodes belonging to a specific path or Id.
509
+ *
510
+ * Note on branch-scoped permissions: if the caller's role has a
511
+ * branch-scoped PrmNodeRead policy (i.e. read access is configured for
512
+ * specific project map branches only), the response is filtered
513
+ * server-side to nodes within those branches. Consumers should not
514
+ * assume the response contains the entire project map. Users with
515
+ * unscoped PrmNodeRead, PrmSchema, or composition-level read permissions
516
+ * receive the full set (backward-compatible behavior).
517
+ */
508
518
  get: {
509
519
  parameters: {
510
520
  query: {
@@ -1100,6 +1110,7 @@ declare class ProjectMapClient extends ApiClient {
1100
1110
  private setFetchOptions;
1101
1111
  private cleanProjectMapNode;
1102
1112
  }
1113
+ /** @deprecated Pass `bypassCache: true` to {@link ProjectMapClient} instead. */
1103
1114
  declare class UncachedProjectMapClient extends ProjectMapClient {
1104
1115
  constructor(options: Omit<ClientOptions, 'bypassCache'>);
1105
1116
  }
package/dist/index.esm.js CHANGED
@@ -346,18 +346,15 @@ var _Route = class _Route {
346
346
  */
347
347
  static splitFragment(path) {
348
348
  let fragmentIndex = -1;
349
- let length = 0;
350
- parseVariableExpression(path, (token, type) => {
349
+ parseVariableExpression(path, (token, type, offset) => {
351
350
  if (type === "variable") {
352
- length += createVariableReference(token).length;
353
351
  return;
354
352
  }
355
353
  const hashOffset = token.indexOf("#");
356
354
  if (hashOffset === -1) {
357
- length += token.length;
358
355
  return;
359
356
  }
360
- fragmentIndex = length + hashOffset;
357
+ fragmentIndex = offset + hashOffset;
361
358
  return false;
362
359
  });
363
360
  if (fragmentIndex === -1) {
package/dist/index.js CHANGED
@@ -379,18 +379,15 @@ var _Route = class _Route {
379
379
  */
380
380
  static splitFragment(path) {
381
381
  let fragmentIndex = -1;
382
- let length = 0;
383
- (0, import_canvas.parseVariableExpression)(path, (token, type) => {
382
+ (0, import_canvas.parseVariableExpression)(path, (token, type, offset) => {
384
383
  if (type === "variable") {
385
- length += (0, import_canvas.createVariableReference)(token).length;
386
384
  return;
387
385
  }
388
386
  const hashOffset = token.indexOf("#");
389
387
  if (hashOffset === -1) {
390
- length += token.length;
391
388
  return;
392
389
  }
393
- fragmentIndex = length + hashOffset;
390
+ fragmentIndex = offset + hashOffset;
394
391
  return false;
395
392
  });
396
393
  if (fragmentIndex === -1) {
package/dist/index.mjs CHANGED
@@ -346,18 +346,15 @@ var _Route = class _Route {
346
346
  */
347
347
  static splitFragment(path) {
348
348
  let fragmentIndex = -1;
349
- let length = 0;
350
- parseVariableExpression(path, (token, type) => {
349
+ parseVariableExpression(path, (token, type, offset) => {
351
350
  if (type === "variable") {
352
- length += createVariableReference(token).length;
353
351
  return;
354
352
  }
355
353
  const hashOffset = token.indexOf("#");
356
354
  if (hashOffset === -1) {
357
- length += token.length;
358
355
  return;
359
356
  }
360
- fragmentIndex = length + hashOffset;
357
+ fragmentIndex = offset + hashOffset;
361
358
  return false;
362
359
  });
363
360
  if (fragmentIndex === -1) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/project-map",
3
- "version": "20.72.3-alpha.3+3e396259ba",
3
+ "version": "20.72.3-alpha.45+2b8b05d58a",
4
4
  "description": "Uniform Project Map",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -32,11 +32,11 @@
32
32
  "/dist"
33
33
  ],
34
34
  "dependencies": {
35
- "@uniformdev/canvas": "20.72.3-alpha.3+3e396259ba",
36
- "@uniformdev/context": "20.72.3-alpha.3+3e396259ba"
35
+ "@uniformdev/canvas": "20.72.3-alpha.45+2b8b05d58a",
36
+ "@uniformdev/context": "20.72.3-alpha.45+2b8b05d58a"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "3e396259bafc25b69071cda4102cea340b866922"
41
+ "gitHead": "2b8b05d58ab275b4d29a9647feeaad47b0ab5cce"
42
42
  }