@jxsuite/studio 0.9.0 → 0.10.2

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.
@@ -123,17 +123,17 @@ export function inferInputType(entry) {
123
123
  }
124
124
 
125
125
  /**
126
- * Match a document path to a content collection and return its schema. Uses simple directory-prefix
127
- * + extension matching against the collection's `source` glob.
126
+ * Match a document path to a content type and return its schema. Uses simple directory-prefix +
127
+ * extension matching against the content type's `source` glob.
128
128
  *
129
129
  * @param {string | null} documentPath — project-relative path (e.g. "blog/hello.md")
130
130
  * @param {any} projectConfig — parsed project.json
131
131
  * @returns {{ name: string; schema: any } | null}
132
132
  */
133
- export function findCollectionSchema(documentPath, projectConfig) {
134
- if (!documentPath || !projectConfig?.collections) return null;
133
+ export function findContentTypeSchema(documentPath, projectConfig) {
134
+ if (!documentPath || !projectConfig?.contentTypes) return null;
135
135
  for (const [name, def] of Object.entries(
136
- /** @type {Record<string, any>} */ (projectConfig.collections),
136
+ /** @type {Record<string, any>} */ (projectConfig.contentTypes),
137
137
  )) {
138
138
  if (!def.source || !def.schema) continue;
139
139
  const src = def.source.replace(/^\.\//, "");
package/src/view.js CHANGED
@@ -10,7 +10,6 @@
10
10
  export const view = {
11
11
  // Canvas infrastructure
12
12
  panzoomWrap: null,
13
- liveScope: null,
14
13
  renderGeneration: 0,
15
14
  centerObserver: null,
16
15
  needsCenter: true,
@@ -24,7 +23,6 @@ export const view = {
24
23
 
25
24
  // Inline editing
26
25
  componentInlineEdit: null,
27
- pendingInlineEdit: null,
28
26
  inlineEditCleanup: null,
29
27
 
30
28
  // Floating UI containers