@levo-so/core 0.3.21 → 0.3.23

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.ts CHANGED
@@ -331,11 +331,10 @@ export declare const FieldKind: {
331
331
  group: "group";
332
332
  location: "location";
333
333
  "array-location": "array-location";
334
- richtext: "richtext";
335
334
  "array-json": "array-json";
336
335
  };
337
336
 
338
- export declare const FieldKindList: readonly ["collection", "record", "group", "public-id", "string", "array-string", "number", "array-number", "date", "array-date", "boolean", "array-boolean", "json", "array-json", "file", "array-file", "location", "array-location", "richtext", "identifier"];
337
+ export declare const FieldKindList: readonly ["collection", "record", "group", "public-id", "string", "array-string", "number", "array-number", "date", "array-date", "boolean", "array-boolean", "json", "array-json", "file", "array-file", "location", "array-location", "identifier"];
339
338
 
340
339
  export declare type FieldType = string | number | Date | boolean | null;
341
340
 
@@ -867,6 +866,12 @@ export declare interface ICollectionView {
867
866
  layout: ICollectionLayout;
868
867
  query: ICollectionQuery;
869
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;
870
875
  created_at: string;
871
876
  updated_at: string;
872
877
  }
@@ -881,6 +886,8 @@ export declare interface ICollectionViews {
881
886
  slug: string;
882
887
  /** Title of the view. */
883
888
  title: string;
889
+ /** 0-based position within the collection, lower = shown first. See {@link ICollectionView.sort_order}. */
890
+ sort_order?: number;
884
891
  }
885
892
 
886
893
  export declare interface IComment {
package/dist/index.js CHANGED
@@ -426,11 +426,6 @@ var r = /^W[A-Z0-9]{7}$/, i = (e) => {
426
426
  o2o: null,
427
427
  m2m: []
428
428
  },
429
- richtext: {
430
- html: "",
431
- text: "",
432
- json: []
433
- },
434
429
  json: {},
435
430
  "array-string": [],
436
431
  "array-number": [],
@@ -519,7 +514,6 @@ var r = /^W[A-Z0-9]{7}$/, i = (e) => {
519
514
  "array-file",
520
515
  "location",
521
516
  "array-location",
522
- "richtext",
523
517
  "identifier"
524
518
  ], j = {
525
519
  identifier: "identifier",
@@ -540,7 +534,6 @@ var r = /^W[A-Z0-9]{7}$/, i = (e) => {
540
534
  group: "group",
541
535
  location: "location",
542
536
  "array-location": "array-location",
543
- richtext: "richtext",
544
537
  "array-json": "array-json"
545
538
  }, M = {
546
539
  ArrayWidget: j.group,
@@ -736,7 +729,6 @@ var r = /^W[A-Z0-9]{7}$/, i = (e) => {
736
729
  "array-file": ["is_empty", "is_not_empty"],
737
730
  location: ["is_empty", "is_not_empty"],
738
731
  "array-location": ["is_empty", "is_not_empty"],
739
- richtext: ["is_empty", "is_not_empty"],
740
732
  json: ["is_empty", "is_not_empty"],
741
733
  "array-json": ["is_empty", "is_not_empty"],
742
734
  collection: [
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.21",
4
+ "version": "0.3.23",
5
5
  "author": "Levo Engineering <devs@theinternetfolks.com>",
6
6
  "dependencies": {
7
7
  "wretch": "2.9.0"