quick-bug-reporter-react 1.3.0 → 1.3.2
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/index.cjs +9 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1854,7 +1854,10 @@ function RegionSelector({ onSelect, onCancel }) {
|
|
|
1854
1854
|
}
|
|
1855
1855
|
var BugReporterContext = createContext(null);
|
|
1856
1856
|
function getProviderLabel(provider) {
|
|
1857
|
-
|
|
1857
|
+
if (provider === "linear") return "Linear";
|
|
1858
|
+
if (provider === "jira") return "Jira";
|
|
1859
|
+
if (provider === "cloud") return "QuickBugs Cloud";
|
|
1860
|
+
return provider;
|
|
1858
1861
|
}
|
|
1859
1862
|
function BugReporterProvider({
|
|
1860
1863
|
children,
|
|
@@ -1872,7 +1875,7 @@ function BugReporterProvider({
|
|
|
1872
1875
|
const [error, setError] = useState(null);
|
|
1873
1876
|
const [success, setSuccess] = useState(null);
|
|
1874
1877
|
const [autoStopNotice, setAutoStopNotice] = useState(null);
|
|
1875
|
-
const [selectedProvider, setSelectedProvider] = useState(null);
|
|
1878
|
+
const [selectedProvider, setSelectedProvider] = useState(defaultProvider ?? null);
|
|
1876
1879
|
const [draftMode, setDraftMode] = useState(null);
|
|
1877
1880
|
const [videoBlob, setVideoBlob] = useState(null);
|
|
1878
1881
|
const [videoPreviewUrl, setVideoPreviewUrl] = useState(null);
|
|
@@ -3047,7 +3050,10 @@ function formatElapsed2(ms) {
|
|
|
3047
3050
|
return `${minutes}:${seconds}`;
|
|
3048
3051
|
}
|
|
3049
3052
|
function providerLabel(provider) {
|
|
3050
|
-
|
|
3053
|
+
if (provider === "linear") return "Linear";
|
|
3054
|
+
if (provider === "jira") return "Jira";
|
|
3055
|
+
if (provider === "cloud") return "QuickBugs Cloud";
|
|
3056
|
+
return provider;
|
|
3051
3057
|
}
|
|
3052
3058
|
function BugReporterModal() {
|
|
3053
3059
|
const {
|