@react-spectrum/toast 3.0.0-beta.1 → 3.0.0-beta.11
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/Toast.main.js +112 -0
- package/dist/Toast.main.js.map +1 -0
- package/dist/Toast.mjs +107 -0
- package/dist/Toast.module.js +107 -0
- package/dist/Toast.module.js.map +1 -0
- package/dist/ToastContainer.main.js +146 -0
- package/dist/ToastContainer.main.js.map +1 -0
- package/dist/ToastContainer.mjs +136 -0
- package/dist/ToastContainer.module.js +136 -0
- package/dist/ToastContainer.module.js.map +1 -0
- package/dist/Toaster.main.js +67 -0
- package/dist/Toaster.main.js.map +1 -0
- package/dist/Toaster.mjs +61 -0
- package/dist/Toaster.module.js +61 -0
- package/dist/Toaster.module.js.map +1 -0
- package/dist/ar-AE.main.js +8 -0
- package/dist/ar-AE.main.js.map +1 -0
- package/dist/ar-AE.mjs +10 -0
- package/dist/ar-AE.module.js +10 -0
- package/dist/ar-AE.module.js.map +1 -0
- package/dist/bg-BG.main.js +8 -0
- package/dist/bg-BG.main.js.map +1 -0
- package/dist/bg-BG.mjs +10 -0
- package/dist/bg-BG.module.js +10 -0
- package/dist/bg-BG.module.js.map +1 -0
- package/dist/cs-CZ.main.js +8 -0
- package/dist/cs-CZ.main.js.map +1 -0
- package/dist/cs-CZ.mjs +10 -0
- package/dist/cs-CZ.module.js +10 -0
- package/dist/cs-CZ.module.js.map +1 -0
- package/dist/da-DK.main.js +8 -0
- package/dist/da-DK.main.js.map +1 -0
- package/dist/da-DK.mjs +10 -0
- package/dist/da-DK.module.js +10 -0
- package/dist/da-DK.module.js.map +1 -0
- package/dist/de-DE.main.js +8 -0
- package/dist/de-DE.main.js.map +1 -0
- package/dist/de-DE.mjs +10 -0
- package/dist/de-DE.module.js +10 -0
- package/dist/de-DE.module.js.map +1 -0
- package/dist/el-GR.main.js +8 -0
- package/dist/el-GR.main.js.map +1 -0
- package/dist/el-GR.mjs +10 -0
- package/dist/el-GR.module.js +10 -0
- package/dist/el-GR.module.js.map +1 -0
- package/dist/en-US.main.js +8 -0
- package/dist/en-US.main.js.map +1 -0
- package/dist/en-US.mjs +10 -0
- package/dist/en-US.module.js +10 -0
- package/dist/en-US.module.js.map +1 -0
- package/dist/es-ES.main.js +8 -0
- package/dist/es-ES.main.js.map +1 -0
- package/dist/es-ES.mjs +10 -0
- package/dist/es-ES.module.js +10 -0
- package/dist/es-ES.module.js.map +1 -0
- package/dist/et-EE.main.js +8 -0
- package/dist/et-EE.main.js.map +1 -0
- package/dist/et-EE.mjs +10 -0
- package/dist/et-EE.module.js +10 -0
- package/dist/et-EE.module.js.map +1 -0
- package/dist/fi-FI.main.js +8 -0
- package/dist/fi-FI.main.js.map +1 -0
- package/dist/fi-FI.mjs +10 -0
- package/dist/fi-FI.module.js +10 -0
- package/dist/fi-FI.module.js.map +1 -0
- package/dist/fr-FR.main.js +8 -0
- package/dist/fr-FR.main.js.map +1 -0
- package/dist/fr-FR.mjs +10 -0
- package/dist/fr-FR.module.js +10 -0
- package/dist/fr-FR.module.js.map +1 -0
- package/dist/he-IL.main.js +8 -0
- package/dist/he-IL.main.js.map +1 -0
- package/dist/he-IL.mjs +10 -0
- package/dist/he-IL.module.js +10 -0
- package/dist/he-IL.module.js.map +1 -0
- package/dist/hr-HR.main.js +8 -0
- package/dist/hr-HR.main.js.map +1 -0
- package/dist/hr-HR.mjs +10 -0
- package/dist/hr-HR.module.js +10 -0
- package/dist/hr-HR.module.js.map +1 -0
- package/dist/hu-HU.main.js +8 -0
- package/dist/hu-HU.main.js.map +1 -0
- package/dist/hu-HU.mjs +10 -0
- package/dist/hu-HU.module.js +10 -0
- package/dist/hu-HU.module.js.map +1 -0
- package/dist/import.mjs +1 -630
- package/dist/intlStrings.main.js +108 -0
- package/dist/intlStrings.main.js.map +1 -0
- package/dist/intlStrings.mjs +110 -0
- package/dist/intlStrings.module.js +110 -0
- package/dist/intlStrings.module.js.map +1 -0
- package/dist/it-IT.main.js +8 -0
- package/dist/it-IT.main.js.map +1 -0
- package/dist/it-IT.mjs +10 -0
- package/dist/it-IT.module.js +10 -0
- package/dist/it-IT.module.js.map +1 -0
- package/dist/ja-JP.main.js +8 -0
- package/dist/ja-JP.main.js.map +1 -0
- package/dist/ja-JP.mjs +10 -0
- package/dist/ja-JP.module.js +10 -0
- package/dist/ja-JP.module.js.map +1 -0
- package/dist/ko-KR.main.js +8 -0
- package/dist/ko-KR.main.js.map +1 -0
- package/dist/ko-KR.mjs +10 -0
- package/dist/ko-KR.module.js +10 -0
- package/dist/ko-KR.module.js.map +1 -0
- package/dist/lt-LT.main.js +8 -0
- package/dist/lt-LT.main.js.map +1 -0
- package/dist/lt-LT.mjs +10 -0
- package/dist/lt-LT.module.js +10 -0
- package/dist/lt-LT.module.js.map +1 -0
- package/dist/lv-LV.main.js +8 -0
- package/dist/lv-LV.main.js.map +1 -0
- package/dist/lv-LV.mjs +10 -0
- package/dist/lv-LV.module.js +10 -0
- package/dist/lv-LV.module.js.map +1 -0
- package/dist/main.js +4 -629
- package/dist/main.js.map +1 -1
- package/dist/module.js +1 -630
- package/dist/module.js.map +1 -1
- package/dist/nb-NO.main.js +8 -0
- package/dist/nb-NO.main.js.map +1 -0
- package/dist/nb-NO.mjs +10 -0
- package/dist/nb-NO.module.js +10 -0
- package/dist/nb-NO.module.js.map +1 -0
- package/dist/nl-NL.main.js +8 -0
- package/dist/nl-NL.main.js.map +1 -0
- package/dist/nl-NL.mjs +10 -0
- package/dist/nl-NL.module.js +10 -0
- package/dist/nl-NL.module.js.map +1 -0
- package/dist/pl-PL.main.js +8 -0
- package/dist/pl-PL.main.js.map +1 -0
- package/dist/pl-PL.mjs +10 -0
- package/dist/pl-PL.module.js +10 -0
- package/dist/pl-PL.module.js.map +1 -0
- package/dist/pt-BR.main.js +8 -0
- package/dist/pt-BR.main.js.map +1 -0
- package/dist/pt-BR.mjs +10 -0
- package/dist/pt-BR.module.js +10 -0
- package/dist/pt-BR.module.js.map +1 -0
- package/dist/pt-PT.main.js +8 -0
- package/dist/pt-PT.main.js.map +1 -0
- package/dist/pt-PT.mjs +10 -0
- package/dist/pt-PT.module.js +10 -0
- package/dist/pt-PT.module.js.map +1 -0
- package/dist/ro-RO.main.js +8 -0
- package/dist/ro-RO.main.js.map +1 -0
- package/dist/ro-RO.mjs +10 -0
- package/dist/ro-RO.module.js +10 -0
- package/dist/ro-RO.module.js.map +1 -0
- package/dist/ru-RU.main.js +8 -0
- package/dist/ru-RU.main.js.map +1 -0
- package/dist/ru-RU.mjs +10 -0
- package/dist/ru-RU.module.js +10 -0
- package/dist/ru-RU.module.js.map +1 -0
- package/dist/sk-SK.main.js +8 -0
- package/dist/sk-SK.main.js.map +1 -0
- package/dist/sk-SK.mjs +10 -0
- package/dist/sk-SK.module.js +10 -0
- package/dist/sk-SK.module.js.map +1 -0
- package/dist/sl-SI.main.js +8 -0
- package/dist/sl-SI.main.js.map +1 -0
- package/dist/sl-SI.mjs +10 -0
- package/dist/sl-SI.module.js +10 -0
- package/dist/sl-SI.module.js.map +1 -0
- package/dist/sr-SP.main.js +8 -0
- package/dist/sr-SP.main.js.map +1 -0
- package/dist/sr-SP.mjs +10 -0
- package/dist/sr-SP.module.js +10 -0
- package/dist/sr-SP.module.js.map +1 -0
- package/dist/sv-SE.main.js +8 -0
- package/dist/sv-SE.main.js.map +1 -0
- package/dist/sv-SE.mjs +10 -0
- package/dist/sv-SE.module.js +10 -0
- package/dist/sv-SE.module.js.map +1 -0
- package/dist/toastContainer.b596792c.css +139 -0
- package/dist/toastContainer.b596792c.css.map +1 -0
- package/dist/toastContainer_css.main.js +34 -0
- package/dist/toastContainer_css.main.js.map +1 -0
- package/dist/toastContainer_css.mjs +36 -0
- package/dist/toastContainer_css.module.js +36 -0
- package/dist/toastContainer_css.module.js.map +1 -0
- package/dist/toast_vars_css.main.js +38 -0
- package/dist/toast_vars_css.main.js.map +1 -0
- package/dist/toast_vars_css.mjs +40 -0
- package/dist/toast_vars_css.module.js +40 -0
- package/dist/toast_vars_css.module.js.map +1 -0
- package/dist/tr-TR.main.js +8 -0
- package/dist/tr-TR.main.js.map +1 -0
- package/dist/tr-TR.mjs +10 -0
- package/dist/tr-TR.module.js +10 -0
- package/dist/tr-TR.module.js.map +1 -0
- package/dist/types.d.ts +8 -7
- package/dist/types.d.ts.map +1 -1
- package/dist/uk-UA.main.js +8 -0
- package/dist/uk-UA.main.js.map +1 -0
- package/dist/uk-UA.mjs +10 -0
- package/dist/uk-UA.module.js +10 -0
- package/dist/uk-UA.module.js.map +1 -0
- package/dist/vars.85cde188.css +94 -0
- package/dist/vars.85cde188.css.map +1 -0
- package/dist/zh-CN.main.js +8 -0
- package/dist/zh-CN.main.js.map +1 -0
- package/dist/zh-CN.mjs +10 -0
- package/dist/zh-CN.module.js +10 -0
- package/dist/zh-CN.module.js.map +1 -0
- package/dist/zh-TW.main.js +8 -0
- package/dist/zh-TW.main.js.map +1 -0
- package/dist/zh-TW.mjs +10 -0
- package/dist/zh-TW.module.js +10 -0
- package/dist/zh-TW.module.js.map +1 -0
- package/package.json +14 -12
- package/src/Toast.tsx +12 -7
- package/src/ToastContainer.tsx +24 -32
- package/src/Toaster.tsx +14 -9
- package/src/toastContainer.css +9 -15
- package/dist/main.css +0 -1
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import {Toast as $7e7a2952509f3a56$export$8d8dc7d5f743331b} from "./Toast.mjs";
|
|
2
|
+
import {Toaster as $e46feef4e4c28a4b$export$fb98e3a2a4cd92d7} from "./Toaster.mjs";
|
|
3
|
+
import {filterDOMProps as $5lmgI$filterDOMProps} from "@react-aria/utils";
|
|
4
|
+
import $5lmgI$react, {useRef as $5lmgI$useRef, useEffect as $5lmgI$useEffect} from "react";
|
|
5
|
+
import {ToastQueue as $5lmgI$ToastQueue, useToastQueue as $5lmgI$useToastQueue} from "@react-stately/toast";
|
|
6
|
+
import {useSyncExternalStore as $5lmgI$useSyncExternalStore} from "use-sync-external-store/shim/index.js";
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
10
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
12
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
15
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
16
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
17
|
+
* governing permissions and limitations under the License.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
// There is a single global toast queue instance for the whole app, initialized lazily.
|
|
25
|
+
let $02c59b34bd70955a$var$globalToastQueue = null;
|
|
26
|
+
function $02c59b34bd70955a$var$getGlobalToastQueue() {
|
|
27
|
+
if (!$02c59b34bd70955a$var$globalToastQueue) $02c59b34bd70955a$var$globalToastQueue = new (0, $5lmgI$ToastQueue)({
|
|
28
|
+
maxVisibleToasts: Infinity,
|
|
29
|
+
hasExitAnimation: true
|
|
30
|
+
});
|
|
31
|
+
return $02c59b34bd70955a$var$globalToastQueue;
|
|
32
|
+
}
|
|
33
|
+
function $02c59b34bd70955a$export$320311f0e4ecb3ae() {
|
|
34
|
+
$02c59b34bd70955a$var$globalToastQueue = null;
|
|
35
|
+
}
|
|
36
|
+
let $02c59b34bd70955a$var$toastProviders = new Set();
|
|
37
|
+
let $02c59b34bd70955a$var$subscriptions = new Set();
|
|
38
|
+
function $02c59b34bd70955a$var$subscribe(fn) {
|
|
39
|
+
$02c59b34bd70955a$var$subscriptions.add(fn);
|
|
40
|
+
return ()=>$02c59b34bd70955a$var$subscriptions.delete(fn);
|
|
41
|
+
}
|
|
42
|
+
function $02c59b34bd70955a$var$triggerSubscriptions() {
|
|
43
|
+
for (let fn of $02c59b34bd70955a$var$subscriptions)fn();
|
|
44
|
+
}
|
|
45
|
+
function $02c59b34bd70955a$var$getActiveToastContainer() {
|
|
46
|
+
return $02c59b34bd70955a$var$toastProviders.values().next().value;
|
|
47
|
+
}
|
|
48
|
+
function $02c59b34bd70955a$var$useActiveToastContainer() {
|
|
49
|
+
return (0, $5lmgI$useSyncExternalStore)($02c59b34bd70955a$var$subscribe, $02c59b34bd70955a$var$getActiveToastContainer, $02c59b34bd70955a$var$getActiveToastContainer);
|
|
50
|
+
}
|
|
51
|
+
function $02c59b34bd70955a$export$f2815235e76a62b9(props) {
|
|
52
|
+
// Track all toast provider instances in a set.
|
|
53
|
+
// Only the first one will actually render.
|
|
54
|
+
// We use a ref to do this, since it will have a stable identity
|
|
55
|
+
// over the lifetime of the component.
|
|
56
|
+
let ref = (0, $5lmgI$useRef)();
|
|
57
|
+
// eslint-disable-next-line arrow-body-style
|
|
58
|
+
(0, $5lmgI$useEffect)(()=>{
|
|
59
|
+
$02c59b34bd70955a$var$toastProviders.add(ref);
|
|
60
|
+
$02c59b34bd70955a$var$triggerSubscriptions();
|
|
61
|
+
return ()=>{
|
|
62
|
+
// When this toast provider unmounts, reset all animations so that
|
|
63
|
+
// when the new toast provider renders, it is seamless.
|
|
64
|
+
for (let toast of $02c59b34bd70955a$var$getGlobalToastQueue().visibleToasts)toast.animation = null;
|
|
65
|
+
// Remove this toast provider, and call subscriptions.
|
|
66
|
+
// This will cause all other instances to re-render,
|
|
67
|
+
// and the first one to become the new active toast provider.
|
|
68
|
+
$02c59b34bd70955a$var$toastProviders.delete(ref);
|
|
69
|
+
$02c59b34bd70955a$var$triggerSubscriptions();
|
|
70
|
+
};
|
|
71
|
+
}, []);
|
|
72
|
+
// Only render if this is the active toast provider instance, and there are visible toasts.
|
|
73
|
+
let activeToastContainer = $02c59b34bd70955a$var$useActiveToastContainer();
|
|
74
|
+
let state = (0, $5lmgI$useToastQueue)($02c59b34bd70955a$var$getGlobalToastQueue());
|
|
75
|
+
if (ref === activeToastContainer && state.visibleToasts.length > 0) return /*#__PURE__*/ (0, $5lmgI$react).createElement((0, $e46feef4e4c28a4b$export$fb98e3a2a4cd92d7), {
|
|
76
|
+
state: state,
|
|
77
|
+
...props
|
|
78
|
+
}, state.visibleToasts.map((toast)=>/*#__PURE__*/ (0, $5lmgI$react).createElement((0, $7e7a2952509f3a56$export$8d8dc7d5f743331b), {
|
|
79
|
+
key: toast.key,
|
|
80
|
+
toast: toast,
|
|
81
|
+
state: state
|
|
82
|
+
})));
|
|
83
|
+
return null;
|
|
84
|
+
}
|
|
85
|
+
function $02c59b34bd70955a$var$addToast(children, variant, options = {}) {
|
|
86
|
+
// Dispatch a custom event so that toasts can be intercepted and re-targeted, e.g. when inside an iframe.
|
|
87
|
+
if (typeof CustomEvent !== "undefined" && typeof window !== "undefined") {
|
|
88
|
+
let event = new CustomEvent("react-spectrum-toast", {
|
|
89
|
+
cancelable: true,
|
|
90
|
+
bubbles: true,
|
|
91
|
+
detail: {
|
|
92
|
+
children: children,
|
|
93
|
+
variant: variant,
|
|
94
|
+
options: options
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
let shouldContinue = window.dispatchEvent(event);
|
|
98
|
+
if (!shouldContinue) return;
|
|
99
|
+
}
|
|
100
|
+
let value = {
|
|
101
|
+
children: children,
|
|
102
|
+
variant: variant,
|
|
103
|
+
actionLabel: options.actionLabel,
|
|
104
|
+
onAction: options.onAction,
|
|
105
|
+
shouldCloseOnAction: options.shouldCloseOnAction,
|
|
106
|
+
...(0, $5lmgI$filterDOMProps)(options)
|
|
107
|
+
};
|
|
108
|
+
// Minimum time of 5s from https://spectrum.adobe.com/page/toast/#Auto-dismissible
|
|
109
|
+
// Actionable toasts cannot be auto dismissed. That would fail WCAG SC 2.2.1.
|
|
110
|
+
// It is debatable whether non-actionable toasts would also fail.
|
|
111
|
+
let timeout = options.timeout && !options.onAction ? Math.max(options.timeout, 5000) : null;
|
|
112
|
+
let queue = $02c59b34bd70955a$var$getGlobalToastQueue();
|
|
113
|
+
let key = queue.add(value, {
|
|
114
|
+
timeout: timeout,
|
|
115
|
+
onClose: options.onClose
|
|
116
|
+
});
|
|
117
|
+
return ()=>queue.close(key);
|
|
118
|
+
}
|
|
119
|
+
const $02c59b34bd70955a$export$f1f8569633bbbec4 = {
|
|
120
|
+
/** Queues a neutral toast. */ neutral (children, options = {}) {
|
|
121
|
+
return $02c59b34bd70955a$var$addToast(children, "neutral", options);
|
|
122
|
+
},
|
|
123
|
+
/** Queues a positive toast. */ positive (children, options = {}) {
|
|
124
|
+
return $02c59b34bd70955a$var$addToast(children, "positive", options);
|
|
125
|
+
},
|
|
126
|
+
/** Queues a negative toast. */ negative (children, options = {}) {
|
|
127
|
+
return $02c59b34bd70955a$var$addToast(children, "negative", options);
|
|
128
|
+
},
|
|
129
|
+
/** Queues an informational toast. */ info (children, options = {}) {
|
|
130
|
+
return $02c59b34bd70955a$var$addToast(children, "info", options);
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
export {$02c59b34bd70955a$export$320311f0e4ecb3ae as clearToastQueue, $02c59b34bd70955a$export$f2815235e76a62b9 as ToastContainer, $02c59b34bd70955a$export$f1f8569633bbbec4 as ToastQueue};
|
|
136
|
+
//# sourceMappingURL=ToastContainer.mjs.map
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import {Toast as $7e7a2952509f3a56$export$8d8dc7d5f743331b} from "./Toast.module.js";
|
|
2
|
+
import {Toaster as $e46feef4e4c28a4b$export$fb98e3a2a4cd92d7} from "./Toaster.module.js";
|
|
3
|
+
import {filterDOMProps as $5lmgI$filterDOMProps} from "@react-aria/utils";
|
|
4
|
+
import $5lmgI$react, {useRef as $5lmgI$useRef, useEffect as $5lmgI$useEffect} from "react";
|
|
5
|
+
import {ToastQueue as $5lmgI$ToastQueue, useToastQueue as $5lmgI$useToastQueue} from "@react-stately/toast";
|
|
6
|
+
import {useSyncExternalStore as $5lmgI$useSyncExternalStore} from "use-sync-external-store/shim/index.js";
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
10
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
12
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
15
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
16
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
17
|
+
* governing permissions and limitations under the License.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
// There is a single global toast queue instance for the whole app, initialized lazily.
|
|
25
|
+
let $02c59b34bd70955a$var$globalToastQueue = null;
|
|
26
|
+
function $02c59b34bd70955a$var$getGlobalToastQueue() {
|
|
27
|
+
if (!$02c59b34bd70955a$var$globalToastQueue) $02c59b34bd70955a$var$globalToastQueue = new (0, $5lmgI$ToastQueue)({
|
|
28
|
+
maxVisibleToasts: Infinity,
|
|
29
|
+
hasExitAnimation: true
|
|
30
|
+
});
|
|
31
|
+
return $02c59b34bd70955a$var$globalToastQueue;
|
|
32
|
+
}
|
|
33
|
+
function $02c59b34bd70955a$export$320311f0e4ecb3ae() {
|
|
34
|
+
$02c59b34bd70955a$var$globalToastQueue = null;
|
|
35
|
+
}
|
|
36
|
+
let $02c59b34bd70955a$var$toastProviders = new Set();
|
|
37
|
+
let $02c59b34bd70955a$var$subscriptions = new Set();
|
|
38
|
+
function $02c59b34bd70955a$var$subscribe(fn) {
|
|
39
|
+
$02c59b34bd70955a$var$subscriptions.add(fn);
|
|
40
|
+
return ()=>$02c59b34bd70955a$var$subscriptions.delete(fn);
|
|
41
|
+
}
|
|
42
|
+
function $02c59b34bd70955a$var$triggerSubscriptions() {
|
|
43
|
+
for (let fn of $02c59b34bd70955a$var$subscriptions)fn();
|
|
44
|
+
}
|
|
45
|
+
function $02c59b34bd70955a$var$getActiveToastContainer() {
|
|
46
|
+
return $02c59b34bd70955a$var$toastProviders.values().next().value;
|
|
47
|
+
}
|
|
48
|
+
function $02c59b34bd70955a$var$useActiveToastContainer() {
|
|
49
|
+
return (0, $5lmgI$useSyncExternalStore)($02c59b34bd70955a$var$subscribe, $02c59b34bd70955a$var$getActiveToastContainer, $02c59b34bd70955a$var$getActiveToastContainer);
|
|
50
|
+
}
|
|
51
|
+
function $02c59b34bd70955a$export$f2815235e76a62b9(props) {
|
|
52
|
+
// Track all toast provider instances in a set.
|
|
53
|
+
// Only the first one will actually render.
|
|
54
|
+
// We use a ref to do this, since it will have a stable identity
|
|
55
|
+
// over the lifetime of the component.
|
|
56
|
+
let ref = (0, $5lmgI$useRef)();
|
|
57
|
+
// eslint-disable-next-line arrow-body-style
|
|
58
|
+
(0, $5lmgI$useEffect)(()=>{
|
|
59
|
+
$02c59b34bd70955a$var$toastProviders.add(ref);
|
|
60
|
+
$02c59b34bd70955a$var$triggerSubscriptions();
|
|
61
|
+
return ()=>{
|
|
62
|
+
// When this toast provider unmounts, reset all animations so that
|
|
63
|
+
// when the new toast provider renders, it is seamless.
|
|
64
|
+
for (let toast of $02c59b34bd70955a$var$getGlobalToastQueue().visibleToasts)toast.animation = null;
|
|
65
|
+
// Remove this toast provider, and call subscriptions.
|
|
66
|
+
// This will cause all other instances to re-render,
|
|
67
|
+
// and the first one to become the new active toast provider.
|
|
68
|
+
$02c59b34bd70955a$var$toastProviders.delete(ref);
|
|
69
|
+
$02c59b34bd70955a$var$triggerSubscriptions();
|
|
70
|
+
};
|
|
71
|
+
}, []);
|
|
72
|
+
// Only render if this is the active toast provider instance, and there are visible toasts.
|
|
73
|
+
let activeToastContainer = $02c59b34bd70955a$var$useActiveToastContainer();
|
|
74
|
+
let state = (0, $5lmgI$useToastQueue)($02c59b34bd70955a$var$getGlobalToastQueue());
|
|
75
|
+
if (ref === activeToastContainer && state.visibleToasts.length > 0) return /*#__PURE__*/ (0, $5lmgI$react).createElement((0, $e46feef4e4c28a4b$export$fb98e3a2a4cd92d7), {
|
|
76
|
+
state: state,
|
|
77
|
+
...props
|
|
78
|
+
}, state.visibleToasts.map((toast)=>/*#__PURE__*/ (0, $5lmgI$react).createElement((0, $7e7a2952509f3a56$export$8d8dc7d5f743331b), {
|
|
79
|
+
key: toast.key,
|
|
80
|
+
toast: toast,
|
|
81
|
+
state: state
|
|
82
|
+
})));
|
|
83
|
+
return null;
|
|
84
|
+
}
|
|
85
|
+
function $02c59b34bd70955a$var$addToast(children, variant, options = {}) {
|
|
86
|
+
// Dispatch a custom event so that toasts can be intercepted and re-targeted, e.g. when inside an iframe.
|
|
87
|
+
if (typeof CustomEvent !== "undefined" && typeof window !== "undefined") {
|
|
88
|
+
let event = new CustomEvent("react-spectrum-toast", {
|
|
89
|
+
cancelable: true,
|
|
90
|
+
bubbles: true,
|
|
91
|
+
detail: {
|
|
92
|
+
children: children,
|
|
93
|
+
variant: variant,
|
|
94
|
+
options: options
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
let shouldContinue = window.dispatchEvent(event);
|
|
98
|
+
if (!shouldContinue) return;
|
|
99
|
+
}
|
|
100
|
+
let value = {
|
|
101
|
+
children: children,
|
|
102
|
+
variant: variant,
|
|
103
|
+
actionLabel: options.actionLabel,
|
|
104
|
+
onAction: options.onAction,
|
|
105
|
+
shouldCloseOnAction: options.shouldCloseOnAction,
|
|
106
|
+
...(0, $5lmgI$filterDOMProps)(options)
|
|
107
|
+
};
|
|
108
|
+
// Minimum time of 5s from https://spectrum.adobe.com/page/toast/#Auto-dismissible
|
|
109
|
+
// Actionable toasts cannot be auto dismissed. That would fail WCAG SC 2.2.1.
|
|
110
|
+
// It is debatable whether non-actionable toasts would also fail.
|
|
111
|
+
let timeout = options.timeout && !options.onAction ? Math.max(options.timeout, 5000) : null;
|
|
112
|
+
let queue = $02c59b34bd70955a$var$getGlobalToastQueue();
|
|
113
|
+
let key = queue.add(value, {
|
|
114
|
+
timeout: timeout,
|
|
115
|
+
onClose: options.onClose
|
|
116
|
+
});
|
|
117
|
+
return ()=>queue.close(key);
|
|
118
|
+
}
|
|
119
|
+
const $02c59b34bd70955a$export$f1f8569633bbbec4 = {
|
|
120
|
+
/** Queues a neutral toast. */ neutral (children, options = {}) {
|
|
121
|
+
return $02c59b34bd70955a$var$addToast(children, "neutral", options);
|
|
122
|
+
},
|
|
123
|
+
/** Queues a positive toast. */ positive (children, options = {}) {
|
|
124
|
+
return $02c59b34bd70955a$var$addToast(children, "positive", options);
|
|
125
|
+
},
|
|
126
|
+
/** Queues a negative toast. */ negative (children, options = {}) {
|
|
127
|
+
return $02c59b34bd70955a$var$addToast(children, "negative", options);
|
|
128
|
+
},
|
|
129
|
+
/** Queues an informational toast. */ info (children, options = {}) {
|
|
130
|
+
return $02c59b34bd70955a$var$addToast(children, "info", options);
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
export {$02c59b34bd70955a$export$320311f0e4ecb3ae as clearToastQueue, $02c59b34bd70955a$export$f2815235e76a62b9 as ToastContainer, $02c59b34bd70955a$export$f1f8569633bbbec4 as ToastQueue};
|
|
136
|
+
//# sourceMappingURL=ToastContainer.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;AAwBD,uFAAuF;AACvF,IAAI,yCAA0D;AAC9D,SAAS;IACP,IAAI,CAAC,wCACH,yCAAmB,IAAI,CAAA,GAAA,iBAAS,EAAE;QAChC,kBAAkB;QAClB,kBAAkB;IACpB;IAGF,OAAO;AACT;AAGO,SAAS;IACd,yCAAmB;AACrB;AAEA,IAAI,uCAAiB,IAAI;AACzB,IAAI,sCAAgB,IAAI;AACxB,SAAS,gCAAU,EAAc;IAC/B,oCAAc,GAAG,CAAC;IAClB,OAAO,IAAM,oCAAc,MAAM,CAAC;AACpC;AAEA,SAAS;IACP,KAAK,IAAI,MAAM,oCACb;AAEJ;AAEA,SAAS;IACP,OAAO,qCAAe,MAAM,GAAG,IAAI,GAAG,KAAK;AAC7C;AAEA,SAAS;IACP,OAAO,CAAA,GAAA,2BAAmB,EAAE,iCAAW,+CAAyB;AAClE;AAMO,SAAS,0CAAe,KAAkC;IAC/D,+CAA+C;IAC/C,2CAA2C;IAC3C,gEAAgE;IAChE,sCAAsC;IACtC,IAAI,MAAM,CAAA,GAAA,aAAK;IAEf,4CAA4C;IAC5C,CAAA,GAAA,gBAAQ,EAAE;QACR,qCAAe,GAAG,CAAC;QACnB;QAEA,OAAO;YACL,kEAAkE;YAClE,uDAAuD;YACvD,KAAK,IAAI,SAAS,4CAAsB,aAAa,CACnD,MAAM,SAAS,GAAG;YAGpB,sDAAsD;YACtD,oDAAoD;YACpD,6DAA6D;YAC7D,qCAAe,MAAM,CAAC;YACtB;QACF;IACF,GAAG,EAAE;IAEL,2FAA2F;IAC3F,IAAI,uBAAuB;IAC3B,IAAI,QAAQ,CAAA,GAAA,oBAAY,EAAE;IAC1B,IAAI,QAAQ,wBAAwB,MAAM,aAAa,CAAC,MAAM,GAAG,GAC/D,qBACE,gCAAC,CAAA,GAAA,yCAAM;QAAE,OAAO;QAAQ,GAAG,KAAK;OAC7B,MAAM,aAAa,CAAC,GAAG,CAAC,CAAC,sBACxB,gCAAC,CAAA,GAAA,yCAAI;YACH,KAAK,MAAM,GAAG;YACd,OAAO;YACP,OAAO;;IAMjB,OAAO;AACT;AAEA,SAAS,+BAAS,QAAgB,EAAE,OAAsC,EAAE,UAAgC,CAAC,CAAC;IAC5G,yGAAyG;IACzG,IAAI,OAAO,gBAAgB,eAAe,OAAO,WAAW,aAAa;QACvE,IAAI,QAAQ,IAAI,YAAY,wBAAwB;YAClD,YAAY;YACZ,SAAS;YACT,QAAQ;0BACN;yBACA;yBACA;YACF;QACF;QAEA,IAAI,iBAAiB,OAAO,aAAa,CAAC;QAC1C,IAAI,CAAC,gBACH;IAEJ;IAEA,IAAI,QAAQ;kBACV;iBACA;QACA,aAAa,QAAQ,WAAW;QAChC,UAAU,QAAQ,QAAQ;QAC1B,qBAAqB,QAAQ,mBAAmB;QAChD,GAAG,CAAA,GAAA,qBAAa,EAAE,QAAQ;IAC5B;IAEA,kFAAkF;IAClF,6EAA6E;IAC7E,iEAAiE;IACjE,IAAI,UAAU,QAAQ,OAAO,IAAI,CAAC,QAAQ,QAAQ,GAAG,KAAK,GAAG,CAAC,QAAQ,OAAO,EAAE,QAAQ;IACvF,IAAI,QAAQ;IACZ,IAAI,MAAM,MAAM,GAAG,CAAC,OAAO;iBAAC;QAAS,SAAS,QAAQ,OAAO;IAAA;IAC7D,OAAO,IAAM,MAAM,KAAK,CAAC;AAC3B;AAEA,MAAM,4CAAqB;IACzB,4BAA4B,GAC5B,SAAQ,QAAgB,EAAE,UAAgC,CAAC,CAAC;QAC1D,OAAO,+BAAS,UAAU,WAAW;IACvC;IACA,6BAA6B,GAC7B,UAAS,QAAgB,EAAE,UAAgC,CAAC,CAAC;QAC3D,OAAO,+BAAS,UAAU,YAAY;IACxC;IACA,6BAA6B,GAC7B,UAAS,QAAgB,EAAE,UAAgC,CAAC,CAAC;QAC3D,OAAO,+BAAS,UAAU,YAAY;IACxC;IACA,mCAAmC,GACnC,MAAK,QAAgB,EAAE,UAAgC,CAAC,CAAC;QACvD,OAAO,+BAAS,UAAU,QAAQ;IACpC;AACF","sources":["packages/@react-spectrum/toast/src/ToastContainer.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaToastRegionProps} from '@react-aria/toast';\nimport {DOMProps} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {ReactElement, useEffect, useRef} from 'react';\nimport {SpectrumToastValue, Toast} from './Toast';\nimport {Toaster} from './Toaster';\nimport {ToastOptions, ToastQueue, useToastQueue} from '@react-stately/toast';\nimport {useSyncExternalStore} from 'use-sync-external-store/shim/index.js';\n\nexport interface SpectrumToastContainerProps extends AriaToastRegionProps {}\n\nexport interface SpectrumToastOptions extends Omit<ToastOptions, 'priority'>, DOMProps {\n /** A label for the action button within the toast. */\n actionLabel?: string,\n /** Handler that is called when the action button is pressed. */\n onAction?: () => void,\n /** Whether the toast should automatically close when an action is performed. */\n shouldCloseOnAction?: boolean\n}\n\ntype CloseFunction = () => void;\n\n// There is a single global toast queue instance for the whole app, initialized lazily.\nlet globalToastQueue: ToastQueue<SpectrumToastValue> | null = null;\nfunction getGlobalToastQueue() {\n if (!globalToastQueue) {\n globalToastQueue = new ToastQueue({\n maxVisibleToasts: Infinity,\n hasExitAnimation: true\n });\n }\n\n return globalToastQueue;\n}\n\n// For testing. Not exported from the package index.\nexport function clearToastQueue() {\n globalToastQueue = null;\n}\n\nlet toastProviders = new Set();\nlet subscriptions = new Set<() => void>();\nfunction subscribe(fn: () => void) {\n subscriptions.add(fn);\n return () => subscriptions.delete(fn);\n}\n\nfunction triggerSubscriptions() {\n for (let fn of subscriptions) {\n fn();\n }\n}\n\nfunction getActiveToastContainer() {\n return toastProviders.values().next().value;\n}\n\nfunction useActiveToastContainer() {\n return useSyncExternalStore(subscribe, getActiveToastContainer, getActiveToastContainer);\n}\n\n/**\n * A ToastContainer renders the queued toasts in an application. It should be placed\n * at the root of the app.\n */\nexport function ToastContainer(props: SpectrumToastContainerProps): ReactElement {\n // Track all toast provider instances in a set.\n // Only the first one will actually render.\n // We use a ref to do this, since it will have a stable identity\n // over the lifetime of the component.\n let ref = useRef();\n\n // eslint-disable-next-line arrow-body-style\n useEffect(() => {\n toastProviders.add(ref);\n triggerSubscriptions();\n\n return () => {\n // When this toast provider unmounts, reset all animations so that\n // when the new toast provider renders, it is seamless.\n for (let toast of getGlobalToastQueue().visibleToasts) {\n toast.animation = null;\n }\n\n // Remove this toast provider, and call subscriptions.\n // This will cause all other instances to re-render,\n // and the first one to become the new active toast provider.\n toastProviders.delete(ref);\n triggerSubscriptions();\n };\n }, []);\n\n // Only render if this is the active toast provider instance, and there are visible toasts.\n let activeToastContainer = useActiveToastContainer();\n let state = useToastQueue(getGlobalToastQueue());\n if (ref === activeToastContainer && state.visibleToasts.length > 0) {\n return (\n <Toaster state={state} {...props}>\n {state.visibleToasts.map((toast) => (\n <Toast\n key={toast.key}\n toast={toast}\n state={state} />\n ))}\n </Toaster>\n );\n }\n\n return null;\n}\n\nfunction addToast(children: string, variant: SpectrumToastValue['variant'], options: SpectrumToastOptions = {}) {\n // Dispatch a custom event so that toasts can be intercepted and re-targeted, e.g. when inside an iframe.\n if (typeof CustomEvent !== 'undefined' && typeof window !== 'undefined') {\n let event = new CustomEvent('react-spectrum-toast', {\n cancelable: true,\n bubbles: true,\n detail: {\n children,\n variant,\n options\n }\n });\n\n let shouldContinue = window.dispatchEvent(event);\n if (!shouldContinue) {\n return;\n }\n }\n\n let value = {\n children,\n variant,\n actionLabel: options.actionLabel,\n onAction: options.onAction,\n shouldCloseOnAction: options.shouldCloseOnAction,\n ...filterDOMProps(options)\n };\n\n // Minimum time of 5s from https://spectrum.adobe.com/page/toast/#Auto-dismissible\n // Actionable toasts cannot be auto dismissed. That would fail WCAG SC 2.2.1.\n // It is debatable whether non-actionable toasts would also fail.\n let timeout = options.timeout && !options.onAction ? Math.max(options.timeout, 5000) : null;\n let queue = getGlobalToastQueue();\n let key = queue.add(value, {timeout, onClose: options.onClose});\n return () => queue.close(key);\n}\n\nconst SpectrumToastQueue = {\n /** Queues a neutral toast. */\n neutral(children: string, options: SpectrumToastOptions = {}): CloseFunction {\n return addToast(children, 'neutral', options);\n },\n /** Queues a positive toast. */\n positive(children: string, options: SpectrumToastOptions = {}): CloseFunction {\n return addToast(children, 'positive', options);\n },\n /** Queues a negative toast. */\n negative(children: string, options: SpectrumToastOptions = {}): CloseFunction {\n return addToast(children, 'negative', options);\n },\n /** Queues an informational toast. */\n info(children: string, options: SpectrumToastOptions = {}): CloseFunction {\n return addToast(children, 'info', options);\n }\n};\n\nexport {SpectrumToastQueue as ToastQueue};\n"],"names":[],"version":3,"file":"ToastContainer.module.js.map"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
require("./toastContainer.b596792c.css");
|
|
2
|
+
var $e20782d0579ed886$exports = require("./toastContainer_css.main.js");
|
|
3
|
+
var $acAHv$reactariatoast = require("@react-aria/toast");
|
|
4
|
+
var $acAHv$reactspectrumutils = require("@react-spectrum/utils");
|
|
5
|
+
var $acAHv$reactariautils = require("@react-aria/utils");
|
|
6
|
+
var $acAHv$reactspectrumprovider = require("@react-spectrum/provider");
|
|
7
|
+
var $acAHv$react = require("react");
|
|
8
|
+
var $acAHv$reactdom = require("react-dom");
|
|
9
|
+
var $acAHv$reactariafocus = require("@react-aria/focus");
|
|
10
|
+
var $acAHv$reactariaoverlays = require("@react-aria/overlays");
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
function $parcel$interopDefault(a) {
|
|
14
|
+
return a && a.__esModule ? a.default : a;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function $parcel$export(e, n, v, s) {
|
|
18
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
$parcel$export(module.exports, "ToasterContext", () => $5b9f2c86c1b1395c$export$9194c0aa0cd7a9ff);
|
|
22
|
+
$parcel$export(module.exports, "Toaster", () => $5b9f2c86c1b1395c$export$fb98e3a2a4cd92d7);
|
|
23
|
+
/*
|
|
24
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
25
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
26
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
27
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
28
|
+
*
|
|
29
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
30
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
31
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
32
|
+
* governing permissions and limitations under the License.
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
const $5b9f2c86c1b1395c$export$9194c0aa0cd7a9ff = /*#__PURE__*/ (0, $acAHv$react.createContext)(false);
|
|
43
|
+
function $5b9f2c86c1b1395c$export$fb98e3a2a4cd92d7(props) {
|
|
44
|
+
let { children: children, state: state } = props;
|
|
45
|
+
let ref = (0, $acAHv$react.useRef)();
|
|
46
|
+
let { regionProps: regionProps } = (0, $acAHv$reactariatoast.useToastRegion)(props, state, ref);
|
|
47
|
+
let { focusProps: focusProps, isFocusVisible: isFocusVisible } = (0, $acAHv$reactariafocus.useFocusRing)();
|
|
48
|
+
let { getContainer: getContainer } = (0, $acAHv$reactariaoverlays.useUNSTABLE_PortalContext)();
|
|
49
|
+
let contents = /*#__PURE__*/ (0, ($parcel$interopDefault($acAHv$react))).createElement((0, $acAHv$reactspectrumprovider.Provider), {
|
|
50
|
+
UNSAFE_style: {
|
|
51
|
+
background: "transparent"
|
|
52
|
+
}
|
|
53
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($acAHv$react))).createElement($5b9f2c86c1b1395c$export$9194c0aa0cd7a9ff.Provider, {
|
|
54
|
+
value: isFocusVisible
|
|
55
|
+
}, /*#__PURE__*/ (0, ($parcel$interopDefault($acAHv$react))).createElement("div", {
|
|
56
|
+
...(0, $acAHv$reactariautils.mergeProps)(regionProps, focusProps),
|
|
57
|
+
ref: ref,
|
|
58
|
+
"data-position": "bottom",
|
|
59
|
+
"data-placement": "center",
|
|
60
|
+
className: (0, $acAHv$reactspectrumutils.classNames)((0, ($parcel$interopDefault($e20782d0579ed886$exports))), "react-spectrum-ToastContainer")
|
|
61
|
+
}, children)));
|
|
62
|
+
var _getContainer;
|
|
63
|
+
return /*#__PURE__*/ (0, ($parcel$interopDefault($acAHv$reactdom))).createPortal(contents, (_getContainer = getContainer === null || getContainer === void 0 ? void 0 : getContainer()) !== null && _getContainer !== void 0 ? _getContainer : document.body);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
//# sourceMappingURL=Toaster.main.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;AAkBM,MAAM,0DAAiB,CAAA,GAAA,0BAAY,EAAE;AAErC,SAAS,0CAAQ,KAA0B;IAChD,IAAI,YACF,QAAQ,SACR,KAAK,EACN,GAAG;IAEJ,IAAI,MAAM,CAAA,GAAA,mBAAK;IACf,IAAI,eAAC,WAAW,EAAC,GAAG,CAAA,GAAA,oCAAa,EAAE,OAAO,OAAO;IACjD,IAAI,cAAC,UAAU,kBAAE,cAAc,EAAC,GAAG,CAAA,GAAA,kCAAW;IAC9C,IAAI,gBAAC,YAAY,EAAC,GAAG,CAAA,GAAA,kDAAwB;IAE7C,IAAI,yBACF,0DAAC,CAAA,GAAA,qCAAO;QAAE,cAAc;YAAC,YAAY;QAAa;qBAChD,0DAAC,0CAAe,QAAQ;QAAC,OAAO;qBAC9B,0DAAC;QACE,GAAG,CAAA,GAAA,gCAAS,EAAE,aAAa,WAAW;QACvC,KAAK;QACL,iBAAc;QACd,kBAAe;QACf,WAAW,CAAA,GAAA,oCAAS,EAClB,CAAA,GAAA,mDAAmB,GACnB;OAED;QAM8B;IAAvC,qBAAO,CAAA,GAAA,yCAAO,EAAE,YAAY,CAAC,UAAU,CAAA,gBAAA,yBAAA,mCAAA,4BAAA,2BAAA,gBAAoB,SAAS,IAAI;AAC1E","sources":["packages/@react-spectrum/toast/src/Toaster.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaToastRegionProps, useToastRegion} from '@react-aria/toast';\nimport {classNames} from '@react-spectrum/utils';\nimport {mergeProps} from '@react-aria/utils';\nimport {Provider} from '@react-spectrum/provider';\nimport React, {createContext, ReactElement, ReactNode, useRef} from 'react';\nimport ReactDOM from 'react-dom';\nimport toastContainerStyles from './toastContainer.css';\nimport {ToastState} from '@react-stately/toast';\nimport {useFocusRing} from '@react-aria/focus';\nimport {useUNSTABLE_PortalContext} from '@react-aria/overlays';\n\ninterface ToastContainerProps extends AriaToastRegionProps {\n children: ReactNode,\n state: ToastState<unknown>\n}\n\nexport const ToasterContext = createContext(false);\n\nexport function Toaster(props: ToastContainerProps): ReactElement {\n let {\n children,\n state\n } = props;\n\n let ref = useRef();\n let {regionProps} = useToastRegion(props, state, ref);\n let {focusProps, isFocusVisible} = useFocusRing();\n let {getContainer} = useUNSTABLE_PortalContext();\n\n let contents = (\n <Provider UNSAFE_style={{background: 'transparent'}}>\n <ToasterContext.Provider value={isFocusVisible}>\n <div\n {...mergeProps(regionProps, focusProps)}\n ref={ref}\n data-position=\"bottom\"\n data-placement=\"center\"\n className={classNames(\n toastContainerStyles,\n 'react-spectrum-ToastContainer'\n )}>\n {children}\n </div>\n </ToasterContext.Provider>\n </Provider>\n );\n\n return ReactDOM.createPortal(contents, getContainer?.() ?? document.body);\n}\n"],"names":[],"version":3,"file":"Toaster.main.js.map"}
|
package/dist/Toaster.mjs
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import "./toastContainer.b596792c.css";
|
|
2
|
+
import $7Pdp8$toastContainer_cssmodulejs from "./toastContainer_css.mjs";
|
|
3
|
+
import {useToastRegion as $7Pdp8$useToastRegion} from "@react-aria/toast";
|
|
4
|
+
import {classNames as $7Pdp8$classNames} from "@react-spectrum/utils";
|
|
5
|
+
import {mergeProps as $7Pdp8$mergeProps} from "@react-aria/utils";
|
|
6
|
+
import {Provider as $7Pdp8$Provider} from "@react-spectrum/provider";
|
|
7
|
+
import $7Pdp8$react, {createContext as $7Pdp8$createContext, useRef as $7Pdp8$useRef} from "react";
|
|
8
|
+
import $7Pdp8$reactdom from "react-dom";
|
|
9
|
+
import {useFocusRing as $7Pdp8$useFocusRing} from "@react-aria/focus";
|
|
10
|
+
import {useUNSTABLE_PortalContext as $7Pdp8$useUNSTABLE_PortalContext} from "@react-aria/overlays";
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
function $parcel$interopDefault(a) {
|
|
14
|
+
return a && a.__esModule ? a.default : a;
|
|
15
|
+
}
|
|
16
|
+
/*
|
|
17
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
18
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
19
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
20
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
21
|
+
*
|
|
22
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
23
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
24
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
25
|
+
* governing permissions and limitations under the License.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
const $e46feef4e4c28a4b$export$9194c0aa0cd7a9ff = /*#__PURE__*/ (0, $7Pdp8$createContext)(false);
|
|
36
|
+
function $e46feef4e4c28a4b$export$fb98e3a2a4cd92d7(props) {
|
|
37
|
+
let { children: children, state: state } = props;
|
|
38
|
+
let ref = (0, $7Pdp8$useRef)();
|
|
39
|
+
let { regionProps: regionProps } = (0, $7Pdp8$useToastRegion)(props, state, ref);
|
|
40
|
+
let { focusProps: focusProps, isFocusVisible: isFocusVisible } = (0, $7Pdp8$useFocusRing)();
|
|
41
|
+
let { getContainer: getContainer } = (0, $7Pdp8$useUNSTABLE_PortalContext)();
|
|
42
|
+
let contents = /*#__PURE__*/ (0, $7Pdp8$react).createElement((0, $7Pdp8$Provider), {
|
|
43
|
+
UNSAFE_style: {
|
|
44
|
+
background: "transparent"
|
|
45
|
+
}
|
|
46
|
+
}, /*#__PURE__*/ (0, $7Pdp8$react).createElement($e46feef4e4c28a4b$export$9194c0aa0cd7a9ff.Provider, {
|
|
47
|
+
value: isFocusVisible
|
|
48
|
+
}, /*#__PURE__*/ (0, $7Pdp8$react).createElement("div", {
|
|
49
|
+
...(0, $7Pdp8$mergeProps)(regionProps, focusProps),
|
|
50
|
+
ref: ref,
|
|
51
|
+
"data-position": "bottom",
|
|
52
|
+
"data-placement": "center",
|
|
53
|
+
className: (0, $7Pdp8$classNames)((0, ($parcel$interopDefault($7Pdp8$toastContainer_cssmodulejs))), "react-spectrum-ToastContainer")
|
|
54
|
+
}, children)));
|
|
55
|
+
var _getContainer;
|
|
56
|
+
return /*#__PURE__*/ (0, $7Pdp8$reactdom).createPortal(contents, (_getContainer = getContainer === null || getContainer === void 0 ? void 0 : getContainer()) !== null && _getContainer !== void 0 ? _getContainer : document.body);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
export {$e46feef4e4c28a4b$export$9194c0aa0cd7a9ff as ToasterContext, $e46feef4e4c28a4b$export$fb98e3a2a4cd92d7 as Toaster};
|
|
61
|
+
//# sourceMappingURL=Toaster.mjs.map
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import "./toastContainer.b596792c.css";
|
|
2
|
+
import $7Pdp8$toastContainer_cssmodulejs from "./toastContainer_css.module.js";
|
|
3
|
+
import {useToastRegion as $7Pdp8$useToastRegion} from "@react-aria/toast";
|
|
4
|
+
import {classNames as $7Pdp8$classNames} from "@react-spectrum/utils";
|
|
5
|
+
import {mergeProps as $7Pdp8$mergeProps} from "@react-aria/utils";
|
|
6
|
+
import {Provider as $7Pdp8$Provider} from "@react-spectrum/provider";
|
|
7
|
+
import $7Pdp8$react, {createContext as $7Pdp8$createContext, useRef as $7Pdp8$useRef} from "react";
|
|
8
|
+
import $7Pdp8$reactdom from "react-dom";
|
|
9
|
+
import {useFocusRing as $7Pdp8$useFocusRing} from "@react-aria/focus";
|
|
10
|
+
import {useUNSTABLE_PortalContext as $7Pdp8$useUNSTABLE_PortalContext} from "@react-aria/overlays";
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
function $parcel$interopDefault(a) {
|
|
14
|
+
return a && a.__esModule ? a.default : a;
|
|
15
|
+
}
|
|
16
|
+
/*
|
|
17
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
18
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
19
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
20
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
21
|
+
*
|
|
22
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
23
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
24
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
25
|
+
* governing permissions and limitations under the License.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
const $e46feef4e4c28a4b$export$9194c0aa0cd7a9ff = /*#__PURE__*/ (0, $7Pdp8$createContext)(false);
|
|
36
|
+
function $e46feef4e4c28a4b$export$fb98e3a2a4cd92d7(props) {
|
|
37
|
+
let { children: children, state: state } = props;
|
|
38
|
+
let ref = (0, $7Pdp8$useRef)();
|
|
39
|
+
let { regionProps: regionProps } = (0, $7Pdp8$useToastRegion)(props, state, ref);
|
|
40
|
+
let { focusProps: focusProps, isFocusVisible: isFocusVisible } = (0, $7Pdp8$useFocusRing)();
|
|
41
|
+
let { getContainer: getContainer } = (0, $7Pdp8$useUNSTABLE_PortalContext)();
|
|
42
|
+
let contents = /*#__PURE__*/ (0, $7Pdp8$react).createElement((0, $7Pdp8$Provider), {
|
|
43
|
+
UNSAFE_style: {
|
|
44
|
+
background: "transparent"
|
|
45
|
+
}
|
|
46
|
+
}, /*#__PURE__*/ (0, $7Pdp8$react).createElement($e46feef4e4c28a4b$export$9194c0aa0cd7a9ff.Provider, {
|
|
47
|
+
value: isFocusVisible
|
|
48
|
+
}, /*#__PURE__*/ (0, $7Pdp8$react).createElement("div", {
|
|
49
|
+
...(0, $7Pdp8$mergeProps)(regionProps, focusProps),
|
|
50
|
+
ref: ref,
|
|
51
|
+
"data-position": "bottom",
|
|
52
|
+
"data-placement": "center",
|
|
53
|
+
className: (0, $7Pdp8$classNames)((0, ($parcel$interopDefault($7Pdp8$toastContainer_cssmodulejs))), "react-spectrum-ToastContainer")
|
|
54
|
+
}, children)));
|
|
55
|
+
var _getContainer;
|
|
56
|
+
return /*#__PURE__*/ (0, $7Pdp8$reactdom).createPortal(contents, (_getContainer = getContainer === null || getContainer === void 0 ? void 0 : getContainer()) !== null && _getContainer !== void 0 ? _getContainer : document.body);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
export {$e46feef4e4c28a4b$export$9194c0aa0cd7a9ff as ToasterContext, $e46feef4e4c28a4b$export$fb98e3a2a4cd92d7 as Toaster};
|
|
61
|
+
//# sourceMappingURL=Toaster.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;AAkBM,MAAM,0DAAiB,CAAA,GAAA,oBAAY,EAAE;AAErC,SAAS,0CAAQ,KAA0B;IAChD,IAAI,YACF,QAAQ,SACR,KAAK,EACN,GAAG;IAEJ,IAAI,MAAM,CAAA,GAAA,aAAK;IACf,IAAI,eAAC,WAAW,EAAC,GAAG,CAAA,GAAA,qBAAa,EAAE,OAAO,OAAO;IACjD,IAAI,cAAC,UAAU,kBAAE,cAAc,EAAC,GAAG,CAAA,GAAA,mBAAW;IAC9C,IAAI,gBAAC,YAAY,EAAC,GAAG,CAAA,GAAA,gCAAwB;IAE7C,IAAI,yBACF,gCAAC,CAAA,GAAA,eAAO;QAAE,cAAc;YAAC,YAAY;QAAa;qBAChD,gCAAC,0CAAe,QAAQ;QAAC,OAAO;qBAC9B,gCAAC;QACE,GAAG,CAAA,GAAA,iBAAS,EAAE,aAAa,WAAW;QACvC,KAAK;QACL,iBAAc;QACd,kBAAe;QACf,WAAW,CAAA,GAAA,iBAAS,EAClB,CAAA,GAAA,2DAAmB,GACnB;OAED;QAM8B;IAAvC,qBAAO,CAAA,GAAA,eAAO,EAAE,YAAY,CAAC,UAAU,CAAA,gBAAA,yBAAA,mCAAA,4BAAA,2BAAA,gBAAoB,SAAS,IAAI;AAC1E","sources":["packages/@react-spectrum/toast/src/Toaster.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaToastRegionProps, useToastRegion} from '@react-aria/toast';\nimport {classNames} from '@react-spectrum/utils';\nimport {mergeProps} from '@react-aria/utils';\nimport {Provider} from '@react-spectrum/provider';\nimport React, {createContext, ReactElement, ReactNode, useRef} from 'react';\nimport ReactDOM from 'react-dom';\nimport toastContainerStyles from './toastContainer.css';\nimport {ToastState} from '@react-stately/toast';\nimport {useFocusRing} from '@react-aria/focus';\nimport {useUNSTABLE_PortalContext} from '@react-aria/overlays';\n\ninterface ToastContainerProps extends AriaToastRegionProps {\n children: ReactNode,\n state: ToastState<unknown>\n}\n\nexport const ToasterContext = createContext(false);\n\nexport function Toaster(props: ToastContainerProps): ReactElement {\n let {\n children,\n state\n } = props;\n\n let ref = useRef();\n let {regionProps} = useToastRegion(props, state, ref);\n let {focusProps, isFocusVisible} = useFocusRing();\n let {getContainer} = useUNSTABLE_PortalContext();\n\n let contents = (\n <Provider UNSAFE_style={{background: 'transparent'}}>\n <ToasterContext.Provider value={isFocusVisible}>\n <div\n {...mergeProps(regionProps, focusProps)}\n ref={ref}\n data-position=\"bottom\"\n data-placement=\"center\"\n className={classNames(\n toastContainerStyles,\n 'react-spectrum-ToastContainer'\n )}>\n {children}\n </div>\n </ToasterContext.Provider>\n </Provider>\n );\n\n return ReactDOM.createPortal(contents, getContainer?.() ?? document.body);\n}\n"],"names":[],"version":3,"file":"Toaster.module.js.map"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,QAAQ,CAAC,iDAAO,CAAC;IACnC,YAAY,CAAC,qBAAG,CAAC;IACjB,YAAY,CAAC,kDAAQ,CAAC;AACxB","sources":["packages/@react-spectrum/toast/intl/ar-AE.json"],"sourcesContent":["{\n \"info\": \"معلومات\",\n \"negative\": \"خطأ\",\n \"positive\": \"تم بنجاح\"\n}\n"],"names":[],"version":3,"file":"ar-AE.main.js.map"}
|
package/dist/ar-AE.mjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var $4ef3586572b5c0bd$exports = {};
|
|
2
|
+
$4ef3586572b5c0bd$exports = {
|
|
3
|
+
"info": `\u{645}\u{639}\u{644}\u{648}\u{645}\u{627}\u{62A}`,
|
|
4
|
+
"negative": `\u{62E}\u{637}\u{623}`,
|
|
5
|
+
"positive": `\u{62A}\u{645} \u{628}\u{646}\u{62C}\u{627}\u{62D}`
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export {$4ef3586572b5c0bd$exports as default};
|
|
10
|
+
//# sourceMappingURL=ar-AE.mjs.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var $4ef3586572b5c0bd$exports = {};
|
|
2
|
+
$4ef3586572b5c0bd$exports = {
|
|
3
|
+
"info": `\u{645}\u{639}\u{644}\u{648}\u{645}\u{627}\u{62A}`,
|
|
4
|
+
"negative": `\u{62E}\u{637}\u{623}`,
|
|
5
|
+
"positive": `\u{62A}\u{645} \u{628}\u{646}\u{62C}\u{627}\u{62D}`
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export {$4ef3586572b5c0bd$exports as default};
|
|
10
|
+
//# sourceMappingURL=ar-AE.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,QAAQ,CAAC,iDAAO,CAAC;IACnC,YAAY,CAAC,qBAAG,CAAC;IACjB,YAAY,CAAC,kDAAQ,CAAC;AACxB","sources":["packages/@react-spectrum/toast/intl/ar-AE.json"],"sourcesContent":["{\n \"info\": \"معلومات\",\n \"negative\": \"خطأ\",\n \"positive\": \"تم بنجاح\"\n}\n"],"names":[],"version":3,"file":"ar-AE.module.js.map"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
"info": `\u{418}\u{43D}\u{444}\u{43E}\u{440}\u{43C}\u{430}\u{446}\u{438}\u{44F}`,
|
|
3
|
+
"negative": `\u{413}\u{440}\u{435}\u{448}\u{43A}\u{430}`,
|
|
4
|
+
"positive": `\u{423}\u{441}\u{43F}\u{435}\u{448}\u{43D}\u{43E}`
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=bg-BG.main.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,QAAQ,CAAC,sEAAU,CAAC;IACtC,YAAY,CAAC,0CAAM,CAAC;IACpB,YAAY,CAAC,iDAAO,CAAC;AACvB","sources":["packages/@react-spectrum/toast/intl/bg-BG.json"],"sourcesContent":["{\n \"info\": \"Информация\",\n \"negative\": \"Грешка\",\n \"positive\": \"Успешно\"\n}\n"],"names":[],"version":3,"file":"bg-BG.main.js.map"}
|
package/dist/bg-BG.mjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var $9294a3bc0be7c803$exports = {};
|
|
2
|
+
$9294a3bc0be7c803$exports = {
|
|
3
|
+
"info": `\u{418}\u{43D}\u{444}\u{43E}\u{440}\u{43C}\u{430}\u{446}\u{438}\u{44F}`,
|
|
4
|
+
"negative": `\u{413}\u{440}\u{435}\u{448}\u{43A}\u{430}`,
|
|
5
|
+
"positive": `\u{423}\u{441}\u{43F}\u{435}\u{448}\u{43D}\u{43E}`
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export {$9294a3bc0be7c803$exports as default};
|
|
10
|
+
//# sourceMappingURL=bg-BG.mjs.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var $9294a3bc0be7c803$exports = {};
|
|
2
|
+
$9294a3bc0be7c803$exports = {
|
|
3
|
+
"info": `\u{418}\u{43D}\u{444}\u{43E}\u{440}\u{43C}\u{430}\u{446}\u{438}\u{44F}`,
|
|
4
|
+
"negative": `\u{413}\u{440}\u{435}\u{448}\u{43A}\u{430}`,
|
|
5
|
+
"positive": `\u{423}\u{441}\u{43F}\u{435}\u{448}\u{43D}\u{43E}`
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export {$9294a3bc0be7c803$exports as default};
|
|
10
|
+
//# sourceMappingURL=bg-BG.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,QAAQ,CAAC,sEAAU,CAAC;IACtC,YAAY,CAAC,0CAAM,CAAC;IACpB,YAAY,CAAC,iDAAO,CAAC;AACvB","sources":["packages/@react-spectrum/toast/intl/bg-BG.json"],"sourcesContent":["{\n \"info\": \"Информация\",\n \"negative\": \"Грешка\",\n \"positive\": \"Успешно\"\n}\n"],"names":[],"version":3,"file":"bg-BG.module.js.map"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,QAAQ,CAAC,SAAS,CAAC;IACrC,YAAY,CAAC,KAAK,CAAC;IACnB,YAAY,CAAC,eAAM,CAAC;AACtB","sources":["packages/@react-spectrum/toast/intl/cs-CZ.json"],"sourcesContent":["{\n \"info\": \"Informace\",\n \"negative\": \"Chyba\",\n \"positive\": \"Úspěch\"\n}\n"],"names":[],"version":3,"file":"cs-CZ.main.js.map"}
|
package/dist/cs-CZ.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";AAAA,4BAAiB;IAAG,QAAQ,CAAC,SAAS,CAAC;IACrC,YAAY,CAAC,KAAK,CAAC;IACnB,YAAY,CAAC,eAAM,CAAC;AACtB","sources":["packages/@react-spectrum/toast/intl/cs-CZ.json"],"sourcesContent":["{\n \"info\": \"Informace\",\n \"negative\": \"Chyba\",\n \"positive\": \"Úspěch\"\n}\n"],"names":[],"version":3,"file":"cs-CZ.module.js.map"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAAA,iBAAiB;IAAG,QAAQ,CAAC,IAAI,CAAC;IAChC,YAAY,CAAC,IAAI,CAAC;IAClB,YAAY,CAAC,WAAQ,CAAC;AACxB","sources":["packages/@react-spectrum/toast/intl/da-DK.json"],"sourcesContent":["{\n \"info\": \"Info\",\n \"negative\": \"Fejl\",\n \"positive\": \"Fuldført\"\n}\n"],"names":[],"version":3,"file":"da-DK.main.js.map"}
|