@levo-so/core 0.3.22 → 0.3.24

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +8 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -866,6 +866,12 @@ export declare interface ICollectionView {
866
866
  layout: ICollectionLayout;
867
867
  query: ICollectionQuery;
868
868
  options: Record<string, any>;
869
+ /**
870
+ * 0-based position within the collection, lower = shown first. The list endpoint
871
+ * orders by this (title as tiebreak); create auto-appends `max(sort_order) + 1`.
872
+ * Optional because FE-synthesized views (e.g. the Default snapshot) don't carry one.
873
+ */
874
+ sort_order?: number;
869
875
  created_at: string;
870
876
  updated_at: string;
871
877
  }
@@ -880,6 +886,8 @@ export declare interface ICollectionViews {
880
886
  slug: string;
881
887
  /** Title of the view. */
882
888
  title: string;
889
+ /** 0-based position within the collection, lower = shown first. See {@link ICollectionView.sort_order}. */
890
+ sort_order?: number;
883
891
  }
884
892
 
885
893
  export declare interface IComment {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@levo-so/core",
3
3
  "description": "Levo common utilities",
4
- "version": "0.3.22",
4
+ "version": "0.3.24",
5
5
  "author": "Levo Engineering <devs@theinternetfolks.com>",
6
6
  "dependencies": {
7
7
  "wretch": "2.9.0"