@duskmoon-dev/components 0.5.6 → 0.6.0

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.
Files changed (41) hide show
  1. package/README.md +85 -2
  2. package/dist/chunk-b1jnq16e.js +727 -0
  3. package/dist/chunk-kg46s2vk.js +238 -0
  4. package/dist/components/chat/Chat.types.d.ts +8 -0
  5. package/dist/components/chat/ChatAuthoritativeQueue.d.ts +4 -0
  6. package/dist/components/chat/ChatSessionComposer.d.ts +4 -0
  7. package/dist/components/chat/ChatSessionComposer.types.d.ts +42 -0
  8. package/dist/components/chat/ComposerAttachment.types.d.ts +80 -0
  9. package/dist/components/chat/ComposerDraft.types.d.ts +89 -0
  10. package/dist/components/chat/ComposerProvider.types.d.ts +66 -0
  11. package/dist/components/chat/ComposerQueue.types.d.ts +64 -0
  12. package/dist/components/chat/ComposerSession.types.d.ts +78 -0
  13. package/dist/components/chat/ComposerSettings.d.ts +4 -0
  14. package/dist/components/chat/composer/CompletionList.d.ts +10 -0
  15. package/dist/components/chat/composer/ComposerShell.d.ts +19 -4
  16. package/dist/components/chat/composer/DraftLifecycle.d.ts +17 -0
  17. package/dist/components/chat/composer/EditorAdapter.types.d.ts +36 -0
  18. package/dist/components/chat/composer/PlainEditor.d.ts +2 -0
  19. package/dist/components/chat/composer/PlainSemanticEditor.d.ts +6 -0
  20. package/dist/components/chat/composer/PreservedDraft.d.ts +7 -0
  21. package/dist/components/chat/composer/SemanticComposer.d.ts +10 -0
  22. package/dist/components/chat/composer/attachments.d.ts +4 -0
  23. package/dist/components/chat/composer/document.d.ts +3 -1
  24. package/dist/components/chat/composer/drafts.d.ts +2 -0
  25. package/dist/components/chat/composer/providers.d.ts +40 -0
  26. package/dist/components/chat/composer/session.d.ts +30 -0
  27. package/dist/components/chat/composer/useComposerAttachments.d.ts +3 -0
  28. package/dist/components/chat/composer/useComposerDraft.d.ts +3 -0
  29. package/dist/components/chat/composer/useComposerProviders.d.ts +7 -0
  30. package/dist/components/chat/composer/useComposerSession.d.ts +16 -0
  31. package/dist/components/chat/index.d.ts +17 -0
  32. package/dist/components/chat/index.js +4386 -1074
  33. package/dist/components/chat/rich/LexicalEditor.d.ts +10 -0
  34. package/dist/components/chat/rich/RichChatComposer.d.ts +4 -0
  35. package/dist/components/chat/rich/index.d.ts +2 -0
  36. package/dist/components/chat/rich/index.js +3437 -0
  37. package/dist/components/chat/rich/nodes.d.ts +49 -0
  38. package/dist/generated/version.d.ts +1 -1
  39. package/dist/index.js +7107 -4252
  40. package/dist/infrastructure.js +1 -1
  41. package/package.json +25 -4
@@ -4,7 +4,7 @@
4
4
  import { useCallback, useState } from "react";
5
5
 
6
6
  // src/generated/version.ts
7
- var version = "0.5.6";
7
+ var version = "0.6.0";
8
8
 
9
9
  // src/infrastructure.ts
10
10
  var theme = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duskmoon-dev/components",
3
- "version": "0.5.6",
3
+ "version": "0.6.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -424,7 +424,11 @@
424
424
  "import": "./dist/components/json-schema-form/index.js",
425
425
  "types": "./dist/components/json-schema-form/index.d.ts"
426
426
  },
427
- "./chat/contracts.v1.json": "./dist/components/chat/composer/contracts.v1.json"
427
+ "./chat/contracts.v1.json": "./dist/components/chat/composer/contracts.v1.json",
428
+ "./chat/rich": {
429
+ "import": "./dist/components/chat/rich/index.js",
430
+ "types": "./dist/components/chat/rich/index.d.ts"
431
+ }
428
432
  },
429
433
  "files": [
430
434
  "dist",
@@ -475,7 +479,10 @@
475
479
  "peerDependencies": {
476
480
  "@duskmoon-dev/core": ">=1.21.0",
477
481
  "react": ">=19.0.0",
478
- "react-dom": ">=19.0.0"
482
+ "react-dom": ">=19.0.0",
483
+ "lexical": "0.53.0",
484
+ "@lexical/history": "0.53.0",
485
+ "@lexical/plain-text": "0.53.0"
479
486
  },
480
487
  "dependencies": {
481
488
  "clsx": "^2.1.1",
@@ -487,10 +494,13 @@
487
494
  },
488
495
  "devDependencies": {
489
496
  "@duskmoon-dev/core": "1.21.0",
497
+ "@lexical/history": "0.53.0",
498
+ "@lexical/plain-text": "0.53.0",
490
499
  "@testing-library/react": "16.3.2",
491
500
  "@types/react": "19.2.18",
492
501
  "@types/react-dom": "19.2.4",
493
- "happy-dom": "20.11.1"
502
+ "happy-dom": "20.11.1",
503
+ "lexical": "0.53.0"
494
504
  },
495
505
  "repository": {
496
506
  "type": "git",
@@ -499,5 +509,16 @@
499
509
  },
500
510
  "publishConfig": {
501
511
  "access": "public"
512
+ },
513
+ "peerDependenciesMeta": {
514
+ "lexical": {
515
+ "optional": true
516
+ },
517
+ "@lexical/history": {
518
+ "optional": true
519
+ },
520
+ "@lexical/plain-text": {
521
+ "optional": true
522
+ }
502
523
  }
503
524
  }