scu-web-components 1.1.3 → 1.2.0
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/custom-elements.json +0 -95
- package/dist/custom-elements.json.gz +0 -0
- package/dist/docs/components/ScwBlock.json +7 -102
- package/dist/docs/config.json +5 -5
- package/dist/scw-components.js +47 -54
- package/dist/scw-components.js.gz +0 -0
- package/dist/scw.js +48 -55
- package/dist/scw.js.gz +0 -0
- package/dist/tokens/source/assets/graphic-apple-app-store.js +1 -1
- package/dist/tokens/source/assets/graphic-apple-app-store.js.gz +0 -0
- package/dist/tokens/source/assets/graphic-apple-app-store.svg +1 -1
- package/dist/tokens/source/assets/graphic-apple-app-store.svg.gz +0 -0
- package/dist/tokens/source/assets/graphic-ehl.js +1 -1
- package/dist/tokens/source/assets/graphic-ehl.js.gz +0 -0
- package/dist/tokens/source/assets/graphic-ehl.svg +1 -1
- package/dist/tokens/source/assets/graphic-ehl.svg.gz +0 -0
- package/dist/tokens/source/assets/graphic-google-play-store.js +1 -1
- package/dist/tokens/source/assets/graphic-google-play-store.js.gz +0 -0
- package/dist/tokens/source/assets/graphic-google-play-store.svg +1 -1
- package/dist/tokens/source/assets/graphic-google-play-store.svg.gz +0 -0
- package/dist/tokens/source/assets/graphic-logo.js +1 -1
- package/dist/tokens/source/assets/graphic-logo.js.gz +0 -0
- package/dist/tokens/source/assets/graphic-logo.svg +1 -1
- package/dist/tokens/source/assets/graphic-logo.svg.gz +0 -0
- package/dist/tokens/source/jsCss.js +1 -1
- package/dist/tokens/source/jsCss.js.gz +0 -0
- package/dist/tokens/source/jsCssGenerator.js +1 -1
- package/dist/tokens/source/jsCssGenerator.js.gz +0 -0
- package/dist/tokens/source/jsCssGeneratorSansAssets.js +1 -1
- package/dist/tokens/source/jsCssGeneratorSansAssets.js.gz +0 -0
- package/dist/tokens/source/tokens.json +4 -4
- package/dist/tokens/source/tokens.json.gz +0 -0
- package/dist-node/scw-components.js +194 -201
- package/dist-node/scw.js +199 -206
- package/package.json +1 -1
- package/scripts/publish/msnTeamsWebhook.mjs +74 -21
- package/scripts/publish/publishMessage.mjs +2 -2
- package/scripts/publish/releaseNotes.mjs +10 -0
package/package.json
CHANGED
|
@@ -51,18 +51,14 @@ export async function msnTeamsDesignSystemWebMessage(
|
|
|
51
51
|
async function _sendMsg(
|
|
52
52
|
webhookUrl, title, message, actions, status,
|
|
53
53
|
) {
|
|
54
|
-
console.log(`sending message
|
|
54
|
+
console.log(`sending message:`, title, message);
|
|
55
55
|
|
|
56
56
|
const potentialActions = actions ? actions.map((action) => {
|
|
57
57
|
return {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
'os': 'default',
|
|
63
|
-
'uri': action.url,
|
|
64
|
-
},
|
|
65
|
-
],
|
|
58
|
+
type: 'Action.OpenUrl',
|
|
59
|
+
title: action.label,
|
|
60
|
+
url: action.url,
|
|
61
|
+
role: 'Button',
|
|
66
62
|
};
|
|
67
63
|
}) : [];
|
|
68
64
|
|
|
@@ -75,18 +71,75 @@ async function _sendMsg(
|
|
|
75
71
|
'Content-Type': 'application/json',
|
|
76
72
|
},
|
|
77
73
|
body: JSON.stringify({
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
74
|
+
type: 'message',
|
|
75
|
+
attachments: [
|
|
76
|
+
{
|
|
77
|
+
contentType: 'application/vnd.microsoft.card.adaptive',
|
|
78
|
+
content: {
|
|
79
|
+
$schema: 'http://adaptivecards.io/schemas/adaptive-card.json',
|
|
80
|
+
type: 'AdaptiveCard',
|
|
81
|
+
version: '1.2',
|
|
82
|
+
msteams: {
|
|
83
|
+
width: 'Full',
|
|
84
|
+
},
|
|
85
|
+
body: [
|
|
86
|
+
{
|
|
87
|
+
type: 'ColumnSet',
|
|
88
|
+
style: 'emphasis',
|
|
89
|
+
bleed: true,
|
|
90
|
+
columns: [
|
|
91
|
+
{
|
|
92
|
+
type: 'Column',
|
|
93
|
+
width: 'stretch',
|
|
94
|
+
items: [
|
|
95
|
+
{
|
|
96
|
+
type: 'TextBlock',
|
|
97
|
+
size: 'medium',
|
|
98
|
+
weight: 'bolder',
|
|
99
|
+
text: title,
|
|
100
|
+
color: status === 'error' ? 'attention' :
|
|
101
|
+
status === 'done' ? 'good' :
|
|
102
|
+
'warning',
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
type: 'Column',
|
|
108
|
+
width: 'auto',
|
|
109
|
+
spacing: 'small',
|
|
110
|
+
items: [
|
|
111
|
+
{
|
|
112
|
+
type: 'TextBlock',
|
|
113
|
+
size: 'default',
|
|
114
|
+
weight: 'bolder',
|
|
115
|
+
text: 'Design System (Web)',
|
|
116
|
+
isSubtle: true,
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
type: 'TextBlock',
|
|
124
|
+
text: message,
|
|
125
|
+
wrap: true,
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
type: 'FactSet', // adds spacing
|
|
129
|
+
spacing: 'medium',
|
|
130
|
+
facts: [
|
|
131
|
+
{title: '', value: ''},
|
|
132
|
+
],
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
type: 'ActionSet',
|
|
136
|
+
spacing: 'medium',
|
|
137
|
+
actions: potentialActions,
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
],
|
|
90
143
|
}),
|
|
91
144
|
},
|
|
92
145
|
);
|
|
@@ -20,13 +20,13 @@ async function publishMessage() {
|
|
|
20
20
|
releaseNote.message : 'no release message';
|
|
21
21
|
|
|
22
22
|
await msnTeamsContentfulDevelopersMessage(
|
|
23
|
-
`${packageJson.name} v${version}
|
|
23
|
+
`${packageJson.name} Released (v${version})`,
|
|
24
24
|
releaseMessage,
|
|
25
25
|
null, 'done',
|
|
26
26
|
);
|
|
27
27
|
|
|
28
28
|
await msnTeamsDesignSystemWebMessage(
|
|
29
|
-
|
|
29
|
+
`${packageJson.name} Released (v${version})`,
|
|
30
30
|
releaseMessage,
|
|
31
31
|
null, 'done',
|
|
32
32
|
);
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
export default {
|
|
2
|
+
'1.2.0': {
|
|
3
|
+
message: `
|
|
4
|
+
- Updating block to have links in slots
|
|
5
|
+
`,
|
|
6
|
+
},
|
|
7
|
+
'1.1.4': {
|
|
8
|
+
message: `
|
|
9
|
+
- Fix for horizontal nav selecting wrong tab
|
|
10
|
+
`,
|
|
11
|
+
},
|
|
2
12
|
'1.1.3': {
|
|
3
13
|
message: `
|
|
4
14
|
- Fix for textarea not providing all info in alerts
|