@fluentui-copilot/react-chat-input-plugins 0.0.2 → 0.0.3

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/CHANGELOG.json CHANGED
@@ -2,7 +2,22 @@
2
2
  "name": "@fluentui-copilot/react-chat-input-plugins",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 16 Apr 2024 17:55:11 GMT",
5
+ "date": "Thu, 18 Apr 2024 00:27:52 GMT",
6
+ "tag": "@fluentui-copilot/react-chat-input-plugins_v0.0.3",
7
+ "version": "0.0.3",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "owcampbe@microsoft.com",
12
+ "package": "@fluentui-copilot/react-chat-input-plugins",
13
+ "commit": "50adfb80f8441f2f9fa58fa60d751707ceef5367",
14
+ "comment": "fix: Allow navigating past GhostText."
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Tue, 16 Apr 2024 17:55:27 GMT",
6
21
  "tag": "@fluentui-copilot/react-chat-input-plugins_v0.0.2",
7
22
  "version": "0.0.2",
8
23
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,21 @@
1
1
  # Change Log - @fluentui-copilot/react-chat-input-plugins
2
2
 
3
- This log was last generated on Tue, 16 Apr 2024 17:55:11 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 18 Apr 2024 00:27:52 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [0.0.3](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-chat-input-plugins_v0.0.3)
8
+
9
+ Thu, 18 Apr 2024 00:27:52 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-chat-input-plugins_v0.0.2..@fluentui-copilot/react-chat-input-plugins_v0.0.3)
11
+
12
+ ### Patches
13
+
14
+ - fix: Allow navigating past GhostText. ([PR #1563](https://github.com/microsoft/fluentai/pull/1563) by owcampbe@microsoft.com)
15
+
7
16
  ## [0.0.2](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-chat-input-plugins_v0.0.2)
8
17
 
9
- Tue, 16 Apr 2024 17:55:11 GMT
18
+ Tue, 16 Apr 2024 17:55:27 GMT
10
19
  [Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-chat-input-plugins_v0.0.1..@fluentui-copilot/react-chat-input-plugins_v0.0.2)
11
20
 
12
21
  ### Patches
package/dist/index.d.ts CHANGED
@@ -151,6 +151,7 @@ export declare class GhostTextNode extends DecoratorNode<JSX.Element | null> {
151
151
  exportJSON(): SerializedGhostTextNode;
152
152
  constructor(id: string, content: string, exposeText?: boolean, componentProps?: GhostTextProps, key?: NodeKey);
153
153
  isInline(): boolean;
154
+ isIsolated(): boolean;
154
155
  getTextContent(): string;
155
156
  updateDOM(prevNode: unknown, dom: HTMLElement, config: EditorConfig): boolean;
156
157
  createDOM(config: EditorConfig): HTMLElement;
@@ -27,6 +27,9 @@ export class GhostTextNode extends DecoratorNode {
27
27
  isInline() {
28
28
  return true;
29
29
  }
30
+ isIsolated() {
31
+ return true;
32
+ }
30
33
  getTextContent() {
31
34
  return this.__exposeText ? this.__content : '';
32
35
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["GhostText.node.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { DecoratorNode } from '@fluentui-copilot/text-editor';\nimport type { EditorConfig, LexicalNode, NodeKey, SerializedLexicalNode, Spread } from '@fluentui-copilot/text-editor';\nimport type { GhostTextProps } from '../../components/GhostText/GhostText.types';\nimport { GhostText } from '../../components/GhostText/GhostText';\n\nexport type SerializedGhostTextNode = Spread<\n {\n content: string;\n id: string;\n componentProps?: GhostTextProps;\n exposeText?: boolean;\n },\n SerializedLexicalNode\n>;\n\nexport class GhostTextNode extends DecoratorNode<JSX.Element | null> {\n __content: string;\n __id: string;\n __allowCommitting?: boolean;\n __componentProps?: GhostTextProps;\n __exposeText?: boolean;\n\n static clone(node: GhostTextNode): GhostTextNode {\n return new GhostTextNode(node.__id, node.__content, node.__exposeText, node.__componentProps, node.__key);\n }\n\n static getType(): 'ghosttext' {\n return 'ghosttext';\n }\n\n static importJSON(serializedNode: SerializedGhostTextNode): GhostTextNode {\n const node = $createGhostTextNode(\n serializedNode.id,\n serializedNode.content,\n serializedNode.exposeText,\n serializedNode.componentProps,\n );\n return node;\n }\n\n exportJSON(): SerializedGhostTextNode {\n return {\n ...super.exportJSON(),\n type: 'ghosttext',\n id: this.__id,\n content: this.__content,\n componentProps: this.__componentProps,\n exposeText: this.__exposeText,\n version: 1,\n };\n }\n\n constructor(id: string, content: string, exposeText?: boolean, componentProps?: GhostTextProps, key?: NodeKey) {\n super(key);\n this.__id = id;\n this.__content = content;\n this.__exposeText = exposeText;\n this.__componentProps = componentProps;\n }\n\n isInline() {\n return true;\n }\n\n getTextContent(): string {\n return this.__exposeText ? this.__content : '';\n }\n\n updateDOM(prevNode: unknown, dom: HTMLElement, config: EditorConfig): boolean {\n return false;\n }\n\n createDOM(config: EditorConfig): HTMLElement {\n return document.createElement('span');\n }\n\n decorate(): JSX.Element | null {\n return <GhostText {...this.__componentProps}>{this.__content}</GhostText>;\n }\n}\n\nexport function $createGhostTextNode(\n id: string,\n content: string,\n exposeText?: boolean,\n componentProps?: GhostTextProps,\n): GhostTextNode {\n return new GhostTextNode(id, content, exposeText, componentProps);\n}\n\nexport function $isGhostTextNode(node: LexicalNode | null | undefined): node is GhostTextNode {\n return node instanceof GhostTextNode;\n}\n"],"names":["React","DecoratorNode","GhostText","GhostTextNode","clone","node","__id","__content","__exposeText","__componentProps","__key","getType","importJSON","serializedNode","$createGhostTextNode","id","content","exposeText","componentProps","exportJSON","type","version","isInline","getTextContent","updateDOM","prevNode","dom","config","createDOM","document","createElement","decorate","constructor","key","__allowCommitting","$isGhostTextNode"],"mappings":";AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,aAAa,QAAQ,gCAAgC;AAG9D,SAASC,SAAS,QAAQ,uCAAuC;AA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AI,CAACF,IAAI,GAAGS;QACZ,IAAI,CAACR,SAAS,GAAGS;QACjB,IAAI,CAACR,YAAY,GAAGS;QACpB,IAAI,CAACR,gBAAgB,GAAGS;IAC1B;AAqBF;AAEA,OAAO,SAASJ,qBACdC,EAAU,EACVC,OAAe,EACfC,UAAoB,EACpBC,cAA+B;IAE/B,OAAO,IAAIf,cAAcY,IAAIC,SAASC,YAAYC;AACpD;AAEA,OAAO,SAASiB,iBAAiB9B,IAAoC;IACnE,OAAOA,gBAAgBF;AACzB"}
1
+ {"version":3,"sources":["GhostText.node.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { DecoratorNode } from '@fluentui-copilot/text-editor';\nimport type { EditorConfig, LexicalNode, NodeKey, SerializedLexicalNode, Spread } from '@fluentui-copilot/text-editor';\nimport type { GhostTextProps } from '../../components/GhostText/GhostText.types';\nimport { GhostText } from '../../components/GhostText/GhostText';\n\nexport type SerializedGhostTextNode = Spread<\n {\n content: string;\n id: string;\n componentProps?: GhostTextProps;\n exposeText?: boolean;\n },\n SerializedLexicalNode\n>;\n\nexport class GhostTextNode extends DecoratorNode<JSX.Element | null> {\n __content: string;\n __id: string;\n __allowCommitting?: boolean;\n __componentProps?: GhostTextProps;\n __exposeText?: boolean;\n\n static clone(node: GhostTextNode): GhostTextNode {\n return new GhostTextNode(node.__id, node.__content, node.__exposeText, node.__componentProps, node.__key);\n }\n\n static getType(): 'ghosttext' {\n return 'ghosttext';\n }\n\n static importJSON(serializedNode: SerializedGhostTextNode): GhostTextNode {\n const node = $createGhostTextNode(\n serializedNode.id,\n serializedNode.content,\n serializedNode.exposeText,\n serializedNode.componentProps,\n );\n return node;\n }\n\n exportJSON(): SerializedGhostTextNode {\n return {\n ...super.exportJSON(),\n type: 'ghosttext',\n id: this.__id,\n content: this.__content,\n componentProps: this.__componentProps,\n exposeText: this.__exposeText,\n version: 1,\n };\n }\n\n constructor(id: string, content: string, exposeText?: boolean, componentProps?: GhostTextProps, key?: NodeKey) {\n super(key);\n this.__id = id;\n this.__content = content;\n this.__exposeText = exposeText;\n this.__componentProps = componentProps;\n }\n\n isInline() {\n return true;\n }\n\n isIsolated() {\n return true;\n }\n\n getTextContent(): string {\n return this.__exposeText ? this.__content : '';\n }\n\n updateDOM(prevNode: unknown, dom: HTMLElement, config: EditorConfig): boolean {\n return false;\n }\n\n createDOM(config: EditorConfig): HTMLElement {\n return document.createElement('span');\n }\n\n decorate(): JSX.Element | null {\n return <GhostText {...this.__componentProps}>{this.__content}</GhostText>;\n }\n}\n\nexport function $createGhostTextNode(\n id: string,\n content: string,\n exposeText?: boolean,\n componentProps?: GhostTextProps,\n): GhostTextNode {\n return new GhostTextNode(id, content, exposeText, componentProps);\n}\n\nexport function $isGhostTextNode(node: LexicalNode | null | undefined): node is GhostTextNode {\n return node instanceof GhostTextNode;\n}\n"],"names":["React","DecoratorNode","GhostText","GhostTextNode","clone","node","__id","__content","__exposeText","__componentProps","__key","getType","importJSON","serializedNode","$createGhostTextNode","id","content","exposeText","componentProps","exportJSON","type","version","isInline","isIsolated","getTextContent","updateDOM","prevNode","dom","config","createDOM","document","createElement","decorate","constructor","key","__allowCommitting","$isGhostTextNode"],"mappings":";AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,aAAa,QAAQ,gCAAgC;AAG9D,SAASC,SAAS,QAAQ,uCAAuC;AAYjE,OAAO,MAAMC,sBAAsBF;IAOjC,OAAOG,MAAMC,IAAmB,EAAiB;QAC/C,OAAO,IAAIF,cAAcE,KAAKC,IAAI,EAAED,KAAKE,SAAS,EAAEF,KAAKG,YAAY,EAAEH,KAAKI,gBAAgB,EAAEJ,KAAKK,KAAK;IAC1G;IAEA,OAAOC,UAAuB;QAC5B,OAAO;IACT;IAEA,OAAOC,WAAWC,cAAuC,EAAiB;QACxE,MAAMR,OAAOS,qBACXD,eAAeE,EAAE,EACjBF,eAAeG,OAAO,EACtBH,eAAeI,UAAU,EACzBJ,eAAeK,cAAc;QAE/B,OAAOb;IACT;IAEAc,a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oratorNode {
49
49
  isInline() {
50
50
  return true;
51
51
  }
52
+ isIsolated() {
53
+ return true;
54
+ }
52
55
  getTextContent() {
53
56
  return this.__exposeText ? this.__content : '';
54
57
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["GhostText.node.js"],"sourcesContent":["import { _ as _define_property } from \"@swc/helpers/_/_define_property\";\nimport * as React from 'react';\nimport { DecoratorNode } from '@fluentui-copilot/text-editor';\nimport { GhostText } from '../../components/GhostText/GhostText';\nexport class GhostTextNode extends DecoratorNode {\n static clone(node) {\n return new GhostTextNode(node.__id, node.__content, node.__exposeText, node.__componentProps, node.__key);\n }\n static getType() {\n return 'ghosttext';\n }\n static importJSON(serializedNode) {\n const node = $createGhostTextNode(serializedNode.id, serializedNode.content, serializedNode.exposeText, serializedNode.componentProps);\n return node;\n }\n exportJSON() {\n return {\n ...super.exportJSON(),\n type: 'ghosttext',\n id: this.__id,\n content: this.__content,\n componentProps: this.__componentProps,\n exposeText: this.__exposeText,\n version: 1\n };\n }\n isInline() {\n return true;\n }\n getTextContent() {\n return this.__exposeText ? this.__content : '';\n }\n updateDOM(prevNode, dom, config) {\n return false;\n }\n createDOM(config) {\n return document.createElement('span');\n }\n decorate() {\n return /*#__PURE__*/React.createElement(GhostText, this.__componentProps, this.__content);\n }\n constructor(id, content, exposeText, componentProps, key) {\n super(key);\n _define_property(this, \"__content\", void 0);\n _define_property(this, \"__id\", void 0);\n _define_property(this, \"__allowCommitting\", void 0);\n _define_property(this, \"__componentProps\", void 0);\n _define_property(this, \"__exposeText\", void 0);\n this.__id = id;\n this.__content = content;\n this.__exposeText = exposeText;\n this.__componentProps = componentProps;\n }\n}\nexport function $createGhostTextNode(id, content, exposeText, componentProps) {\n return new GhostTextNode(id, content, exposeText, componentProps);\n}\nexport function $isGhostTextNode(node) {\n return node instanceof GhostTextNode;\n}\n//# sourceMappingURL=GhostText.node.js.map"],"names":["GhostTextNode","$createGhostTextNode","$isGhostTextNode","DecoratorNode","clone","node","__id","__content","__exposeText","__componentProps","__key","getType","importJSON","serializedNode","id","content","exposeText","componentProps","exportJSON","type","version","isInline","getTextContent","updateDOM","prevNode","dom","config","createDOM","document","createElement","decorate","React","GhostText","constructor","key","_define_property"],"mappings":";;;;;;;;;;;IAIaA,aAAa;eAAbA;;IAkDGC,oBAAoB;eAApBA;;IAGAC,gBAAgB;eAAhBA;;;;iCAzDsB;iEACf;4BACO;2BACJ;AACnB,MAAMF,sBAAsBG,yBAAa;IAC9C,OAAOC,MAAMC,IAAI,EAAE;QACjB,OAAO,IAAIL,cAAcK,KAAKC,IAAI,EAAED,KAAKE,SAAS,EAAEF,KAAKG,YAAY,EAAEH,KAAKI,gBAAgB,EAAEJ,KAAKK,KAAK;IAC1G;IACA,OAAOC,UAAU;QACf,OAAO;IACT;IACA,OAAOC,WAAWC,cAAc,EAAE;QAChC,MAAMR,OAAOJ,qBAAqBY,eAAeC,EAAE,EAAED,eAAeE,OAAO,EAAEF,eAAeG,UAAU,EAAEH,eAAeI,cAAc;QACrI,OAAOZ;IACT;IACAa,aAAa;QACX,OAAO;YACL,GAAG,KAAK,CAACA,YAAY;YACrBC,MAAM;YACNL,IAAI,IAAI,CAACR,IAAI;YACbS,SAAS,IAAI,CAACR,SAAS;YACvBU,gBAAgB,IAAI,CAACR,gBAAgB;YACrCO,YAAY,IAAI,CAACR,YAAY;YAC7BY,SAAS;QACX;IACF;IACAC,WAAW;QACT,OAAO;IACT;IACAC,iBAAiB;QACf,OAAO,IAAI,CAACd,YAAY,GAAG,IAAI,CAACD,SAAS,GAAG;IAC9C;IACAgB,UAAUC,QAAQ,EAAEC,GAAG,EAAEC,MAAM,EAAE;QAC/B,OAAO;IACT;IACAC,UAAUD,MAAM,EAAE;QAChB,OAAOE,SAASC,aAAa,CAAC;IAChC;IACAC,WAAW;QACT,OAAO,WAAW,GAAEC,OAAMF,aAAa,CAACG,oBAAS,EAAE,IAAI,CAACvB,gBAAgB,EAAE,IAAI,CAACF,SAAS;IAC1F;IACA0B,YAAYnB,EAAE,EAAEC,OAAO,EAAEC,UAAU,EAAEC,cAAc,EAAEiB,GAAG,CAAE;QACxD,KAAK,CAACA;QACNC,IAAAA,kBAAgB,EAAC,IAAI,EAAE,aAAa,KAAK;QACzCA,IAAAA,kBAAgB,EAAC,IAAI,EAAE,QAAQ,KAAK;QACpCA,IAAAA,kBAAgB,EAAC,IAAI,EAAE,qBAAqB,KAAK;QACjDA,IAAAA,kBAAgB,EAAC,IAAI,EAAE,oBAAoB,KAAK;QAChDA,IAAAA,kBAAgB,EAAC,IAAI,EAAE,gBAAgB,KAAK;QAC5C,IAAI,CAAC7B,IAAI,GAAGQ;QACZ,IAAI,CAACP,SAAS,GAAGQ;QACjB,IAAI,CAACP,YAAY,GAAGQ;QACpB,IAAI,CAACP,gBAAgB,GAAGQ;IAC1B;AACF;AACO,SAAShB,qBAAqBa,EAAE,EAAEC,OAAO,EAAEC,UAAU,EAAEC,cAAc;IAC1E,OAAO,IAAIjB,cAAcc,IAAIC,SAASC,YAAYC;AACpD;AACO,SAASf,iBAAiBG,IAAI;IACnC,OAAOA,gBAAgBL;AACzB,EACA,0CAA0C"}
1
+ {"version":3,"sources":["GhostText.node.js"],"sourcesContent":["import { _ as _define_property } from \"@swc/helpers/_/_define_property\";\nimport * as React from 'react';\nimport { DecoratorNode } from '@fluentui-copilot/text-editor';\nimport { GhostText } from '../../components/GhostText/GhostText';\nexport class GhostTextNode extends DecoratorNode {\n static clone(node) {\n return new GhostTextNode(node.__id, node.__content, node.__exposeText, node.__componentProps, node.__key);\n }\n static getType() {\n return 'ghosttext';\n }\n static importJSON(serializedNode) {\n const node = $createGhostTextNode(serializedNode.id, serializedNode.content, serializedNode.exposeText, serializedNode.componentProps);\n return node;\n }\n exportJSON() {\n return {\n ...super.exportJSON(),\n type: 'ghosttext',\n id: this.__id,\n content: this.__content,\n componentProps: this.__componentProps,\n exposeText: this.__exposeText,\n version: 1\n };\n }\n isInline() {\n return true;\n }\n isIsolated() {\n return true;\n }\n getTextContent() {\n return this.__exposeText ? this.__content : '';\n }\n updateDOM(prevNode, dom, config) {\n return false;\n }\n createDOM(config) {\n return document.createElement('span');\n }\n decorate() {\n return /*#__PURE__*/React.createElement(GhostText, this.__componentProps, this.__content);\n }\n constructor(id, content, exposeText, componentProps, key) {\n super(key);\n _define_property(this, \"__content\", void 0);\n _define_property(this, \"__id\", void 0);\n _define_property(this, \"__allowCommitting\", void 0);\n _define_property(this, \"__componentProps\", void 0);\n _define_property(this, \"__exposeText\", void 0);\n this.__id = id;\n this.__content = content;\n this.__exposeText = exposeText;\n this.__componentProps = componentProps;\n }\n}\nexport function $createGhostTextNode(id, content, exposeText, componentProps) {\n return new GhostTextNode(id, content, exposeText, componentProps);\n}\nexport function $isGhostTextNode(node) {\n return node instanceof GhostTextNode;\n}\n//# sourceMappingURL=GhostText.node.js.map"],"names":["GhostTextNode","$createGhostTextNode","$isGhostTextNode","DecoratorNode","clone","node","__id","__content","__exposeText","__componentProps","__key","getType","importJSON","serializedNode","id","content","exposeText","componentProps","exportJSON","type","version","isInline","isIsolated","getTextContent","updateDOM","prevNode","dom","config","createDOM","document","createElement","decorate","React","GhostText","constructor","key","_define_property"],"mappings":";;;;;;;;;;;IAIaA,aAAa;eAAbA;;IAqDGC,oBAAoB;eAApBA;;IAGAC,gBAAgB;eAAhBA;;;;iCA5DsB;iEACf;4BACO;2BACJ;AACnB,MAAMF,sBAAsBG,yBAAa;IAC9C,OAAOC,MAAMC,IAAI,EAAE;QACjB,OAAO,IAAIL,cAAcK,KAAKC,IAAI,EAAED,KAAKE,SAAS,EAAEF,KAAKG,YAAY,EAAEH,KAAKI,gBAAgB,EAAEJ,KAAKK,KAAK;IAC1G;IACA,OAAOC,UAAU;QACf,OAAO;IACT;IACA,OAAOC,WAAWC,cAAc,EAAE;QAChC,MAAMR,OAAOJ,qBAAqBY,eAAeC,EAAE,EAAED,eAAeE,OAAO,EAAEF,eAAeG,UAAU,EAAEH,eAAeI,cAAc;QACrI,OAAOZ;IACT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,SAASC,YAAYC;AACpD;AACO,SAASf,iBAAiBG,IAAI;IACnC,OAAOA,gBAAgBL;AACzB,EACA,0CAA0C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui-copilot/react-chat-input-plugins",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
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,7 +12,7 @@
12
12
  },
13
13
  "license": "MIT",
14
14
  "dependencies": {
15
- "@fluentui-copilot/chat-input-plugins": "^0.0.2",
15
+ "@fluentui-copilot/chat-input-plugins": "^0.0.3",
16
16
  "@fluentui-copilot/react-text-editor": "^0.1.4",
17
17
  "@fluentui-copilot/text-editor": "^0.0.2",
18
18
  "@swc/helpers": "^0.5.1"