@praxisui/core 8.0.0-beta.73 → 8.0.0-beta.74

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.
@@ -11918,6 +11918,7 @@ class ResourceSurfaceOpenAdapterService {
11918
11918
  ...(payload.widget.inputs['customEndpoints'] || {}),
11919
11919
  getById: this.discovery.resolveHref(surface.path, discoveryOptions),
11920
11920
  };
11921
+ payload.widget.bindingOrder = this.withInputBefore(payload.widget.bindingOrder, 'customEndpoints', 'resourceId');
11921
11922
  }
11922
11923
  if (this.isWritableFormSurface(surface.kind)) {
11923
11924
  payload.widget.inputs['submitMethod'] = surface.method.toLowerCase();
@@ -11952,6 +11953,15 @@ class ResourceSurfaceOpenAdapterService {
11952
11953
  buildStableInstanceId(surface) {
11953
11954
  return `${surface.resourceKey}.${surface.id}`.replace(/[^a-zA-Z0-9._-]+/g, '-');
11954
11955
  }
11956
+ withInputBefore(bindingOrder, input, beforeInput) {
11957
+ const next = (bindingOrder || []).filter((item) => item !== input);
11958
+ const targetIndex = next.indexOf(beforeInput);
11959
+ if (targetIndex >= 0) {
11960
+ next.splice(targetIndex, 0, input);
11961
+ return next;
11962
+ }
11963
+ return [...next, input];
11964
+ }
11955
11965
  normalizeResourcePath(resourcePath) {
11956
11966
  return String(resourcePath || '').trim().replace(/^\/+/, '').replace(/\/+$/, '');
11957
11967
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@praxisui/core",
3
- "version": "8.0.0-beta.73",
3
+ "version": "8.0.0-beta.74",
4
4
  "description": "Core library for Praxis UI Workspace: types, tokens, services and utilities shared across @praxisui/* packages.",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.0.0",
@@ -8951,6 +8951,7 @@ declare class ResourceSurfaceOpenAdapterService {
8951
8951
  toPayload(surface: ResourceSurfaceCatalogItem, options: ResourceSurfaceOpenAdapterOptions): SurfaceOpenPayload;
8952
8952
  private buildBasePayload;
8953
8953
  private buildStableInstanceId;
8954
+ private withInputBefore;
8954
8955
  private normalizeResourcePath;
8955
8956
  private resolveFormMode;
8956
8957
  private isCollectionView;