quick-bug-reporter-react 1.3.0 → 1.3.1
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.cjs
CHANGED
|
@@ -1860,7 +1860,10 @@ function RegionSelector({ onSelect, onCancel }) {
|
|
|
1860
1860
|
}
|
|
1861
1861
|
var BugReporterContext = react.createContext(null);
|
|
1862
1862
|
function getProviderLabel(provider) {
|
|
1863
|
-
|
|
1863
|
+
if (provider === "linear") return "Linear";
|
|
1864
|
+
if (provider === "jira") return "Jira";
|
|
1865
|
+
if (provider === "cloud") return "QuickBugs Cloud";
|
|
1866
|
+
return provider;
|
|
1864
1867
|
}
|
|
1865
1868
|
function BugReporterProvider({
|
|
1866
1869
|
children,
|
|
@@ -1878,7 +1881,7 @@ function BugReporterProvider({
|
|
|
1878
1881
|
const [error, setError] = react.useState(null);
|
|
1879
1882
|
const [success, setSuccess] = react.useState(null);
|
|
1880
1883
|
const [autoStopNotice, setAutoStopNotice] = react.useState(null);
|
|
1881
|
-
const [selectedProvider, setSelectedProvider] = react.useState(null);
|
|
1884
|
+
const [selectedProvider, setSelectedProvider] = react.useState(defaultProvider ?? null);
|
|
1882
1885
|
const [draftMode, setDraftMode] = react.useState(null);
|
|
1883
1886
|
const [videoBlob, setVideoBlob] = react.useState(null);
|
|
1884
1887
|
const [videoPreviewUrl, setVideoPreviewUrl] = react.useState(null);
|
|
@@ -3053,7 +3056,10 @@ function formatElapsed2(ms) {
|
|
|
3053
3056
|
return `${minutes}:${seconds}`;
|
|
3054
3057
|
}
|
|
3055
3058
|
function providerLabel(provider) {
|
|
3056
|
-
|
|
3059
|
+
if (provider === "linear") return "Linear";
|
|
3060
|
+
if (provider === "jira") return "Jira";
|
|
3061
|
+
if (provider === "cloud") return "QuickBugs Cloud";
|
|
3062
|
+
return provider;
|
|
3057
3063
|
}
|
|
3058
3064
|
function BugReporterModal() {
|
|
3059
3065
|
const {
|