@jxsuite/studio 0.23.1 → 0.23.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.
- package/dist/studio.js +5 -5
- package/dist/studio.js.map +3 -3
- package/package.json +4 -4
- package/src/browse/browse.js +1 -1
- package/src/utils/studio-utils.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jxsuite/studio",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.2",
|
|
4
4
|
"description": "Jx Studio — visual builder for Jx documents",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@atlaskit/pragmatic-drag-and-drop": "^1.8.1",
|
|
33
33
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
|
|
34
|
-
"@jxsuite/parser": "^0.23.
|
|
35
|
-
"@jxsuite/runtime": "^0.23.
|
|
36
|
-
"@jxsuite/schema": "^0.23.
|
|
34
|
+
"@jxsuite/parser": "^0.23.2",
|
|
35
|
+
"@jxsuite/runtime": "^0.23.2",
|
|
36
|
+
"@jxsuite/schema": "^0.23.2",
|
|
37
37
|
"@spectrum-web-components/accordion": "^1.12.1",
|
|
38
38
|
"@spectrum-web-components/action-bar": "1.12.1",
|
|
39
39
|
"@spectrum-web-components/action-button": "^1.12.1",
|
package/src/browse/browse.js
CHANGED
|
@@ -142,7 +142,7 @@ async function collectFiles(dir, platform) {
|
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
/**
|
|
145
|
-
* Match a file path against project contentTypes source
|
|
145
|
+
* Match a file path against project contentTypes source directories to find its content type name.
|
|
146
146
|
* Returns the content type name (capitalized) or null if no match.
|
|
147
147
|
*
|
|
148
148
|
* @param {string} filePath
|
|
@@ -123,10 +123,10 @@ export function inferInputType(entry) {
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
|
-
* Match a document path to a content type and return its schema.
|
|
127
|
-
*
|
|
126
|
+
* Match a document path to a content type and return its schema. Compares the content type's
|
|
127
|
+
* `source` directory against the document path prefix, using `format` for extension matching.
|
|
128
128
|
*
|
|
129
|
-
* @param {string | null} documentPath — project-relative path (e.g. "
|
|
129
|
+
* @param {string | null} documentPath — project-relative path (e.g. "content/products/widget.md")
|
|
130
130
|
* @param {ProjectConfig | null | undefined} projectConfig — parsed project.json
|
|
131
131
|
* @returns {{ name: string; schema: ContentTypeSchema } | null}
|
|
132
132
|
*/
|