@pnp/spfx-controls-react 3.26.0-beta.3446856 → 3.26.0-beta.3450664
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/jest-output/JUnit.xml +100 -100
- package/lib/Toast.d.ts +2 -0
- package/lib/Toast.d.ts.map +1 -0
- package/lib/Toast.js +2 -0
- package/lib/Toast.js.map +1 -0
- package/lib/common/telemetry/version.js +1 -1
- package/lib/controls/toast/IToast.d.ts +72 -0
- package/lib/controls/toast/IToast.d.ts.map +1 -0
- package/lib/controls/toast/IToast.js +2 -0
- package/lib/controls/toast/IToast.js.map +1 -0
- package/lib/controls/toast/Toast.d.ts +4 -0
- package/lib/controls/toast/Toast.d.ts.map +1 -0
- package/lib/controls/toast/Toast.js +78 -0
- package/lib/controls/toast/Toast.js.map +1 -0
- package/lib/controls/toast/ToastProvider.d.ts +14 -0
- package/lib/controls/toast/ToastProvider.d.ts.map +1 -0
- package/lib/controls/toast/ToastProvider.js +75 -0
- package/lib/controls/toast/ToastProvider.js.map +1 -0
- package/lib/controls/toast/index.d.ts +7 -0
- package/lib/controls/toast/index.d.ts.map +1 -0
- package/lib/controls/toast/index.js +6 -0
- package/lib/controls/toast/index.js.map +1 -0
- package/lib/controls/toast/toastTimeout.d.ts +3 -0
- package/lib/controls/toast/toastTimeout.d.ts.map +1 -0
- package/lib/controls/toast/toastTimeout.js +11 -0
- package/lib/controls/toast/toastTimeout.js.map +1 -0
- package/lib/controls/toast/useToast.d.ts +3 -0
- package/lib/controls/toast/useToast.d.ts.map +1 -0
- package/lib/controls/toast/useToast.js +10 -0
- package/lib/controls/toast/useToast.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib-commonjs/Toast.js +5 -0
- package/lib-commonjs/Toast.js.map +1 -0
- package/lib-commonjs/common/telemetry/version.js +1 -1
- package/lib-commonjs/controls/toast/IToast.js +3 -0
- package/lib-commonjs/controls/toast/IToast.js.map +1 -0
- package/lib-commonjs/controls/toast/Toast.js +81 -0
- package/lib-commonjs/controls/toast/Toast.js.map +1 -0
- package/lib-commonjs/controls/toast/ToastProvider.js +79 -0
- package/lib-commonjs/controls/toast/ToastProvider.js.map +1 -0
- package/lib-commonjs/controls/toast/index.js +20 -0
- package/lib-commonjs/controls/toast/index.js.map +1 -0
- package/lib-commonjs/controls/toast/toastTimeout.js +15 -0
- package/lib-commonjs/controls/toast/toastTimeout.js.map +1 -0
- package/lib-commonjs/controls/toast/useToast.js +15 -0
- package/lib-commonjs/controls/toast/useToast.js.map +1 -0
- package/lib-commonjs/index.js +1 -0
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/webparts/controlsTest/ControlsTestWebPart.manifest.json +2 -0
- package/lib-commonjs/webparts/controlsTest/components/ControlsTest.js +5 -0
- package/lib-commonjs/webparts/controlsTest/components/ControlsTest.js.map +1 -1
- package/lib-commonjs/webparts/controlsTest/propertyPane/controls/ControlToggles.js +3 -3
- package/lib-commonjs/webparts/controlsTest/propertyPane/controls/ControlToggles.js.map +1 -1
- package/package.json +1 -1
- package/release/analysis-logs/lint.sarif +523 -460
- package/release/manifests/45165954-80f9-44c1-9967-cd38ae92a33b.manifest.json +3 -1
- package/release/manifests/57ebd944-98ed-43f9-b722-e959d6dac6ad.manifest.json +1 -1
- package/release/manifests/f9c6b930-8d5d-4550-bfd9-ed5f6ca443a8.manifest.json +1 -1
package/jest-output/JUnit.xml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuites name="jest tests" tests="103" failures="0" errors="0" time="
|
|
3
|
-
<testsuite name="<ComboBoxListItemPicker />" errors="0" failures="0" skipped="7" timestamp="2026-09-
|
|
2
|
+
<testsuites name="jest tests" tests="103" failures="0" errors="0" time="9.974">
|
|
3
|
+
<testsuite name="<ComboBoxListItemPicker />" errors="0" failures="0" skipped="7" timestamp="2026-09-10T17:14:23" time="1.541" tests="7">
|
|
4
4
|
<testcase classname="<ComboBoxListItemPicker /> > " name="Should render initial data (lib-commonjs/controls/listItemPicker/ComboBoxListItemPicker.test.js)" time="0">
|
|
5
5
|
<skipped/>
|
|
6
6
|
</testcase>
|
|
@@ -23,220 +23,220 @@
|
|
|
23
23
|
<skipped/>
|
|
24
24
|
</testcase>
|
|
25
25
|
</testsuite>
|
|
26
|
-
<testsuite name="<AccessibleChartTable />" errors="0" failures="0" skipped="0" timestamp="2026-09-
|
|
27
|
-
<testcase classname="<AccessibleChartTable /> > " name="Should render only one table (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.
|
|
26
|
+
<testsuite name="<AccessibleChartTable />" errors="0" failures="0" skipped="0" timestamp="2026-09-10T17:14:23" time="1.751" tests="13">
|
|
27
|
+
<testcase classname="<AccessibleChartTable /> > " name="Should render only one table (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.095">
|
|
28
28
|
</testcase>
|
|
29
|
-
<testcase classname="<AccessibleChartTable /> > " name="Should render with a custom className if one is provided (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.
|
|
29
|
+
<testcase classname="<AccessibleChartTable /> > " name="Should render with a custom className if one is provided (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.008">
|
|
30
30
|
</testcase>
|
|
31
31
|
<testcase classname="<AccessibleChartTable /> > " name="Should render a caption if one is provided (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.01">
|
|
32
32
|
</testcase>
|
|
33
|
-
<testcase classname="<AccessibleChartTable /> > " name="Should render a caption if no caption is provided but a title is available (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.
|
|
33
|
+
<testcase classname="<AccessibleChartTable /> > " name="Should render a caption if no caption is provided but a title is available (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.008">
|
|
34
34
|
</testcase>
|
|
35
|
-
<testcase classname="<AccessibleChartTable /> > " name="Should prioritize the caption if both caption and title are provided (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.
|
|
35
|
+
<testcase classname="<AccessibleChartTable /> > " name="Should prioritize the caption if both caption and title are provided (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.01">
|
|
36
36
|
</testcase>
|
|
37
|
-
<testcase classname="<AccessibleChartTable /> > " name="Should render the same number of rows as there are data elements (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.
|
|
37
|
+
<testcase classname="<AccessibleChartTable /> > " name="Should render the same number of rows as there are data elements (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.013">
|
|
38
38
|
</testcase>
|
|
39
|
-
<testcase classname="<AccessibleChartTable /> > " name="Should render a table matching the data provided (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.
|
|
39
|
+
<testcase classname="<AccessibleChartTable /> > " name="Should render a table matching the data provided (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.03">
|
|
40
40
|
</testcase>
|
|
41
|
-
<testcase classname="<AccessibleChartTable /> > " name="Should include a summary in the caption if one is provided (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.
|
|
41
|
+
<testcase classname="<AccessibleChartTable /> > " name="Should include a summary in the caption if one is provided (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.011">
|
|
42
42
|
</testcase>
|
|
43
|
-
<testcase classname="<AccessibleChartTable /> > " name="Should include a summary in the caption if one is provided -- even if no title is provided (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.
|
|
43
|
+
<testcase classname="<AccessibleChartTable /> > " name="Should include a summary in the caption if one is provided -- even if no title is provided (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.011">
|
|
44
44
|
</testcase>
|
|
45
|
-
<testcase classname="<AccessibleChartTable /> > " name="Should do nothing if there are no data labels (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.
|
|
45
|
+
<testcase classname="<AccessibleChartTable /> > " name="Should do nothing if there are no data labels (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.004">
|
|
46
46
|
</testcase>
|
|
47
|
-
<testcase classname="<AccessibleChartTable /> > " name="Should render an X and Y label if axis labels are provided (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.
|
|
47
|
+
<testcase classname="<AccessibleChartTable /> > " name="Should render an X and Y label if axis labels are provided (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.022">
|
|
48
48
|
</testcase>
|
|
49
|
-
<testcase classname="<AccessibleChartTable /> > " name="Should render multi dataset labels (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.
|
|
49
|
+
<testcase classname="<AccessibleChartTable /> > " name="Should render multi dataset labels (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.048">
|
|
50
50
|
</testcase>
|
|
51
51
|
<testcase classname="<AccessibleChartTable /> > " name="Should render a multi dataset table matching the data provided (lib-commonjs/controls/chartControl/AccessibleChartTable.test.js)" time="0.027">
|
|
52
52
|
</testcase>
|
|
53
53
|
</testsuite>
|
|
54
|
-
<testsuite name="<FileTypeIcon />" errors="0" failures="0" skipped="0" timestamp="2026-09-
|
|
55
|
-
<testcase classname="<FileTypeIcon /> > " name="Font icon test with application (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
54
|
+
<testsuite name="<FileTypeIcon />" errors="0" failures="0" skipped="0" timestamp="2026-09-10T17:14:23" time="1.818" tests="21">
|
|
55
|
+
<testcase classname="<FileTypeIcon /> > " name="Font icon test with application (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.18">
|
|
56
56
|
</testcase>
|
|
57
|
-
<testcase classname="<FileTypeIcon /> > " name="Font icon test with path (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
57
|
+
<testcase classname="<FileTypeIcon /> > " name="Font icon test with path (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.008">
|
|
58
58
|
</testcase>
|
|
59
59
|
<testcase classname="<FileTypeIcon /> > " name="Font icon test with path that contains querystring params (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.008">
|
|
60
60
|
</testcase>
|
|
61
|
-
<testcase classname="<FileTypeIcon /> > " name="Font icon test with path of unknown extension (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
61
|
+
<testcase classname="<FileTypeIcon /> > " name="Font icon test with path of unknown extension (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.007">
|
|
62
62
|
</testcase>
|
|
63
|
-
<testcase classname="<FileTypeIcon /> > " name="Font icon test without application or path, should render the generic icon (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
63
|
+
<testcase classname="<FileTypeIcon /> > " name="Font icon test without application or path, should render the generic icon (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.007">
|
|
64
64
|
</testcase>
|
|
65
|
-
<testcase classname="<FileTypeIcon /> > " name="Font icon test with both the application and path, should take the path into account (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
65
|
+
<testcase classname="<FileTypeIcon /> > " name="Font icon test with both the application and path, should take the path into account (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.028">
|
|
66
66
|
</testcase>
|
|
67
|
-
<testcase classname="<FileTypeIcon /> > " name="Image icon test with application (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
67
|
+
<testcase classname="<FileTypeIcon /> > " name="Image icon test with application (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.017">
|
|
68
68
|
</testcase>
|
|
69
|
-
<testcase classname="<FileTypeIcon /> > " name="Image icon test with path (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
69
|
+
<testcase classname="<FileTypeIcon /> > " name="Image icon test with path (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.009">
|
|
70
70
|
</testcase>
|
|
71
|
-
<testcase classname="<FileTypeIcon /> > " name="Image icon test with path that contains querystring params (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
71
|
+
<testcase classname="<FileTypeIcon /> > " name="Image icon test with path that contains querystring params (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.006">
|
|
72
72
|
</testcase>
|
|
73
|
-
<testcase classname="<FileTypeIcon /> > " name="Image icon test with path of unknown extension (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
73
|
+
<testcase classname="<FileTypeIcon /> > " name="Image icon test with path of unknown extension (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.008">
|
|
74
74
|
</testcase>
|
|
75
|
-
<testcase classname="<FileTypeIcon /> > " name="Image icon test without application or path, should render the generic icon (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
75
|
+
<testcase classname="<FileTypeIcon /> > " name="Image icon test without application or path, should render the generic icon (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.003">
|
|
76
76
|
</testcase>
|
|
77
77
|
<testcase classname="<FileTypeIcon /> > " name="Image icon test with both application and path, should take the path into account (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.005">
|
|
78
78
|
</testcase>
|
|
79
|
-
<testcase classname="<FileTypeIcon /> > " name="Image icon size SMALL test (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
79
|
+
<testcase classname="<FileTypeIcon /> > " name="Image icon size SMALL test (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.004">
|
|
80
80
|
</testcase>
|
|
81
|
-
<testcase classname="<FileTypeIcon /> > " name="Image icon size MEDIUM test (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
81
|
+
<testcase classname="<FileTypeIcon /> > " name="Image icon size MEDIUM test (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.006">
|
|
82
82
|
</testcase>
|
|
83
83
|
<testcase classname="<FileTypeIcon /> > " name="Image icon size LARGE test (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.004">
|
|
84
84
|
</testcase>
|
|
85
|
-
<testcase classname="<FileTypeIcon /> > " name="Image icon size SMALL test for generic icon (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
85
|
+
<testcase classname="<FileTypeIcon /> > " name="Image icon size SMALL test for generic icon (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.003">
|
|
86
86
|
</testcase>
|
|
87
|
-
<testcase classname="<FileTypeIcon /> > " name="Image icon size MEDIUM test for generic icon (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
87
|
+
<testcase classname="<FileTypeIcon /> > " name="Image icon size MEDIUM test for generic icon (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.004">
|
|
88
88
|
</testcase>
|
|
89
|
-
<testcase classname="<FileTypeIcon /> > " name="Image icon size LARGE test for generic icon (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
89
|
+
<testcase classname="<FileTypeIcon /> > " name="Image icon size LARGE test for generic icon (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.009">
|
|
90
90
|
</testcase>
|
|
91
|
-
<testcase classname="<FileTypeIcon /> > " name="Image icon size test with unkown size (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
91
|
+
<testcase classname="<FileTypeIcon /> > " name="Image icon size test with unkown size (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.003">
|
|
92
92
|
</testcase>
|
|
93
|
-
<testcase classname="<FileTypeIcon /> > " name="Image icon size test with unkown size for generic icon (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
93
|
+
<testcase classname="<FileTypeIcon /> > " name="Image icon size test with unkown size for generic icon (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.004">
|
|
94
94
|
</testcase>
|
|
95
|
-
<testcase classname="<FileTypeIcon /> > " name="Image icon test with unkown application (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.
|
|
95
|
+
<testcase classname="<FileTypeIcon /> > " name="Image icon test with unkown application (lib-commonjs/controls/fileTypeIcon/FileTypeIcon.test.js)" time="0.01">
|
|
96
96
|
</testcase>
|
|
97
97
|
</testsuite>
|
|
98
|
-
<testsuite name="<WebPartTitle />" errors="0" failures="0" skipped="0" timestamp="2026-09-
|
|
99
|
-
<testcase classname="<WebPartTitle /> > " name="Check the read mode of the component (lib-commonjs/controls/webPartTitle/WebPartTitle.test.js)" time="0.
|
|
98
|
+
<testsuite name="<WebPartTitle />" errors="0" failures="0" skipped="0" timestamp="2026-09-10T17:14:25" time="0.802" tests="8">
|
|
99
|
+
<testcase classname="<WebPartTitle /> > " name="Check the read mode of the component (lib-commonjs/controls/webPartTitle/WebPartTitle.test.js)" time="0.068">
|
|
100
100
|
</testcase>
|
|
101
|
-
<testcase classname="<WebPartTitle /> > " name="Check the edit mode of the component (lib-commonjs/controls/webPartTitle/WebPartTitle.test.js)" time="0.
|
|
101
|
+
<testcase classname="<WebPartTitle /> > " name="Check the edit mode of the component (lib-commonjs/controls/webPartTitle/WebPartTitle.test.js)" time="0.009">
|
|
102
102
|
</testcase>
|
|
103
|
-
<testcase classname="<WebPartTitle /> > " name="Check class change (lib-commonjs/controls/webPartTitle/WebPartTitle.test.js)" time="0.
|
|
103
|
+
<testcase classname="<WebPartTitle /> > " name="Check class change (lib-commonjs/controls/webPartTitle/WebPartTitle.test.js)" time="0.007">
|
|
104
104
|
</testcase>
|
|
105
|
-
<testcase classname="<WebPartTitle /> > " name="Check if the change is processed correctly (lib-commonjs/controls/webPartTitle/WebPartTitle.test.js)" time="0.
|
|
105
|
+
<testcase classname="<WebPartTitle /> > " name="Check if the change is processed correctly (lib-commonjs/controls/webPartTitle/WebPartTitle.test.js)" time="0.012">
|
|
106
106
|
</testcase>
|
|
107
107
|
<testcase classname="<WebPartTitle /> > " name="Check more link is shown if function specified (lib-commonjs/controls/webPartTitle/WebPartTitle.test.js)" time="0.012">
|
|
108
108
|
</testcase>
|
|
109
|
-
<testcase classname="<WebPartTitle /> > " name="Check more link is shown if children specified (lib-commonjs/controls/webPartTitle/WebPartTitle.test.js)" time="0.
|
|
109
|
+
<testcase classname="<WebPartTitle /> > " name="Check more link is shown if children specified (lib-commonjs/controls/webPartTitle/WebPartTitle.test.js)" time="0.006">
|
|
110
110
|
</testcase>
|
|
111
|
-
<testcase classname="<WebPartTitle /> > " name="Check more link is not shown otherwise (lib-commonjs/controls/webPartTitle/WebPartTitle.test.js)" time="0.
|
|
111
|
+
<testcase classname="<WebPartTitle /> > " name="Check more link is not shown otherwise (lib-commonjs/controls/webPartTitle/WebPartTitle.test.js)" time="0.005">
|
|
112
112
|
</testcase>
|
|
113
|
-
<testcase classname="<WebPartTitle /> > " name="Check theme's color is used if specified (lib-commonjs/controls/webPartTitle/WebPartTitle.test.js)" time="0.
|
|
113
|
+
<testcase classname="<WebPartTitle /> > " name="Check theme's color is used if specified (lib-commonjs/controls/webPartTitle/WebPartTitle.test.js)" time="0.01">
|
|
114
114
|
</testcase>
|
|
115
115
|
</testsuite>
|
|
116
|
-
<testsuite name="<RichText />" errors="0" failures="0" skipped="0" timestamp="2026-09-
|
|
117
|
-
<testcase classname="<RichText /> > " name="exposes the pressed state of the text formatting buttons (lib-commonjs/controls/richText/RichText.test.js)" time="0.
|
|
116
|
+
<testsuite name="<RichText />" errors="0" failures="0" skipped="0" timestamp="2026-09-10T17:14:25" time="1.54" tests="7">
|
|
117
|
+
<testcase classname="<RichText /> > " name="exposes the pressed state of the text formatting buttons (lib-commonjs/controls/richText/RichText.test.js)" time="0.298">
|
|
118
118
|
</testcase>
|
|
119
|
-
<testcase classname="<RichText /> > " name="exposes the pressed state of the link button (lib-commonjs/controls/richText/RichText.test.js)" time="0.
|
|
119
|
+
<testcase classname="<RichText /> > " name="exposes the pressed state of the link button (lib-commonjs/controls/richText/RichText.test.js)" time="0.066">
|
|
120
120
|
</testcase>
|
|
121
|
-
<testcase classname="customStyles > " name="injects styles scoped to the rich text instance id (lib-commonjs/controls/richText/RichText.test.js)" time="0.
|
|
121
|
+
<testcase classname="customStyles > " name="injects styles scoped to the rich text instance id (lib-commonjs/controls/richText/RichText.test.js)" time="0.009">
|
|
122
122
|
</testcase>
|
|
123
|
-
<testcase classname="customStyles > " name="keeps styles isolated between instances (lib-commonjs/controls/richText/RichText.test.js)" time="0.
|
|
123
|
+
<testcase classname="customStyles > " name="keeps styles isolated between instances (lib-commonjs/controls/richText/RichText.test.js)" time="0.007">
|
|
124
124
|
</testcase>
|
|
125
|
-
<testcase classname="customStyles > " name="updates styles when customStyles changes (lib-commonjs/controls/richText/RichText.test.js)" time="0.
|
|
125
|
+
<testcase classname="customStyles > " name="updates styles when customStyles changes (lib-commonjs/controls/richText/RichText.test.js)" time="0.007">
|
|
126
126
|
</testcase>
|
|
127
|
-
<testcase classname="customStyles > " name="removes styles when customStyles is removed (lib-commonjs/controls/richText/RichText.test.js)" time="0.
|
|
127
|
+
<testcase classname="customStyles > " name="removes styles when customStyles is removed (lib-commonjs/controls/richText/RichText.test.js)" time="0.012">
|
|
128
128
|
</testcase>
|
|
129
|
-
<testcase classname="customStyles > " name="removes styles when unmounted (lib-commonjs/controls/richText/RichText.test.js)" time="0.
|
|
129
|
+
<testcase classname="customStyles > " name="removes styles when unmounted (lib-commonjs/controls/richText/RichText.test.js)" time="0.004">
|
|
130
130
|
</testcase>
|
|
131
131
|
</testsuite>
|
|
132
|
-
<testsuite name="<
|
|
133
|
-
<testcase classname="<
|
|
132
|
+
<testsuite name="<ListView />" errors="0" failures="0" skipped="0" timestamp="2026-09-10T17:14:25" time="1.907" tests="8">
|
|
133
|
+
<testcase classname="<ListView /> > " name="Test view with an empty array of items (lib-commonjs/controls/listView/ListView.test.js)" time="0.174">
|
|
134
134
|
</testcase>
|
|
135
|
-
<testcase classname="<
|
|
135
|
+
<testcase classname="<ListView /> > " name="Test view with two items (lib-commonjs/controls/listView/ListView.test.js)" time="0.072">
|
|
136
136
|
</testcase>
|
|
137
|
-
<testcase classname="<
|
|
137
|
+
<testcase classname="<ListView /> > " name="Test view by updating the items porperty (lib-commonjs/controls/listView/ListView.test.js)" time="0.058">
|
|
138
138
|
</testcase>
|
|
139
|
-
<testcase classname="<
|
|
139
|
+
<testcase classname="<ListView /> > " name="Test view with iconFieldName (lib-commonjs/controls/listView/ListView.test.js)" time="0.139">
|
|
140
140
|
</testcase>
|
|
141
|
-
<testcase classname="<
|
|
141
|
+
<testcase classname="<ListView /> > " name="Test view with iconFieldName render method (lib-commonjs/controls/listView/ListView.test.js)" time="0.049">
|
|
142
142
|
</testcase>
|
|
143
|
-
<testcase classname="<
|
|
143
|
+
<testcase classname="<ListView /> > " name="Test view with _flattenItems function (lib-commonjs/controls/listView/ListView.test.js)" time="0.04">
|
|
144
144
|
</testcase>
|
|
145
|
-
<testcase classname="<
|
|
145
|
+
<testcase classname="<ListView /> > " name="Test view with viewFields (lib-commonjs/controls/listView/ListView.test.js)" time="0.054">
|
|
146
146
|
</testcase>
|
|
147
|
-
<testcase classname="<
|
|
147
|
+
<testcase classname="<ListView /> > " name="Test out the sorting method (lib-commonjs/controls/listView/ListView.test.js)" time="0.1">
|
|
148
148
|
</testcase>
|
|
149
|
-
|
|
149
|
+
</testsuite>
|
|
150
|
+
<testsuite name="<ChartControl />" errors="0" failures="0" skipped="0" timestamp="2026-09-10T17:14:26" time="1.155" tests="12">
|
|
151
|
+
<testcase classname="<ChartControl /> > " name="Check that an accessible table gets created by default (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.151">
|
|
150
152
|
</testcase>
|
|
151
|
-
<testcase classname="<ChartControl /> > " name="Check that
|
|
153
|
+
<testcase classname="<ChartControl /> > " name="Check that the accessible table accepts a custom classname (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.014">
|
|
152
154
|
</testcase>
|
|
153
|
-
<testcase classname="<ChartControl /> > " name="Check that
|
|
155
|
+
<testcase classname="<ChartControl /> > " name="Check that the accessible table doesn't get rendered if disabled (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.019">
|
|
154
156
|
</testcase>
|
|
155
|
-
<testcase classname="<ChartControl /> > " name="Check that
|
|
157
|
+
<testcase classname="<ChartControl /> > " name="Check that an accessible table gets created with the caption matching the title (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.022">
|
|
156
158
|
</testcase>
|
|
157
|
-
|
|
158
|
-
<testsuite name="<ListView />" errors="0" failures="0" skipped="0" timestamp="2026-09-10T10:58:49" time="2.115" tests="8">
|
|
159
|
-
<testcase classname="<ListView /> > " name="Test view with an empty array of items (lib-commonjs/controls/listView/ListView.test.js)" time="0.235">
|
|
159
|
+
<testcase classname="<ChartControl /> > " name="Check that an accessible table gets created with a caption (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.015">
|
|
160
160
|
</testcase>
|
|
161
|
-
<testcase classname="<
|
|
161
|
+
<testcase classname="<ChartControl /> > " name="Check that the accessible table has a number of rows matching the number of data elements (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.016">
|
|
162
162
|
</testcase>
|
|
163
|
-
<testcase classname="<
|
|
163
|
+
<testcase classname="<ChartControl /> > " name="Check that the accessible table has only one header row (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.024">
|
|
164
164
|
</testcase>
|
|
165
|
-
<testcase classname="<
|
|
165
|
+
<testcase classname="<ChartControl /> > " name="Check that custom class gets rendered (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.013">
|
|
166
166
|
</testcase>
|
|
167
|
-
<testcase classname="<
|
|
167
|
+
<testcase classname="<ChartControl /> > " name="Check that a canvas gets rendered (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.016">
|
|
168
168
|
</testcase>
|
|
169
|
-
<testcase classname="<
|
|
169
|
+
<testcase classname="<ChartControl /> > " name="Check that it doesn't crash if data is omitted (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.012">
|
|
170
170
|
</testcase>
|
|
171
|
-
<testcase classname="<
|
|
171
|
+
<testcase classname="<ChartControl /> > " name="Check that it applies a themed background by default (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.012">
|
|
172
172
|
</testcase>
|
|
173
|
-
<testcase classname="<
|
|
173
|
+
<testcase classname="<ChartControl /> > " name="Check that it disables themed background when useTheme is set to false (lib-commonjs/controls/chartControl/ChartControl.test.js)" time="0.02">
|
|
174
174
|
</testcase>
|
|
175
175
|
</testsuite>
|
|
176
|
-
<testsuite name="PaletteGenerator" errors="0" failures="0" skipped="0" timestamp="2026-09-
|
|
177
|
-
<testcase classname="PaletteGenerator > " name="Should repeat palette if array is longer than number of available colors in repeating palette (lib-commonjs/controls/chartControl/PaletteGenerator.test.js)" time="0.
|
|
176
|
+
<testsuite name="PaletteGenerator" errors="0" failures="0" skipped="0" timestamp="2026-09-10T17:14:27" time="0.829" tests="8">
|
|
177
|
+
<testcase classname="PaletteGenerator > " name="Should repeat palette if array is longer than number of available colors in repeating palette (lib-commonjs/controls/chartControl/PaletteGenerator.test.js)" time="0.006">
|
|
178
178
|
</testcase>
|
|
179
|
-
<testcase classname="PaletteGenerator > " name="Should stretch palette if array is longer than number of available colors in non-repeating palette (lib-commonjs/controls/chartControl/PaletteGenerator.test.js)" time="0.
|
|
179
|
+
<testcase classname="PaletteGenerator > " name="Should stretch palette if array is longer than number of available colors in non-repeating palette (lib-commonjs/controls/chartControl/PaletteGenerator.test.js)" time="0.002">
|
|
180
180
|
</testcase>
|
|
181
|
-
<testcase classname="PaletteGenerator > " name="Should return the right alpha palette length (lib-commonjs/controls/chartControl/PaletteGenerator.test.js)" time="0.
|
|
181
|
+
<testcase classname="PaletteGenerator > " name="Should return the right alpha palette length (lib-commonjs/controls/chartControl/PaletteGenerator.test.js)" time="0.005">
|
|
182
182
|
</testcase>
|
|
183
|
-
<testcase classname="PaletteGenerator > " name="Should repeat a shorter array of colors (lib-commonjs/controls/chartControl/PaletteGenerator.test.js)" time="0.
|
|
183
|
+
<testcase classname="PaletteGenerator > " name="Should repeat a shorter array of colors (lib-commonjs/controls/chartControl/PaletteGenerator.test.js)" time="0.003">
|
|
184
184
|
</testcase>
|
|
185
|
-
<testcase classname="PaletteGenerator > " name="Should not repeat colors in a gradient (lib-commonjs/controls/chartControl/PaletteGenerator.test.js)" time="0.
|
|
185
|
+
<testcase classname="PaletteGenerator > " name="Should not repeat colors in a gradient (lib-commonjs/controls/chartControl/PaletteGenerator.test.js)" time="0.006">
|
|
186
186
|
</testcase>
|
|
187
|
-
<testcase classname="PaletteGenerator > " name="Should return an array of alpha value for a given array of colors (lib-commonjs/controls/chartControl/PaletteGenerator.test.js)" time="0.
|
|
187
|
+
<testcase classname="PaletteGenerator > " name="Should return an array of alpha value for a given array of colors (lib-commonjs/controls/chartControl/PaletteGenerator.test.js)" time="0.008">
|
|
188
188
|
</testcase>
|
|
189
189
|
<testcase classname="PaletteGenerator > " name="Should return a single alpha value for a single color (lib-commonjs/controls/chartControl/PaletteGenerator.test.js)" time="0.001">
|
|
190
190
|
</testcase>
|
|
191
|
-
<testcase classname="PaletteGenerator > " name="Should return a single alpha value for any valid type of color value (lib-commonjs/controls/chartControl/PaletteGenerator.test.js)" time="0.
|
|
191
|
+
<testcase classname="PaletteGenerator > " name="Should return a single alpha value for any valid type of color value (lib-commonjs/controls/chartControl/PaletteGenerator.test.js)" time="0.006">
|
|
192
192
|
</testcase>
|
|
193
193
|
</testsuite>
|
|
194
|
-
<testsuite name="<GridLayout />" errors="0" failures="0" skipped="0" timestamp="2026-09-
|
|
195
|
-
<testcase classname="<GridLayout /> > " name="Test grid layout (lib-commonjs/controls/gridLayout/GridLayout.test.js)" time="0.
|
|
194
|
+
<testsuite name="<GridLayout />" errors="0" failures="0" skipped="0" timestamp="2026-09-10T17:14:27" time="1.224" tests="1">
|
|
195
|
+
<testcase classname="<GridLayout /> > " name="Test grid layout (lib-commonjs/controls/gridLayout/GridLayout.test.js)" time="0.157">
|
|
196
196
|
</testcase>
|
|
197
197
|
</testsuite>
|
|
198
|
-
<testsuite name="SPFilePicker helpers" errors="0" failures="0" skipped="0" timestamp="2026-09-
|
|
199
|
-
<testcase classname="SPFilePicker helpers buildSPFilePickerConfiguration > " name="builds a token-authenticated file picker configuration (lib-commonjs/controls/SPFilePicker/hooks/SPFilePicker.helpers.test.js)" time="0.
|
|
198
|
+
<testsuite name="SPFilePicker helpers" errors="0" failures="0" skipped="0" timestamp="2026-09-10T17:14:28" time="0.727" tests="9">
|
|
199
|
+
<testcase classname="SPFilePicker helpers buildSPFilePickerConfiguration > " name="builds a token-authenticated file picker configuration (lib-commonjs/controls/SPFilePicker/hooks/SPFilePicker.helpers.test.js)" time="0.006">
|
|
200
200
|
</testcase>
|
|
201
|
-
<testcase classname="SPFilePicker helpers buildSPFilePickerConfiguration > " name="omits host authentication in cookie mode (lib-commonjs/controls/SPFilePicker/hooks/SPFilePicker.helpers.test.js)" time="0.
|
|
201
|
+
<testcase classname="SPFilePicker helpers buildSPFilePickerConfiguration > " name="omits host authentication in cookie mode (lib-commonjs/controls/SPFilePicker/hooks/SPFilePicker.helpers.test.js)" time="0.001">
|
|
202
202
|
</testcase>
|
|
203
|
-
<testcase classname="SPFilePicker helpers isExpectedPickerInitializeEvent > " name="accepts initialization from the expected picker window (lib-commonjs/controls/SPFilePicker/hooks/SPFilePicker.helpers.test.js)" time="0
|
|
203
|
+
<testcase classname="SPFilePicker helpers isExpectedPickerInitializeEvent > " name="accepts initialization from the expected picker window (lib-commonjs/controls/SPFilePicker/hooks/SPFilePicker.helpers.test.js)" time="0">
|
|
204
204
|
</testcase>
|
|
205
205
|
<testcase classname="SPFilePicker helpers isExpectedPickerInitializeEvent > " name="rejects initialization with the wrong origin (lib-commonjs/controls/SPFilePicker/hooks/SPFilePicker.helpers.test.js)" time="0.001">
|
|
206
206
|
</testcase>
|
|
207
|
-
<testcase classname="SPFilePicker helpers isExpectedPickerInitializeEvent > " name="rejects initialization with the wrong window (lib-commonjs/controls/SPFilePicker/hooks/SPFilePicker.helpers.test.js)" time="0.
|
|
207
|
+
<testcase classname="SPFilePicker helpers isExpectedPickerInitializeEvent > " name="rejects initialization with the wrong window (lib-commonjs/controls/SPFilePicker/hooks/SPFilePicker.helpers.test.js)" time="0.003">
|
|
208
208
|
</testcase>
|
|
209
209
|
<testcase classname="SPFilePicker helpers isExpectedPickerInitializeEvent > " name="rejects initialization with the wrong channel (lib-commonjs/controls/SPFilePicker/hooks/SPFilePicker.helpers.test.js)" time="0.001">
|
|
210
210
|
</testcase>
|
|
211
211
|
<testcase classname="SPFilePicker helpers isExpectedPickerInitializeEvent > " name="rejects initialization with the wrong message type (lib-commonjs/controls/SPFilePicker/hooks/SPFilePicker.helpers.test.js)" time="0">
|
|
212
212
|
</testcase>
|
|
213
|
-
<testcase classname="SPFilePicker helpers requireAccessToken > " name="returns a valid token (lib-commonjs/controls/SPFilePicker/hooks/SPFilePicker.helpers.test.js)" time="0
|
|
213
|
+
<testcase classname="SPFilePicker helpers requireAccessToken > " name="returns a valid token (lib-commonjs/controls/SPFilePicker/hooks/SPFilePicker.helpers.test.js)" time="0">
|
|
214
214
|
</testcase>
|
|
215
|
-
<testcase classname="SPFilePicker helpers requireAccessToken > " name="rejects an empty token (lib-commonjs/controls/SPFilePicker/hooks/SPFilePicker.helpers.test.js)" time="0.
|
|
215
|
+
<testcase classname="SPFilePicker helpers requireAccessToken > " name="rejects an empty token (lib-commonjs/controls/SPFilePicker/hooks/SPFilePicker.helpers.test.js)" time="0.015">
|
|
216
216
|
</testcase>
|
|
217
217
|
</testsuite>
|
|
218
|
-
<testsuite name="ControlsTestWebPart" errors="0" failures="0" skipped="0" timestamp="2026-09-
|
|
218
|
+
<testsuite name="ControlsTestWebPart" errors="0" failures="0" skipped="0" timestamp="2026-09-10T17:14:29" time="0.799" tests="1">
|
|
219
219
|
<testcase classname="ControlsTestWebPart > " name="should do something (lib-commonjs/webparts/controlsTest/test/ControlsTestWebPart.test.js)" time="0.003">
|
|
220
220
|
</testcase>
|
|
221
221
|
</testsuite>
|
|
222
|
-
<testsuite name="<Placeholder />" errors="0" failures="0" skipped="0" timestamp="2026-09-
|
|
223
|
-
<testcase classname="<Placeholder /> > " name="Test that placeholder renders (lib-commonjs/controls/placeholder/PlaceholderComponent.test.js)" time="0.
|
|
222
|
+
<testsuite name="<Placeholder />" errors="0" failures="0" skipped="0" timestamp="2026-09-10T17:14:27" time="3.376" tests="6">
|
|
223
|
+
<testcase classname="<Placeholder /> > " name="Test that placeholder renders (lib-commonjs/controls/placeholder/PlaceholderComponent.test.js)" time="0.047">
|
|
224
224
|
</testcase>
|
|
225
|
-
<testcase classname="<Placeholder /> > " name="Test placeholder without button (lib-commonjs/controls/placeholder/PlaceholderComponent.test.js)" time="0.
|
|
225
|
+
<testcase classname="<Placeholder /> > " name="Test placeholder without button (lib-commonjs/controls/placeholder/PlaceholderComponent.test.js)" time="0.018">
|
|
226
226
|
</testcase>
|
|
227
|
-
<testcase classname="<Placeholder /> > " name="Test placeholder with custom classname (lib-commonjs/controls/placeholder/PlaceholderComponent.test.js)" time="0.
|
|
227
|
+
<testcase classname="<Placeholder /> > " name="Test placeholder with custom classname (lib-commonjs/controls/placeholder/PlaceholderComponent.test.js)" time="0.007">
|
|
228
228
|
</testcase>
|
|
229
|
-
<testcase classname="<Placeholder /> > " name="Test placeholder with null values (lib-commonjs/controls/placeholder/PlaceholderComponent.test.js)" time="0.
|
|
229
|
+
<testcase classname="<Placeholder /> > " name="Test placeholder with null values (lib-commonjs/controls/placeholder/PlaceholderComponent.test.js)" time="0.016">
|
|
230
230
|
</testcase>
|
|
231
|
-
<testcase classname="<Placeholder /> > " name="Test placeholder with button (lib-commonjs/controls/placeholder/PlaceholderComponent.test.js)" time="0.
|
|
231
|
+
<testcase classname="<Placeholder /> > " name="Test placeholder with button (lib-commonjs/controls/placeholder/PlaceholderComponent.test.js)" time="0.019">
|
|
232
232
|
</testcase>
|
|
233
|
-
<testcase classname="<Placeholder /> > " name="Test button onConfigure trigger (lib-commonjs/controls/placeholder/PlaceholderComponent.test.js)" time="0.
|
|
233
|
+
<testcase classname="<Placeholder /> > " name="Test button onConfigure trigger (lib-commonjs/controls/placeholder/PlaceholderComponent.test.js)" time="0.011">
|
|
234
234
|
</testcase>
|
|
235
235
|
</testsuite>
|
|
236
|
-
<testsuite name="DetailsList" errors="0" failures="0" skipped="0" timestamp="2026-09-
|
|
237
|
-
<testcase classname="DetailsList > " name="renders with Fluent UI 9 controls on the React 17 runtime (lib-commonjs/controls/DetailsList/DetailsList.test.js)" time="0.
|
|
236
|
+
<testsuite name="DetailsList" errors="0" failures="0" skipped="0" timestamp="2026-09-10T17:14:28" time="4.091" tests="2">
|
|
237
|
+
<testcase classname="DetailsList > " name="renders with Fluent UI 9 controls on the React 17 runtime (lib-commonjs/controls/DetailsList/DetailsList.test.js)" time="0.107">
|
|
238
238
|
</testcase>
|
|
239
|
-
<testcase classname="DetailsList > " name="aligns group headers with the leading edge (lib-commonjs/controls/DetailsList/DetailsList.test.js)" time="0.
|
|
239
|
+
<testcase classname="DetailsList > " name="aligns group headers with the leading edge (lib-commonjs/controls/DetailsList/DetailsList.test.js)" time="0.022">
|
|
240
240
|
</testcase>
|
|
241
241
|
</testsuite>
|
|
242
242
|
</testsuites>
|
package/lib/Toast.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../src/Toast.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
package/lib/Toast.js
ADDED
package/lib/Toast.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toast.js","sourceRoot":"","sources":["../src/Toast.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export var version = "3.26.0-beta.
|
|
1
|
+
export var version = "3.26.0-beta.3450664";
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { Theme, ToastBodyProps, ToastFooterProps, ToastIntent, ToastOffset, ToastPosition, ToastProps as FluentToastProps, ToastTitleProps, ToasterProps } from '@fluentui/react-components';
|
|
3
|
+
export interface IToastClassNames {
|
|
4
|
+
root?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
body?: string;
|
|
7
|
+
footer?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface IToastStyles {
|
|
10
|
+
root?: React.CSSProperties;
|
|
11
|
+
title?: React.CSSProperties;
|
|
12
|
+
body?: React.CSSProperties;
|
|
13
|
+
footer?: React.CSSProperties;
|
|
14
|
+
}
|
|
15
|
+
export interface IToastHandle {
|
|
16
|
+
element: HTMLDivElement | undefined;
|
|
17
|
+
show: () => void;
|
|
18
|
+
dismiss: () => void;
|
|
19
|
+
isVisible: () => boolean;
|
|
20
|
+
focus: () => void;
|
|
21
|
+
}
|
|
22
|
+
export interface IToastProps extends Omit<FluentToastProps, 'children' | 'title'> {
|
|
23
|
+
theme?: Theme;
|
|
24
|
+
idPrefix?: string;
|
|
25
|
+
intent?: ToastIntent;
|
|
26
|
+
title?: React.ReactNode;
|
|
27
|
+
body?: React.ReactNode;
|
|
28
|
+
subtitle?: React.ReactNode;
|
|
29
|
+
footer?: React.ReactNode;
|
|
30
|
+
media?: React.ReactNode;
|
|
31
|
+
action?: React.ReactNode;
|
|
32
|
+
autoDismiss?: boolean;
|
|
33
|
+
duration?: number;
|
|
34
|
+
durationUnit?: 'milliseconds' | 'seconds';
|
|
35
|
+
position?: ToastPosition;
|
|
36
|
+
pauseOnHover?: boolean;
|
|
37
|
+
pauseOnWindowBlur?: boolean;
|
|
38
|
+
dismissible?: boolean;
|
|
39
|
+
dismissAriaLabel?: string;
|
|
40
|
+
dismissAction?: React.ReactElement;
|
|
41
|
+
onDismiss?: () => void;
|
|
42
|
+
children?: React.ReactNode;
|
|
43
|
+
classNames?: IToastClassNames;
|
|
44
|
+
styles?: IToastStyles;
|
|
45
|
+
titleProps?: ToastTitleProps;
|
|
46
|
+
bodyProps?: ToastBodyProps;
|
|
47
|
+
footerProps?: ToastFooterProps;
|
|
48
|
+
}
|
|
49
|
+
export interface IShowToastOptions extends Omit<IToastProps, 'theme' | 'idPrefix'> {
|
|
50
|
+
toastId?: string;
|
|
51
|
+
}
|
|
52
|
+
export interface IToastProviderProps {
|
|
53
|
+
children?: React.ReactNode;
|
|
54
|
+
theme?: Theme;
|
|
55
|
+
idPrefix?: string;
|
|
56
|
+
toasterId?: string;
|
|
57
|
+
position?: ToastPosition;
|
|
58
|
+
pauseOnHover?: boolean;
|
|
59
|
+
pauseOnWindowBlur?: boolean;
|
|
60
|
+
limit?: number;
|
|
61
|
+
offset?: ToastOffset;
|
|
62
|
+
mountNode?: ToasterProps['mountNode'];
|
|
63
|
+
inline?: boolean;
|
|
64
|
+
}
|
|
65
|
+
export interface IToastController {
|
|
66
|
+
showToast: (options: IShowToastOptions) => string;
|
|
67
|
+
dismissToast: (toastId: string) => void;
|
|
68
|
+
dismissAllToasts: () => void;
|
|
69
|
+
pauseToast: (toastId: string) => void;
|
|
70
|
+
playToast: (toastId: string) => void;
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=IToast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IToast.d.ts","sourceRoot":"","sources":["../../../src/controls/toast/IToast.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EACV,KAAK,EACL,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,aAAa,EACb,UAAU,I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AiB,KAAK,MAAM,CAAC;IAClD,YAAY,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IToast.js","sourceRoot":"","sources":["../../../src/controls/toast/IToast.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/controls/toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAqB,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAoF7E,eAAO,MAAM,KAAK,kFA4BhB,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { __assign, __rest } from "tslib";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { ToastContext, ToastProvider } from './ToastProvider';
|
|
4
|
+
var ToastDispatcher = function (props) {
|
|
5
|
+
var forwardedRef = props.toastRef, onDismiss = props.onDismiss, options = __rest(props, ["toastRef", "onDismiss"]);
|
|
6
|
+
var context = React.useContext(ToastContext);
|
|
7
|
+
var elementRef = React.useRef(React.createRef());
|
|
8
|
+
var toastIdRef = React.useRef();
|
|
9
|
+
var activeRef = React.useRef(false);
|
|
10
|
+
var visibleRef = React.useRef(false);
|
|
11
|
+
var mountedRef = React.useRef(false);
|
|
12
|
+
var optionsRef = React.useRef(options);
|
|
13
|
+
var onDismissRef = React.useRef(onDismiss);
|
|
14
|
+
if (!context) {
|
|
15
|
+
throw new Error('ToastDispatcher must be used within a ToastProvider.');
|
|
16
|
+
}
|
|
17
|
+
optionsRef.current = options;
|
|
18
|
+
onDismissRef.current = onDismiss;
|
|
19
|
+
var dismiss = React.useCallback(function () {
|
|
20
|
+
if (toastIdRef.current) {
|
|
21
|
+
context.dismissToast(toastIdRef.current);
|
|
22
|
+
}
|
|
23
|
+
}, [context]);
|
|
24
|
+
var show = React.useCallback(function () {
|
|
25
|
+
if (activeRef.current) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
activeRef.current = true;
|
|
29
|
+
// Each dispatch owns its ref: an exiting toast must not clear its replacement's handle.
|
|
30
|
+
var dispatchedElementRef = React.createRef();
|
|
31
|
+
elementRef.current = dispatchedElementRef;
|
|
32
|
+
toastIdRef.current = context.dispatchToast(__assign(__assign({}, optionsRef.current), { onDismiss: function () {
|
|
33
|
+
var _a;
|
|
34
|
+
if (mountedRef.current && elementRef.current === dispatchedElementRef) {
|
|
35
|
+
(_a = onDismissRef.current) === null || _a === void 0 ? void 0 : _a.call(onDismissRef);
|
|
36
|
+
}
|
|
37
|
+
} }), {
|
|
38
|
+
elementRef: dispatchedElementRef,
|
|
39
|
+
onStatusChange: function (status) {
|
|
40
|
+
if (elementRef.current !== dispatchedElementRef) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
activeRef.current = status === 'queued' || status === 'visible';
|
|
44
|
+
visibleRef.current = status === 'visible';
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
}, [context]);
|
|
48
|
+
React.useImperativeHandle(forwardedRef, function () { return ({
|
|
49
|
+
get element() {
|
|
50
|
+
var _a;
|
|
51
|
+
return (_a = elementRef.current.current) !== null && _a !== void 0 ? _a : undefined;
|
|
52
|
+
},
|
|
53
|
+
show: show,
|
|
54
|
+
dismiss: dismiss,
|
|
55
|
+
isVisible: function () { return visibleRef.current; },
|
|
56
|
+
focus: function () { var _a; return (_a = elementRef.current.current) === null || _a === void 0 ? void 0 : _a.focus(); },
|
|
57
|
+
}); }, [dismiss, show]);
|
|
58
|
+
React.useEffect(function () {
|
|
59
|
+
mountedRef.current = true;
|
|
60
|
+
show();
|
|
61
|
+
return function () {
|
|
62
|
+
mountedRef.current = false;
|
|
63
|
+
dismiss();
|
|
64
|
+
};
|
|
65
|
+
}, [dismiss, show]);
|
|
66
|
+
return React.createElement(React.Fragment, null);
|
|
67
|
+
};
|
|
68
|
+
export var Toast = React.forwardRef(function (props, ref) {
|
|
69
|
+
var context = React.useContext(ToastContext);
|
|
70
|
+
var theme = props.theme, idPrefix = props.idPrefix, position = props.position, pauseOnHover = props.pauseOnHover, pauseOnWindowBlur = props.pauseOnWindowBlur, toastOptions = __rest(props, ["theme", "idPrefix", "position", "pauseOnHover", "pauseOnWindowBlur"]);
|
|
71
|
+
var dispatcher = (React.createElement(ToastDispatcher, __assign({}, toastOptions, { position: position, pauseOnHover: pauseOnHover, pauseOnWindowBlur: pauseOnWindowBlur, toastRef: ref })));
|
|
72
|
+
if (context) {
|
|
73
|
+
return dispatcher;
|
|
74
|
+
}
|
|
75
|
+
return (React.createElement(ToastProvider, { theme: theme, idPrefix: idPrefix, position: position, pauseOnHover: pauseOnHover, pauseOnWindowBlur: pauseOnWindowBlur }, dispatcher));
|
|
76
|
+
});
|
|
77
|
+
Toast.displayName = 'Toast';
|
|
78
|
+
//# sourceMappingURL=Toast.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toast.js","sourceRoot":"","sources":["../../../src/controls/toast/Toast.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAM9D,IAAM,eAAe,GAAG,UAAC,KAA4B;IAC3C,IAAU,YAAY,GAA4B,KAAK,SAAjC,EAAE,SAAS,GAAiB,KAAK,UAAtB,EAAK,OAAO,UAAK,KAAK,EAAzD,yBAAiD,CAAF,CAAW;IAChE,IAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;IAC/C,IAAM,UAA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