@campfire-interactive/shell-header 0.13.0 → 0.13.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.d.ts +2 -2
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -134,8 +134,8 @@ interface AboutInfo {
|
|
|
134
134
|
interface BugReportContext {
|
|
135
135
|
/** Reporting app slug, e.g. "omsf". */
|
|
136
136
|
appId: string;
|
|
137
|
-
/** Environment label, e.g. "dev".
|
|
138
|
-
*
|
|
137
|
+
/** Environment label, e.g. "dev" / "prod". Reports land in the same
|
|
138
|
+
* environment's DMS and surface on its /issues page. */
|
|
139
139
|
environment: string;
|
|
140
140
|
/** Defaults to window.location.href at submit time. */
|
|
141
141
|
url?: string;
|
package/dist/index.js
CHANGED
|
@@ -1114,7 +1114,7 @@ function BugReportModal({ config, initialScreenshot, onClose }) {
|
|
|
1114
1114
|
onFocus: (e) => e.stopPropagation(),
|
|
1115
1115
|
children: /* @__PURE__ */ jsxs6("div", { className: `cfi-sh-bug-card${view === "editor" ? " cfi-sh-bug-card-wide" : ""}`, children: [
|
|
1116
1116
|
/* @__PURE__ */ jsxs6("div", { className: "cfi-sh-bug-header", children: [
|
|
1117
|
-
/* @__PURE__ */ jsx6("span", { className: "cfi-sh-bug-title", children: "Report an issue" }),
|
|
1117
|
+
/* @__PURE__ */ jsx6("span", { className: "cfi-sh-bug-title", children: view === "editor" ? "New Issue - Attach Screenshot (Optional)" : "Report an issue" }),
|
|
1118
1118
|
/* @__PURE__ */ jsx6("span", { className: "cfi-sh-bug-env", children: config.context.environment }),
|
|
1119
1119
|
/* @__PURE__ */ jsx6("button", { className: "cfi-sh-bug-close", type: "button", onClick: closeUnlessBusy, "aria-label": "Close", children: "\xD7" })
|
|
1120
1120
|
] }),
|
|
@@ -1142,6 +1142,7 @@ function BugReportModal({ config, initialScreenshot, onClose }) {
|
|
|
1142
1142
|
] }),
|
|
1143
1143
|
/* @__PURE__ */ jsx6("span", { className: "cfi-sh-bug-hint", children: mode === "crop" ? "Drag to crop to a region" : "Drag to black out sensitive data" }),
|
|
1144
1144
|
/* @__PURE__ */ jsxs6("div", { className: "cfi-sh-bug-modes", children: [
|
|
1145
|
+
/* @__PURE__ */ jsx6("button", { type: "button", className: "cfi-sh-bug-btn", onClick: () => setView("form"), children: "Skip" }),
|
|
1145
1146
|
/* @__PURE__ */ jsx6("button", { type: "button", className: "cfi-sh-bug-btn", onClick: handleEditorReset, children: "Reset" }),
|
|
1146
1147
|
/* @__PURE__ */ jsx6("button", { type: "button", className: "cfi-sh-bug-btn cfi-sh-bug-btn-primary", onClick: handleEditorDone, children: "Done" })
|
|
1147
1148
|
] })
|