botframework-webchat-fluent-theme 4.18.1-main.20240912.54a6a40 → 4.18.1-main.20240924.f09c8c5
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/dist/botframework-webchat-fluent-theme.css.map +1 -1
- package/dist/botframework-webchat-fluent-theme.d.mts +9 -5
- package/dist/botframework-webchat-fluent-theme.d.ts +9 -5
- package/dist/botframework-webchat-fluent-theme.development.css.map +1 -1
- package/dist/botframework-webchat-fluent-theme.development.js +8 -8
- package/dist/botframework-webchat-fluent-theme.development.js.map +1 -1
- package/dist/botframework-webchat-fluent-theme.js +1 -1
- package/dist/botframework-webchat-fluent-theme.js.map +1 -1
- package/dist/botframework-webchat-fluent-theme.mjs +1 -1
- package/dist/botframework-webchat-fluent-theme.mjs.map +1 -1
- package/dist/botframework-webchat-fluent-theme.production.min.css.map +1 -1
- package/dist/botframework-webchat-fluent-theme.production.min.js +8 -8
- package/dist/botframework-webchat-fluent-theme.production.min.js.map +1 -1
- package/package.json +14 -18
- package/src/components/activity/ActivityDecorator.module.css +29 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "botframework-webchat-fluent-theme",
|
|
3
|
-
"version": "4.18.1-main.
|
|
3
|
+
"version": "4.18.1-main.20240924.f09c8c5",
|
|
4
4
|
"description": "Fluent theme for Bot Framework Web Chat",
|
|
5
5
|
"main": "./dist/botframework-webchat-fluent-theme.js",
|
|
6
6
|
"types": "./dist/botframework-webchat-fluent-theme.d.ts",
|
|
@@ -38,22 +38,23 @@
|
|
|
38
38
|
"src/**/*"
|
|
39
39
|
],
|
|
40
40
|
"scripts": {
|
|
41
|
-
"auditfix": "npm audit fix --legacy-peer-deps || exit 0",
|
|
42
41
|
"build": "tsup",
|
|
43
|
-
"bump": "npm run bump:prod && npm run bump:dev && npm
|
|
44
|
-
"bump:
|
|
45
|
-
"bump:
|
|
46
|
-
"bump:prod": "if [ `cat package.json | jq -r '.dependencies | length'` -ne 0 ]; then npm install --legacy-peer-deps --save-exact $(cat package.json | jq -r '(.pinDependencies // {}) as $p | ((.dependencies // {}) | keys) | map(. + \"@\" + ($p[.] // [\"latest\"])[0]) | .[]'); fi",
|
|
42
|
+
"bump": "npm run bump:prod && npm run bump:dev && (npm audit fix || exit 0)",
|
|
43
|
+
"bump:dev": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localDependencies // {} | keys) as $L | (.devDependencies // {}) | to_entries | map(select(.key as $K | $L | contains([$K]) | not)) | map(.key + \"@\" + ($P[.key] // [\"latest\"])[0]) | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install $PACKAGES_TO_BUMP || true",
|
|
44
|
+
"bump:prod": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localDependencies // {} | keys) as $L | (.dependencies // {}) | to_entries | map(select(.key as $K | $L | contains([$K]) | not)) | map(.key + \"@\" + ($P[.key] // [\"latest\"])[0]) | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install --save-exact $PACKAGES_TO_BUMP || true",
|
|
47
45
|
"eslint": "npm run precommit",
|
|
48
|
-
"
|
|
49
|
-
"postbump": "cat package.json | jq '. + (.dependencies = ((.dependencies + (.localPeerDependencies // {})) | to_entries | sort_by(.key) | from_entries)) | (.devDependencies = ((.devDependencies + (.localPeerDevDependencies // {})) | to_entries | sort_by(.key) | from_entries))' > package-temp.json && mv package-temp.json package.json",
|
|
50
|
-
"preauditfix": "npm run prebump",
|
|
51
|
-
"prebump": "cat package.json | jq '(((.localPeerDependencies // {}) | keys | map([\"dependencies\", .])) + ((.localPeerDevDependencies // {}) | keys | map([\"devDependencies\", .]))) as $localPeerPaths | delpaths($localPeerPaths)' > package-temp.json && mv package-temp.json package.json",
|
|
46
|
+
"postversion": "cat package.json | jq '.version as $V | (.localDependencies // {} | with_entries(select(.value == \"production\") | { key: .key, value: $V })) as $L1 | (.localDependencies // {} | with_entries(select(.value == \"development\") | { key: .key, value: $V })) as $L2 | ((.dependencies // {}) + $L1 | to_entries | sort_by(.key) | from_entries) as $D1 | ((.devDependencies // {}) + $L2 | to_entries | sort_by(.key) | from_entries) as $D2 | . + { dependencies: $D1, devDependencies: $D2 }' > package-temp.json && mv package-temp.json package.json",
|
|
52
47
|
"precommit": "npm run precommit:eslint -- src && npm run precommit:typecheck",
|
|
53
48
|
"precommit:eslint": "../../node_modules/.bin/eslint --report-unused-disable-directives --max-warnings 0",
|
|
54
49
|
"precommit:typecheck": "tsc --project ./src --emitDeclarationOnly false --esModuleInterop true --noEmit --pretty false",
|
|
50
|
+
"preversion": "cat package.json | jq '(.localDependencies // {} | to_entries | map([if .value == \"production\" then \"dependencies\" else \"devDependencies\" end, .key])) as $P | delpaths($P)' > package-temp.json && mv package-temp.json package.json",
|
|
55
51
|
"start": "npm run build -- --watch"
|
|
56
52
|
},
|
|
53
|
+
"localDependencies": {
|
|
54
|
+
"botframework-webchat-api": "production",
|
|
55
|
+
"botframework-webchat-component": "production",
|
|
56
|
+
"botframework-webchat-core": "production"
|
|
57
|
+
},
|
|
57
58
|
"pinDependencies": {
|
|
58
59
|
"@types/react": [
|
|
59
60
|
"16",
|
|
@@ -69,9 +70,9 @@
|
|
|
69
70
|
"typescript": "^5.4.5"
|
|
70
71
|
},
|
|
71
72
|
"dependencies": {
|
|
72
|
-
"botframework-webchat-api": "4.18.1-main.
|
|
73
|
-
"botframework-webchat-component": "4.18.1-main.
|
|
74
|
-
"botframework-webchat-core": "4.18.1-main.
|
|
73
|
+
"botframework-webchat-api": "4.18.1-main.20240924.f09c8c5",
|
|
74
|
+
"botframework-webchat-component": "4.18.1-main.20240924.f09c8c5",
|
|
75
|
+
"botframework-webchat-core": "4.18.1-main.20240924.f09c8c5",
|
|
75
76
|
"classnames": "2.5.1",
|
|
76
77
|
"inject-meta-tag": "0.0.1",
|
|
77
78
|
"math-random": "2.0.1",
|
|
@@ -80,10 +81,5 @@
|
|
|
80
81
|
},
|
|
81
82
|
"peerDependencies": {
|
|
82
83
|
"react": ">= 16.8.6"
|
|
83
|
-
},
|
|
84
|
-
"localPeerDependencies": {
|
|
85
|
-
"botframework-webchat-api": "0.0.0-0",
|
|
86
|
-
"botframework-webchat-component": "0.0.0-0",
|
|
87
|
-
"botframework-webchat-core": "0.0.0-0"
|
|
88
84
|
}
|
|
89
85
|
}
|
|
@@ -42,6 +42,11 @@
|
|
|
42
42
|
&:has(:global(.webchat__bubble--from-user)) :global(.webchat__bubble) {
|
|
43
43
|
margin-block-end: var(--webchat-spacingVerticalM);
|
|
44
44
|
}
|
|
45
|
+
|
|
46
|
+
/* Hide generated badge as it is in the copilot header */
|
|
47
|
+
:global(.webchat__bubble .webchat__text-content .webchat__text-content__generated-badge) {
|
|
48
|
+
display: none;
|
|
49
|
+
}
|
|
45
50
|
}
|
|
46
51
|
|
|
47
52
|
/* Decorator copilot variant which has bot message */
|
|
@@ -147,6 +152,30 @@
|
|
|
147
152
|
min-height: auto;
|
|
148
153
|
padding-block: var(--webchat__bubble--block-padding);
|
|
149
154
|
padding-inline: var(--webchat__bubble--inline-padding);
|
|
155
|
+
|
|
156
|
+
&:empty {
|
|
157
|
+
padding-block-end: 0;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
+:global(.webchat__text-content) {
|
|
161
|
+
margin-top: calc(var(--webchat__bubble--block-padding) * -1);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/* Message bubble text content generated badge */
|
|
166
|
+
:global(.webchat-fluent) .activity-decorator :global(.webchat__stacked-layout .webchat__bubble .webchat__text-content__generated-badge) {
|
|
167
|
+
align-items: center;
|
|
168
|
+
align-self: flex-start;
|
|
169
|
+
background-color: var(--webchat-colorNeutralBackground5);
|
|
170
|
+
border-radius: var(--webchat-borderRadiusMedium);
|
|
171
|
+
box-sizing: border-box;
|
|
172
|
+
color: var(--webchat-colorNeutralForeground3);
|
|
173
|
+
cursor: default;
|
|
174
|
+
display: inline-flex;
|
|
175
|
+
font-size: var(--webchat-fontSizeBase100);
|
|
176
|
+
height: 16px;
|
|
177
|
+
line-height: var(--webchat-lineHeightBase100);
|
|
178
|
+
padding-inline: var(--webchat-spacingHorizontalXS);
|
|
150
179
|
}
|
|
151
180
|
|
|
152
181
|
/* Message bubble attachment content */
|