raffel 1.1.80 → 1.1.82
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/docs/ui/assets/raffel-docs.css +223 -167
- package/dist/docs/ui/assets/raffel-docs.js +11 -16
- package/dist/docs/ui/runtime/index.js +11 -16
- package/dist/docs/ui/runtime/index.js.map +1 -1
- package/dist/docs/ui/style-sections/content.d.ts +1 -1
- package/dist/docs/ui/style-sections/content.d.ts.map +1 -1
- package/dist/docs/ui/style-sections/content.js +53 -52
- package/dist/docs/ui/style-sections/content.js.map +1 -1
- package/dist/docs/ui/style-sections/layout-navigation.d.ts +1 -1
- package/dist/docs/ui/style-sections/layout-navigation.d.ts.map +1 -1
- package/dist/docs/ui/style-sections/layout-navigation.js +26 -26
- package/dist/docs/ui/style-sections/schema-code.d.ts +1 -1
- package/dist/docs/ui/style-sections/schema-code.d.ts.map +1 -1
- package/dist/docs/ui/style-sections/schema-code.js +122 -67
- package/dist/docs/ui/style-sections/schema-code.js.map +1 -1
- package/dist/docs/ui/style-sections/shell.js +22 -22
- package/dist/ui/docs/ui/style-sections/content.d.ts +1 -1
- package/dist/ui/docs/ui/style-sections/content.d.ts.map +1 -1
- package/dist/ui/docs/ui/style-sections/layout-navigation.d.ts +1 -1
- package/dist/ui/docs/ui/style-sections/layout-navigation.d.ts.map +1 -1
- package/dist/ui/docs/ui/style-sections/schema-code.d.ts +1 -1
- package/dist/ui/docs/ui/style-sections/schema-code.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1809,29 +1809,24 @@ function renderSchemaTree(parent, schema, depth = 0) {
|
|
|
1809
1809
|
return;
|
|
1810
1810
|
schema = resolveSchema(schema);
|
|
1811
1811
|
const div = doc.createElement('div');
|
|
1812
|
-
div.
|
|
1813
|
-
div.style.marginTop = depth === 0 ? '8px' : '0';
|
|
1812
|
+
div.className = depth === 0 ? 'schema-tree schema-tree-root' : 'schema-tree schema-tree-nested';
|
|
1814
1813
|
if (schema.$ref) {
|
|
1815
1814
|
const refName = String(schema.$ref).split('/').pop();
|
|
1816
1815
|
const row = doc.createElement('div');
|
|
1817
|
-
row.
|
|
1818
|
-
row.
|
|
1816
|
+
row.className = 'schema-tree-row schema-tree-unresolved';
|
|
1817
|
+
row.textContent = `Unresolved schema reference: ${refName}`;
|
|
1819
1818
|
div.appendChild(row);
|
|
1820
1819
|
}
|
|
1821
1820
|
else if (schema.type === 'object' && schema.properties) {
|
|
1822
1821
|
Object.entries(schema.properties).forEach(([key, prop]) => {
|
|
1823
1822
|
const row = doc.createElement('div');
|
|
1824
|
-
row.
|
|
1825
|
-
row.style.borderLeft = depth === 0 ? '2px solid var(--border-color)' : 'none';
|
|
1826
|
-
row.style.paddingLeft = depth === 0 ? '8px' : '0';
|
|
1823
|
+
row.className = 'schema-tree-row';
|
|
1827
1824
|
const type = prop.type || 'any';
|
|
1828
|
-
const required = schema.required?.includes(key) ? '<span
|
|
1829
|
-
row.innerHTML = `<div
|
|
1825
|
+
const required = schema.required?.includes(key) ? '<span class="schema-tree-required">*</span>' : '';
|
|
1826
|
+
row.innerHTML = `<div class="schema-tree-property">${esc(key)}${required}<span class="schema-type type-${esc(prop.type || 'null')}">${esc(type)}</span></div>`;
|
|
1830
1827
|
if (prop.description) {
|
|
1831
1828
|
const desc = doc.createElement('div');
|
|
1832
|
-
desc.
|
|
1833
|
-
desc.style.color = 'var(--text-muted)';
|
|
1834
|
-
desc.style.marginTop = '4px';
|
|
1829
|
+
desc.className = 'schema-tree-description';
|
|
1835
1830
|
desc.textContent = prop.description;
|
|
1836
1831
|
row.appendChild(desc);
|
|
1837
1832
|
}
|
|
@@ -1847,8 +1842,8 @@ function renderSchemaTree(parent, schema, depth = 0) {
|
|
|
1847
1842
|
}
|
|
1848
1843
|
else if (schema.type === 'array' && schema.items) {
|
|
1849
1844
|
const row = doc.createElement('div');
|
|
1850
|
-
row.
|
|
1851
|
-
row.innerHTML = `<span
|
|
1845
|
+
row.className = 'schema-tree-row';
|
|
1846
|
+
row.innerHTML = `<span class="schema-tree-label">array</span> <span class="schema-tree-meta">of ${esc(schema.items.type || 'object')}</span>`;
|
|
1852
1847
|
div.appendChild(row);
|
|
1853
1848
|
if (schema.items.properties) {
|
|
1854
1849
|
renderSchemaTree(div, schema.items, depth + 1);
|
|
@@ -1856,8 +1851,8 @@ function renderSchemaTree(parent, schema, depth = 0) {
|
|
|
1856
1851
|
}
|
|
1857
1852
|
else {
|
|
1858
1853
|
const row = doc.createElement('div');
|
|
1859
|
-
row.
|
|
1860
|
-
row.
|
|
1854
|
+
row.className = 'schema-tree-row schema-tree-meta';
|
|
1855
|
+
row.textContent = schema.type || 'any';
|
|
1861
1856
|
appendConstraintChips(row, schema);
|
|
1862
1857
|
div.appendChild(row);
|
|
1863
1858
|
}
|
|
@@ -1809,29 +1809,24 @@ function renderSchemaTree(parent, schema, depth = 0) {
|
|
|
1809
1809
|
return;
|
|
1810
1810
|
schema = resolveSchema(schema);
|
|
1811
1811
|
const div = doc.createElement('div');
|
|
1812
|
-
div.
|
|
1813
|
-
div.style.marginTop = depth === 0 ? '8px' : '0';
|
|
1812
|
+
div.className = depth === 0 ? 'schema-tree schema-tree-root' : 'schema-tree schema-tree-nested';
|
|
1814
1813
|
if (schema.$ref) {
|
|
1815
1814
|
const refName = String(schema.$ref).split('/').pop();
|
|
1816
1815
|
const row = doc.createElement('div');
|
|
1817
|
-
row.
|
|
1818
|
-
row.
|
|
1816
|
+
row.className = 'schema-tree-row schema-tree-unresolved';
|
|
1817
|
+
row.textContent = `Unresolved schema reference: ${refName}`;
|
|
1819
1818
|
div.appendChild(row);
|
|
1820
1819
|
}
|
|
1821
1820
|
else if (schema.type === 'object' && schema.properties) {
|
|
1822
1821
|
Object.entries(schema.properties).forEach(([key, prop]) => {
|
|
1823
1822
|
const row = doc.createElement('div');
|
|
1824
|
-
row.
|
|
1825
|
-
row.style.borderLeft = depth === 0 ? '2px solid var(--border-color)' : 'none';
|
|
1826
|
-
row.style.paddingLeft = depth === 0 ? '8px' : '0';
|
|
1823
|
+
row.className = 'schema-tree-row';
|
|
1827
1824
|
const type = prop.type || 'any';
|
|
1828
|
-
const required = schema.required?.includes(key) ? '<span
|
|
1829
|
-
row.innerHTML = `<div
|
|
1825
|
+
const required = schema.required?.includes(key) ? '<span class="schema-tree-required">*</span>' : '';
|
|
1826
|
+
row.innerHTML = `<div class="schema-tree-property">${esc(key)}${required}<span class="schema-type type-${esc(prop.type || 'null')}">${esc(type)}</span></div>`;
|
|
1830
1827
|
if (prop.description) {
|
|
1831
1828
|
const desc = doc.createElement('div');
|
|
1832
|
-
desc.
|
|
1833
|
-
desc.style.color = 'var(--text-muted)';
|
|
1834
|
-
desc.style.marginTop = '4px';
|
|
1829
|
+
desc.className = 'schema-tree-description';
|
|
1835
1830
|
desc.textContent = prop.description;
|
|
1836
1831
|
row.appendChild(desc);
|
|
1837
1832
|
}
|
|
@@ -1847,8 +1842,8 @@ function renderSchemaTree(parent, schema, depth = 0) {
|
|
|
1847
1842
|
}
|
|
1848
1843
|
else if (schema.type === 'array' && schema.items) {
|
|
1849
1844
|
const row = doc.createElement('div');
|
|
1850
|
-
row.
|
|
1851
|
-
row.innerHTML = `<span
|
|
1845
|
+
row.className = 'schema-tree-row';
|
|
1846
|
+
row.innerHTML = `<span class="schema-tree-label">array</span> <span class="schema-tree-meta">of ${esc(schema.items.type || 'object')}</span>`;
|
|
1852
1847
|
div.appendChild(row);
|
|
1853
1848
|
if (schema.items.properties) {
|
|
1854
1849
|
renderSchemaTree(div, schema.items, depth + 1);
|
|
@@ -1856,8 +1851,8 @@ function renderSchemaTree(parent, schema, depth = 0) {
|
|
|
1856
1851
|
}
|
|
1857
1852
|
else {
|
|
1858
1853
|
const row = doc.createElement('div');
|
|
1859
|
-
row.
|
|
1860
|
-
row.
|
|
1854
|
+
row.className = 'schema-tree-row schema-tree-meta';
|
|
1855
|
+
row.textContent = schema.type || 'any';
|
|
1861
1856
|
appendConstraintChips(row, schema);
|
|
1862
1857
|
div.appendChild(row);
|
|
1863
1858
|
}
|