@fluentui-copilot/react-chat-input-plugins 0.0.0-nightly-20250715-0404-529d18be.1 → 0.0.0-nightly-20250717-0405-eecbae35.1

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 (99) hide show
  1. package/CHANGELOG.json +3 -3
  2. package/CHANGELOG.md +4 -4
  3. package/lib/BasicFunctionality.js +0 -1
  4. package/lib/ChatInputEntity.js +0 -1
  5. package/lib/ChatInputToken.js +0 -1
  6. package/lib/GhostText.js +0 -1
  7. package/lib/ImperativeControl.js +0 -1
  8. package/lib/PasteUnfurling.js +0 -1
  9. package/lib/components/ChatInputEntity/ChatInputEntity.js +4 -5
  10. package/lib/components/ChatInputEntity/ChatInputEntity.types.js +2 -3
  11. package/lib/components/ChatInputEntity/index.js +0 -1
  12. package/lib/components/ChatInputEntity/renderChatInputEntity.js +9 -8
  13. package/lib/components/ChatInputEntity/useChatInputEntity.js +40 -44
  14. package/lib/components/ChatInputToken/ChatInputToken.js +4 -5
  15. package/lib/components/ChatInputToken/ChatInputToken.node.js +49 -50
  16. package/lib/components/ChatInputToken/ChatInputToken.types.js +1 -2
  17. package/lib/components/ChatInputToken/index.js +0 -1
  18. package/lib/components/ChatInputToken/renderChatInputToken.js +4 -6
  19. package/lib/components/ChatInputToken/useChatInputToken.js +12 -14
  20. package/lib/components/GhostText/GhostText.js +4 -5
  21. package/lib/components/GhostText/GhostText.types.js +2 -3
  22. package/lib/components/GhostText/index.js +0 -1
  23. package/lib/components/GhostText/renderGhostText.js +9 -8
  24. package/lib/components/GhostText/useGhostText.js +36 -39
  25. package/lib/index.js +0 -1
  26. package/lib/plugins/BasicFunctionality/BasicFunctionality.js +53 -42
  27. package/lib/plugins/BasicFunctionality/index.js +0 -1
  28. package/lib/plugins/ChatInputEntity/ChatInputEntity.node.js +67 -68
  29. package/lib/plugins/ChatInputEntity/ChatInputEntityPlugin.js +37 -38
  30. package/lib/plugins/ChatInputEntity/ChatInputEntityPlugin.types.js +1 -2
  31. package/lib/plugins/ChatInputEntity/index.js +0 -1
  32. package/lib/plugins/GhostText/GhostText.js +43 -37
  33. package/lib/plugins/GhostText/GhostText.node.js +56 -57
  34. package/lib/plugins/GhostText/index.js +0 -1
  35. package/lib/plugins/ImperativeControl/ImperativeControl.js +6 -5
  36. package/lib/plugins/ImperativeControl/index.js +0 -1
  37. package/lib/plugins/ManualGhostText/ManualGhostText.js +8 -8
  38. package/lib/plugins/ManualGhostText/index.js +0 -1
  39. package/lib/plugins/PasteUnfurling/PasteUnfurling.js +14 -14
  40. package/lib/plugins/PasteUnfurling/index.js +0 -1
  41. package/lib-commonjs/BasicFunctionality.js +0 -1
  42. package/lib-commonjs/ChatInputEntity.js +0 -1
  43. package/lib-commonjs/ChatInputToken.js +0 -1
  44. package/lib-commonjs/GhostText.js +0 -1
  45. package/lib-commonjs/ImperativeControl.js +0 -1
  46. package/lib-commonjs/PasteUnfurling.js +0 -1
  47. package/lib-commonjs/components/ChatInputEntity/ChatInputEntity.js +1 -1
  48. package/lib-commonjs/components/ChatInputEntity/ChatInputEntity.js.map +1 -1
  49. package/lib-commonjs/components/ChatInputEntity/ChatInputEntity.types.js +0 -1
  50. package/lib-commonjs/components/ChatInputEntity/ChatInputEntity.types.js.map +1 -1
  51. package/lib-commonjs/components/ChatInputEntity/index.js +0 -1
  52. package/lib-commonjs/components/ChatInputEntity/renderChatInputEntity.js +1 -1
  53. package/lib-commonjs/components/ChatInputEntity/renderChatInputEntity.js.map +1 -1
  54. package/lib-commonjs/components/ChatInputEntity/useChatInputEntity.js +1 -1
  55. package/lib-commonjs/components/ChatInputEntity/useChatInputEntity.js.map +1 -1
  56. package/lib-commonjs/components/ChatInputToken/ChatInputToken.js +1 -1
  57. package/lib-commonjs/components/ChatInputToken/ChatInputToken.js.map +1 -1
  58. package/lib-commonjs/components/ChatInputToken/ChatInputToken.node.js +1 -1
  59. package/lib-commonjs/components/ChatInputToken/ChatInputToken.node.js.map +1 -1
  60. package/lib-commonjs/components/ChatInputToken/ChatInputToken.types.js +0 -1
  61. package/lib-commonjs/components/ChatInputToken/index.js +0 -1
  62. package/lib-commonjs/components/ChatInputToken/renderChatInputToken.js +1 -1
  63. package/lib-commonjs/components/ChatInputToken/renderChatInputToken.js.map +1 -1
  64. package/lib-commonjs/components/ChatInputToken/useChatInputToken.js +1 -1
  65. package/lib-commonjs/components/ChatInputToken/useChatInputToken.js.map +1 -1
  66. package/lib-commonjs/components/GhostText/GhostText.js +1 -1
  67. package/lib-commonjs/components/GhostText/GhostText.js.map +1 -1
  68. package/lib-commonjs/components/GhostText/GhostText.types.js +0 -1
  69. package/lib-commonjs/components/GhostText/GhostText.types.js.map +1 -1
  70. package/lib-commonjs/components/GhostText/index.js +0 -1
  71. package/lib-commonjs/components/GhostText/renderGhostText.js +1 -1
  72. package/lib-commonjs/components/GhostText/renderGhostText.js.map +1 -1
  73. package/lib-commonjs/components/GhostText/useGhostText.js +1 -1
  74. package/lib-commonjs/components/GhostText/useGhostText.js.map +1 -1
  75. package/lib-commonjs/index.js +0 -1
  76. package/lib-commonjs/plugins/BasicFunctionality/BasicFunctionality.js +1 -1
  77. package/lib-commonjs/plugins/BasicFunctionality/BasicFunctionality.js.map +1 -1
  78. package/lib-commonjs/plugins/BasicFunctionality/index.js +0 -1
  79. package/lib-commonjs/plugins/ChatInputEntity/ChatInputEntity.node.js +1 -1
  80. package/lib-commonjs/plugins/ChatInputEntity/ChatInputEntity.node.js.map +1 -1
  81. package/lib-commonjs/plugins/ChatInputEntity/ChatInputEntityPlugin.js +1 -1
  82. package/lib-commonjs/plugins/ChatInputEntity/ChatInputEntityPlugin.js.map +1 -1
  83. package/lib-commonjs/plugins/ChatInputEntity/ChatInputEntityPlugin.types.js +0 -1
  84. package/lib-commonjs/plugins/ChatInputEntity/index.js +0 -1
  85. package/lib-commonjs/plugins/GhostText/GhostText.js +2 -3
  86. package/lib-commonjs/plugins/GhostText/GhostText.js.map +1 -1
  87. package/lib-commonjs/plugins/GhostText/GhostText.node.js +1 -1
  88. package/lib-commonjs/plugins/GhostText/GhostText.node.js.map +1 -1
  89. package/lib-commonjs/plugins/GhostText/index.js +0 -1
  90. package/lib-commonjs/plugins/ImperativeControl/ImperativeControl.js +1 -1
  91. package/lib-commonjs/plugins/ImperativeControl/ImperativeControl.js.map +1 -1
  92. package/lib-commonjs/plugins/ImperativeControl/index.js +0 -1
  93. package/lib-commonjs/plugins/ManualGhostText/ManualGhostText.js +1 -1
  94. package/lib-commonjs/plugins/ManualGhostText/ManualGhostText.js.map +1 -1
  95. package/lib-commonjs/plugins/ManualGhostText/index.js +0 -1
  96. package/lib-commonjs/plugins/PasteUnfurling/PasteUnfurling.js +1 -1
  97. package/lib-commonjs/plugins/PasteUnfurling/PasteUnfurling.js.map +1 -1
  98. package/lib-commonjs/plugins/PasteUnfurling/index.js +0 -1
  99. package/package.json +5 -5
