@cloudscape-design/components 3.0.1256 → 3.0.1257
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/internal/base-component/styles.scoped.css +1 -1
- package/internal/environment.js +2 -2
- package/internal/environment.json +2 -2
- package/internal/manifest.json +1 -1
- package/package.json +1 -1
- package/test-utils/dom/flashbar/index.d.ts +6 -0
- package/test-utils/dom/flashbar/index.js +9 -0
- package/test-utils/dom/flashbar/index.js.map +1 -1
- package/test-utils/selectors/flashbar/index.d.ts +6 -0
- package/test-utils/selectors/flashbar/index.js +9 -0
- package/test-utils/selectors/flashbar/index.js.map +1 -1
package/internal/environment.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export var PACKAGE_SOURCE = "components";
|
|
2
|
-
export var PACKAGE_VERSION = "3.0.0 (
|
|
3
|
-
export var GIT_SHA = "
|
|
2
|
+
export var PACKAGE_VERSION = "3.0.0 (33f2523c)";
|
|
3
|
+
export var GIT_SHA = "33f2523c";
|
|
4
4
|
export var THEME = "open-source-visual-refresh";
|
|
5
5
|
export var SYSTEM = "core";
|
|
6
6
|
export var ALWAYS_VISUAL_REFRESH = true;
|
package/internal/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
"./internal/base-component/index.js",
|
|
164
164
|
"./internal/base-component/styles.css.js"
|
|
165
165
|
],
|
|
166
|
-
"version": "3.0.
|
|
166
|
+
"version": "3.0.1257",
|
|
167
167
|
"repository": {
|
|
168
168
|
"type": "git",
|
|
169
169
|
"url": "https://github.com/cloudscape-design/components.git"
|
|
@@ -8,6 +8,12 @@ export default class FlashbarWrapper extends ComponentWrapper {
|
|
|
8
8
|
* If the items are stacked, only the item at the top of the stack is returned.
|
|
9
9
|
*/
|
|
10
10
|
findItems(): Array<FlashWrapper>;
|
|
11
|
+
/**
|
|
12
|
+
* Returns a flash item by its id.
|
|
13
|
+
*
|
|
14
|
+
* The id is matched against the `id` property of each item passed to the `items` property of the Flashbar component.
|
|
15
|
+
*/
|
|
16
|
+
findItemById(id: string): FlashWrapper | null;
|
|
11
17
|
/**
|
|
12
18
|
* Returns the individual flashes of this flashbar given the item type.
|
|
13
19
|
*
|
|
@@ -14,6 +14,15 @@ class FlashbarWrapper extends dom_1.ComponentWrapper {
|
|
|
14
14
|
findItems() {
|
|
15
15
|
return this.findAllByClassName(styles_selectors_js_1.default['flash-list-item']).map(item => new flash_1.default(item.getElement()));
|
|
16
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* Returns a flash item by its id.
|
|
19
|
+
*
|
|
20
|
+
* The id is matched against the `id` property of each item passed to the `items` property of the Flashbar component.
|
|
21
|
+
*/
|
|
22
|
+
findItemById(id) {
|
|
23
|
+
const element = this.find(`[data-itemid="${CSS.escape(id)}"]`);
|
|
24
|
+
return element ? new flash_1.default(element.getElement()) : null;
|
|
25
|
+
}
|
|
17
26
|
/**
|
|
18
27
|
* Returns the individual flashes of this flashbar given the item type.
|
|
19
28
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/flashbar/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAA0F;AAE1F,mCAAmC;AAEnC,+EAA2D;AAE3D,MAAqB,eAAgB,SAAQ,sBAAgB;IAG3D;;;;OAIG;IACH,SAAS;QACP,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,eAAY,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IAC7G,CAAC;IAED;;;;;;OAMG;IACH,eAAe,CAAC,IAA8C;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,6BAAM,CAAC,iBAAiB,CAAC,KAAK,6BAAM,CAAC,cAAc,IAAI,EAAE,CAAC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,UAAU,EAAE,CAAC,CAC5C,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,gBAAgB;;QACd,OAAO,MAAA,MAAA,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,kBAAkB,CAAC,CAAC,0CAAE,IAAI,CAAC,QAAQ,CAAC,mCAAI,IAAI,CAAC;IAClF,CAAC;;AAvCM,4BAAY,GAAW,6BAAM,CAAC,QAAQ,CAAC;kBAD3B,eAAe"}
|
|
@@ -8,6 +8,12 @@ export default class FlashbarWrapper extends ComponentWrapper {
|
|
|
8
8
|
* If the items are stacked, only the item at the top of the stack is returned.
|
|
9
9
|
*/
|
|
10
10
|
findItems(): import("@cloudscape-design/test-utils-core/selectors").MultiElementWrapper<FlashWrapper>;
|
|
11
|
+
/**
|
|
12
|
+
* Returns a flash item by its id.
|
|
13
|
+
*
|
|
14
|
+
* The id is matched against the `id` property of each item passed to the `items` property of the Flashbar component.
|
|
15
|
+
*/
|
|
16
|
+
findItemById(id: string): FlashWrapper | null;
|
|
11
17
|
/**
|
|
12
18
|
* Returns the individual flashes of this flashbar given the item type.
|
|
13
19
|
*
|
|
@@ -14,6 +14,15 @@ class FlashbarWrapper extends selectors_1.ComponentWrapper {
|
|
|
14
14
|
findItems() {
|
|
15
15
|
return this.findAllByClassName(styles_selectors_js_1.default['flash-list-item']).map(item => new flash_1.default(item.getElement()));
|
|
16
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* Returns a flash item by its id.
|
|
19
|
+
*
|
|
20
|
+
* The id is matched against the `id` property of each item passed to the `items` property of the Flashbar component.
|
|
21
|
+
*/
|
|
22
|
+
findItemById(id) {
|
|
23
|
+
const element = this.find(`[data-itemid="${CSS.escape(id)}"]`);
|
|
24
|
+
return element ? new flash_1.default(element.getElement()) : null;
|
|
25
|
+
}
|
|
17
26
|
/**
|
|
18
27
|
* Returns the individual flashes of this flashbar given the item type.
|
|
19
28
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/flashbar/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,mCAAmC;AACnC,+EAA2D;AAC3D,MAAqB,eAAgB,SAAQ,4BAAgB;IAG3D;;;;OAIG;IACH,SAAS;QACP,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,eAAY,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IAC7G,CAAC;IAED;;;;;;OAMG;IACH,eAAe,CAAC,IAA8C;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,6BAAM,CAAC,iBAAiB,CAAC,KAAK,6BAAM,CAAC,cAAc,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,eAAY,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IACzI,CAAC;IAED;;OAEG;IACH,gBAAgB;;QACd,OAAO,MAAA,MAAA,IAAI,CAAC,eAAe,CAAC,6BAAM,CAAC,kBAAkB,CAAC,CAAC,0CAAE,IAAI,CAAC,QAAQ,CAAC,mCAAI,IAAI,CAAC;IAClF,CAAC;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/selectors/flashbar/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,4EAAgG;AAChG,mCAAmC;AACnC,+EAA2D;AAC3D,MAAqB,eAAgB,SAAQ,4BAAgB;IAG3D;;;;OAIG;IACH,SAAS;QACP,OAAO,IAAI,CAAC,kBAAkB,CAAC,6BAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,eAAY,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAA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