@kubohiroya/turbowarp-extension-security-dialog 0.8.6 → 0.8.8
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/build-info.json +2 -2
- package/dist/react.cjs +6 -1
- package/dist/react.mjs +6 -1
- package/package.json +1 -1
- package/styles.css +6 -0
- package/webpack4.css +6 -0
package/dist/build-info.json
CHANGED
package/dist/react.cjs
CHANGED
|
@@ -826,6 +826,11 @@ var ExtensionReview = class extends import_react3.default.PureComponent {
|
|
|
826
826
|
const t = this.t.bind(this);
|
|
827
827
|
const selection = this.selection();
|
|
828
828
|
const allRequired = this.allRequired();
|
|
829
|
+
const rowExecutions = entries.filter((entry) => !isTrusted(entry)).map((entry) => {
|
|
830
|
+
var _a;
|
|
831
|
+
return (_a = this.state.decisions.get(entry.key)) == null ? void 0 : _a.execution;
|
|
832
|
+
});
|
|
833
|
+
const bulkExecution = rowExecutions.every((execution) => execution === rowExecutions[0]) ? rowExecutions[0] : void 0;
|
|
829
834
|
const anyUnsandboxed = [...this.included()].some((key) => this.state.decisions.get(key).execution === "unsandboxed");
|
|
830
835
|
const bulkLoadings = loadingModes.filter((mode2) => entries.some((entry) => loadingChoices(entry).includes(mode2)));
|
|
831
836
|
const content = /* @__PURE__ */ import_react3.default.createElement(import_react3.default.Fragment, null, /* @__PURE__ */ import_react3.default.createElement("p", { className: "twextsec-intro" }, t(mode === "add" ? "addIntro" : allRequired ? "allRequiredIntro" : "openIntro")), failure && /* @__PURE__ */ import_react3.default.createElement(
|
|
@@ -840,7 +845,7 @@ var ExtensionReview = class extends import_react3.default.PureComponent {
|
|
|
840
845
|
{
|
|
841
846
|
name: "execution-all",
|
|
842
847
|
label: t("executionBulk"),
|
|
843
|
-
value:
|
|
848
|
+
value: bulkExecution,
|
|
844
849
|
options: mode === "add" ? ["sandboxed", "unsandboxed"] : ["deny", "sandboxed", "unsandboxed"],
|
|
845
850
|
onChange: this.handleBulkExecution,
|
|
846
851
|
t
|
package/dist/react.mjs
CHANGED
|
@@ -792,6 +792,11 @@ var ExtensionReview = class extends React3.PureComponent {
|
|
|
792
792
|
const t = this.t.bind(this);
|
|
793
793
|
const selection = this.selection();
|
|
794
794
|
const allRequired = this.allRequired();
|
|
795
|
+
const rowExecutions = entries.filter((entry) => !isTrusted(entry)).map((entry) => {
|
|
796
|
+
var _a;
|
|
797
|
+
return (_a = this.state.decisions.get(entry.key)) == null ? void 0 : _a.execution;
|
|
798
|
+
});
|
|
799
|
+
const bulkExecution = rowExecutions.every((execution) => execution === rowExecutions[0]) ? rowExecutions[0] : void 0;
|
|
795
800
|
const anyUnsandboxed = [...this.included()].some((key) => this.state.decisions.get(key).execution === "unsandboxed");
|
|
796
801
|
const bulkLoadings = loadingModes.filter((mode2) => entries.some((entry) => loadingChoices(entry).includes(mode2)));
|
|
797
802
|
const content = /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement("p", { className: "twextsec-intro" }, t(mode === "add" ? "addIntro" : allRequired ? "allRequiredIntro" : "openIntro")), failure && /* @__PURE__ */ React3.createElement(
|
|
@@ -806,7 +811,7 @@ var ExtensionReview = class extends React3.PureComponent {
|
|
|
806
811
|
{
|
|
807
812
|
name: "execution-all",
|
|
808
813
|
label: t("executionBulk"),
|
|
809
|
-
value:
|
|
814
|
+
value: bulkExecution,
|
|
810
815
|
options: mode === "add" ? ["sandboxed", "unsandboxed"] : ["deny", "sandboxed", "unsandboxed"],
|
|
811
816
|
onChange: this.handleBulkExecution,
|
|
812
817
|
t
|
package/package.json
CHANGED
package/styles.css
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
.twextsec-review { box-sizing: border-box; color: var(--ui-modal-foreground, #263145); font: inherit; }
|
|
2
|
+
/* Cap the host overlay when the editor is wider than the mobile viewport. */
|
|
3
|
+
[class~="ReactModalPortal"] > :has(> [role="dialog"] .twextsec-review[data-mode="open"]) {
|
|
4
|
+
max-width: 100vw;
|
|
5
|
+
max-height: 100vh;
|
|
6
|
+
}
|
|
2
7
|
/* Only the catalog content scrolls; its actions keep their place in the host's available height. */
|
|
3
8
|
.twextsec-review[data-mode="add"] { position: relative; display: grid;
|
|
4
9
|
grid-template-rows: minmax(0, 1fr) auto; height: 100%; min-height: 0; }
|
|
@@ -9,6 +14,7 @@
|
|
|
9
14
|
.twextsec-review a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
|
|
10
15
|
.twextsec-intro { margin: 0 0 12px; }
|
|
11
16
|
.twextsec-bulk { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: flex-start; padding: 12px; border: 1px solid var(--ui-black-transparent, #0000001a); border-radius: 8px; }
|
|
17
|
+
.twextsec-bulk > .twextsec-choice:has(input[name="execution-all"]) { background-color: #8080801a; }
|
|
12
18
|
.twextsec-note { flex: 1 1 100%; margin: 0; font-size: .9em; opacity: .8; }
|
|
13
19
|
/* Keep the notice outside the list's flow and pair its colors across host themes. */
|
|
14
20
|
.twextsec-warning { position: fixed; z-index: 1000; left: 16px; right: 16px;
|
package/webpack4.css
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
:global(.twextsec-review) { box-sizing: border-box; color: var(--ui-modal-foreground, #263145); font: inherit; }
|
|
2
|
+
/* Cap the host overlay when the editor is wider than the mobile viewport. */
|
|
3
|
+
[class~="ReactModalPortal"] > :has(> [role="dialog"] :global(.twextsec-review)[data-mode="open"]) {
|
|
4
|
+
max-width: 100vw;
|
|
5
|
+
max-height: 100vh;
|
|
6
|
+
}
|
|
2
7
|
/* Only the catalog content scrolls; its actions keep their place in the host's available height. */
|
|
3
8
|
:global(.twextsec-review)[data-mode="add"] { position: relative; display: grid;
|
|
4
9
|
grid-template-rows: minmax(0, 1fr) auto; height: 100%; min-height: 0; }
|
|
@@ -9,6 +14,7 @@
|
|
|
9
14
|
:global(.twextsec-review) a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
|
|
10
15
|
:global(.twextsec-intro) { margin: 0 0 12px; }
|
|
11
16
|
:global(.twextsec-bulk) { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: flex-start; padding: 12px; border: 1px solid var(--ui-black-transparent, #0000001a); border-radius: 8px; }
|
|
17
|
+
:global(.twextsec-bulk) > :global(.twextsec-choice):has(input[name="execution-all"]) { background-color: #8080801a; }
|
|
12
18
|
:global(.twextsec-note) { flex: 1 1 100%; margin: 0; font-size: .9em; opacity: .8; }
|
|
13
19
|
/* Keep the notice outside the list's flow and pair its colors across host themes. */
|
|
14
20
|
:global(.twextsec-warning) { position: fixed; z-index: 1000; left: 16px; right: 16px;
|