@djangocfg/ui-tools 2.1.291 → 2.1.292

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.
@@ -31,7 +31,11 @@ export const DocsLayout: React.FC = () => {
31
31
  const grouping = config.schemaGrouping ?? 'selector';
32
32
  const preloadAll = grouping === 'sections';
33
33
  const urlSyncEnabled =
34
- typeof config.urlSync === 'boolean' ? config.urlSync : Boolean(config.urlSync?.enabled);
34
+ config.urlSync === undefined
35
+ ? true
36
+ : typeof config.urlSync === 'boolean'
37
+ ? config.urlSync
38
+ : Boolean(config.urlSync.enabled);
35
39
 
36
40
  const {
37
41
  endpoints,
@@ -114,11 +114,11 @@ export interface PlaygroundConfig {
114
114
  * rendered back-to-back in the docs column. Scrollspy picks the
115
115
  * active schema based on what's visible. */
116
116
  schemaGrouping?: 'selector' | 'sections';
117
- /** Optional URL-hash sync. When enabled, the viewer reads/writes
118
- * ``#<schemaId>/<anchor>`` on the browser location. Falsy value (the
119
- * default) keeps the viewer hash-free. Set to an object with
120
- * ``{ enabled: true }`` to opt in; future fields (e.g. a custom
121
- * adapter) stay backwards compatible. */
117
+ /** URL-hash sync. When enabled, the viewer reads/writes
118
+ * ``#<schemaId>/<anchor>`` on the browser location so deep-links
119
+ * to a specific endpoint work out of the box. Defaults to ``true``
120
+ * pass ``false`` (or ``{ enabled: false }``) to opt out if the host
121
+ * page already manages the hash itself. */
122
122
  urlSync?: boolean | { enabled: boolean };
123
123
  }
124
124
 
@@ -223,8 +223,14 @@ export type {
223
223
  } from './CodeEditor/types';
224
224
 
225
225
  // Export MarkdownEditor (Tiptap ~200KB)
226
- export { MarkdownEditor } from './MarkdownEditor';
227
- export type { MarkdownEditorProps, MentionItem, MentionConfig } from './MarkdownEditor';
226
+ export { MarkdownEditor, mentionPresets } from './MarkdownEditor';
227
+ export type {
228
+ MarkdownEditorProps,
229
+ MentionItem,
230
+ MentionConfig,
231
+ MentionAttrs,
232
+ MentionMarkdownRenderer,
233
+ } from './MarkdownEditor';
228
234
 
229
235
  // Export Media Cache Store
230
236
  export {