@djangocfg/ui-tools 2.1.441 → 2.1.442

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djangocfg/ui-tools",
3
- "version": "2.1.441",
3
+ "version": "2.1.442",
4
4
  "description": "Heavy React tools with lazy loading - for Electron, Vite, CRA, Next.js apps",
5
5
  "keywords": [
6
6
  "ui-tools",
@@ -334,8 +334,8 @@
334
334
  "test:watch": "vitest"
335
335
  },
336
336
  "peerDependencies": {
337
- "@djangocfg/i18n": "^2.1.441",
338
- "@djangocfg/ui-core": "^2.1.441",
337
+ "@djangocfg/i18n": "^2.1.442",
338
+ "@djangocfg/ui-core": "^2.1.442",
339
339
  "consola": "^3.4.2",
340
340
  "lodash-es": "^4.18.1",
341
341
  "lucide-react": "^0.545.0",
@@ -418,9 +418,9 @@
418
418
  "@maplibre/maplibre-gl-geocoder": "^1.7.0"
419
419
  },
420
420
  "devDependencies": {
421
- "@djangocfg/i18n": "^2.1.441",
422
- "@djangocfg/typescript-config": "^2.1.441",
423
- "@djangocfg/ui-core": "^2.1.441",
421
+ "@djangocfg/i18n": "^2.1.442",
422
+ "@djangocfg/typescript-config": "^2.1.442",
423
+ "@djangocfg/ui-core": "^2.1.442",
424
424
  "@types/lodash-es": "^4.17.12",
425
425
  "@types/mapbox__mapbox-gl-draw": "^1.4.8",
426
426
  "@types/node": "^25.2.3",
@@ -46,6 +46,7 @@
46
46
  */
47
47
 
48
48
  import { Node, mergeAttributes, InputRule } from '@tiptap/core';
49
+ import type { JSONContent, MarkdownRendererHelpers, RenderContext } from '@tiptap/core';
49
50
  import { Plugin, PluginKey, TextSelection } from '@tiptap/pm/state';
50
51
  import { Fragment, Slice, type Node as PMNode } from '@tiptap/pm/model';
51
52
  import { findFilePaths, splitPath, truncatePathLabel } from '../filePath/detect';
@@ -242,7 +243,7 @@ export const ChipNode = Node.create<ChipNodeOptions>({
242
243
  // `@tiptap/markdown` reads this at registration time. Emit the bare raw
243
244
  // string (NOT a shortcode), so a round-trip through `getMarkdown()`
244
245
  // yields the literal path / URL.
245
- renderMarkdown(node: { attrs: Record<string, unknown> }) {
246
+ renderMarkdown(node: JSONContent, _helpers: MarkdownRendererHelpers, _ctx: RenderContext) {
246
247
  return chipRawText(node.attrs as { kind?: ChipKind; path?: string | null; href?: string | null });
247
248
  },
248
249