@fluentui-copilot/react-chat-input-plugins 0.0.0-nightly-20240410-0405-8d7a6b79.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 (158) hide show
  1. package/CHANGELOG.json +38 -0
  2. package/CHANGELOG.md +16 -0
  3. package/LICENSE +23 -0
  4. package/README.md +5 -0
  5. package/dist/index.d.ts +295 -0
  6. package/lib/BasicFunctionality.js +2 -0
  7. package/lib/BasicFunctionality.js.map +1 -0
  8. package/lib/ChatInputEntity.js +3 -0
  9. package/lib/ChatInputEntity.js.map +1 -0
  10. package/lib/ChatInputToken.js +2 -0
  11. package/lib/ChatInputToken.js.map +1 -0
  12. package/lib/GhostText.js +4 -0
  13. package/lib/GhostText.js.map +1 -0
  14. package/lib/ImperativeControl.js +2 -0
  15. package/lib/ImperativeControl.js.map +1 -0
  16. package/lib/components/ChatInputEntity/ChatInputEntity.js +12 -0
  17. package/lib/components/ChatInputEntity/ChatInputEntity.js.map +1 -0
  18. package/lib/components/ChatInputEntity/ChatInputEntity.types.js +3 -0
  19. package/lib/components/ChatInputEntity/ChatInputEntity.types.js.map +1 -0
  20. package/lib/components/ChatInputEntity/index.js +6 -0
  21. package/lib/components/ChatInputEntity/index.js.map +1 -0
  22. package/lib/components/ChatInputEntity/renderChatInputEntity.js +12 -0
  23. package/lib/components/ChatInputEntity/renderChatInputEntity.js.map +1 -0
  24. package/lib/components/ChatInputEntity/useChatInputEntity.js +55 -0
  25. package/lib/components/ChatInputEntity/useChatInputEntity.js.map +1 -0
  26. package/lib/components/ChatInputEntity/useChatInputEntityStyles.js +44 -0
  27. package/lib/components/ChatInputEntity/useChatInputEntityStyles.js.map +1 -0
  28. package/lib/components/ChatInputToken/ChatInputToken.js +12 -0
  29. package/lib/components/ChatInputToken/ChatInputToken.js.map +1 -0
  30. package/lib/components/ChatInputToken/ChatInputToken.node.js +60 -0
  31. package/lib/components/ChatInputToken/ChatInputToken.node.js.map +1 -0
  32. package/lib/components/ChatInputToken/ChatInputToken.types.js +2 -0
  33. package/lib/components/ChatInputToken/ChatInputToken.types.js.map +1 -0
  34. package/lib/components/ChatInputToken/index.js +7 -0
  35. package/lib/components/ChatInputToken/index.js.map +1 -0
  36. package/lib/components/ChatInputToken/renderChatInputToken.js +10 -0
  37. package/lib/components/ChatInputToken/renderChatInputToken.js.map +1 -0
  38. package/lib/components/ChatInputToken/useChatInputToken.js +25 -0
  39. package/lib/components/ChatInputToken/useChatInputToken.js.map +1 -0
  40. package/lib/components/ChatInputToken/useChatInputTokenStyles.js +17 -0
  41. package/lib/components/ChatInputToken/useChatInputTokenStyles.js.map +1 -0
  42. package/lib/components/GhostText/GhostText.js +12 -0
  43. package/lib/components/GhostText/GhostText.js.map +1 -0
  44. package/lib/components/GhostText/GhostText.types.js +3 -0
  45. package/lib/components/GhostText/GhostText.types.js.map +1 -0
  46. package/lib/components/GhostText/index.js +6 -0
  47. package/lib/components/GhostText/index.js.map +1 -0
  48. package/lib/components/GhostText/renderGhostText.js +12 -0
  49. package/lib/components/GhostText/renderGhostText.js.map +1 -0
  50. package/lib/components/GhostText/useGhostText.js +29 -0
  51. package/lib/components/GhostText/useGhostText.js.map +1 -0
  52. package/lib/components/GhostText/useGhostTextStyles.js +48 -0
  53. package/lib/components/GhostText/useGhostTextStyles.js.map +1 -0
  54. package/lib/index.js +6 -0
  55. package/lib/index.js.map +1 -0
  56. package/lib/plugins/BasicFunctionality/BasicFunctionality.js +54 -0
  57. package/lib/plugins/BasicFunctionality/BasicFunctionality.js.map +1 -0
  58. package/lib/plugins/BasicFunctionality/index.js +2 -0
  59. package/lib/plugins/BasicFunctionality/index.js.map +1 -0
  60. package/lib/plugins/ChatInputEntity/ChatInputEntity.node.js +79 -0
  61. package/lib/plugins/ChatInputEntity/ChatInputEntity.node.js.map +1 -0
  62. package/lib/plugins/ChatInputEntity/ChatInputEntityPlugin.js +42 -0
  63. package/lib/plugins/ChatInputEntity/ChatInputEntityPlugin.js.map +1 -0
  64. package/lib/plugins/ChatInputEntity/ChatInputEntityPlugin.types.js +2 -0
  65. package/lib/plugins/ChatInputEntity/ChatInputEntityPlugin.types.js.map +1 -0
  66. package/lib/plugins/ChatInputEntity/index.js +4 -0
  67. package/lib/plugins/ChatInputEntity/index.js.map +1 -0
  68. package/lib/plugins/GhostText/GhostText.js +44 -0
  69. package/lib/plugins/GhostText/GhostText.js.map +1 -0
  70. package/lib/plugins/GhostText/GhostText.node.js +61 -0
  71. package/lib/plugins/GhostText/GhostText.node.js.map +1 -0
  72. package/lib/plugins/GhostText/index.js +3 -0
  73. package/lib/plugins/GhostText/index.js.map +1 -0
  74. package/lib/plugins/ImperativeControl/ImperativeControl.js +9 -0
  75. package/lib/plugins/ImperativeControl/ImperativeControl.js.map +1 -0
  76. package/lib/plugins/ImperativeControl/index.js +2 -0
  77. package/lib/plugins/ImperativeControl/index.js.map +1 -0
  78. package/lib/plugins/ManualGhostText/ManualGhostText.js +14 -0
  79. package/lib/plugins/ManualGhostText/ManualGhostText.js.map +1 -0
  80. package/lib/plugins/ManualGhostText/index.js +2 -0
  81. package/lib/plugins/ManualGhostText/index.js.map +1 -0
  82. package/lib-commonjs/BasicFunctionality.js +7 -0
  83. package/lib-commonjs/BasicFunctionality.js.map +1 -0
  84. package/lib-commonjs/ChatInputEntity.js +8 -0
  85. package/lib-commonjs/ChatInputEntity.js.map +1 -0
  86. package/lib-commonjs/ChatInputToken.js +7 -0
  87. package/lib-commonjs/ChatInputToken.js.map +1 -0
  88. package/lib-commonjs/GhostText.js +9 -0
  89. package/lib-commonjs/GhostText.js.map +1 -0
  90. package/lib-commonjs/ImperativeControl.js +7 -0
  91. package/lib-commonjs/ImperativeControl.js.map +1 -0
  92. package/lib-commonjs/components/ChatInputEntity/ChatInputEntity.js +21 -0
  93. package/lib-commonjs/components/ChatInputEntity/ChatInputEntity.js.map +1 -0
  94. package/lib-commonjs/components/ChatInputEntity/ChatInputEntity.types.js +7 -0
  95. package/lib-commonjs/components/ChatInputEntity/ChatInputEntity.types.js.map +1 -0
  96. package/lib-commonjs/components/ChatInputEntity/index.js +11 -0
  97. package/lib-commonjs/components/ChatInputEntity/index.js.map +1 -0
  98. package/lib-commonjs/components/ChatInputEntity/renderChatInputEntity.js +21 -0
  99. package/lib-commonjs/components/ChatInputEntity/renderChatInputEntity.js.map +1 -0
  100. package/lib-commonjs/components/ChatInputEntity/useChatInputEntity.js +52 -0
  101. package/lib-commonjs/components/ChatInputEntity/useChatInputEntity.js.map +1 -0
  102. package/lib-commonjs/components/ChatInputEntity/useChatInputEntityStyles.js +71 -0
  103. package/lib-commonjs/components/ChatInputEntity/useChatInputEntityStyles.js.map +1 -0
  104. package/lib-commonjs/components/ChatInputToken/ChatInputToken.js +21 -0
  105. package/lib-commonjs/components/ChatInputToken/ChatInputToken.js.map +1 -0
  106. package/lib-commonjs/components/ChatInputToken/ChatInputToken.node.js +81 -0
  107. package/lib-commonjs/components/ChatInputToken/ChatInputToken.node.js.map +1 -0
  108. package/lib-commonjs/components/ChatInputToken/ChatInputToken.types.js +5 -0
  109. package/lib-commonjs/components/ChatInputToken/ChatInputToken.types.js.map +1 -0
  110. package/lib-commonjs/components/ChatInputToken/index.js +12 -0
  111. package/lib-commonjs/components/ChatInputToken/index.js.map +1 -0
  112. package/lib-commonjs/components/ChatInputToken/renderChatInputToken.js +16 -0
  113. package/lib-commonjs/components/ChatInputToken/renderChatInputToken.js.map +1 -0
  114. package/lib-commonjs/components/ChatInputToken/useChatInputToken.js +24 -0
  115. package/lib-commonjs/components/ChatInputToken/useChatInputToken.js.map +1 -0
  116. package/lib-commonjs/components/ChatInputToken/useChatInputTokenStyles.js +34 -0
  117. package/lib-commonjs/components/ChatInputToken/useChatInputTokenStyles.js.map +1 -0
  118. package/lib-commonjs/components/GhostText/GhostText.js +21 -0
  119. package/lib-commonjs/components/GhostText/GhostText.js.map +1 -0
  120. package/lib-commonjs/components/GhostText/GhostText.types.js +7 -0
  121. package/lib-commonjs/components/GhostText/GhostText.types.js.map +1 -0
  122. package/lib-commonjs/components/GhostText/index.js +11 -0
  123. package/lib-commonjs/components/GhostText/index.js.map +1 -0
  124. package/lib-commonjs/components/GhostText/renderGhostText.js +21 -0
  125. package/lib-commonjs/components/GhostText/renderGhostText.js.map +1 -0
  126. package/lib-commonjs/components/GhostText/useGhostText.js +28 -0
  127. package/lib-commonjs/components/GhostText/useGhostText.js.map +1 -0
  128. package/lib-commonjs/components/GhostText/useGhostTextStyles.js +103 -0
  129. package/lib-commonjs/components/GhostText/useGhostTextStyles.js.map +1 -0
  130. package/lib-commonjs/index.js +102 -0
  131. package/lib-commonjs/index.js.map +1 -0
  132. package/lib-commonjs/plugins/BasicFunctionality/BasicFunctionality.js +70 -0
  133. package/lib-commonjs/plugins/BasicFunctionality/BasicFunctionality.js.map +1 -0
  134. package/lib-commonjs/plugins/BasicFunctionality/index.js +7 -0
  135. package/lib-commonjs/plugins/BasicFunctionality/index.js.map +1 -0
  136. package/lib-commonjs/plugins/ChatInputEntity/ChatInputEntity.node.js +100 -0
  137. package/lib-commonjs/plugins/ChatInputEntity/ChatInputEntity.node.js.map +1 -0
  138. package/lib-commonjs/plugins/ChatInputEntity/ChatInputEntityPlugin.js +52 -0
  139. package/lib-commonjs/plugins/ChatInputEntity/ChatInputEntityPlugin.js.map +1 -0
  140. package/lib-commonjs/plugins/ChatInputEntity/ChatInputEntityPlugin.types.js +5 -0
  141. package/lib-commonjs/plugins/ChatInputEntity/ChatInputEntityPlugin.types.js.map +1 -0
  142. package/lib-commonjs/plugins/ChatInputEntity/index.js +9 -0
  143. package/lib-commonjs/plugins/ChatInputEntity/index.js.map +1 -0
  144. package/lib-commonjs/plugins/GhostText/GhostText.js +58 -0
  145. package/lib-commonjs/plugins/GhostText/GhostText.js.map +1 -0
  146. package/lib-commonjs/plugins/GhostText/GhostText.node.js +82 -0
  147. package/lib-commonjs/plugins/GhostText/GhostText.node.js.map +1 -0
  148. package/lib-commonjs/plugins/GhostText/index.js +8 -0
  149. package/lib-commonjs/plugins/GhostText/index.js.map +1 -0
  150. package/lib-commonjs/plugins/ImperativeControl/ImperativeControl.js +21 -0
  151. package/lib-commonjs/plugins/ImperativeControl/ImperativeControl.js.map +1 -0
  152. package/lib-commonjs/plugins/ImperativeControl/index.js +7 -0
  153. package/lib-commonjs/plugins/ImperativeControl/index.js.map +1 -0
  154. package/lib-commonjs/plugins/ManualGhostText/ManualGhostText.js +25 -0
  155. package/lib-commonjs/plugins/ManualGhostText/ManualGhostText.js.map +1 -0
  156. package/lib-commonjs/plugins/ManualGhostText/index.js +7 -0
  157. package/lib-commonjs/plugins/ManualGhostText/index.js.map +1 -0
  158. package/package.json +39 -0
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./ChatInputToken"), exports);
7
+ _export_star._(require("./ChatInputToken.types"), exports);
8
+ _export_star._(require("./renderChatInputToken"), exports);
9
+ _export_star._(require("./useChatInputToken"), exports);
10
+ _export_star._(require("./useChatInputTokenStyles"), exports);
11
+ _export_star._(require("./ChatInputToken.node"), exports);
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export * from './ChatInputToken';\nexport * from './ChatInputToken.types';\nexport * from './renderChatInputToken';\nexport * from './useChatInputToken';\nexport * from './useChatInputTokenStyles';\nexport * from './ChatInputToken.node';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;uBAAc;uBACA;uBACA;uBACA;uBACA;uBACA;CACd,iCAAiC"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "renderChatInputToken_unstable", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return renderChatInputToken_unstable;
9
+ }
10
+ });
11
+ const _jsxruntime = require("@fluentui/react-jsx-runtime/jsx-runtime");
12
+ const _reactcomponents = require("@fluentui/react-components");
13
+ const renderChatInputToken_unstable = (state)=>{
14
+ (0, _reactcomponents.assertSlots)(state);
15
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(state.root, {});
16
+ }; //# sourceMappingURL=renderChatInputToken.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["renderChatInputToken.js"],"sourcesContent":["import { jsx as _jsx } from \"@fluentui/react-jsx-runtime/jsx-runtime\";\nimport { assertSlots } from '@fluentui/react-components';\n/**\n * Render the final JSX of ChatInputToken\n */\nexport const renderChatInputToken_unstable = state => {\n assertSlots(state);\n return /*#__PURE__*/_jsx(state.root, {});\n};\n//# sourceMappingURL=renderChatInputToken.js.map"],"names":["renderChatInputToken_unstable","state","assertSlots","_jsx","root"],"mappings":";;;;+BAKaA;;;eAAAA;;;4BALe;iCACA;AAIrB,MAAMA,gCAAgCC,CAAAA;IAC3CC,IAAAA,4BAAW,EAACD;IACZ,OAAO,WAAW,GAAEE,IAAAA,eAAI,EAACF,MAAMG,IAAI,EAAE,CAAC;AACxC,GACA,gDAAgD"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "useChatInputToken_unstable", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return useChatInputToken_unstable;
9
+ }
10
+ });
11
+ const _reactcomponents = require("@fluentui/react-components");
12
+ const useChatInputToken_unstable = (props, ref)=>{
13
+ return {
14
+ components: {
15
+ root: 'span'
16
+ },
17
+ root: _reactcomponents.slot.always((0, _reactcomponents.getIntrinsicElementProps)('span', {
18
+ ref,
19
+ ...props
20
+ }), {
21
+ elementType: 'span'
22
+ })
23
+ };
24
+ }; //# sourceMappingURL=useChatInputToken.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useChatInputToken.js"],"sourcesContent":["import { getIntrinsicElementProps, slot } from '@fluentui/react-components';\n// If you add JSX to this file, be sure to change the file type to .tsx\n/**\n * Create the state required to render ChatInputToken.\n *\n * The returned state can be modified with hooks such as useChatInputTokenStyles_unstable,\n * before being passed to renderChatInputToken_unstable.\n *\n * @param props - props from this instance of ChatInputToken\n * @param ref - reference to root HTMLElement of ChatInputToken\n */\nexport const useChatInputToken_unstable = (props, ref) => {\n return {\n components: {\n root: 'span'\n },\n root: slot.always(getIntrinsicElementProps('span', {\n ref,\n ...props\n }), {\n elementType: 'span'\n })\n };\n};\n//# sourceMappingURL=useChatInputToken.js.map"],"names":["useChatInputToken_unstable","props","ref","components","root","slot","always","getIntrinsicElementProps","elementType"],"mappings":";;;;+BAWaA;;;eAAAA;;;iCAXkC;AAWxC,MAAMA,6BAA6B,CAACC,OAAOC;IAChD,OAAO;QACLC,YAAY;YACVC,MAAM;QACR;QACAA,MAAMC,qBAAI,CAACC,MAAM,CAACC,IAAAA,yCAAwB,EAAC,QAAQ;YACjDL;YACA,GAAGD,KAAK;QACV,IAAI;YACFO,aAAa;QACf;IACF;AACF,GACA,6CAA6C"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ chatInputTokenClassNames: function() {
13
+ return chatInputTokenClassNames;
14
+ },
15
+ useChatInputTokenStyles_unstable: function() {
16
+ return useChatInputTokenStyles_unstable;
17
+ }
18
+ });
19
+ const _reactcomponents = require("@fluentui/react-components");
20
+ const chatInputTokenClassNames = {
21
+ root: 'fai-ChatInputToken'
22
+ };
23
+ /**
24
+ * Styles for the root slot
25
+ */ const useBaseClassName = (0, _reactcomponents.__resetStyles)("r125pysu", null, [
26
+ ".r125pysu{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:calc(var(--lineHeightBase200) + 2 * var(--spacingVerticalXXS));background-color:var(--colorNeutralBackground3);border-radius:var(--borderRadiusMedium);color:var(--colorNeutralForeground2);padding:var(--spacingVerticalXXS) var(--spacingHorizontalNone);}",
27
+ ".r125pysu::before{content:\" \";font-size:0;letter-spacing:var(--spacingHorizontalS);}",
28
+ ".r125pysu::after{content:\" \";font-size:0;letter-spacing:var(--spacingHorizontalS);}"
29
+ ]);
30
+ const useChatInputTokenStyles_unstable = (state)=>{
31
+ const baseClassName = useBaseClassName();
32
+ state.root.className = (0, _reactcomponents.mergeClasses)(chatInputTokenClassNames.root, baseClassName, state.root.className);
33
+ return state;
34
+ }; //# sourceMappingURL=useChatInputTokenStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useChatInputTokenStyles.js"],"sourcesContent":["import { __resetStyles, mergeClasses, tokens, typographyStyles } from '@fluentui/react-components';\nexport const chatInputTokenClassNames = {\n root: 'fai-ChatInputToken'\n};\n/**\n * Styles for the root slot\n */\nconst useBaseClassName = __resetStyles(\"r125pysu\", null, [\".r125pysu{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:calc(var(--lineHeightBase200) + 2 * var(--spacingVerticalXXS));background-color:var(--colorNeutralBackground3);border-radius:var(--borderRadiusMedium);color:var(--colorNeutralForeground2);padding:var(--spacingVerticalXXS) var(--spacingHorizontalNone);}\", \".r125pysu::before{content:\\\" \\\";font-size:0;letter-spacing:var(--spacingHorizontalS);}\", \".r125pysu::after{content:\\\" \\\";font-size:0;letter-spacing:var(--spacingHorizontalS);}\"]);\n/**\n * Apply styling to the ChatInputToken slots based on the state\n */\nexport const useChatInputTokenStyles_unstable = state => {\n const baseClassName = useBaseClassName();\n state.root.className = mergeClasses(chatInputTokenClassNames.root, baseClassName, state.root.className);\n return state;\n};\n//# sourceMappingURL=useChatInputTokenStyles.js.map"],"names":["chatInputTokenClassNames","useChatInputTokenStyles_unstable","root","useBaseClassName","__resetStyles","state","baseClassName","className","mergeClasses"],"mappings":";;;;;;;;;;;IACaA,wBAAwB;eAAxBA;;IAUAC,gCAAgC;eAAhCA;;;iCAXyD;AAC/D,MAAMD,2BAA2B;IACtCE,MAAM;AACR;AACA;;CAEC,GACD,MAAMC,mBAAmBC,IAAAA,8BAAa,EAAC,YAAY,MAAM;IAAC;IAA+X;IAA0F;CAAwF;AAIpmB,MAAMH,mCAAmCI,CAAAA;IAC9C,MAAMC,gBAAgBH;IACtBE,MAAMH,IAAI,CAACK,SAAS,GAAGC,IAAAA,6BAAY,EAACR,yBAAyBE,IAAI,EAAEI,eAAeD,MAAMH,IAAI,CAACK,SAAS;IACtG,OAAOF;AACT,GACA,mDAAmD"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "GhostText", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return GhostText;
9
+ }
10
+ });
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _useGhostText = require("./useGhostText");
14
+ const _renderGhostText = require("./renderGhostText");
15
+ const _useGhostTextStyles = require("./useGhostTextStyles");
16
+ const GhostText = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
17
+ const state = (0, _useGhostText.useGhostText_unstable)(props, ref);
18
+ (0, _useGhostTextStyles.useGhostTextStyles_unstable)(state);
19
+ return (0, _renderGhostText.renderGhostText_unstable)(state);
20
+ });
21
+ GhostText.displayName = 'GhostText'; //# sourceMappingURL=GhostText.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["GhostText.js"],"sourcesContent":["import * as React from 'react';\nimport { useGhostText_unstable } from './useGhostText';\nimport { renderGhostText_unstable } from './renderGhostText';\nimport { useGhostTextStyles_unstable } from './useGhostTextStyles';\n// GhostText component - TODO: add more docs\nexport const GhostText = /*#__PURE__*/React.forwardRef((props, ref) => {\n const state = useGhostText_unstable(props, ref);\n useGhostTextStyles_unstable(state);\n return renderGhostText_unstable(state);\n});\nGhostText.displayName = 'GhostText';\n//# sourceMappingURL=GhostText.js.map"],"names":["GhostText","React","forwardRef","props","ref","state","useGhostText_unstable","useGhostTextStyles_unstable","renderGhostText_unstable","displayName"],"mappings":";;;;+BAKaA;;;eAAAA;;;;iEALU;8BACe;iCACG;oCACG;AAErC,MAAMA,YAAY,WAAW,GAAEC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IAC7D,MAAMC,QAAQC,IAAAA,mCAAqB,EAACH,OAAOC;IAC3CG,IAAAA,+CAA2B,EAACF;IAC5B,OAAOG,IAAAA,yCAAwB,EAACH;AAClC;AACAL,UAAUS,WAAW,GAAG,aACxB,qCAAqC"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ // TODO: Remove semicolon from previous line, uncomment next line, and provide union of props to pick from GhostTextProps.
6
+ // & Required<Pick<GhostTextProps, 'propName'>>
7
+ //# sourceMappingURL=GhostText.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["GhostText.types.js"],"sourcesContent":["export {}; // TODO: Remove semicolon from previous line, uncomment next line, and provide union of props to pick from GhostTextProps.\n// & Required<Pick<GhostTextProps, 'propName'>>\n//# sourceMappingURL=GhostText.types.js.map"],"names":[],"mappings":";;;;CAAW,0HAA0H;CACrI,+CAA+C;CAC/C,2CAA2C"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./GhostText"), exports);
7
+ _export_star._(require("./GhostText.types"), exports);
8
+ _export_star._(require("./renderGhostText"), exports);
9
+ _export_star._(require("./useGhostText"), exports);
10
+ _export_star._(require("./useGhostTextStyles"), exports);
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export * from './GhostText';\nexport * from './GhostText.types';\nexport * from './renderGhostText';\nexport * from './useGhostText';\nexport * from './useGhostTextStyles';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;uBAAc;uBACA;uBACA;uBACA;uBACA;CACd,iCAAiC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "renderGhostText_unstable", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return renderGhostText_unstable;
9
+ }
10
+ });
11
+ const _jsxruntime = require("@fluentui/react-jsx-runtime/jsx-runtime");
12
+ const _reactcomponents = require("@fluentui/react-components");
13
+ const renderGhostText_unstable = (state)=>{
14
+ (0, _reactcomponents.assertSlots)(state);
15
+ return /*#__PURE__*/ (0, _jsxruntime.jsxs)(state.root, {
16
+ children: [
17
+ state.root.children,
18
+ state.indicator && /*#__PURE__*/ (0, _jsxruntime.jsx)(state.indicator, {})
19
+ ]
20
+ });
21
+ }; //# sourceMappingURL=renderGhostText.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["renderGhostText.js"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"@fluentui/react-jsx-runtime/jsx-runtime\";\nimport { assertSlots } from '@fluentui/react-components';\n/**\n * Render the final JSX of GhostText\n */\nexport const renderGhostText_unstable = state => {\n assertSlots(state);\n return /*#__PURE__*/_jsxs(state.root, {\n children: [state.root.children, state.indicator && /*#__PURE__*/_jsx(state.indicator, {})]\n });\n};\n//# sourceMappingURL=renderGhostText.js.map"],"names":["renderGhostText_unstable","state","assertSlots","_jsxs","root","children","indicator","_jsx"],"mappings":";;;;+BAKaA;;;eAAAA;;;4BAL8B;iCACf;AAIrB,MAAMA,2BAA2BC,CAAAA;IACtCC,IAAAA,4BAAW,EAACD;IACZ,OAAO,WAAW,GAAEE,IAAAA,gBAAK,EAACF,MAAMG,IAAI,EAAE;QACpCC,UAAU;YAACJ,MAAMG,IAAI,CAACC,QAAQ;YAAEJ,MAAMK,SAAS,IAAI,WAAW,GAAEC,IAAAA,eAAI,EAACN,MAAMK,SAAS,EAAE,CAAC;SAAG;IAC5F;AACF,GACA,2CAA2C"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "useGhostText_unstable", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return useGhostText_unstable;
9
+ }
10
+ });
11
+ const _reactcomponents = require("@fluentui/react-components");
12
+ const useGhostText_unstable = (props, ref)=>{
13
+ return {
14
+ components: {
15
+ root: 'span',
16
+ indicator: 'span'
17
+ },
18
+ root: _reactcomponents.slot.always((0, _reactcomponents.getIntrinsicElementProps)('span', {
19
+ ref,
20
+ ...props
21
+ }), {
22
+ elementType: 'span'
23
+ }),
24
+ indicator: _reactcomponents.slot.optional(props.indicator, {
25
+ elementType: 'span'
26
+ })
27
+ };
28
+ }; //# sourceMappingURL=useGhostText.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useGhostText.js"],"sourcesContent":["import { getIntrinsicElementProps, slot } from '@fluentui/react-components';\n// If you add JSX to this file, be sure to change the file type to .tsx\n/**\n * Create the state required to render GhostText.\n *\n * The returned state can be modified with hooks such as useGhostTextStyles_unstable,\n * before being passed to renderGhostText_unstable.\n *\n * @param props - props from this instance of GhostText\n * @param ref - reference to root HTMLElement of GhostText\n */\nexport const useGhostText_unstable = (props, ref) => {\n return {\n components: {\n root: 'span',\n indicator: 'span'\n },\n root: slot.always(getIntrinsicElementProps('span', {\n ref,\n ...props\n }), {\n elementType: 'span'\n }),\n indicator: slot.optional(props.indicator, {\n elementType: 'span'\n })\n };\n};\n//# sourceMappingURL=useGhostText.js.map"],"names":["useGhostText_unstable","props","ref","components","root","indicator","slot","always","getIntrinsicElementProps","elementType","optional"],"mappings":";;;;+BAWaA;;;eAAAA;;;iCAXkC;AAWxC,MAAMA,wBAAwB,CAACC,OAAOC;IAC3C,OAAO;QACLC,YAAY;YACVC,MAAM;YACNC,WAAW;QACb;QACAD,MAAME,qBAAI,CAACC,MAAM,CAACC,IAAAA,yCAAwB,EAAC,QAAQ;YACjDN;YACA,GAAGD,KAAK;QACV,IAAI;YACFQ,aAAa;QACf;QACAJ,WAAWC,qBAAI,CAACI,QAAQ,CAACT,MAAMI,SAAS,EAAE;YACxCI,aAAa;QACf;IACF;AACF,GACA,wCAAwC"}
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ ghostTextClassNames: function() {
13
+ return ghostTextClassNames;
14
+ },
15
+ useGhostTextStyles_unstable: function() {
16
+ return useGhostTextStyles_unstable;
17
+ }
18
+ });
19
+ const _reactcomponents = require("@fluentui/react-components");
20
+ const ghostTextClassNames = {
21
+ root: 'fai-GhostText',
22
+ indicator: 'fai-GhostText__indicator'
23
+ };
24
+ /**
25
+ * Styles for the root slot
26
+ */ const useStyles = (0, _reactcomponents.__styles)({
27
+ root: {
28
+ sj55zd: "f11d4kpn",
29
+ Huce71: "fibxuh5",
30
+ i8kkvl: "f1ufnopg",
31
+ Belr9w4: "f14sijuj"
32
+ },
33
+ indicator: {
34
+ Bahqtrf: "fk6fouc",
35
+ Be2twd7: "f13mqy1h",
36
+ Bhrd7zp: "fl43uef",
37
+ Bg96gwp: "fcpl73t",
38
+ sj55zd: "f11d4kpn",
39
+ De3pzq: "f3vzo32",
40
+ z8tnut: "fztplxc",
41
+ z189sj: [
42
+ "fdw0yi8",
43
+ "fk8j09s"
44
+ ],
45
+ Byoj8tv: "f9g1xly",
46
+ uwmqm3: [
47
+ "fk8j09s",
48
+ "fdw0yi8"
49
+ ],
50
+ Bbmb7ep: [
51
+ "f1g3puop",
52
+ "fi2rrw2"
53
+ ],
54
+ Beyfa6y: [
55
+ "fi2rrw2",
56
+ "f1g3puop"
57
+ ],
58
+ B7oj6ja: [
59
+ "f1rstyi9",
60
+ "f1s4nn1u"
61
+ ],
62
+ Btl43ni: [
63
+ "f1s4nn1u",
64
+ "f1rstyi9"
65
+ ],
66
+ Frg6f3: [
67
+ "fbyavb5",
68
+ "fm0x6gh"
69
+ ],
70
+ Cd5d3v: "f1pc5kto"
71
+ }
72
+ }, {
73
+ d: [
74
+ ".f11d4kpn{color:var(--colorNeutralForeground3);}",
75
+ ".fibxuh5{white-space:pre-wrap;}",
76
+ ".f1ufnopg{column-gap:var(--spacingHorizontalXS);}",
77
+ ".f14sijuj{row-gap:var(--spacingHorizontalXS);}",
78
+ ".fk6fouc{font-family:var(--fontFamilyBase);}",
79
+ ".f13mqy1h{font-size:var(--fontSizeBase100);}",
80
+ ".fl43uef{font-weight:var(--fontWeightSemibold);}",
81
+ ".fcpl73t{line-height:var(--lineHeightBase100);}",
82
+ ".f3vzo32{background-color:var(--colorNeutralBackground5);}",
83
+ ".fztplxc{padding-top:var(--spacingVerticalNone);}",
84
+ ".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",
85
+ ".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",
86
+ ".f9g1xly{padding-bottom:var(--spacingVerticalNone);}",
87
+ ".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}",
88
+ ".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}",
89
+ ".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}",
90
+ ".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}",
91
+ ".fbyavb5{margin-left:var(--spacingHorizontalXS);}",
92
+ ".fm0x6gh{margin-right:var(--spacingHorizontalXS);}",
93
+ ".f1pc5kto{mergin-right:var(--spacingHorizontalXS);}"
94
+ ]
95
+ });
96
+ const useGhostTextStyles_unstable = (state)=>{
97
+ const styles = useStyles();
98
+ state.root.className = (0, _reactcomponents.mergeClasses)(ghostTextClassNames.root, styles.root, state.root.className);
99
+ if (state.indicator) {
100
+ state.indicator.className = (0, _reactcomponents.mergeClasses)(ghostTextClassNames.indicator, styles.indicator, state.indicator.className);
101
+ }
102
+ return state;
103
+ }; //# sourceMappingURL=useGhostTextStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useGhostTextStyles.js"],"sourcesContent":["import { __styles, mergeClasses, shorthands, tokens, typographyStyles } from '@fluentui/react-components';\nexport const ghostTextClassNames = {\n root: 'fai-GhostText',\n indicator: 'fai-GhostText__indicator'\n};\n/**\n * Styles for the root slot\n */\nconst useStyles = __styles({\n root: {\n sj55zd: \"f11d4kpn\",\n Huce71: \"fibxuh5\",\n i8kkvl: \"f1ufnopg\",\n Belr9w4: \"f14sijuj\"\n },\n indicator: {\n Bahqtrf: \"fk6fouc\",\n Be2twd7: \"f13mqy1h\",\n Bhrd7zp: \"fl43uef\",\n Bg96gwp: \"fcpl73t\",\n sj55zd: \"f11d4kpn\",\n De3pzq: \"f3vzo32\",\n z8tnut: \"fztplxc\",\n z189sj: [\"fdw0yi8\", \"fk8j09s\"],\n Byoj8tv: \"f9g1xly\",\n uwmqm3: [\"fk8j09s\", \"fdw0yi8\"],\n Bbmb7ep: [\"f1g3puop\", \"fi2rrw2\"],\n Beyfa6y: [\"fi2rrw2\", \"f1g3puop\"],\n B7oj6ja: [\"f1rstyi9\", \"f1s4nn1u\"],\n Btl43ni: [\"f1s4nn1u\", \"f1rstyi9\"],\n Frg6f3: [\"fbyavb5\", \"fm0x6gh\"],\n Cd5d3v: \"f1pc5kto\"\n }\n}, {\n d: [\".f11d4kpn{color:var(--colorNeutralForeground3);}\", \".fibxuh5{white-space:pre-wrap;}\", \".f1ufnopg{column-gap:var(--spacingHorizontalXS);}\", \".f14sijuj{row-gap:var(--spacingHorizontalXS);}\", \".fk6fouc{font-family:var(--fontFamilyBase);}\", \".f13mqy1h{font-size:var(--fontSizeBase100);}\", \".fl43uef{font-weight:var(--fontWeightSemibold);}\", \".fcpl73t{line-height:var(--lineHeightBase100);}\", \".f3vzo32{background-color:var(--colorNeutralBackground5);}\", \".fztplxc{padding-top:var(--spacingVerticalNone);}\", \".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}\", \".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}\", \".f9g1xly{padding-bottom:var(--spacingVerticalNone);}\", \".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}\", \".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}\", \".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}\", \".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}\", \".fbyavb5{margin-left:var(--spacingHorizontalXS);}\", \".fm0x6gh{margin-right:var(--spacingHorizontalXS);}\", \".f1pc5kto{mergin-right:var(--spacingHorizontalXS);}\"]\n});\n/**\n * Apply styling to the GhostText slots based on the state\n */\nexport const useGhostTextStyles_unstable = state => {\n const styles = useStyles();\n state.root.className = mergeClasses(ghostTextClassNames.root, styles.root, state.root.className);\n if (state.indicator) {\n state.indicator.className = mergeClasses(ghostTextClassNames.indicator, styles.indicator, state.indicator.className);\n }\n return state;\n};\n//# sourceMappingURL=useGhostTextStyles.js.map"],"names":["ghostTextClassNames","useGhostTextStyles_unstable","root","indicator","useStyles","__styles","sj55zd","Huce71","i8kkvl","Belr9w4","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","De3pzq","z8tnut","z189sj","Byoj8tv","uwmqm3","Bbmb7ep","Beyfa6y","B7oj6ja","Btl43ni","Frg6f3","Cd5d3v","d","state","styles","className","mergeClasses"],"mappings":";;;;;;;;;;;IACaA,mBAAmB;eAAnBA;;IAsCAC,2BAA2B;eAA3BA;;;iCAvCgE;AACtE,MAAMD,sBAAsB;IACjCE,MAAM;IACNC,WAAW;AACb;AACA;;CAEC,GACD,MAAMC,YAAYC,IAAAA,yBAAQ,EAAC;IACzBH,MAAM;QACJI,QAAQ;QACRC,QAAQ;QACRC,QAAQ;QACRC,SAAS;IACX;IACAN,WAAW;QACTO,SAAS;QACTC,SAAS;QACTC,SAAS;QACTC,SAAS;QACTP,QAAQ;QACRQ,QAAQ;QACRC,QAAQ;QACRC,QAAQ;YAAC;YAAW;SAAU;QAC9BC,SAAS;QACTC,QAAQ;YAAC;YAAW;SAAU;QAC9BC,SAAS;YAAC;YAAY;SAAU;QAChCC,SAAS;YAAC;YAAW;SAAW;QAChCC,SAAS;YAAC;YAAY;SAAW;QACjCC,SAAS;YAAC;YAAY;SAAW;QACjCC,QAAQ;YAAC;YAAW;SAAU;QAC9BC,QAAQ;IACV;AACF,GAAG;IACDC,GAAG;QAAC;QAAoD;QAAmC;QAAqD;QAAkD;QAAgD;QAAgD;QAAoD;QAAmD;QAA8D;QAAqD;QAA2D;QAA0D;QAAwD;QAAmE;QAAiE;QAAgE;QAA+D;QAAqD;QAAsD;KAAsD;AAC/kC;AAIO,MAAMxB,8BAA8ByB,CAAAA;IACzC,MAAMC,SAASvB;IACfsB,MAAMxB,IAAI,CAAC0B,SAAS,GAAGC,IAAAA,6BAAY,EAAC7B,oBAAoBE,IAAI,EAAEyB,OAAOzB,IAAI,EAAEwB,MAAMxB,IAAI,CAAC0B,SAAS;IAC/F,IAAIF,MAAMvB,SAAS,EAAE;QACnBuB,MAAMvB,SAAS,CAACyB,SAAS,GAAGC,IAAAA,6BAAY,EAAC7B,oBAAoBG,SAAS,EAAEwB,OAAOxB,SAAS,EAAEuB,MAAMvB,SAAS,CAACyB,SAAS;IACrH;IACA,OAAOF;AACT,GACA,8CAA8C"}
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ ChatInputEntity: function() {
13
+ return _ChatInputEntity.ChatInputEntity;
14
+ },
15
+ chatInputEntityClassNames: function() {
16
+ return _ChatInputEntity.chatInputEntityClassNames;
17
+ },
18
+ renderChatInputEntity_unstable: function() {
19
+ return _ChatInputEntity.renderChatInputEntity_unstable;
20
+ },
21
+ useChatInputEntityStyles_unstable: function() {
22
+ return _ChatInputEntity.useChatInputEntityStyles_unstable;
23
+ },
24
+ useChatInputEntity_unstable: function() {
25
+ return _ChatInputEntity.useChatInputEntity_unstable;
26
+ },
27
+ ChatInputEntityNode: function() {
28
+ return _ChatInputEntity.ChatInputEntityNode;
29
+ },
30
+ ChatInputEntityPlugin: function() {
31
+ return _ChatInputEntity.ChatInputEntityPlugin;
32
+ },
33
+ $isChatInputEntityNode: function() {
34
+ return _ChatInputEntity.$isChatInputEntityNode;
35
+ },
36
+ $createChatInputEntityNode: function() {
37
+ return _ChatInputEntity.$createChatInputEntityNode;
38
+ },
39
+ GhostText: function() {
40
+ return _GhostText.GhostText;
41
+ },
42
+ ghostTextClassNames: function() {
43
+ return _GhostText.ghostTextClassNames;
44
+ },
45
+ renderGhostText_unstable: function() {
46
+ return _GhostText.renderGhostText_unstable;
47
+ },
48
+ useGhostTextStyles_unstable: function() {
49
+ return _GhostText.useGhostTextStyles_unstable;
50
+ },
51
+ useGhostText_unstable: function() {
52
+ return _GhostText.useGhostText_unstable;
53
+ },
54
+ GhostTextNode: function() {
55
+ return _GhostText.GhostTextNode;
56
+ },
57
+ GhostTextPlugin: function() {
58
+ return _GhostText.GhostTextPlugin;
59
+ },
60
+ $isGhostTextNode: function() {
61
+ return _GhostText.$isGhostTextNode;
62
+ },
63
+ $createGhostTextNode: function() {
64
+ return _GhostText.$createGhostTextNode;
65
+ },
66
+ ManualGhostTextPlugin: function() {
67
+ return _GhostText.ManualGhostTextPlugin;
68
+ },
69
+ ChatInputToken: function() {
70
+ return _ChatInputToken.ChatInputToken;
71
+ },
72
+ chatInputTokenClassNames: function() {
73
+ return _ChatInputToken.chatInputTokenClassNames;
74
+ },
75
+ renderChatInputToken_unstable: function() {
76
+ return _ChatInputToken.renderChatInputToken_unstable;
77
+ },
78
+ useChatInputTokenStyles_unstable: function() {
79
+ return _ChatInputToken.useChatInputTokenStyles_unstable;
80
+ },
81
+ useChatInputToken_unstable: function() {
82
+ return _ChatInputToken.useChatInputToken_unstable;
83
+ },
84
+ $createChatInputTokenNode: function() {
85
+ return _ChatInputToken.$createChatInputTokenNode;
86
+ },
87
+ $isChatInputTokenNode: function() {
88
+ return _ChatInputToken.$isChatInputTokenNode;
89
+ },
90
+ BasicFunctionalityPlugin: function() {
91
+ return _BasicFunctionality.BasicFunctionalityPlugin;
92
+ },
93
+ ImperativeControlPlugin: function() {
94
+ return _ImperativeControl.ImperativeControlPlugin;
95
+ }
96
+ });
97
+ const _ChatInputEntity = require("./ChatInputEntity");
98
+ const _GhostText = require("./GhostText");
99
+ const _ChatInputToken = require("./ChatInputToken");
100
+ const _BasicFunctionality = require("./BasicFunctionality");
101
+ const _ImperativeControl = require("./ImperativeControl");
102
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export { ChatInputEntity, chatInputEntityClassNames, renderChatInputEntity_unstable, useChatInputEntityStyles_unstable, useChatInputEntity_unstable, ChatInputEntityNode, ChatInputEntityPlugin, $isChatInputEntityNode, $createChatInputEntityNode } from './ChatInputEntity';\nexport { GhostText, ghostTextClassNames, renderGhostText_unstable, useGhostTextStyles_unstable, useGhostText_unstable, GhostTextNode, GhostTextPlugin, $isGhostTextNode, $createGhostTextNode, ManualGhostTextPlugin } from './GhostText';\nexport { ChatInputToken, chatInputTokenClassNames, renderChatInputToken_unstable, useChatInputTokenStyles_unstable, useChatInputToken_unstable, $createChatInputTokenNode, $isChatInputTokenNode } from './ChatInputToken';\nexport { BasicFunctionalityPlugin } from './BasicFunctionality';\nexport { ImperativeControlPlugin } from './ImperativeControl';\n//# sourceMappingURL=index.js.map"],"names":["ChatInputEntity","chatInputEntityClassNames","renderChatInputEntity_unstable","useChatInputEntityStyles_unstable","useChatInputEntity_unstable","ChatInputEntityNode","ChatInputEntityPlugin","$isChatInputEntityNode","$createChatInputEntityNode","GhostText","ghostTextClassNames","renderGhostText_unstable","useGhostTextStyles_unstable","useGhostText_unstable","GhostTextNode","GhostTextPlugin","$isGhostTextNode","$createGhostTextNode","ManualGhostTextPlugin","ChatInputToken","chatInputTokenClassNames","renderChatInputToken_unstable","useChatInputTokenStyles_unstable","useChatInputToken_unstable","$createChatInputTokenNode","$isChatInputTokenNode","BasicFunctionalityPlugin","ImperativeControlPlugin"],"mappings":";;;;;;;;;;;IAASA,eAAe;eAAfA,gCAAe;;IAAEC,yBAAyB;eAAzBA,0CAAyB;;IAAEC,8BAA8B;eAA9BA,+CAA8B;;IAAEC,iCAAiC;eAAjCA,kDAAiC;;IAAEC,2BAA2B;eAA3BA,4CAA2B;;IAAEC,mBAAmB;eAAnBA,oCAAmB;;IAAEC,qBAAqB;eAArBA,sCAAqB;;IAAEC,sBAAsB;eAAtBA,uCAAsB;;IAAEC,0BAA0B;eAA1BA,2CAA0B;;IAC1OC,SAAS;eAATA,oBAAS;;IAAEC,mBAAmB;eAAnBA,8BAAmB;;IAAEC,wBAAwB;eAAxBA,mCAAwB;;IAAEC,2BAA2B;eAA3BA,sCAA2B;;IAAEC,qBAAqB;eAArBA,gCAAqB;;IAAEC,aAAa;eAAbA,wBAAa;;IAAEC,eAAe;eAAfA,0BAAe;;IAAEC,gBAAgB;eAAhBA,2BAAgB;;IAAEC,oBAAoB;eAApBA,+BAAoB;;IAAEC,qBAAqB;eAArBA,gCAAqB;;IAC3MC,cAAc;eAAdA,8BAAc;;IAAEC,wBAAwB;eAAxBA,wCAAwB;;IAAEC,6BAA6B;eAA7BA,6CAA6B;;IAAEC,gCAAgC;eAAhCA,gDAAgC;;IAAEC,0BAA0B;eAA1BA,0CAA0B;;IAAEC,yBAAyB;eAAzBA,yCAAyB;;IAAEC,qBAAqB;eAArBA,qCAAqB;;IACvLC,wBAAwB;eAAxBA,4CAAwB;;IACxBC,uBAAuB;eAAvBA,0CAAuB;;;iCAJ2N;2BAC/B;gCACpB;oCAC/J;mCACD;CACxC,iCAAiC"}
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "BasicFunctionalityPlugin", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return BasicFunctionalityPlugin;
9
+ }
10
+ });
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _reacttexteditor = require("@fluentui-copilot/react-text-editor");
14
+ const _reactcomponents = require("@fluentui/react-components");
15
+ const _chatinputplugins = require("@fluentui-copilot/chat-input-plugins");
16
+ const BasicFunctionalityPlugin = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
17
+ const { defaultValue, trimWhitespace, onCountChanged, onContentChange } = props;
18
+ const [editor] = (0, _reacttexteditor.useLexicalComposerContext)();
19
+ const basicFunctionalityImpl = _react.useRef(null);
20
+ (0, _reactcomponents.useIsomorphicLayoutEffect)(()=>{
21
+ basicFunctionalityImpl.current = new _chatinputplugins.BasicFunctionalityBase(editor);
22
+ return ()=>{
23
+ var _basicFunctionalityImpl_current;
24
+ return (_basicFunctionalityImpl_current = basicFunctionalityImpl.current) === null || _basicFunctionalityImpl_current === void 0 ? void 0 : _basicFunctionalityImpl_current.cleanup();
25
+ };
26
+ }, [
27
+ editor
28
+ ]);
29
+ _react.useImperativeHandle(ref, ()=>({
30
+ setIsDisabled (isDisabled) {
31
+ var _basicFunctionalityImpl_current;
32
+ (_basicFunctionalityImpl_current = basicFunctionalityImpl.current) === null || _basicFunctionalityImpl_current === void 0 ? void 0 : _basicFunctionalityImpl_current.setIsDisabled(isDisabled);
33
+ }
34
+ }));
35
+ // useIsomporphicLayoutEffect is used to avoid flickering on first render
36
+ (0, _reactcomponents.useIsomorphicLayoutEffect)(()=>{
37
+ if (defaultValue) {
38
+ var _basicFunctionalityImpl_current;
39
+ (_basicFunctionalityImpl_current = basicFunctionalityImpl.current) === null || _basicFunctionalityImpl_current === void 0 ? void 0 : _basicFunctionalityImpl_current.insertDefaultValue(defaultValue);
40
+ }
41
+ }, [
42
+ editor
43
+ ]);
44
+ _react.useEffect(()=>{
45
+ var _basicFunctionalityImpl_current;
46
+ (_basicFunctionalityImpl_current = basicFunctionalityImpl.current) === null || _basicFunctionalityImpl_current === void 0 ? void 0 : _basicFunctionalityImpl_current.activateContentCallbacks(onContentChange, onCountChanged);
47
+ return ()=>{
48
+ var _basicFunctionalityImpl_current;
49
+ return (_basicFunctionalityImpl_current = basicFunctionalityImpl.current) === null || _basicFunctionalityImpl_current === void 0 ? void 0 : _basicFunctionalityImpl_current.deactivateContentCallbacks();
50
+ };
51
+ }, [
52
+ editor,
53
+ onContentChange,
54
+ onCountChanged
55
+ ]);
56
+ _react.useEffect(()=>{
57
+ if (trimWhitespace) {
58
+ var _basicFunctionalityImpl_current;
59
+ (_basicFunctionalityImpl_current = basicFunctionalityImpl.current) === null || _basicFunctionalityImpl_current === void 0 ? void 0 : _basicFunctionalityImpl_current.activateTrimWhitespace();
60
+ }
61
+ return ()=>{
62
+ var _basicFunctionalityImpl_current;
63
+ return (_basicFunctionalityImpl_current = basicFunctionalityImpl.current) === null || _basicFunctionalityImpl_current === void 0 ? void 0 : _basicFunctionalityImpl_current.deactivateTrimWhitespace();
64
+ };
65
+ }, [
66
+ editor,
67
+ trimWhitespace
68
+ ]);
69
+ return null;
70
+ }); //# sourceMappingURL=BasicFunctionality.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["BasicFunctionality.js"],"sourcesContent":["import * as React from 'react';\nimport { useLexicalComposerContext } from '@fluentui-copilot/react-text-editor';\nimport { useIsomorphicLayoutEffect } from '@fluentui/react-components';\nimport { BasicFunctionalityBase } from '@fluentui-copilot/chat-input-plugins';\nexport const BasicFunctionalityPlugin = React.forwardRef((props, ref) => {\n const {\n defaultValue,\n trimWhitespace,\n onCountChanged,\n onContentChange\n } = props;\n const [editor] = useLexicalComposerContext();\n const basicFunctionalityImpl = React.useRef(null);\n useIsomorphicLayoutEffect(() => {\n basicFunctionalityImpl.current = new BasicFunctionalityBase(editor);\n return () => {\n var _basicFunctionalityImpl_current;\n return (_basicFunctionalityImpl_current = basicFunctionalityImpl.current) === null || _basicFunctionalityImpl_current === void 0 ? void 0 : _basicFunctionalityImpl_current.cleanup();\n };\n }, [editor]);\n React.useImperativeHandle(ref, () => ({\n setIsDisabled(isDisabled) {\n var _basicFunctionalityImpl_current;\n (_basicFunctionalityImpl_current = basicFunctionalityImpl.current) === null || _basicFunctionalityImpl_current === void 0 ? void 0 : _basicFunctionalityImpl_current.setIsDisabled(isDisabled);\n }\n }));\n // useIsomporphicLayoutEffect is used to avoid flickering on first render\n useIsomorphicLayoutEffect(() => {\n if (defaultValue) {\n var _basicFunctionalityImpl_current;\n (_basicFunctionalityImpl_current = basicFunctionalityImpl.current) === null || _basicFunctionalityImpl_current === void 0 ? void 0 : _basicFunctionalityImpl_current.insertDefaultValue(defaultValue);\n }\n }, [editor]);\n React.useEffect(() => {\n var _basicFunctionalityImpl_current;\n (_basicFunctionalityImpl_current = basicFunctionalityImpl.current) === null || _basicFunctionalityImpl_current === void 0 ? void 0 : _basicFunctionalityImpl_current.activateContentCallbacks(onContentChange, onCountChanged);\n return () => {\n var _basicFunctionalityImpl_current;\n return (_basicFunctionalityImpl_current = basicFunctionalityImpl.current) === null || _basicFunctionalityImpl_current === void 0 ? void 0 : _basicFunctionalityImpl_current.deactivateContentCallbacks();\n };\n }, [editor, onContentChange, onCountChanged]);\n React.useEffect(() => {\n if (trimWhitespace) {\n var _basicFunctionalityImpl_current;\n (_basicFunctionalityImpl_current = basicFunctionalityImpl.current) === null || _basicFunctionalityImpl_current === void 0 ? void 0 : _basicFunctionalityImpl_current.activateTrimWhitespace();\n }\n return () => {\n var _basicFunctionalityImpl_current;\n return (_basicFunctionalityImpl_current = basicFunctionalityImpl.current) === null || _basicFunctionalityImpl_current === void 0 ? void 0 : _basicFunctionalityImpl_current.deactivateTrimWhitespace();\n };\n }, [editor, trimWhitespace]);\n return null;\n});\n//# sourceMappingURL=BasicFunctionality.js.map"],"names":["BasicFunctionalityPlugin","React","forwardRef","props","ref","defaultValue","trimWhitespace","onCountChanged","onContentChange","editor","useLexicalComposerContext","basicFunctionalityImpl","useRef","useIsomorphicLayoutEffect","current","BasicFunctionalityBase","_basicFunctionalityImpl_current","cleanup","useImperativeHandle","setIsDisabled","isDisabled","insertDefaultValue","useEffect","activateContentCallbacks","deactivateContentCallbacks","activateTrimWhitespace","deactivateTrimWhitespace"],"mappings":";;;;+BAIaA;;;eAAAA;;;;iEAJU;iCACmB;iCACA;kCACH;AAChC,MAAMA,yCAA2BC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IAC/D,MAAM,EACJC,YAAY,EACZC,cAAc,EACdC,cAAc,EACdC,eAAe,EAChB,GAAGL;IACJ,MAAM,CAACM,OAAO,GAAGC,IAAAA,0CAAyB;IAC1C,MAAMC,yBAAyBV,OAAMW,MAAM,CAAC;IAC5CC,IAAAA,0CAAyB,EAAC;QACxBF,uBAAuBG,OAAO,GAAG,IAAIC,wCAAsB,CAACN;QAC5D,OAAO;YACL,IAAIO;YACJ,OAAO,AAACA,CAAAA,kCAAkCL,uBAAuBG,OAAO,AAAD,MAAO,QAAQE,oCAAoC,KAAK,IAAI,KAAK,IAAIA,gCAAgCC,OAAO;QACrL;IACF,GAAG;QAACR;KAAO;IACXR,OAAMiB,mBAAmB,CAACd,KAAK,IAAO,CAAA;YACpCe,eAAcC,UAAU;gBACtB,IAAIJ;gBACHA,CAAAA,kCAAkCL,uBAAuBG,OAAO,AAAD,MAAO,QAAQE,oCAAoC,KAAK,IAAI,KAAK,IAAIA,gCAAgCG,aAAa,CAACC;YACrL;QACF,CAAA;IACA,yEAAyE;IACzEP,IAAAA,0CAAyB,EAAC;QACxB,IAAIR,cAAc;YAChB,IAAIW;YACHA,CAAAA,kCAAkCL,uBAAuBG,OAAO,AAAD,MAAO,QAAQE,oCAAoC,KAAK,IAAI,KAAK,IAAIA,gCAAgCK,kBAAkB,CAAChB;QAC1L;IACF,GAAG;QAACI;KAAO;IACXR,OAAMqB,SAAS,CAAC;QACd,IAAIN;QACHA,CAAAA,kCAAkCL,uBAAuBG,OAAO,AAAD,MAAO,QAAQE,oCAAoC,KAAK,IAAI,KAAK,IAAIA,gCAAgCO,wBAAwB,CAACf,iBAAiBD;QAC/M,OAAO;YACL,IAAIS;YACJ,OAAO,AAACA,CAAAA,kCAAkCL,uBAAuBG,OAAO,AAAD,MAAO,QAAQE,oCAAoC,KAAK,IAAI,KAAK,IAAIA,gCAAgCQ,0BAA0B;QACxM;IACF,GAAG;QAACf;QAAQD;QAAiBD;KAAe;IAC5CN,OAAMqB,SAAS,CAAC;QACd,IAAIhB,gBAAgB;YAClB,IAAIU;YACHA,CAAAA,kCAAkCL,uBAAuBG,OAAO,AAAD,MAAO,QAAQE,oCAAoC,KAAK,IAAI,KAAK,IAAIA,gCAAgCS,sBAAsB;QAC7L;QACA,OAAO;YACL,IAAIT;YACJ,OAAO,AAACA,CAAAA,kCAAkCL,uBAAuBG,OAAO,AAAD,MAAO,QAAQE,oCAAoC,KAAK,IAAI,KAAK,IAAIA,gCAAgCU,wBAAwB;QACtM;IACF,GAAG;QAACjB;QAAQH;KAAe;IAC3B,OAAO;AACT,IACA,8CAA8C"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./BasicFunctionality"), exports);
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export * from './BasicFunctionality';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;uBAAc;CACd,iCAAiC"}