@levo-so/studio 0.3.22 → 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.
Files changed (2) hide show
  1. package/index.d.ts +16 -0
  2. package/package.json +4 -4
package/index.d.ts CHANGED
@@ -2149,6 +2149,22 @@ export declare type IStudioSource = {
2149
2149
  enabled?: boolean;
2150
2150
  selected_fields?: string[];
2151
2151
  };
2152
+ /**
2153
+ * v3 sites: which runtime hook the route file binds this source with — `useLevoSource`
2154
+ * (list) or `useLevoRecord` (record). Absent on rows synced before the platform stamped it.
2155
+ */
2156
+ mode?: "list" | "record";
2157
+ /** v3 record rows: the URL variable the record's slug fills (`slug` for `/blog/:slug`). */
2158
+ param?: string;
2159
+ /**
2160
+ * v3 record rows whose `param` is one variable of a multi-record segment: the page url's
2161
+ * `:segment` that `pattern` composes. Absent on single-record pages.
2162
+ */
2163
+ segment?: string;
2164
+ /** With `segment`: how its variables compose, e.g. `{$packages}-in-{$cities}`. */
2165
+ pattern?: string;
2166
+ /** The column is a JSON blob the platform never validates by shape; rows carry keys beyond these. */
2167
+ [key: string]: unknown;
2152
2168
  };
2153
2169
  metadata?: Record<string, any>;
2154
2170
  filters?: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@levo-so/studio",
3
- "version": "0.3.22",
3
+ "version": "0.3.23",
4
4
  "author": "Levo Engineering <devs@theinternetfolks.com>",
5
5
  "description": "Levo Studio components and utilities for building block-based pages",
6
6
  "type": "module",
@@ -120,9 +120,9 @@
120
120
  "yup": "1.7.1"
121
121
  },
122
122
  "peerDependencies": {
123
- "@levo-so/insights": "0.3.22",
124
- "@levo-so/core": "0.3.22",
125
- "@levo-so/react": "0.3.22",
123
+ "@levo-so/insights": "0.3.23",
124
+ "@levo-so/core": "0.3.23",
125
+ "@levo-so/react": "0.3.23",
126
126
  "react": ">=19",
127
127
  "next": ">=14",
128
128
  "react-dom": ">=19"