@@ -1 +1 @@
1
- {"version":3,"sources":["ImperativeControl.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { IImperativeControlBase } from '@fluentui-copilot/chat-input-plugins';\nimport { ImperativeControlBase } from '@fluentui-copilot/chat-input-plugins';\nimport { useLexicalComposerContext } from '@fluentui-copilot/react-text-editor';\n\nexport type ImperativeControlPluginRef = IImperativeControlBase;\nexport type ImperativeControlPluginProps = {};\n\nexport const ImperativeControlPlugin = React.forwardRef<ImperativeControlPluginRef, ImperativeControlPluginProps>(\n (_props, ref) => {\n const [editor] = useLexicalComposerContext();\n\n React.useImperativeHandle(ref, () => new ImperativeControlBase(editor), [editor]);\n\n return null;\n },\n);\n"],"names":["ImperativeControlPlugin","React","forwardRef","_props","editor","useLexicalComposerContext","useImperativeHandle","ref","ImperativeControlBase"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAQaA;;;eAAAA;;;;iEARU;kCAEe;iCACI;AAKnC,MAAMA,0BAAAA,WAAAA,GAAAA,OAA0BC,UAAMC,CAAU,CACrDC,QAACA;UACC,CAAAC,OAAOA,GAAOC,IAAAA,0CAAGA;WAEjBJ,mBAAMK,CAAAA,KAAoBC,IAAW,IAAIC,uCAAAA,CAAsBJ,SAAS;QAAAA;KAAA;WAACA;iDAElE"}
1
+ {"version":3,"sources":["ImperativeControl.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { IImperativeControlBase } from '@fluentui-copilot/chat-input-plugins';\nimport { ImperativeControlBase } from '@fluentui-copilot/chat-input-plugins';\nimport { useLexicalComposerContext } from '@fluentui-copilot/react-text-editor';\n\nexport type ImperativeControlPluginRef = IImperativeControlBase;\nexport type ImperativeControlPluginProps = {};\n\nexport const ImperativeControlPlugin = React.forwardRef<ImperativeControlPluginRef, ImperativeControlPluginProps>(\n (_props, ref) => {\n const [editor] = useLexicalComposerContext();\n\n React.useImperativeHandle(ref, () => new ImperativeControlBase(editor), [editor]);\n\n return null;\n },\n);\n"],"names":["ImperativeControlPlugin","React","forwardRef","_props","ref","editor","useLexicalComposerContext","useImperativeHandle","ImperativeControlBase"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAQaA;;;eAAAA;;;;iEARU;kCAEe;iCACI;AAKnC,MAAMA,0BAAAA,WAAAA,GAA0BC,OAAMC,UAAU,CACrD,CAACC,QAAQC;IACP,MAAM,CAACC,OAAO,GAAGC,IAAAA,0CAAAA;IAEjBL,OAAMM,mBAAmB,CAACH,KAAK,IAAM,IAAII,uCAAAA,CAAsBH,SAAS;QAACA;KAAO;IAEhF,OAAO;AACT"}
@@ -9,4 +9,3 @@ Object.defineProperty(exports, "ImperativeControlPlugin", {
9
9
  }
10
10
  });
11
11
  const _ImperativeControl = require("./ImperativeControl");
12
- //# sourceMappingURL=index.js.map
@@ -22,4 +22,4 @@ const ManualGhostTextPlugin = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
22
22
  ]);
23
23
  return null;
24
24
  });
