@fluentui-copilot/react-chat-input-plugins 0.0.0-nightly-20240410-0405-8d7a6b79.1 → 0.0.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.
- package/CHANGELOG.json +10 -22
- package/CHANGELOG.md +6 -8
- package/lib/components/ChatInputToken/useChatInputTokenStyles.js +1 -1
- package/lib/components/ChatInputToken/useChatInputTokenStyles.js.map +1 -1
- package/lib-commonjs/components/ChatInputToken/useChatInputTokenStyles.js +4 -4
- package/lib-commonjs/components/ChatInputToken/useChatInputTokenStyles.js.map +1 -1
- package/package.json +9 -5
package/CHANGELOG.json
CHANGED
|
@@ -2,34 +2,22 @@
|
|
|
2
2
|
"name": "@fluentui-copilot/react-chat-input-plugins",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Wed, 10 Apr 2024
|
|
6
|
-
"tag": "@fluentui-copilot/react-chat-input-plugins_v0.0.
|
|
7
|
-
"version": "0.0.
|
|
5
|
+
"date": "Wed, 10 Apr 2024 23:06:59 GMT",
|
|
6
|
+
"tag": "@fluentui-copilot/react-chat-input-plugins_v0.0.1",
|
|
7
|
+
"version": "0.0.1",
|
|
8
8
|
"comments": {
|
|
9
|
-
"
|
|
9
|
+
"patch": [
|
|
10
10
|
{
|
|
11
|
-
"author": "
|
|
11
|
+
"author": "owcampbe@microsoft.com",
|
|
12
12
|
"package": "@fluentui-copilot/react-chat-input-plugins",
|
|
13
|
-
"commit": "
|
|
14
|
-
"comment": "
|
|
13
|
+
"commit": "0761a2b2c2d2264a661bb5a0afd5d44cd14aaab8",
|
|
14
|
+
"comment": "fix: Ensure token spacing always exists."
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
|
-
"author": "
|
|
17
|
+
"author": "owcampbe@microsoft.com",
|
|
18
18
|
"package": "@fluentui-copilot/react-chat-input-plugins",
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"author": "beachball",
|
|
24
|
-
"package": "@fluentui-copilot/react-chat-input-plugins",
|
|
25
|
-
"comment": "Bump @fluentui-copilot/react-text-editor to v0.0.0-nightly-20240410-0405-8d7a6b79.1",
|
|
26
|
-
"commit": "3f79f89e6290755f808ad6fbd047d049b9ada38c"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"author": "beachball",
|
|
30
|
-
"package": "@fluentui-copilot/react-chat-input-plugins",
|
|
31
|
-
"comment": "Bump @fluentui-copilot/text-editor to v0.0.0-nightly-20240410-0405-8d7a6b79.1",
|
|
32
|
-
"commit": "3f79f89e6290755f808ad6fbd047d049b9ada38c"
|
|
19
|
+
"commit": "8d7a6b79e30eec3061e31fc365033cb88f356948",
|
|
20
|
+
"comment": "feat: Move React-specific ChatInput plugins to new package."
|
|
33
21
|
}
|
|
34
22
|
]
|
|
35
23
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
# Change Log - @fluentui-copilot/react-chat-input-plugins
|
|
2
2
|
|
|
3
|
-
This log was last generated on Wed, 10 Apr 2024
|
|
3
|
+
This log was last generated on Wed, 10 Apr 2024 23:06:59 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## [0.0.
|
|
7
|
+
## [0.0.1](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-chat-input-plugins_v0.0.1)
|
|
8
8
|
|
|
9
|
-
Wed, 10 Apr 2024
|
|
9
|
+
Wed, 10 Apr 2024 23:06:59 GMT
|
|
10
10
|
|
|
11
|
-
###
|
|
11
|
+
### Patches
|
|
12
12
|
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
- Bump @fluentui-copilot/react-text-editor to v0.0.0-nightly-20240410-0405-8d7a6b79.1 ([commit](https://github.com/microsoft/fluentai/commit/3f79f89e6290755f808ad6fbd047d049b9ada38c) by beachball)
|
|
16
|
-
- Bump @fluentui-copilot/text-editor to v0.0.0-nightly-20240410-0405-8d7a6b79.1 ([commit](https://github.com/microsoft/fluentai/commit/3f79f89e6290755f808ad6fbd047d049b9ada38c) by beachball)
|
|
13
|
+
- fix: Ensure token spacing always exists. ([PR #1535](https://github.com/microsoft/fluentai/pull/1535) by owcampbe@microsoft.com)
|
|
14
|
+
- feat: Move React-specific ChatInput plugins to new package. ([PR #1519](https://github.com/microsoft/fluentai/pull/1519) by owcampbe@microsoft.com)
|
|
@@ -5,7 +5,7 @@ export const chatInputTokenClassNames = {
|
|
|
5
5
|
/**
|
|
6
6
|
* Styles for the root slot
|
|
7
7
|
*/
|
|
8
|
-
const useBaseClassName = __resetStyles("
|
|
8
|
+
const useBaseClassName = __resetStyles("r1n8kfhu", null, [".r1n8kfhu{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);}", ".r1n8kfhu::before{content:\".\";font-size:0;letter-spacing:var(--spacingHorizontalS);}", ".r1n8kfhu::after{content:\".\";font-size:0;letter-spacing:var(--spacingHorizontalS);}"]);
|
|
9
9
|
/**
|
|
10
10
|
* Apply styling to the ChatInputToken slots based on the state
|
|
11
11
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["useChatInputTokenStyles.ts"],"sourcesContent":["import { makeResetStyles, mergeClasses, tokens, typographyStyles } from '@fluentui/react-components';\nimport type { ChatInputTokenSlots, ChatInputTokenState } from './ChatInputToken.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const chatInputTokenClassNames: SlotClassNames<ChatInputTokenSlots> = {\n root: 'fai-ChatInputToken',\n};\n\n/**\n * Styles for the root slot\n */\nconst useBaseClassName = makeResetStyles({\n ...typographyStyles.caption1Strong,\n backgroundColor: tokens.colorNeutralBackground3,\n borderRadius: tokens.borderRadiusMedium,\n color: tokens.colorNeutralForeground2,\n lineHeight: `calc(${tokens.lineHeightBase200} + 2 * ${tokens.spacingVerticalXXS})`,\n padding: `${tokens.spacingVerticalXXS} ${tokens.spacingHorizontalNone}`,\n\n // Use :before and :after instead of horizontal padding to ensure the cursor doesn't move inside the padding\n '&::before': {\n content: '\" \
|
|
1
|
+
{"version":3,"sources":["useChatInputTokenStyles.ts"],"sourcesContent":["import { makeResetStyles, mergeClasses, tokens, typographyStyles } from '@fluentui/react-components';\nimport type { ChatInputTokenSlots, ChatInputTokenState } from './ChatInputToken.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const chatInputTokenClassNames: SlotClassNames<ChatInputTokenSlots> = {\n root: 'fai-ChatInputToken',\n};\n\n/**\n * Styles for the root slot\n */\nconst useBaseClassName = makeResetStyles({\n ...typographyStyles.caption1Strong,\n backgroundColor: tokens.colorNeutralBackground3,\n borderRadius: tokens.borderRadiusMedium,\n color: tokens.colorNeutralForeground2,\n lineHeight: `calc(${tokens.lineHeightBase200} + 2 * ${tokens.spacingVerticalXXS})`,\n padding: `${tokens.spacingVerticalXXS} ${tokens.spacingHorizontalNone}`,\n\n // Use :before and :after instead of horizontal padding to ensure the cursor doesn't move inside the padding\n '&::before': {\n content: '\".\"', // Use a character to ensure the element has a width\n fontSize: 0,\n letterSpacing: tokens.spacingHorizontalS,\n },\n '&::after': {\n content: '\".\"', // Use a character to ensure the element has a width\n fontSize: 0,\n letterSpacing: tokens.spacingHorizontalS,\n },\n});\n\n/**\n * Apply styling to the ChatInputToken slots based on the state\n */\nexport const useChatInputTokenStyles_unstable = (state: ChatInputTokenState): ChatInputTokenState => {\n const baseClassName = useBaseClassName();\n state.root.className = mergeClasses(chatInputTokenClassNames.root, baseClassName, state.root.className);\n\n return state;\n};\n"],"names":["makeResetStyles","mergeClasses","tokens","typographyStyles","chatInputTokenClassNames","root","useBaseClassName","caption1Strong","backgroundColor","colorNeutralBackground3","borderRadius","borderRadiusMedium","color","colorNeutralForeground2","lineHeight","lineHeightBase200","spacingVerticalXXS","padding","spacingHorizontalNone","content","fontSize","letterSpacing","spacingHorizontalS","useChatInputTokenStyles_unstable","state","baseClassName","className"],"mappings":"AAAA,SAASA,eAAe,EAAEC,YAAY,EAAEC,MAAM,EAAEC,gBAAgB,QAAQ,6BAA6B;AAIrG,OAAO,MAAMC,2BAAgE;IAC3EC,MAAM;AACR,EAAE;AAEF;;CAEC,GACD,MAAMC,mBAAmBN,gBAAgB;IACvC,GAAGG,iBAAiBI,cAAc;IAClCC,iBAAiBN,OAAOO,uBAAuB;IAC/CC,cAAcR,OAAOS,kBAAkB;IACvCC,OAAOV,OAAOW,uBAAuB;IACrCC,YAAY,CAAC,KAAK,EAAEZ,OAAOa,iBAAiB,CAAC,OAAO,EAAEb,OAAOc,kBAAkB,CAAC,CAAC,CAAC;IAClFC,SAAS,CAAC,EAAEf,OAAOc,kBAAkB,CAAC,CAAC,EAAEd,OAAOgB,qBAAqB,CAAC,CAAC;IAEvE,4GAA4G;IAC5G,aAAa;QACXC,SAAS;QACTC,UAAU;QACVC,eAAenB,OAAOoB,kBAAkB;IAC1C;IACA,YAAY;QACVH,SAAS;QACTC,UAAU;QACVC,eAAenB,OAAOoB,kBAAkB;IAC1C;AACF;AAEA;;CAEC,GACD,OAAO,MAAMC,mCAAmC,CAACC;IAC/C,MAAMC,gBAAgBnB;IACtBkB,MAAMnB,IAAI,CAACqB,SAAS,GAAGzB,aAAaG,yBAAyBC,IAAI,EAAEoB,eAAeD,MAAMnB,IAAI,CAACqB,SAAS;IAEtG,OAAOF;AACT,EAAE"}
|
|
@@ -22,10 +22,10 @@ const chatInputTokenClassNames = {
|
|
|
22
22
|
};
|
|
23
23
|
/**
|
|
24
24
|
* Styles for the root slot
|
|
25
|
-
*/ const useBaseClassName = (0, _reactcomponents.__resetStyles)("
|
|
26
|
-
".
|
|
27
|
-
".
|
|
28
|
-
".
|
|
25
|
+
*/ const useBaseClassName = (0, _reactcomponents.__resetStyles)("r1n8kfhu", null, [
|
|
26
|
+
".r1n8kfhu{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
|
+
".r1n8kfhu::before{content:\".\";font-size:0;letter-spacing:var(--spacingHorizontalS);}",
|
|
28
|
+
".r1n8kfhu::after{content:\".\";font-size:0;letter-spacing:var(--spacingHorizontalS);}"
|
|
29
29
|
]);
|
|
30
30
|
const useChatInputTokenStyles_unstable = (state)=>{
|
|
31
31
|
const baseClassName = useBaseClassName();
|
|
@@ -1 +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(\"
|
|
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(\"r1n8kfhu\", null, [\".r1n8kfhu{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);}\", \".r1n8kfhu::before{content:\\\".\\\";font-size:0;letter-spacing:var(--spacingHorizontalS);}\", \".r1n8kfhu::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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-copilot/react-chat-input-plugins",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.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,9 +12,9 @@
|
|
|
12
12
|
},
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@fluentui-copilot/chat-input-plugins": "0.0.
|
|
16
|
-
"@fluentui-copilot/react-text-editor": "0.
|
|
17
|
-
"@fluentui-copilot/text-editor": "0.0.
|
|
15
|
+
"@fluentui-copilot/chat-input-plugins": "^0.0.1",
|
|
16
|
+
"@fluentui-copilot/react-text-editor": "^0.1.3",
|
|
17
|
+
"@fluentui-copilot/text-editor": "^0.0.1",
|
|
18
18
|
"@swc/helpers": "^0.5.1"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
@@ -26,7 +26,11 @@
|
|
|
26
26
|
"react": ">=16.14.0 <19.0.0",
|
|
27
27
|
"react-dom": ">=16.14.0 <19.0.0"
|
|
28
28
|
},
|
|
29
|
-
"beachball": {
|
|
29
|
+
"beachball": {
|
|
30
|
+
"disallowedChangeTypes": [
|
|
31
|
+
"major"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
30
34
|
"exports": {
|
|
31
35
|
".": {
|
|
32
36
|
"types": "./dist/index.d.ts",
|