25
- ManualGhostTextPlugin.displayName = 'ManualGhostTextPlugin'; //# sourceMappingURL=ManualGhostText.js.map
25
+ ManualGhostTextPlugin.displayName = 'ManualGhostTextPlugin';
@@ -1 +1 @@
1
- {"version":3,"sources":["ManualGhostText.ts"],"sourcesContent":["import * as React from 'react';\nimport { useLexicalComposerContext } from '@fluentui-copilot/react-text-editor';\nimport type { GhostTextProps } from '../../GhostText';\nimport { $createGhostTextNode, $isGhostTextNode } from '../../GhostText';\nimport type { IManualGhostTextBase } from '@fluentui-copilot/chat-input-plugins';\nimport { ManualGhostTextBase } from '@fluentui-copilot/chat-input-plugins';\n\nexport type ManualGhostTextProps = {\n id: string;\n};\n\nexport type ManualGhostTextRef = IManualGhostTextBase<GhostTextProps>;\n\nexport const ManualGhostTextPlugin = React.forwardRef<ManualGhostTextRef, ManualGhostTextProps>((props, ref) => {\n const { id } = props;\n const [editor] = useLexicalComposerContext();\n\n React.useImperativeHandle<ManualGhostTextRef, ManualGhostTextRef>(\n ref,\n () => new ManualGhostTextBase(editor, id, $isGhostTextNode, $createGhostTextNode),\n [editor, id],\n );\n\n return null;\n});\n\nManualGhostTextPlugin.displayName = 'ManualGhostTextPlugin';\n"],"names":["ManualGhostTextPlugin","React","forwardRef","props","ref","id","editor","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAaaA;;;eAAAA;;;;iEAbU;iCACmB;2BAEa;kCAEnB;AAQ7B,MAAMA,sCAAwBC,OAAMC,UAAU,CAA2C,CAACC,OAAOC;UACtG,EACAC,EAAA,KAEAJ;UAGGK,CAAAA,OAAAA,GAAAA,IAAAA,0CAAAA;WAAQD,mBAAAA,CAAAA,KAAAA,IAAAA,IAAAA,qCAAAA,CAAAA,QAAAA,IAAAA,2BAAAA,EAAAA,+BAAAA,GAAAA;QAAAA;QAAAA;KAAAA;WAAG;;AAIhBL,sBAAGO,WAAA,GAAA,yBAEHP,2CAAoC"}
1
+ {"version":3,"sources":["ManualGhostText.ts"],"sourcesContent":["import * as React from 'react';\nimport { useLexicalComposerContext } from '@fluentui-copilot/react-text-editor';\nimport type { GhostTextProps } from '../../GhostText';\nimport { $createGhostTextNode, $isGhostTextNode } from '../../GhostText';\nimport type { IManualGhostTextBase } from '@fluentui-copilot/chat-input-plugins';\nimport { ManualGhostTextBase } from '@fluentui-copilot/chat-input-plugins';\n\nexport type ManualGhostTextProps = {\n id: string;\n};\n\nexport type ManualGhostTextRef = IManualGhostTextBase<GhostTextProps>;\n\nexport const ManualGhostTextPlugin = React.forwardRef<ManualGhostTextRef, ManualGhostTextProps>((props, ref) => {\n const { id } = props;\n const [editor] = useLexicalComposerContext();\n\n React.useImperativeHandle<ManualGhostTextRef, ManualGhostTextRef>(\n ref,\n () => new ManualGhostTextBase(editor, id, $isGhostTextNode, $createGhostTextNode),\n [editor, id],\n );\n\n return null;\n});\n\nManualGhostTextPlugin.displayName = 'ManualGhostTextPlugin';\n"],"names":["ManualGhostTextPlugin","React","forwardRef","props","ref","id","editor","useLexicalComposerContext","useImperativeHandle","ManualGhostTextBase","$isGhostTextNode","$createGhostTextNode","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAaaA;;;eAAAA;;;;iEAbU;iCACmB;2BAEa;kCAEnB;AAQ7B,MAAMA,sCAAwBC,OAAMC,UAAU,CAA2C,CAACC,OAAOC;IACtG,MAAM,EAAEC,EAAE,EAAE,GAAGF;IACf,MAAM,CAACG,OAAO,GAAGC,IAAAA,0CAAAA;IAEjBN,OAAMO,mBAAmB,CACvBJ,KACA,IAAM,IAAIK,qCAAAA,CAAoBH,QAAQD,IAAIK,2BAAAA,EAAkBC,+BAAAA,GAC5D;QAACL;QAAQD;KAAG;IAGd,OAAO;AACT;AAEAL,sBAAsBY,WAAW,GAAG"}
@@ -9,4 +9,3 @@ Object.defineProperty(exports, "ManualGhostTextPlugin", {
9
9
  }
10
10
  });
11
11
  const _ManualGhostText = require("./ManualGhostText");
12
- //# sourceMappingURL=index.js.map
@@ -27,4 +27,4 @@ const PasteUnfurlingPlugin = (props)=>{
27
27
  rest
28
28
  ]);
29
29
  return null;
30
- }; //# sourceMappingURL=PasteUnfurling.js.map
30
+ };
@@ -1 +1 @@
1
- {"version":3,"sources":["PasteUnfurling.ts"],"sourcesContent":["import * as React from 'react';\nimport { registerPasteUnfurlingPlugin, type PasteUnfurlingPluginBaseProps } from '@fluentui-copilot/chat-input-plugins';\nimport { $createChatInputEntityNode, type ChatInputEntityProps } from '../../ChatInputEntity';\nimport { useLexicalComposerContext } from '@fluentui-copilot/react-text-editor';\n\nexport type PasteUnfurlingPluginProps<ExtraDataType> = Omit<\n PasteUnfurlingPluginBaseProps<ExtraDataType, ChatInputEntityProps>,\n '$createEntityNode'\n> &\n Pick<Partial<PasteUnfurlingPluginBaseProps<ExtraDataType, ChatInputEntityProps>>, '$createEntityNode'>;\n\nexport const PasteUnfurlingPlugin = <ExtraDataType>(props: PasteUnfurlingPluginProps<ExtraDataType>) => {\n const { $createEntityNode = $createChatInputEntityNode, ...rest } = props;\n\n const [editor] = useLexicalComposerContext();\n\n React.useEffect(() => {\n return registerPasteUnfurlingPlugin(editor, { ...rest, $createEntityNode });\n }, [$createEntityNode, editor, rest]);\n\n return null;\n};\n"],"names":["PasteUnfurlingPlugin","props","$createEntityNode","useLexicalComposerContext","React","rest","registerPasteUnfurlingPlugin","editor"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAWaA;;;eAAAA;;;;iEAXU;kCAC0D;iCACX;iCAC5B;AAQnC,MAAMA,uBAAuBC,CAAAA;UAClC,EAEAC,oBAAiBC,2CAAAA,EAEjBC,GAAAA;kBACmDC,GAAIF,IAAAA,0CAAA;oBAAED,CAAAA;eAAkBI,IAAAA,8CAAA,EAAAC,QAAA;YAC3E,GAAGF,IAAA;;;;;QAA4BA;QAAAA;KAAAA;WAAK;GAGtC,0CAAE"}
1
+ {"version":3,"sources":["PasteUnfurling.ts"],"sourcesContent":["import * as React from 'react';\nimport { registerPasteUnfurlingPlugin, type PasteUnfurlingPluginBaseProps } from '@fluentui-copilot/chat-input-plugins';\nimport { $createChatInputEntityNode, type ChatInputEntityProps } from '../../ChatInputEntity';\nimport { useLexicalComposerContext } from '@fluentui-copilot/react-text-editor';\n\nexport type PasteUnfurlingPluginProps<ExtraDataType> = Omit<\n PasteUnfurlingPluginBaseProps<ExtraDataType, ChatInputEntityProps>,\n '$createEntityNode'\n> &\n Pick<Partial<PasteUnfurlingPluginBaseProps<ExtraDataType, ChatInputEntityProps>>, '$createEntityNode'>;\n\nexport const PasteUnfurlingPlugin = <ExtraDataType>(props: PasteUnfurlingPluginProps<ExtraDataType>) => {\n const { $createEntityNode = $createChatInputEntityNode, ...rest } = props;\n\n const [editor] = useLexicalComposerContext();\n\n React.useEffect(() => {\n return registerPasteUnfurlingPlugin(editor, { ...rest, $createEntityNode });\n }, [$createEntityNode, editor, rest]);\n\n return null;\n};\n"],"names":["PasteUnfurlingPlugin","props","$createEntityNode","$createChatInputEntityNode","rest","editor","useLexicalComposerContext","React","useEffect","registerPasteUnfurlingPlugin"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAWaA;;;eAAAA;;;;iEAXU;kCAC0D;iCACX;iCAC5B;AAQnC,MAAMA,uBAAuB,CAAgBC;IAClD,MAAM,EAAEC,oBAAoBC,2CAA0B,EAAE,GAAGC,MAAM,GAAGH;IAEpE,MAAM,CAACI,OAAO,GAAGC,IAAAA,0CAAAA;IAEjBC,OAAMC,SAAS,CAAC;QACd,OAAOC,IAAAA,8CAAAA,EAA6BJ,QAAQ;YAAE,GAAGD,IAAI;YAAEF;QAAkB;IAC3E,GAAG;QAACA;QAAmBG;QAAQD;KAAK;IAEpC,OAAO;AACT"}
@@ -9,4 +9,3 @@ Object.defineProperty(exports, "PasteUnfurlingPlugin", {
9
9
  }
10
10
  });
11
11
  const _PasteUnfurling = require("./PasteUnfurling");
12
- //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui-copilot/react-chat-input-plugins",
3
- "version": "0.0.0-nightly-20250715-0404-529d18be.1",
3
+ "version": "0.0.0-nightly-20250717-0405-eecbae35.1",
4
4
  "description": "A Fluent AI package for React-based ChatInput plugins.",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -12,10 +12,10 @@
12
12
  },
13
13
  "license": "MIT",
14
14
  "dependencies": {
15
- "@fluentui-copilot/chat-input-plugins": "0.0.0-nightly-20250715-0404-529d18be.1",
16
- "@fluentui-copilot/react-text-editor": "0.0.0-nightly-20250715-0404-529d18be.1",
17
- "@fluentui-copilot/text-editor": "0.0.0-nightly-20250715-0404-529d18be.1",
18
- "@fluentui-copilot/tokens": "0.0.0-nightly-20250715-0404-529d18be.1",
15
+ "@fluentui-copilot/chat-input-plugins": "0.0.0-nightly-20250717-0405-eecbae35.1",
16
+ "@fluentui-copilot/react-text-editor": "0.0.0-nightly-20250717-0405-eecbae35.1",
17
+ "@fluentui-copilot/text-editor": "0.0.0-nightly-20250717-0405-eecbae35.1",
18
+ "@fluentui-copilot/tokens": "0.0.0-nightly-20250717-0405-eecbae35.1",
19
19
  "@swc/helpers": "^0.5.1"
20
20
  },
21
21
  "peerDependencies": {