@kubohiroya/turbowarp-extension-security-dialog 0.4.0 → 0.5.0
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/README.ja.md +2 -2
- package/README.md +2 -2
- package/dist/index.cjs +9 -9
- package/dist/index.mjs +9 -9
- package/dist/react.cjs +237 -71
- package/dist/react.d.ts +1 -0
- package/dist/react.mjs +237 -71
- package/package.json +7 -6
- package/styles.css +30 -0
- package/webpack4.css +30 -0
package/README.ja.md
CHANGED
|
@@ -208,9 +208,9 @@ flowchart TB
|
|
|
208
208
|
両画面とも「詳細」ボタン・ソースコードの一覧内表示はありません。ラジオボタンとチェックボックスは説明の外側、
|
|
209
209
|
選択状態バッジは共通コンポーネントのスロットに配置します。
|
|
210
210
|
|
|
211
|
-
セキュリティ確認の上部には次の案内を1
|
|
211
|
+
セキュリティ確認の上部には次の案内を1回表示します。拒否・サンドボックスあり・なし・未指定の件数は最下部に表示します。
|
|
212
212
|
|
|
213
|
-
>
|
|
213
|
+
> 機能拡張を読み込みます。機能拡張の製作者が「⚠️サンドボックスなし:必要」を指定しているものがあります。あなた自身でそれに従うかどうかを選択できます。
|
|
214
214
|
|
|
215
215
|
`context="catalog"` の場合だけ、フッター内のボタンより上の独立した行に「『キャンセル』で選択一覧に戻ります。」と表示します。
|
|
216
216
|
プロジェクト読み込みのキャンセル確認は従来の戻り先を維持し、この案内を表示しません。
|
package/README.md
CHANGED
|
@@ -94,8 +94,8 @@ Neither view includes a Details button or inline source code. Radio buttons and
|
|
|
94
94
|
remain outside the description; selection-state badges use a slot in the shared renderer.
|
|
95
95
|
|
|
96
96
|
The security dialog explains the warning badge once above the list: “To make extensions
|
|
97
|
-
marked ⚠️ work as their creators intended, choose Without sandbox.”
|
|
98
|
-
|
|
97
|
+
marked ⚠️ work as their creators intended, choose Without sandbox.” Decision counts
|
|
98
|
+
appear in the footer. With `context="catalog"`, a separate footer row above the buttons says
|
|
99
99
|
“Choose Cancel to return to the selection list.” Project context retains its own cancellation
|
|
100
100
|
confirmation and does not show that destination.
|
|
101
101
|
|
package/dist/index.cjs
CHANGED
|
@@ -386,9 +386,10 @@ var messages = {
|
|
|
386
386
|
"loadSelected": "Load selected extensions",
|
|
387
387
|
"loadingExtensions": "Loading\u2026",
|
|
388
388
|
"title": "Extension Security",
|
|
389
|
+
"maximize": "Maximize",
|
|
390
|
+
"restoreWindow": "Restore window",
|
|
389
391
|
"intro": "Choose how to run each extension (you can choose while metadata loads).",
|
|
390
392
|
"allRequiredIntro": "All extensions require Without sandbox, which is already selected. Choose OK to load the project, or Cancel to stop.",
|
|
391
|
-
"progress": "Extension information: {done}/{total}",
|
|
392
393
|
"bulk": "Apply to all listed extensions",
|
|
393
394
|
"extension": "Extension",
|
|
394
395
|
"deny": "Deny",
|
|
@@ -406,7 +407,6 @@ var messages = {
|
|
|
406
407
|
"requiredToRun": "Required",
|
|
407
408
|
"unsupported": "Unsupported",
|
|
408
409
|
"choiceReset": "The incompatible selection was cleared. Choose how to run this extension again.",
|
|
409
|
-
"bulkNote": "Applies only to extensions that support this mode.",
|
|
410
410
|
"note": "Metadata is provided by the author.",
|
|
411
411
|
"summary": "Deny {deny} \xB7 With {sandboxed} \xB7 Without {unsandboxed} \xB7 Unselected {unselected}",
|
|
412
412
|
"cancel": "Cancel",
|
|
@@ -432,7 +432,7 @@ var messages = {
|
|
|
432
432
|
"distributionNote": "\u914D\u5E03\u65B9\u6CD5\u3068\u5B9F\u884C\u8A31\u53EF\u306F\u5225\u306E\u8A2D\u5B9A\u3067\u3059\u3002\u4E00\u62EC\u6307\u5B9A\u3057\u305F\u5F8C\u3001\u5404\u884C\u3067\u5909\u66F4\u3067\u304D\u307E\u3059\u3002",
|
|
433
433
|
"configuredSummary": "\u8A2D\u5B9A\u3059\u308B\u6A5F\u80FD\u62E1\u5F35 {count} \u4EF6",
|
|
434
434
|
"applySettings": "\u62E1\u5F35\u306E\u8A2D\u5B9A\u3092\u9069\u7528",
|
|
435
|
-
"securityInstruction": "\u300C\u26A0\uFE0F\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u306A\u3057
|
|
435
|
+
"securityInstruction": "\u6A5F\u80FD\u62E1\u5F35\u3092\u8AAD\u307F\u8FBC\u307F\u307E\u3059\u3002\u6A5F\u80FD\u62E1\u5F35\u306E\u88FD\u4F5C\u8005\u304C\u300C\u26A0\uFE0F\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u306A\u3057:\u5FC5\u8981\u300D\u3092\u6307\u5B9A\u3057\u3066\u3044\u308B\u3082\u306E\u304C\u3042\u308A\u307E\u3059\u3002\u3042\u306A\u305F\u81EA\u8EAB\u3067\u305D\u308C\u306B\u5F93\u3046\u304B\u3069\u3046\u304B\u3092\u9078\u629E\u3067\u304D\u307E\u3059\u3002",
|
|
436
436
|
"catalogCancelDestination": "\u300E\u30AD\u30E3\u30F3\u30BB\u30EB\u300F\u3067\u9078\u629E\u4E00\u89A7\u306B\u623B\u308A\u307E\u3059\u3002",
|
|
437
437
|
"selectionIntro": "\u8FFD\u52A0\u3059\u308B\u6A5F\u80FD\u62E1\u5F35\u3092\u9078\u3093\u3067\u304F\u3060\u3055\u3044\u3002\u4F9D\u5B58\u3059\u308B\u6A5F\u80FD\u62E1\u5F35\u3082\u81EA\u52D5\u3067\u9078\u629E\u3055\u308C\u307E\u3059\u3002",
|
|
438
438
|
"documentationFor": "{name}: \u30C9\u30AD\u30E5\u30E1\u30F3\u30C8",
|
|
@@ -465,11 +465,12 @@ var messages = {
|
|
|
465
465
|
"loadSelected": "\u9078\u629E\u3057\u305F\u62E1\u5F35\u3092\u8AAD\u307F\u8FBC\u3080",
|
|
466
466
|
"loadingExtensions": "\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",
|
|
467
467
|
"title": "\u6A5F\u80FD\u62E1\u5F35\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3",
|
|
468
|
+
"maximize": "\u5168\u753B\u9762\u5316",
|
|
469
|
+
"restoreWindow": "\u5143\u306E\u30B5\u30A4\u30BA\u306B\u623B\u3059",
|
|
468
470
|
"intro": "\u5B9F\u884C\u65B9\u6CD5\u3092\u9078\u3093\u3067\u304F\u3060\u3055\u3044\uFF08\u53D6\u5F97\u4E2D\u3067\u3082\u9078\u629E\u3067\u304D\u307E\u3059\uFF09",
|
|
469
471
|
"allRequiredIntro": "\u3059\u3079\u3066\u306E\u6A5F\u80FD\u62E1\u5F35\u3067\u5FC5\u8981\u306A\u300C\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u306A\u3057\u300D\u3092\u9078\u629E\u6E08\u307F\u3067\u3059\u3002\u300COK\u300D\u3067\u8AAD\u307F\u8FBC\u3080\u304B\u3001\u300C\u30AD\u30E3\u30F3\u30BB\u30EB\u300D\u3067\u4E2D\u6B62\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
470
|
-
"
|
|
471
|
-
"
|
|
472
|
-
"extension": "\u6A5F\u80FD\u62E1\u5F35",
|
|
472
|
+
"bulk": "\u3059\u3079\u3066\u306E\u6A5F\u80FD\u62E1\u5F35\u3092\u4E00\u62EC\u3067\u6307\u5B9A",
|
|
473
|
+
"extension": "\u305D\u308C\u305E\u308C\u306E\u6A5F\u80FD\u62E1\u5F35\u306B\u3064\u3044\u3066\u500B\u5225\u3067\u6307\u5B9A",
|
|
473
474
|
"deny": "\u62D2\u5426",
|
|
474
475
|
"unsandboxed": "\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u306A\u3057",
|
|
475
476
|
"sandboxed": "\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u3042\u308A",
|
|
@@ -485,9 +486,8 @@ var messages = {
|
|
|
485
486
|
"requiredToRun": "\u5FC5\u8981",
|
|
486
487
|
"unsupported": "\u975E\u5BFE\u5FDC",
|
|
487
488
|
"choiceReset": "\u975E\u5BFE\u5FDC\u306E\u9078\u629E\u3092\u89E3\u9664\u3057\u307E\u3057\u305F\u3002\u5B9F\u884C\u65B9\u6CD5\u3092\u9078\u3073\u76F4\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
488
|
-
"
|
|
489
|
-
"
|
|
490
|
-
"summary": "\u62D2\u5426 {deny} \xB7 \u3042\u308A {sandboxed} \xB7 \u306A\u3057 {unsandboxed} \xB7 \u672A\u6307\u5B9A {unselected}",
|
|
489
|
+
"note": "\u6A5F\u80FD\u62E1\u5F35\u306E\u8AAC\u660E\u3084\u5C5E\u6027\u60C5\u5831\u306F\u3001\u305D\u308C\u305E\u308C\u306E\u6A5F\u80FD\u62E1\u5F35\u306E\u88FD\u4F5C\u8005\u306B\u3088\u308A\u8A18\u8FF0\u3055\u308C\u305F\u3082\u306E\u3067\u3059\u3002",
|
|
490
|
+
"summary": "\u62D2\u5426 {deny} \xB7 \u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u3042\u308A {sandboxed} \xB7 \u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u306A\u3057 {unsandboxed} \xB7 \u672A\u6307\u5B9A {unselected}",
|
|
491
491
|
"cancel": "\u30AD\u30E3\u30F3\u30BB\u30EB",
|
|
492
492
|
"ok": "OK",
|
|
493
493
|
"yes": "\u306F\u3044",
|
package/dist/index.mjs
CHANGED
|
@@ -337,9 +337,10 @@ var messages = {
|
|
|
337
337
|
"loadSelected": "Load selected extensions",
|
|
338
338
|
"loadingExtensions": "Loading\u2026",
|
|
339
339
|
"title": "Extension Security",
|
|
340
|
+
"maximize": "Maximize",
|
|
341
|
+
"restoreWindow": "Restore window",
|
|
340
342
|
"intro": "Choose how to run each extension (you can choose while metadata loads).",
|
|
341
343
|
"allRequiredIntro": "All extensions require Without sandbox, which is already selected. Choose OK to load the project, or Cancel to stop.",
|
|
342
|
-
"progress": "Extension information: {done}/{total}",
|
|
343
344
|
"bulk": "Apply to all listed extensions",
|
|
344
345
|
"extension": "Extension",
|
|
345
346
|
"deny": "Deny",
|
|
@@ -357,7 +358,6 @@ var messages = {
|
|
|
357
358
|
"requiredToRun": "Required",
|
|
358
359
|
"unsupported": "Unsupported",
|
|
359
360
|
"choiceReset": "The incompatible selection was cleared. Choose how to run this extension again.",
|
|
360
|
-
"bulkNote": "Applies only to extensions that support this mode.",
|
|
361
361
|
"note": "Metadata is provided by the author.",
|
|
362
362
|
"summary": "Deny {deny} \xB7 With {sandboxed} \xB7 Without {unsandboxed} \xB7 Unselected {unselected}",
|
|
363
363
|
"cancel": "Cancel",
|
|
@@ -383,7 +383,7 @@ var messages = {
|
|
|
383
383
|
"distributionNote": "\u914D\u5E03\u65B9\u6CD5\u3068\u5B9F\u884C\u8A31\u53EF\u306F\u5225\u306E\u8A2D\u5B9A\u3067\u3059\u3002\u4E00\u62EC\u6307\u5B9A\u3057\u305F\u5F8C\u3001\u5404\u884C\u3067\u5909\u66F4\u3067\u304D\u307E\u3059\u3002",
|
|
384
384
|
"configuredSummary": "\u8A2D\u5B9A\u3059\u308B\u6A5F\u80FD\u62E1\u5F35 {count} \u4EF6",
|
|
385
385
|
"applySettings": "\u62E1\u5F35\u306E\u8A2D\u5B9A\u3092\u9069\u7528",
|
|
386
|
-
"securityInstruction": "\u300C\u26A0\uFE0F\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u306A\u3057
|
|
386
|
+
"securityInstruction": "\u6A5F\u80FD\u62E1\u5F35\u3092\u8AAD\u307F\u8FBC\u307F\u307E\u3059\u3002\u6A5F\u80FD\u62E1\u5F35\u306E\u88FD\u4F5C\u8005\u304C\u300C\u26A0\uFE0F\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u306A\u3057:\u5FC5\u8981\u300D\u3092\u6307\u5B9A\u3057\u3066\u3044\u308B\u3082\u306E\u304C\u3042\u308A\u307E\u3059\u3002\u3042\u306A\u305F\u81EA\u8EAB\u3067\u305D\u308C\u306B\u5F93\u3046\u304B\u3069\u3046\u304B\u3092\u9078\u629E\u3067\u304D\u307E\u3059\u3002",
|
|
387
387
|
"catalogCancelDestination": "\u300E\u30AD\u30E3\u30F3\u30BB\u30EB\u300F\u3067\u9078\u629E\u4E00\u89A7\u306B\u623B\u308A\u307E\u3059\u3002",
|
|
388
388
|
"selectionIntro": "\u8FFD\u52A0\u3059\u308B\u6A5F\u80FD\u62E1\u5F35\u3092\u9078\u3093\u3067\u304F\u3060\u3055\u3044\u3002\u4F9D\u5B58\u3059\u308B\u6A5F\u80FD\u62E1\u5F35\u3082\u81EA\u52D5\u3067\u9078\u629E\u3055\u308C\u307E\u3059\u3002",
|
|
389
389
|
"documentationFor": "{name}: \u30C9\u30AD\u30E5\u30E1\u30F3\u30C8",
|
|
@@ -416,11 +416,12 @@ var messages = {
|
|
|
416
416
|
"loadSelected": "\u9078\u629E\u3057\u305F\u62E1\u5F35\u3092\u8AAD\u307F\u8FBC\u3080",
|
|
417
417
|
"loadingExtensions": "\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",
|
|
418
418
|
"title": "\u6A5F\u80FD\u62E1\u5F35\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3",
|
|
419
|
+
"maximize": "\u5168\u753B\u9762\u5316",
|
|
420
|
+
"restoreWindow": "\u5143\u306E\u30B5\u30A4\u30BA\u306B\u623B\u3059",
|
|
419
421
|
"intro": "\u5B9F\u884C\u65B9\u6CD5\u3092\u9078\u3093\u3067\u304F\u3060\u3055\u3044\uFF08\u53D6\u5F97\u4E2D\u3067\u3082\u9078\u629E\u3067\u304D\u307E\u3059\uFF09",
|
|
420
422
|
"allRequiredIntro": "\u3059\u3079\u3066\u306E\u6A5F\u80FD\u62E1\u5F35\u3067\u5FC5\u8981\u306A\u300C\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u306A\u3057\u300D\u3092\u9078\u629E\u6E08\u307F\u3067\u3059\u3002\u300COK\u300D\u3067\u8AAD\u307F\u8FBC\u3080\u304B\u3001\u300C\u30AD\u30E3\u30F3\u30BB\u30EB\u300D\u3067\u4E2D\u6B62\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
421
|
-
"
|
|
422
|
-
"
|
|
423
|
-
"extension": "\u6A5F\u80FD\u62E1\u5F35",
|
|
423
|
+
"bulk": "\u3059\u3079\u3066\u306E\u6A5F\u80FD\u62E1\u5F35\u3092\u4E00\u62EC\u3067\u6307\u5B9A",
|
|
424
|
+
"extension": "\u305D\u308C\u305E\u308C\u306E\u6A5F\u80FD\u62E1\u5F35\u306B\u3064\u3044\u3066\u500B\u5225\u3067\u6307\u5B9A",
|
|
424
425
|
"deny": "\u62D2\u5426",
|
|
425
426
|
"unsandboxed": "\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u306A\u3057",
|
|
426
427
|
"sandboxed": "\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u3042\u308A",
|
|
@@ -436,9 +437,8 @@ var messages = {
|
|
|
436
437
|
"requiredToRun": "\u5FC5\u8981",
|
|
437
438
|
"unsupported": "\u975E\u5BFE\u5FDC",
|
|
438
439
|
"choiceReset": "\u975E\u5BFE\u5FDC\u306E\u9078\u629E\u3092\u89E3\u9664\u3057\u307E\u3057\u305F\u3002\u5B9F\u884C\u65B9\u6CD5\u3092\u9078\u3073\u76F4\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
439
|
-
"
|
|
440
|
-
"
|
|
441
|
-
"summary": "\u62D2\u5426 {deny} \xB7 \u3042\u308A {sandboxed} \xB7 \u306A\u3057 {unsandboxed} \xB7 \u672A\u6307\u5B9A {unselected}",
|
|
440
|
+
"note": "\u6A5F\u80FD\u62E1\u5F35\u306E\u8AAC\u660E\u3084\u5C5E\u6027\u60C5\u5831\u306F\u3001\u305D\u308C\u305E\u308C\u306E\u6A5F\u80FD\u62E1\u5F35\u306E\u88FD\u4F5C\u8005\u306B\u3088\u308A\u8A18\u8FF0\u3055\u308C\u305F\u3082\u306E\u3067\u3059\u3002",
|
|
441
|
+
"summary": "\u62D2\u5426 {deny} \xB7 \u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u3042\u308A {sandboxed} \xB7 \u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u306A\u3057 {unsandboxed} \xB7 \u672A\u6307\u5B9A {unselected}",
|
|
442
442
|
"cancel": "\u30AD\u30E3\u30F3\u30BB\u30EB",
|
|
443
443
|
"ok": "OK",
|
|
444
444
|
"yes": "\u306F\u3044",
|
package/dist/react.cjs
CHANGED
|
@@ -229,6 +229,7 @@ var style_names_default = {
|
|
|
229
229
|
"cancelDestination": "twextsec-cancel-destination",
|
|
230
230
|
"error": "twextsec-error",
|
|
231
231
|
"footer": "twextsec-footer",
|
|
232
|
+
"frameHeader": "twextsec-frame-header",
|
|
232
233
|
"securityFooter": "twextsec-security-footer",
|
|
233
234
|
"securityModes": "twextsec-security-modes",
|
|
234
235
|
"rowControls": "twextsec-row-controls",
|
|
@@ -451,9 +452,10 @@ var messages = {
|
|
|
451
452
|
"loadSelected": "Load selected extensions",
|
|
452
453
|
"loadingExtensions": "Loading\u2026",
|
|
453
454
|
"title": "Extension Security",
|
|
455
|
+
"maximize": "Maximize",
|
|
456
|
+
"restoreWindow": "Restore window",
|
|
454
457
|
"intro": "Choose how to run each extension (you can choose while metadata loads).",
|
|
455
458
|
"allRequiredIntro": "All extensions require Without sandbox, which is already selected. Choose OK to load the project, or Cancel to stop.",
|
|
456
|
-
"progress": "Extension information: {done}/{total}",
|
|
457
459
|
"bulk": "Apply to all listed extensions",
|
|
458
460
|
"extension": "Extension",
|
|
459
461
|
"deny": "Deny",
|
|
@@ -471,7 +473,6 @@ var messages = {
|
|
|
471
473
|
"requiredToRun": "Required",
|
|
472
474
|
"unsupported": "Unsupported",
|
|
473
475
|
"choiceReset": "The incompatible selection was cleared. Choose how to run this extension again.",
|
|
474
|
-
"bulkNote": "Applies only to extensions that support this mode.",
|
|
475
476
|
"note": "Metadata is provided by the author.",
|
|
476
477
|
"summary": "Deny {deny} \xB7 With {sandboxed} \xB7 Without {unsandboxed} \xB7 Unselected {unselected}",
|
|
477
478
|
"cancel": "Cancel",
|
|
@@ -497,7 +498,7 @@ var messages = {
|
|
|
497
498
|
"distributionNote": "\u914D\u5E03\u65B9\u6CD5\u3068\u5B9F\u884C\u8A31\u53EF\u306F\u5225\u306E\u8A2D\u5B9A\u3067\u3059\u3002\u4E00\u62EC\u6307\u5B9A\u3057\u305F\u5F8C\u3001\u5404\u884C\u3067\u5909\u66F4\u3067\u304D\u307E\u3059\u3002",
|
|
498
499
|
"configuredSummary": "\u8A2D\u5B9A\u3059\u308B\u6A5F\u80FD\u62E1\u5F35 {count} \u4EF6",
|
|
499
500
|
"applySettings": "\u62E1\u5F35\u306E\u8A2D\u5B9A\u3092\u9069\u7528",
|
|
500
|
-
"securityInstruction": "\u300C\u26A0\uFE0F\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u306A\u3057
|
|
501
|
+
"securityInstruction": "\u6A5F\u80FD\u62E1\u5F35\u3092\u8AAD\u307F\u8FBC\u307F\u307E\u3059\u3002\u6A5F\u80FD\u62E1\u5F35\u306E\u88FD\u4F5C\u8005\u304C\u300C\u26A0\uFE0F\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u306A\u3057:\u5FC5\u8981\u300D\u3092\u6307\u5B9A\u3057\u3066\u3044\u308B\u3082\u306E\u304C\u3042\u308A\u307E\u3059\u3002\u3042\u306A\u305F\u81EA\u8EAB\u3067\u305D\u308C\u306B\u5F93\u3046\u304B\u3069\u3046\u304B\u3092\u9078\u629E\u3067\u304D\u307E\u3059\u3002",
|
|
501
502
|
"catalogCancelDestination": "\u300E\u30AD\u30E3\u30F3\u30BB\u30EB\u300F\u3067\u9078\u629E\u4E00\u89A7\u306B\u623B\u308A\u307E\u3059\u3002",
|
|
502
503
|
"selectionIntro": "\u8FFD\u52A0\u3059\u308B\u6A5F\u80FD\u62E1\u5F35\u3092\u9078\u3093\u3067\u304F\u3060\u3055\u3044\u3002\u4F9D\u5B58\u3059\u308B\u6A5F\u80FD\u62E1\u5F35\u3082\u81EA\u52D5\u3067\u9078\u629E\u3055\u308C\u307E\u3059\u3002",
|
|
503
504
|
"documentationFor": "{name}: \u30C9\u30AD\u30E5\u30E1\u30F3\u30C8",
|
|
@@ -530,11 +531,12 @@ var messages = {
|
|
|
530
531
|
"loadSelected": "\u9078\u629E\u3057\u305F\u62E1\u5F35\u3092\u8AAD\u307F\u8FBC\u3080",
|
|
531
532
|
"loadingExtensions": "\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",
|
|
532
533
|
"title": "\u6A5F\u80FD\u62E1\u5F35\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3",
|
|
534
|
+
"maximize": "\u5168\u753B\u9762\u5316",
|
|
535
|
+
"restoreWindow": "\u5143\u306E\u30B5\u30A4\u30BA\u306B\u623B\u3059",
|
|
533
536
|
"intro": "\u5B9F\u884C\u65B9\u6CD5\u3092\u9078\u3093\u3067\u304F\u3060\u3055\u3044\uFF08\u53D6\u5F97\u4E2D\u3067\u3082\u9078\u629E\u3067\u304D\u307E\u3059\uFF09",
|
|
534
537
|
"allRequiredIntro": "\u3059\u3079\u3066\u306E\u6A5F\u80FD\u62E1\u5F35\u3067\u5FC5\u8981\u306A\u300C\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u306A\u3057\u300D\u3092\u9078\u629E\u6E08\u307F\u3067\u3059\u3002\u300COK\u300D\u3067\u8AAD\u307F\u8FBC\u3080\u304B\u3001\u300C\u30AD\u30E3\u30F3\u30BB\u30EB\u300D\u3067\u4E2D\u6B62\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
535
|
-
"
|
|
536
|
-
"
|
|
537
|
-
"extension": "\u6A5F\u80FD\u62E1\u5F35",
|
|
538
|
+
"bulk": "\u3059\u3079\u3066\u306E\u6A5F\u80FD\u62E1\u5F35\u3092\u4E00\u62EC\u3067\u6307\u5B9A",
|
|
539
|
+
"extension": "\u305D\u308C\u305E\u308C\u306E\u6A5F\u80FD\u62E1\u5F35\u306B\u3064\u3044\u3066\u500B\u5225\u3067\u6307\u5B9A",
|
|
538
540
|
"deny": "\u62D2\u5426",
|
|
539
541
|
"unsandboxed": "\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u306A\u3057",
|
|
540
542
|
"sandboxed": "\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u3042\u308A",
|
|
@@ -550,9 +552,8 @@ var messages = {
|
|
|
550
552
|
"requiredToRun": "\u5FC5\u8981",
|
|
551
553
|
"unsupported": "\u975E\u5BFE\u5FDC",
|
|
552
554
|
"choiceReset": "\u975E\u5BFE\u5FDC\u306E\u9078\u629E\u3092\u89E3\u9664\u3057\u307E\u3057\u305F\u3002\u5B9F\u884C\u65B9\u6CD5\u3092\u9078\u3073\u76F4\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
553
|
-
"
|
|
554
|
-
"
|
|
555
|
-
"summary": "\u62D2\u5426 {deny} \xB7 \u3042\u308A {sandboxed} \xB7 \u306A\u3057 {unsandboxed} \xB7 \u672A\u6307\u5B9A {unselected}",
|
|
555
|
+
"note": "\u6A5F\u80FD\u62E1\u5F35\u306E\u8AAC\u660E\u3084\u5C5E\u6027\u60C5\u5831\u306F\u3001\u305D\u308C\u305E\u308C\u306E\u6A5F\u80FD\u62E1\u5F35\u306E\u88FD\u4F5C\u8005\u306B\u3088\u308A\u8A18\u8FF0\u3055\u308C\u305F\u3082\u306E\u3067\u3059\u3002",
|
|
556
|
+
"summary": "\u62D2\u5426 {deny} \xB7 \u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u3042\u308A {sandboxed} \xB7 \u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u306A\u3057 {unsandboxed} \xB7 \u672A\u6307\u5B9A {unselected}",
|
|
556
557
|
"cancel": "\u30AD\u30E3\u30F3\u30BB\u30EB",
|
|
557
558
|
"ok": "OK",
|
|
558
559
|
"yes": "\u306F\u3044",
|
|
@@ -574,7 +575,7 @@ var formatMessage = (locale, key, values = {}) => {
|
|
|
574
575
|
};
|
|
575
576
|
|
|
576
577
|
// src/package-description.jsx
|
|
577
|
-
var commonBanner = "data:image/svg+xml;base64,
|
|
578
|
+
var commonBanner = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIiB2aWV3Qm94PSIxNTAgMCAzMDAgMzAwIj48cGF0aCBmaWxsPSIjMGZiZDhjIiBkPSJNMCAwaDYwMHYzMDBIMFoiIHN0eWxlPSJzdHJva2Utd2lkdGg6Ljg5ODAyNyIvPjxwYXRoIGZpbGw9IiNmZmQ2NDEiIGQ9Ik0tMTkuMzQ0MDYxIDE4NkMtMTkuMzQ0MDYxIDkuNjMxMTQzIDEyMy42MzExNC0xMzMuMzQ0MDYgMzAwLTEzMy4zNDQwNmMxNzYuMzY4ODUgMCAzMTkuMzQ0MDYgMTQyLjk3NTIwMyAzMTkuMzQ0MDYgMzE5LjM0NDA2IDAgMTc2LjM2ODg1LTE0Mi45NzUyMSAzMTkuMzQ0MDYtMzE5LjM0NDA2IDMxOS4zNDQwNi0xNzYuMzY4ODYgMC0zMTkuMzQ0MDYxLTE0Mi45NzUyMS0zMTkuMzQ0MDYxLTMxOS4zNDQwNloiIHN0eWxlPSJmaWxsOiMwZWFhN2U7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1kYXNob2Zmc2V0OjAiIHRyYW5zZm9ybT0ibWF0cml4KC45Mzk0MyAwIDAgLjkzOTQzIDE4LjE3MjMwNyAtMjQuNzMzMTcpIi8+PHBhdGggZmlsbD0iI2ZmYzgwMCIgZD0iTTIwLjE1NTky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zg1MjQ4LTEuNTM1NzgyNDMtMjMuMDM2Nzc0MDMgMC0yNi4xMDg1OTI1NCAxMC43NTA3NDAwNi0zNS4zMjQwMzg2NyAyOS4xODA0MTEwNS0zOS45MzExNTExLTE4LjQyOTY3MS00LjYwNzQ3ODgxLTI5LjE4MDQxMTA1LTEzLjgyMjU1ODU2LTI5LjE4MDQxMTA1LTM5LjkzMTE1MTEgMC05LjIxNDk1NzYyIDEuNTM1NzgyNDMtMTYuODk0Mzc3MDcgMS41MzU3ODI0My0yMy4wMzgwMTQwOCAxLjUzNTc5MTgzLTcuNjc5MTY1OCAxLjUzNTc5MTgzLTEzLjgyMjU0OTE2IDEuNTM1NzkxODMtMTkuOTY2MTg1MjQgMC0xNS4zNTc4NTI0OC02LjE0MzI3MDY0LTIzLjAzODAwMTg2LTE5Ljk2NjE5NTU3LTI0LjU3MzI5MDE1aC02LjE0MzI2MTI0VjE0LjA3OTE5OTM4aDEyLjI4NjY0NDZjMzIuMjUyMjIwMTYgMCA1Mi4yMTg0MjUxMyAxMy44MjI1NjMyNSA1Mi4yMTg0MjUxMyA0Ni4wNzQ3ODA2IDAgOS4yMTQ5NTY2OC0xLjUzNTc5MTgzIDE2Ljg5NDM4NTUxLTEuNTM1NzkxODMgMjYuMTA4NjAwOTktMS41MzU3ODI0MyA5LjIxNDk1NzYyLTEuNTM1NzgyNDMgMTguNDI5NjcxLTEuNTM1NzgyNDMgMjYuMTA4NTkyNTQgMCAxMC43NTA3MzA2NiAzLjA3MTY4Njk5IDIzLjAzODAwNDY4IDI2LjEwODU5MjU0IDIzLjAzODAwNDY4eiIvPjwvc3ZnPg==";
|
|
578
579
|
var requiresUnsandboxed = (metadata) => metadata && typeof metadata.unsandboxed === "string" && metadata.unsandboxed.trim().toLowerCase() === "required";
|
|
579
580
|
var resolveSharedPackageMetadata = (entry, sourceMetadata = {}) => {
|
|
580
581
|
const catalog = entry.metadata || {};
|
|
@@ -756,6 +757,151 @@ var resolveExtensionSelection = (entries, explicitIds = [], loadedIds = []) => {
|
|
|
756
757
|
return { selected, required, requiredBy, loaded, ordered: ordered.filter((entry) => !loaded.has(entry.id)) };
|
|
757
758
|
};
|
|
758
759
|
|
|
760
|
+
// src/dialog-window.js
|
|
761
|
+
function attachSecurityDialogWindow(anchor, labels) {
|
|
762
|
+
const dialog = anchor.closest('[role="dialog"]');
|
|
763
|
+
const titlebar = dialog == null ? void 0 : dialog.querySelector(".twextsec-frame-header");
|
|
764
|
+
if (!dialog || !titlebar || !titlebar.parentElement.contains(anchor)) return null;
|
|
765
|
+
const doc = dialog.ownerDocument, win = doc.defaultView;
|
|
766
|
+
if (!win) return null;
|
|
767
|
+
const frame = titlebar.parentElement;
|
|
768
|
+
const maximizeButton = doc.createElement("button");
|
|
769
|
+
maximizeButton.type = "button";
|
|
770
|
+
maximizeButton.className = "twextsec-window-button";
|
|
771
|
+
titlebar.append(maximizeButton);
|
|
772
|
+
let gesture = null, restoreBounds = null;
|
|
773
|
+
const handles = [];
|
|
774
|
+
let currentLabels = labels;
|
|
775
|
+
const originalStyle = dialog.style.cssText;
|
|
776
|
+
dialog.setAttribute("data-twextsec-window", "");
|
|
777
|
+
if (frame !== dialog) frame.setAttribute("data-twextsec-window-frame", "");
|
|
778
|
+
const viewport = () => ({ width: win.innerWidth, height: win.innerHeight });
|
|
779
|
+
const bounds = () => {
|
|
780
|
+
const { x, y, width, height } = dialog.getBoundingClientRect();
|
|
781
|
+
return { x, y, width, height };
|
|
782
|
+
};
|
|
783
|
+
const clamp = (value, min, max) => Math.min(Math.max(value, min), max);
|
|
784
|
+
function fit(rect) {
|
|
785
|
+
const view = viewport();
|
|
786
|
+
const width = clamp(rect.width, Math.min(360, view.width), view.width);
|
|
787
|
+
const height = clamp(rect.height, Math.min(280, view.height), view.height);
|
|
788
|
+
return { width, height, x: clamp(rect.x, 0, view.width - width), y: clamp(rect.y, 0, view.height - height) };
|
|
789
|
+
}
|
|
790
|
+
function place(rect) {
|
|
791
|
+
Object.assign(dialog.style, {
|
|
792
|
+
maxHeight: "100dvh",
|
|
793
|
+
transform: "none",
|
|
794
|
+
margin: "0",
|
|
795
|
+
inset: "auto",
|
|
796
|
+
left: `${rect.x}px`,
|
|
797
|
+
top: `${rect.y}px`,
|
|
798
|
+
width: `${rect.width}px`,
|
|
799
|
+
height: `${rect.height}px`
|
|
800
|
+
});
|
|
801
|
+
}
|
|
802
|
+
function stop(event) {
|
|
803
|
+
if (!gesture || (event == null ? void 0 : event.pointerId) !== void 0 && event.pointerId !== gesture.id) return;
|
|
804
|
+
const { target, id } = gesture;
|
|
805
|
+
gesture = null;
|
|
806
|
+
if (target.hasPointerCapture(id)) target.releasePointerCapture(id);
|
|
807
|
+
dialog.removeAttribute("data-twextsec-dragging");
|
|
808
|
+
}
|
|
809
|
+
function start(event, edge) {
|
|
810
|
+
if (restoreBounds || gesture || event.button !== 0 || !event.isPrimary) return;
|
|
811
|
+
if (!edge && event.target.closest("button, a, input, select, textarea")) return;
|
|
812
|
+
event.preventDefault();
|
|
813
|
+
const target = event.currentTarget;
|
|
814
|
+
gesture = { id: event.pointerId, target, edge, x: event.clientX, y: event.clientY, rect: fit(bounds()) };
|
|
815
|
+
place(gesture.rect);
|
|
816
|
+
target.setPointerCapture(event.pointerId);
|
|
817
|
+
dialog.setAttribute("data-twextsec-dragging", "");
|
|
818
|
+
}
|
|
819
|
+
function move(event) {
|
|
820
|
+
if (!gesture || event.pointerId !== gesture.id) return;
|
|
821
|
+
const { rect, edge } = gesture, view = viewport();
|
|
822
|
+
const dx = event.clientX - gesture.x, dy = event.clientY - gesture.y;
|
|
823
|
+
if (!edge) {
|
|
824
|
+
place(fit(__spreadProps(__spreadValues({}, rect), { x: rect.x + dx, y: rect.y + dy })));
|
|
825
|
+
return;
|
|
826
|
+
}
|
|
827
|
+
const minWidth = Math.min(360, view.width), minHeight = Math.min(280, view.height);
|
|
828
|
+
let left = rect.x, top = rect.y, right = rect.x + rect.width, bottom = rect.y + rect.height;
|
|
829
|
+
if (edge.includes("w")) left = clamp(rect.x + dx, 0, right - minWidth);
|
|
830
|
+
if (edge.includes("e")) right = clamp(right + dx, left + minWidth, view.width);
|
|
831
|
+
if (edge.includes("n")) top = clamp(rect.y + dy, 0, bottom - minHeight);
|
|
832
|
+
if (edge.includes("s")) bottom = clamp(bottom + dy, top + minHeight, view.height);
|
|
833
|
+
place({ x: left, y: top, width: right - left, height: bottom - top });
|
|
834
|
+
}
|
|
835
|
+
const startMove = (event) => start(event, "");
|
|
836
|
+
titlebar.addEventListener("pointerdown", startMove);
|
|
837
|
+
for (const edge of ["n", "e", "s", "w", "ne", "se", "sw", "nw"]) {
|
|
838
|
+
const handle = doc.createElement("div");
|
|
839
|
+
handle.className = "twextsec-resize";
|
|
840
|
+
handle.dataset.edge = edge;
|
|
841
|
+
handle.setAttribute("aria-hidden", "true");
|
|
842
|
+
handle.addEventListener("pointerdown", (event) => start(event, edge));
|
|
843
|
+
dialog.append(handle);
|
|
844
|
+
handles.push(handle);
|
|
845
|
+
}
|
|
846
|
+
function updateButton() {
|
|
847
|
+
const label = restoreBounds ? currentLabels.restore : currentLabels.maximize;
|
|
848
|
+
maximizeButton.setAttribute("aria-label", label);
|
|
849
|
+
maximizeButton.setAttribute("aria-pressed", String(Boolean(restoreBounds)));
|
|
850
|
+
maximizeButton.title = label;
|
|
851
|
+
maximizeButton.textContent = restoreBounds ? "\u2750" : "\u26F6";
|
|
852
|
+
dialog.toggleAttribute("data-twextsec-maximized", Boolean(restoreBounds));
|
|
853
|
+
}
|
|
854
|
+
function toggle() {
|
|
855
|
+
stop();
|
|
856
|
+
if (restoreBounds) {
|
|
857
|
+
place(fit(restoreBounds));
|
|
858
|
+
restoreBounds = null;
|
|
859
|
+
} else {
|
|
860
|
+
restoreBounds = bounds();
|
|
861
|
+
place(__spreadValues({ x: 0, y: 0 }, viewport()));
|
|
862
|
+
}
|
|
863
|
+
updateButton();
|
|
864
|
+
}
|
|
865
|
+
function resize() {
|
|
866
|
+
stop();
|
|
867
|
+
if (restoreBounds) place(__spreadValues({ x: 0, y: 0 }, viewport()));
|
|
868
|
+
else place(fit(bounds()));
|
|
869
|
+
}
|
|
870
|
+
maximizeButton.addEventListener("click", toggle);
|
|
871
|
+
win.addEventListener("pointermove", move);
|
|
872
|
+
win.addEventListener("pointerup", stop);
|
|
873
|
+
win.addEventListener("pointercancel", stop);
|
|
874
|
+
win.addEventListener("blur", stop);
|
|
875
|
+
win.addEventListener("resize", resize);
|
|
876
|
+
dialog.addEventListener("lostpointercapture", stop);
|
|
877
|
+
dialog.addEventListener("close", stop);
|
|
878
|
+
updateButton();
|
|
879
|
+
return {
|
|
880
|
+
updateLabels(next) {
|
|
881
|
+
currentLabels = next;
|
|
882
|
+
updateButton();
|
|
883
|
+
},
|
|
884
|
+
dispose() {
|
|
885
|
+
stop();
|
|
886
|
+
titlebar.removeEventListener("pointerdown", startMove);
|
|
887
|
+
maximizeButton.removeEventListener("click", toggle);
|
|
888
|
+
win.removeEventListener("pointermove", move);
|
|
889
|
+
win.removeEventListener("pointerup", stop);
|
|
890
|
+
win.removeEventListener("pointercancel", stop);
|
|
891
|
+
win.removeEventListener("blur", stop);
|
|
892
|
+
win.removeEventListener("resize", resize);
|
|
893
|
+
dialog.removeEventListener("lostpointercapture", stop);
|
|
894
|
+
dialog.removeEventListener("close", stop);
|
|
895
|
+
handles.forEach((handle) => handle.remove());
|
|
896
|
+
maximizeButton.remove();
|
|
897
|
+
dialog.style.cssText = originalStyle;
|
|
898
|
+
dialog.removeAttribute("data-twextsec-window");
|
|
899
|
+
dialog.removeAttribute("data-twextsec-maximized");
|
|
900
|
+
if (frame !== dialog) frame.removeAttribute("data-twextsec-window-frame");
|
|
901
|
+
}
|
|
902
|
+
};
|
|
903
|
+
}
|
|
904
|
+
|
|
759
905
|
// src/react.jsx
|
|
760
906
|
var bindAll = (instance, names) => names.forEach((name) => {
|
|
761
907
|
instance[name] = instance[name].bind(instance);
|
|
@@ -838,15 +984,18 @@ var ExtensionSecurityDialog = class extends import_react4.default.Component {
|
|
|
838
984
|
"handleRequestClose",
|
|
839
985
|
"focusNo",
|
|
840
986
|
"handleDistribution",
|
|
841
|
-
"handleBulkDistribution"
|
|
987
|
+
"handleBulkDistribution",
|
|
988
|
+
"handleWindowAnchor"
|
|
842
989
|
]);
|
|
843
990
|
}
|
|
844
991
|
componentDidMount() {
|
|
845
992
|
this.alive = true;
|
|
993
|
+
this.mountWindow();
|
|
846
994
|
this.delay(() => this.setState({ ready: true }));
|
|
847
995
|
this.startRequests();
|
|
848
996
|
}
|
|
849
997
|
componentDidUpdate(previousProps) {
|
|
998
|
+
this.mountWindow();
|
|
850
999
|
this.initializeEntries(previousProps);
|
|
851
1000
|
this.startRequests();
|
|
852
1001
|
const { entries } = this.props;
|
|
@@ -859,10 +1008,26 @@ var ExtensionSecurityDialog = class extends import_react4.default.Component {
|
|
|
859
1008
|
}
|
|
860
1009
|
}
|
|
861
1010
|
componentWillUnmount() {
|
|
1011
|
+
var _a;
|
|
862
1012
|
this.alive = false;
|
|
1013
|
+
(_a = this.windowControls) == null ? void 0 : _a.dispose();
|
|
863
1014
|
this.controllers.forEach((controller) => controller.abort());
|
|
864
1015
|
this.timeouts.forEach((timeout) => clearTimeout(timeout));
|
|
865
1016
|
}
|
|
1017
|
+
handleWindowAnchor(node) {
|
|
1018
|
+
if (node) {
|
|
1019
|
+
this.windowAnchor = node;
|
|
1020
|
+
if (this.alive) this.mountWindow();
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
mountWindow() {
|
|
1024
|
+
var _a;
|
|
1025
|
+
const labels = { maximize: this.t("maximize"), restore: this.t("restoreWindow") };
|
|
1026
|
+
if (!this.windowControls && this.windowAnchor) {
|
|
1027
|
+
this.windowControls = attachSecurityDialogWindow(this.windowAnchor, labels);
|
|
1028
|
+
}
|
|
1029
|
+
(_a = this.windowControls) == null ? void 0 : _a.updateLabels(labels);
|
|
1030
|
+
}
|
|
866
1031
|
delay(callback, duration = 750) {
|
|
867
1032
|
const timeout = setTimeout(() => {
|
|
868
1033
|
this.timeouts.delete(timeout);
|
|
@@ -1195,7 +1360,6 @@ var ExtensionSecurityDialog = class extends import_react4.default.Component {
|
|
|
1195
1360
|
const mode = this.state.choices[entry.url];
|
|
1196
1361
|
counts[this.canChoose(entry, mode) ? mode : "unselected"]++;
|
|
1197
1362
|
});
|
|
1198
|
-
const done = entries.filter((entry) => (this.state.rows[entry.url] || {}).status).length;
|
|
1199
1363
|
const confirmation = this.state.confirmation;
|
|
1200
1364
|
const allRequired = allRequireUnsandboxed(entries, this.state.rows);
|
|
1201
1365
|
return /* @__PURE__ */ import_react4.default.createElement(
|
|
@@ -1203,6 +1367,7 @@ var ExtensionSecurityDialog = class extends import_react4.default.Component {
|
|
|
1203
1367
|
{
|
|
1204
1368
|
id: "extension-security-batch",
|
|
1205
1369
|
className: style_names_default.modal,
|
|
1370
|
+
headerClassName: style_names_default.frameHeader,
|
|
1206
1371
|
contentLabel: this.t("title"),
|
|
1207
1372
|
hideCloseButton: true,
|
|
1208
1373
|
onRequestClose: this.handleRequestClose
|
|
@@ -1210,6 +1375,7 @@ var ExtensionSecurityDialog = class extends import_react4.default.Component {
|
|
|
1210
1375
|
confirmation ? /* @__PURE__ */ import_react4.default.createElement(
|
|
1211
1376
|
"div",
|
|
1212
1377
|
{
|
|
1378
|
+
ref: this.handleWindowAnchor,
|
|
1213
1379
|
className: style_names_default.confirmation,
|
|
1214
1380
|
role: "alertdialog",
|
|
1215
1381
|
"aria-labelledby": "extension-confirm-title",
|
|
@@ -1235,70 +1401,70 @@ var ExtensionSecurityDialog = class extends import_react4.default.Component {
|
|
|
1235
1401
|
},
|
|
1236
1402
|
this.t("yes")
|
|
1237
1403
|
))
|
|
1238
|
-
) : /* @__PURE__ */ import_react4.default.createElement(
|
|
1404
|
+
) : /* @__PURE__ */ import_react4.default.createElement(
|
|
1239
1405
|
"div",
|
|
1240
1406
|
{
|
|
1241
|
-
|
|
1242
|
-
"
|
|
1243
|
-
},
|
|
1244
|
-
this.t("progress", { done, total: entries.length })
|
|
1245
|
-
)), this.renderDistributionBulk(), !allRequired && /* @__PURE__ */ import_react4.default.createElement("div", { className: style_names_default.bulk }, /* @__PURE__ */ import_react4.default.createElement("span", null, this.t("bulk")), MODES.map((mode) => /* @__PURE__ */ import_react4.default.createElement(
|
|
1246
|
-
"button",
|
|
1247
|
-
{
|
|
1248
|
-
type: "button",
|
|
1249
|
-
key: mode,
|
|
1250
|
-
value: mode,
|
|
1251
|
-
disabled: entries.every((entry) => !this.canChoose(entry, mode)),
|
|
1252
|
-
title: this.t("bulkNote"),
|
|
1253
|
-
onClick: this.handleBulk
|
|
1254
|
-
},
|
|
1255
|
-
/* @__PURE__ */ import_react4.default.createElement(ModeIcon, { mode }),
|
|
1256
|
-
this.t(mode)
|
|
1257
|
-
)), /* @__PURE__ */ import_react4.default.createElement("div", { className: style_names_default.bulkNote }, this.t("bulkNote"))), /* @__PURE__ */ import_react4.default.createElement(
|
|
1258
|
-
"div",
|
|
1259
|
-
{
|
|
1260
|
-
className: style_names_default.columns,
|
|
1261
|
-
"aria-hidden": "true"
|
|
1262
|
-
},
|
|
1263
|
-
/* @__PURE__ */ import_react4.default.createElement("span", null, this.t("extension")),
|
|
1264
|
-
MODES.map((mode) => /* @__PURE__ */ import_react4.default.createElement("span", { key: mode, className: style_names_default.modeHeading }, /* @__PURE__ */ import_react4.default.createElement(ModeIcon, { mode }), this.t(mode)))
|
|
1265
|
-
), /* @__PURE__ */ import_react4.default.createElement("div", { className: style_names_default.list }, /* @__PURE__ */ import_react4.default.createElement(
|
|
1266
|
-
package_sections_default,
|
|
1267
|
-
{
|
|
1268
|
-
entries,
|
|
1269
|
-
items: entries.map((entry, index) => ({ entry, index })),
|
|
1270
|
-
locale: this.props.locale,
|
|
1271
|
-
idPrefix: "security-extension",
|
|
1272
|
-
renderItem: ({ entry, index }) => this.renderRow(entry, index)
|
|
1273
|
-
}
|
|
1274
|
-
), /* @__PURE__ */ import_react4.default.createElement("p", { className: style_names_default.note }, this.t("note")), counts.unsandboxed > 0 && /* @__PURE__ */ import_react4.default.createElement("p", { className: style_names_default.warning }, this.t("warning"))), /* @__PURE__ */ import_react4.default.createElement("footer", { className: `${style_names_default.footer} ${style_names_default.securityFooter}` }, this.props.context === "catalog" && /* @__PURE__ */ import_react4.default.createElement("p", { className: style_names_default.cancelDestination }, this.t("catalogCancelDestination")), /* @__PURE__ */ import_react4.default.createElement("div", { className: style_names_default.footerControls }, /* @__PURE__ */ import_react4.default.createElement(
|
|
1275
|
-
"span",
|
|
1276
|
-
{
|
|
1277
|
-
className: style_names_default.secondary,
|
|
1278
|
-
"aria-live": "polite"
|
|
1279
|
-
},
|
|
1280
|
-
this.t("summary", counts)
|
|
1281
|
-
), /* @__PURE__ */ import_react4.default.createElement("div", { className: style_names_default.buttons }, /* @__PURE__ */ import_react4.default.createElement(
|
|
1282
|
-
"button",
|
|
1283
|
-
{
|
|
1284
|
-
type: "button",
|
|
1285
|
-
onClick: this.handleCancel
|
|
1286
|
-
},
|
|
1287
|
-
this.t("cancel")
|
|
1288
|
-
), /* @__PURE__ */ import_react4.default.createElement(
|
|
1289
|
-
"button",
|
|
1290
|
-
{
|
|
1291
|
-
type: "button",
|
|
1292
|
-
className: style_names_default.primary,
|
|
1293
|
-
disabled: !this.state.ready || !this.selectionReady(),
|
|
1294
|
-
onClick: this.handleOK
|
|
1407
|
+
ref: this.handleWindowAnchor,
|
|
1408
|
+
className: `${style_names_default.body}${this.props.enableDistribution ? " twextsec-with-distribution" : ""}`
|
|
1295
1409
|
},
|
|
1296
|
-
this.t("
|
|
1297
|
-
|
|
1410
|
+
/* @__PURE__ */ import_react4.default.createElement("div", { className: "twextsec-window-scroll" }, /* @__PURE__ */ import_react4.default.createElement("div", { className: style_names_default.intro }, /* @__PURE__ */ import_react4.default.createElement("p", null, this.t("securityInstruction"))), this.renderDistributionBulk(), !allRequired && /* @__PURE__ */ import_react4.default.createElement("div", { className: style_names_default.bulk }, /* @__PURE__ */ import_react4.default.createElement("span", null, this.t("bulk")), MODES.map((mode) => /* @__PURE__ */ import_react4.default.createElement(
|
|
1411
|
+
"button",
|
|
1412
|
+
{
|
|
1413
|
+
type: "button",
|
|
1414
|
+
key: mode,
|
|
1415
|
+
value: mode,
|
|
1416
|
+
disabled: entries.every((entry) => !this.canChoose(entry, mode)),
|
|
1417
|
+
onClick: this.handleBulk
|
|
1418
|
+
},
|
|
1419
|
+
/* @__PURE__ */ import_react4.default.createElement(ModeIcon, { mode }),
|
|
1420
|
+
this.t(mode)
|
|
1421
|
+
))), /* @__PURE__ */ import_react4.default.createElement(
|
|
1422
|
+
"div",
|
|
1423
|
+
{
|
|
1424
|
+
className: style_names_default.columns,
|
|
1425
|
+
"aria-hidden": "true"
|
|
1426
|
+
},
|
|
1427
|
+
/* @__PURE__ */ import_react4.default.createElement("span", null, this.t("extension")),
|
|
1428
|
+
MODES.map((mode) => /* @__PURE__ */ import_react4.default.createElement("span", { key: mode, className: style_names_default.modeHeading }, /* @__PURE__ */ import_react4.default.createElement(ModeIcon, { mode }), this.t(mode)))
|
|
1429
|
+
), /* @__PURE__ */ import_react4.default.createElement("div", { className: style_names_default.list }, /* @__PURE__ */ import_react4.default.createElement(
|
|
1430
|
+
package_sections_default,
|
|
1431
|
+
{
|
|
1432
|
+
entries,
|
|
1433
|
+
items: entries.map((entry, index) => ({ entry, index })),
|
|
1434
|
+
locale: this.props.locale,
|
|
1435
|
+
idPrefix: "security-extension",
|
|
1436
|
+
renderItem: ({ entry, index }) => this.renderRow(entry, index)
|
|
1437
|
+
}
|
|
1438
|
+
), /* @__PURE__ */ import_react4.default.createElement("p", { className: style_names_default.note }, this.t("note")), counts.unsandboxed > 0 && /* @__PURE__ */ import_react4.default.createElement("p", { className: style_names_default.warning }, this.t("warning")))),
|
|
1439
|
+
/* @__PURE__ */ import_react4.default.createElement("footer", { className: `${style_names_default.footer} ${style_names_default.securityFooter}` }, this.props.context === "catalog" && /* @__PURE__ */ import_react4.default.createElement("p", { className: style_names_default.cancelDestination }, this.t("catalogCancelDestination")), /* @__PURE__ */ import_react4.default.createElement("div", { className: style_names_default.footerControls }, /* @__PURE__ */ import_react4.default.createElement(
|
|
1440
|
+
"span",
|
|
1441
|
+
{
|
|
1442
|
+
className: style_names_default.secondary,
|
|
1443
|
+
"aria-live": "polite"
|
|
1444
|
+
},
|
|
1445
|
+
this.t("summary", counts)
|
|
1446
|
+
), /* @__PURE__ */ import_react4.default.createElement("div", { className: style_names_default.buttons }, /* @__PURE__ */ import_react4.default.createElement(
|
|
1447
|
+
"button",
|
|
1448
|
+
{
|
|
1449
|
+
type: "button",
|
|
1450
|
+
onClick: this.handleCancel
|
|
1451
|
+
},
|
|
1452
|
+
this.t("cancel")
|
|
1453
|
+
), /* @__PURE__ */ import_react4.default.createElement(
|
|
1454
|
+
"button",
|
|
1455
|
+
{
|
|
1456
|
+
type: "button",
|
|
1457
|
+
className: style_names_default.primary,
|
|
1458
|
+
disabled: !this.state.ready || !this.selectionReady(),
|
|
1459
|
+
onClick: this.handleOK
|
|
1460
|
+
},
|
|
1461
|
+
this.t("ok")
|
|
1462
|
+
))))
|
|
1463
|
+
)
|
|
1298
1464
|
);
|
|
1299
1465
|
}
|
|
1300
1466
|
};
|
|
1301
|
-
var DefaultFrame = ({ children, contentLabel, className }) => /* @__PURE__ */ import_react4.default.createElement("section", { role: "dialog", "aria-label": contentLabel, className }, children);
|
|
1467
|
+
var DefaultFrame = ({ children, contentLabel, className, headerClassName }) => /* @__PURE__ */ import_react4.default.createElement("section", { role: "dialog", "aria-label": contentLabel, className }, /* @__PURE__ */ import_react4.default.createElement("header", { className: headerClassName }, /* @__PURE__ */ import_react4.default.createElement("div", null, contentLabel)), children);
|
|
1302
1468
|
ExtensionSecurityDialog.defaultProps = {
|
|
1303
1469
|
loadInfo: loadExtensionInfo,
|
|
1304
1470
|
initialChoices: /* @__PURE__ */ new Map(),
|
|
@@ -1402,7 +1568,7 @@ var ExtensionSelectionList = class extends ExtensionSecurityDialog {
|
|
|
1402
1568
|
},
|
|
1403
1569
|
/* @__PURE__ */ import_react4.default.createElement(ModeIcon, { mode }),
|
|
1404
1570
|
this.t(mode)
|
|
1405
|
-
))
|
|
1571
|
+
))), this.renderDistributionBulk(), /* @__PURE__ */ import_react4.default.createElement("div", { className: style_names_default.list }, /* @__PURE__ */ import_react4.default.createElement(
|
|
1406
1572
|
package_sections_default,
|
|
1407
1573
|
{
|
|
1408
1574
|
entries: this.props.entries,
|
package/dist/react.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export interface ExtensionDistributionSettings<T extends ExtensionEntry = Extens
|
|
|
12
12
|
}
|
|
13
13
|
export interface DialogFrameProps {
|
|
14
14
|
children: React.ReactNode; id: string; className: string; contentLabel: string;
|
|
15
|
+
headerClassName?: string;
|
|
15
16
|
hideCloseButton: boolean; onRequestClose(): void;
|
|
16
17
|
}
|
|
17
18
|
export interface ExtensionSecurityDialogProps {
|
package/dist/react.mjs
CHANGED
|
@@ -197,6 +197,7 @@ var style_names_default = {
|
|
|
197
197
|
"cancelDestination": "twextsec-cancel-destination",
|
|
198
198
|
"error": "twextsec-error",
|
|
199
199
|
"footer": "twextsec-footer",
|
|
200
|
+
"frameHeader": "twextsec-frame-header",
|
|
200
201
|
"securityFooter": "twextsec-security-footer",
|
|
201
202
|
"securityModes": "twextsec-security-modes",
|
|
202
203
|
"rowControls": "twextsec-row-controls",
|
|
@@ -419,9 +420,10 @@ var messages = {
|
|
|
419
420
|
"loadSelected": "Load selected extensions",
|
|
420
421
|
"loadingExtensions": "Loading\u2026",
|
|
421
422
|
"title": "Extension Security",
|
|
423
|
+
"maximize": "Maximize",
|
|
424
|
+
"restoreWindow": "Restore window",
|
|
422
425
|
"intro": "Choose how to run each extension (you can choose while metadata loads).",
|
|
423
426
|
"allRequiredIntro": "All extensions require Without sandbox, which is already selected. Choose OK to load the project, or Cancel to stop.",
|
|
424
|
-
"progress": "Extension information: {done}/{total}",
|
|
425
427
|
"bulk": "Apply to all listed extensions",
|
|
426
428
|
"extension": "Extension",
|
|
427
429
|
"deny": "Deny",
|
|
@@ -439,7 +441,6 @@ var messages = {
|
|
|
439
441
|
"requiredToRun": "Required",
|
|
440
442
|
"unsupported": "Unsupported",
|
|
441
443
|
"choiceReset": "The incompatible selection was cleared. Choose how to run this extension again.",
|
|
442
|
-
"bulkNote": "Applies only to extensions that support this mode.",
|
|
443
444
|
"note": "Metadata is provided by the author.",
|
|
444
445
|
"summary": "Deny {deny} \xB7 With {sandboxed} \xB7 Without {unsandboxed} \xB7 Unselected {unselected}",
|
|
445
446
|
"cancel": "Cancel",
|
|
@@ -465,7 +466,7 @@ var messages = {
|
|
|
465
466
|
"distributionNote": "\u914D\u5E03\u65B9\u6CD5\u3068\u5B9F\u884C\u8A31\u53EF\u306F\u5225\u306E\u8A2D\u5B9A\u3067\u3059\u3002\u4E00\u62EC\u6307\u5B9A\u3057\u305F\u5F8C\u3001\u5404\u884C\u3067\u5909\u66F4\u3067\u304D\u307E\u3059\u3002",
|
|
466
467
|
"configuredSummary": "\u8A2D\u5B9A\u3059\u308B\u6A5F\u80FD\u62E1\u5F35 {count} \u4EF6",
|
|
467
468
|
"applySettings": "\u62E1\u5F35\u306E\u8A2D\u5B9A\u3092\u9069\u7528",
|
|
468
|
-
"securityInstruction": "\u300C\u26A0\uFE0F\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u306A\u3057
|
|
469
|
+
"securityInstruction": "\u6A5F\u80FD\u62E1\u5F35\u3092\u8AAD\u307F\u8FBC\u307F\u307E\u3059\u3002\u6A5F\u80FD\u62E1\u5F35\u306E\u88FD\u4F5C\u8005\u304C\u300C\u26A0\uFE0F\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u306A\u3057:\u5FC5\u8981\u300D\u3092\u6307\u5B9A\u3057\u3066\u3044\u308B\u3082\u306E\u304C\u3042\u308A\u307E\u3059\u3002\u3042\u306A\u305F\u81EA\u8EAB\u3067\u305D\u308C\u306B\u5F93\u3046\u304B\u3069\u3046\u304B\u3092\u9078\u629E\u3067\u304D\u307E\u3059\u3002",
|
|
469
470
|
"catalogCancelDestination": "\u300E\u30AD\u30E3\u30F3\u30BB\u30EB\u300F\u3067\u9078\u629E\u4E00\u89A7\u306B\u623B\u308A\u307E\u3059\u3002",
|
|
470
471
|
"selectionIntro": "\u8FFD\u52A0\u3059\u308B\u6A5F\u80FD\u62E1\u5F35\u3092\u9078\u3093\u3067\u304F\u3060\u3055\u3044\u3002\u4F9D\u5B58\u3059\u308B\u6A5F\u80FD\u62E1\u5F35\u3082\u81EA\u52D5\u3067\u9078\u629E\u3055\u308C\u307E\u3059\u3002",
|
|
471
472
|
"documentationFor": "{name}: \u30C9\u30AD\u30E5\u30E1\u30F3\u30C8",
|
|
@@ -498,11 +499,12 @@ var messages = {
|
|
|
498
499
|
"loadSelected": "\u9078\u629E\u3057\u305F\u62E1\u5F35\u3092\u8AAD\u307F\u8FBC\u3080",
|
|
499
500
|
"loadingExtensions": "\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",
|
|
500
501
|
"title": "\u6A5F\u80FD\u62E1\u5F35\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3",
|
|
502
|
+
"maximize": "\u5168\u753B\u9762\u5316",
|
|
503
|
+
"restoreWindow": "\u5143\u306E\u30B5\u30A4\u30BA\u306B\u623B\u3059",
|
|
501
504
|
"intro": "\u5B9F\u884C\u65B9\u6CD5\u3092\u9078\u3093\u3067\u304F\u3060\u3055\u3044\uFF08\u53D6\u5F97\u4E2D\u3067\u3082\u9078\u629E\u3067\u304D\u307E\u3059\uFF09",
|
|
502
505
|
"allRequiredIntro": "\u3059\u3079\u3066\u306E\u6A5F\u80FD\u62E1\u5F35\u3067\u5FC5\u8981\u306A\u300C\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u306A\u3057\u300D\u3092\u9078\u629E\u6E08\u307F\u3067\u3059\u3002\u300COK\u300D\u3067\u8AAD\u307F\u8FBC\u3080\u304B\u3001\u300C\u30AD\u30E3\u30F3\u30BB\u30EB\u300D\u3067\u4E2D\u6B62\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
503
|
-
"
|
|
504
|
-
"
|
|
505
|
-
"extension": "\u6A5F\u80FD\u62E1\u5F35",
|
|
506
|
+
"bulk": "\u3059\u3079\u3066\u306E\u6A5F\u80FD\u62E1\u5F35\u3092\u4E00\u62EC\u3067\u6307\u5B9A",
|
|
507
|
+
"extension": "\u305D\u308C\u305E\u308C\u306E\u6A5F\u80FD\u62E1\u5F35\u306B\u3064\u3044\u3066\u500B\u5225\u3067\u6307\u5B9A",
|
|
506
508
|
"deny": "\u62D2\u5426",
|
|
507
509
|
"unsandboxed": "\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u306A\u3057",
|
|
508
510
|
"sandboxed": "\u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u3042\u308A",
|
|
@@ -518,9 +520,8 @@ var messages = {
|
|
|
518
520
|
"requiredToRun": "\u5FC5\u8981",
|
|
519
521
|
"unsupported": "\u975E\u5BFE\u5FDC",
|
|
520
522
|
"choiceReset": "\u975E\u5BFE\u5FDC\u306E\u9078\u629E\u3092\u89E3\u9664\u3057\u307E\u3057\u305F\u3002\u5B9F\u884C\u65B9\u6CD5\u3092\u9078\u3073\u76F4\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
521
|
-
"
|
|
522
|
-
"
|
|
523
|
-
"summary": "\u62D2\u5426 {deny} \xB7 \u3042\u308A {sandboxed} \xB7 \u306A\u3057 {unsandboxed} \xB7 \u672A\u6307\u5B9A {unselected}",
|
|
523
|
+
"note": "\u6A5F\u80FD\u62E1\u5F35\u306E\u8AAC\u660E\u3084\u5C5E\u6027\u60C5\u5831\u306F\u3001\u305D\u308C\u305E\u308C\u306E\u6A5F\u80FD\u62E1\u5F35\u306E\u88FD\u4F5C\u8005\u306B\u3088\u308A\u8A18\u8FF0\u3055\u308C\u305F\u3082\u306E\u3067\u3059\u3002",
|
|
524
|
+
"summary": "\u62D2\u5426 {deny} \xB7 \u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u3042\u308A {sandboxed} \xB7 \u30B5\u30F3\u30C9\u30DC\u30C3\u30AF\u30B9\u306A\u3057 {unsandboxed} \xB7 \u672A\u6307\u5B9A {unselected}",
|
|
524
525
|
"cancel": "\u30AD\u30E3\u30F3\u30BB\u30EB",
|
|
525
526
|
"ok": "OK",
|
|
526
527
|
"yes": "\u306F\u3044",
|
|
@@ -542,7 +543,7 @@ var formatMessage = (locale, key, values = {}) => {
|
|
|
542
543
|
};
|
|
543
544
|
|
|
544
545
|
// src/package-description.jsx
|
|
545
|
-
var commonBanner = "data:image/svg+xml;base64,
|
|
546
|
+
var commonBanner = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIiB2aWV3Qm94PSIxNTAgMCAzMDAgMzAwIj48cGF0aCBmaWxsPSIjMGZiZDhjIiBkPSJNMCAwaDYwMHYzMDBIMFoiIHN0eWxlPSJzdHJva2Utd2lkdGg6Ljg5ODAyNyIvPjxwYXRoIGZpbGw9IiNmZmQ2NDEiIGQ9Ik0tMTkuMzQ0MDYxIDE4NkMtMTkuMzQ0MDYxIDkuNjMxMTQzIDEyMy42MzExNC0xMzMuMzQ0MDYgMzAwLTEzMy4zNDQwNmMxNzYuMzY4ODUgMCAzMTkuMzQ0MDYgMTQyLjk3NTIwMyAzMTkuMzQ0MDYgMzE5LjM0NDA2IDAgMTc2LjM2ODg1LTE0Mi45NzUyMSAzMTkuMzQ0MDYtMzE5LjM0NDA2IDMxOS4zNDQwNi0xNzYuMzY4ODYgMC0zMTkuMzQ0MDYxLTE0Mi45NzUyMS0zMTkuMzQ0MDYxLTMxOS4zNDQwNloiIHN0eWxlPSJmaWxsOiMwZWFhN2U7ZmlsbC1vcGFjaXR5OjE7Zmls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gMCAxMC43NTA3MzA2NiAzLjA3MTY4Njk5IDIzLjAzODAwNDY4IDI2LjEwODU5MjU0IDIzLjAzODAwNDY4eiIvPjwvc3ZnPg==";
|
|
546
547
|
var requiresUnsandboxed = (metadata) => metadata && typeof metadata.unsandboxed === "string" && metadata.unsandboxed.trim().toLowerCase() === "required";
|
|
547
548
|
var resolveSharedPackageMetadata = (entry, sourceMetadata = {}) => {
|
|
548
549
|
const catalog = entry.metadata || {};
|
|
@@ -724,6 +725,151 @@ var resolveExtensionSelection = (entries, explicitIds = [], loadedIds = []) => {
|
|
|
724
725
|
return { selected, required, requiredBy, loaded, ordered: ordered.filter((entry) => !loaded.has(entry.id)) };
|
|
725
726
|
};
|
|
726
727
|
|
|
728
|
+
// src/dialog-window.js
|
|
729
|
+
function attachSecurityDialogWindow(anchor, labels) {
|
|
730
|
+
const dialog = anchor.closest('[role="dialog"]');
|
|
731
|
+
const titlebar = dialog == null ? void 0 : dialog.querySelector(".twextsec-frame-header");
|
|
732
|
+
if (!dialog || !titlebar || !titlebar.parentElement.contains(anchor)) return null;
|
|
733
|
+
const doc = dialog.ownerDocument, win = doc.defaultView;
|
|
734
|
+
if (!win) return null;
|
|
735
|
+
const frame = titlebar.parentElement;
|
|
736
|
+
const maximizeButton = doc.createElement("button");
|
|
737
|
+
maximizeButton.type = "button";
|
|
738
|
+
maximizeButton.className = "twextsec-window-button";
|
|
739
|
+
titlebar.append(maximizeButton);
|
|
740
|
+
let gesture = null, restoreBounds = null;
|
|
741
|
+
const handles = [];
|
|
742
|
+
let currentLabels = labels;
|
|
743
|
+
const originalStyle = dialog.style.cssText;
|
|
744
|
+
dialog.setAttribute("data-twextsec-window", "");
|
|
745
|
+
if (frame !== dialog) frame.setAttribute("data-twextsec-window-frame", "");
|
|
746
|
+
const viewport = () => ({ width: win.innerWidth, height: win.innerHeight });
|
|
747
|
+
const bounds = () => {
|
|
748
|
+
const { x, y, width, height } = dialog.getBoundingClientRect();
|
|
749
|
+
return { x, y, width, height };
|
|
750
|
+
};
|
|
751
|
+
const clamp = (value, min, max) => Math.min(Math.max(value, min), max);
|
|
752
|
+
function fit(rect) {
|
|
753
|
+
const view = viewport();
|
|
754
|
+
const width = clamp(rect.width, Math.min(360, view.width), view.width);
|
|
755
|
+
const height = clamp(rect.height, Math.min(280, view.height), view.height);
|
|
756
|
+
return { width, height, x: clamp(rect.x, 0, view.width - width), y: clamp(rect.y, 0, view.height - height) };
|
|
757
|
+
}
|
|
758
|
+
function place(rect) {
|
|
759
|
+
Object.assign(dialog.style, {
|
|
760
|
+
maxHeight: "100dvh",
|
|
761
|
+
transform: "none",
|
|
762
|
+
margin: "0",
|
|
763
|
+
inset: "auto",
|
|
764
|
+
left: `${rect.x}px`,
|
|
765
|
+
top: `${rect.y}px`,
|
|
766
|
+
width: `${rect.width}px`,
|
|
767
|
+
height: `${rect.height}px`
|
|
768
|
+
});
|
|
769
|
+
}
|
|
770
|
+
function stop(event) {
|
|
771
|
+
if (!gesture || (event == null ? void 0 : event.pointerId) !== void 0 && event.pointerId !== gesture.id) return;
|
|
772
|
+
const { target, id } = gesture;
|
|
773
|
+
gesture = null;
|
|
774
|
+
if (target.hasPointerCapture(id)) target.releasePointerCapture(id);
|
|
775
|
+
dialog.removeAttribute("data-twextsec-dragging");
|
|
776
|
+
}
|
|
777
|
+
function start(event, edge) {
|
|
778
|
+
if (restoreBounds || gesture || event.button !== 0 || !event.isPrimary) return;
|
|
779
|
+
if (!edge && event.target.closest("button, a, input, select, textarea")) return;
|
|
780
|
+
event.preventDefault();
|
|
781
|
+
const target = event.currentTarget;
|
|
782
|
+
gesture = { id: event.pointerId, target, edge, x: event.clientX, y: event.clientY, rect: fit(bounds()) };
|
|
783
|
+
place(gesture.rect);
|
|
784
|
+
target.setPointerCapture(event.pointerId);
|
|
785
|
+
dialog.setAttribute("data-twextsec-dragging", "");
|
|
786
|
+
}
|
|
787
|
+
function move(event) {
|
|
788
|
+
if (!gesture || event.pointerId !== gesture.id) return;
|
|
789
|
+
const { rect, edge } = gesture, view = viewport();
|
|
790
|
+
const dx = event.clientX - gesture.x, dy = event.clientY - gesture.y;
|
|
791
|
+
if (!edge) {
|
|
792
|
+
place(fit(__spreadProps(__spreadValues({}, rect), { x: rect.x + dx, y: rect.y + dy })));
|
|
793
|
+
return;
|
|
794
|
+
}
|
|
795
|
+
const minWidth = Math.min(360, view.width), minHeight = Math.min(280, view.height);
|
|
796
|
+
let left = rect.x, top = rect.y, right = rect.x + rect.width, bottom = rect.y + rect.height;
|
|
797
|
+
if (edge.includes("w")) left = clamp(rect.x + dx, 0, right - minWidth);
|
|
798
|
+
if (edge.includes("e")) right = clamp(right + dx, left + minWidth, view.width);
|
|
799
|
+
if (edge.includes("n")) top = clamp(rect.y + dy, 0, bottom - minHeight);
|
|
800
|
+
if (edge.includes("s")) bottom = clamp(bottom + dy, top + minHeight, view.height);
|
|
801
|
+
place({ x: left, y: top, width: right - left, height: bottom - top });
|
|
802
|
+
}
|
|
803
|
+
const startMove = (event) => start(event, "");
|
|
804
|
+
titlebar.addEventListener("pointerdown", startMove);
|
|
805
|
+
for (const edge of ["n", "e", "s", "w", "ne", "se", "sw", "nw"]) {
|
|
806
|
+
const handle = doc.createElement("div");
|
|
807
|
+
handle.className = "twextsec-resize";
|
|
808
|
+
handle.dataset.edge = edge;
|
|
809
|
+
handle.setAttribute("aria-hidden", "true");
|
|
810
|
+
handle.addEventListener("pointerdown", (event) => start(event, edge));
|
|
811
|
+
dialog.append(handle);
|
|
812
|
+
handles.push(handle);
|
|
813
|
+
}
|
|
814
|
+
function updateButton() {
|
|
815
|
+
const label = restoreBounds ? currentLabels.restore : currentLabels.maximize;
|
|
816
|
+
maximizeButton.setAttribute("aria-label", label);
|
|
817
|
+
maximizeButton.setAttribute("aria-pressed", String(Boolean(restoreBounds)));
|
|
818
|
+
maximizeButton.title = label;
|
|
819
|
+
maximizeButton.textContent = restoreBounds ? "\u2750" : "\u26F6";
|
|
820
|
+
dialog.toggleAttribute("data-twextsec-maximized", Boolean(restoreBounds));
|
|
821
|
+
}
|
|
822
|
+
function toggle() {
|
|
823
|
+
stop();
|
|
824
|
+
if (restoreBounds) {
|
|
825
|
+
place(fit(restoreBounds));
|
|
826
|
+
restoreBounds = null;
|
|
827
|
+
} else {
|
|
828
|
+
restoreBounds = bounds();
|
|
829
|
+
place(__spreadValues({ x: 0, y: 0 }, viewport()));
|
|
830
|
+
}
|
|
831
|
+
updateButton();
|
|
832
|
+
}
|
|
833
|
+
function resize() {
|
|
834
|
+
stop();
|
|
835
|
+
if (restoreBounds) place(__spreadValues({ x: 0, y: 0 }, viewport()));
|
|
836
|
+
else place(fit(bounds()));
|
|
837
|
+
}
|
|
838
|
+
maximizeButton.addEventListener("click", toggle);
|
|
839
|
+
win.addEventListener("pointermove", move);
|
|
840
|
+
win.addEventListener("pointerup", stop);
|
|
841
|
+
win.addEventListener("pointercancel", stop);
|
|
842
|
+
win.addEventListener("blur", stop);
|
|
843
|
+
win.addEventListener("resize", resize);
|
|
844
|
+
dialog.addEventListener("lostpointercapture", stop);
|
|
845
|
+
dialog.addEventListener("close", stop);
|
|
846
|
+
updateButton();
|
|
847
|
+
return {
|
|
848
|
+
updateLabels(next) {
|
|
849
|
+
currentLabels = next;
|
|
850
|
+
updateButton();
|
|
851
|
+
},
|
|
852
|
+
dispose() {
|
|
853
|
+
stop();
|
|
854
|
+
titlebar.removeEventListener("pointerdown", startMove);
|
|
855
|
+
maximizeButton.removeEventListener("click", toggle);
|
|
856
|
+
win.removeEventListener("pointermove", move);
|
|
857
|
+
win.removeEventListener("pointerup", stop);
|
|
858
|
+
win.removeEventListener("pointercancel", stop);
|
|
859
|
+
win.removeEventListener("blur", stop);
|
|
860
|
+
win.removeEventListener("resize", resize);
|
|
861
|
+
dialog.removeEventListener("lostpointercapture", stop);
|
|
862
|
+
dialog.removeEventListener("close", stop);
|
|
863
|
+
handles.forEach((handle) => handle.remove());
|
|
864
|
+
maximizeButton.remove();
|
|
865
|
+
dialog.style.cssText = originalStyle;
|
|
866
|
+
dialog.removeAttribute("data-twextsec-window");
|
|
867
|
+
dialog.removeAttribute("data-twextsec-maximized");
|
|
868
|
+
if (frame !== dialog) frame.removeAttribute("data-twextsec-window-frame");
|
|
869
|
+
}
|
|
870
|
+
};
|
|
871
|
+
}
|
|
872
|
+
|
|
727
873
|
// src/react.jsx
|
|
728
874
|
var bindAll = (instance, names) => names.forEach((name) => {
|
|
729
875
|
instance[name] = instance[name].bind(instance);
|
|
@@ -806,15 +952,18 @@ var ExtensionSecurityDialog = class extends React4.Component {
|
|
|
806
952
|
"handleRequestClose",
|
|
807
953
|
"focusNo",
|
|
808
954
|
"handleDistribution",
|
|
809
|
-
"handleBulkDistribution"
|
|
955
|
+
"handleBulkDistribution",
|
|
956
|
+
"handleWindowAnchor"
|
|
810
957
|
]);
|
|
811
958
|
}
|
|
812
959
|
componentDidMount() {
|
|
813
960
|
this.alive = true;
|
|
961
|
+
this.mountWindow();
|
|
814
962
|
this.delay(() => this.setState({ ready: true }));
|
|
815
963
|
this.startRequests();
|
|
816
964
|
}
|
|
817
965
|
componentDidUpdate(previousProps) {
|
|
966
|
+
this.mountWindow();
|
|
818
967
|
this.initializeEntries(previousProps);
|
|
819
968
|
this.startRequests();
|
|
820
969
|
const { entries } = this.props;
|
|
@@ -827,10 +976,26 @@ var ExtensionSecurityDialog = class extends React4.Component {
|
|
|
827
976
|
}
|
|
828
977
|
}
|
|
829
978
|
componentWillUnmount() {
|
|
979
|
+
var _a;
|
|
830
980
|
this.alive = false;
|
|
981
|
+
(_a = this.windowControls) == null ? void 0 : _a.dispose();
|
|
831
982
|
this.controllers.forEach((controller) => controller.abort());
|
|
832
983
|
this.timeouts.forEach((timeout) => clearTimeout(timeout));
|
|
833
984
|
}
|
|
985
|
+
handleWindowAnchor(node) {
|
|
986
|
+
if (node) {
|
|
987
|
+
this.windowAnchor = node;
|
|
988
|
+
if (this.alive) this.mountWindow();
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
mountWindow() {
|
|
992
|
+
var _a;
|
|
993
|
+
const labels = { maximize: this.t("maximize"), restore: this.t("restoreWindow") };
|
|
994
|
+
if (!this.windowControls && this.windowAnchor) {
|
|
995
|
+
this.windowControls = attachSecurityDialogWindow(this.windowAnchor, labels);
|
|
996
|
+
}
|
|
997
|
+
(_a = this.windowControls) == null ? void 0 : _a.updateLabels(labels);
|
|
998
|
+
}
|
|
834
999
|
delay(callback, duration = 750) {
|
|
835
1000
|
const timeout = setTimeout(() => {
|
|
836
1001
|
this.timeouts.delete(timeout);
|
|
@@ -1163,7 +1328,6 @@ var ExtensionSecurityDialog = class extends React4.Component {
|
|
|
1163
1328
|
const mode = this.state.choices[entry.url];
|
|
1164
1329
|
counts[this.canChoose(entry, mode) ? mode : "unselected"]++;
|
|
1165
1330
|
});
|
|
1166
|
-
const done = entries.filter((entry) => (this.state.rows[entry.url] || {}).status).length;
|
|
1167
1331
|
const confirmation = this.state.confirmation;
|
|
1168
1332
|
const allRequired = allRequireUnsandboxed(entries, this.state.rows);
|
|
1169
1333
|
return /* @__PURE__ */ React4.createElement(
|
|
@@ -1171,6 +1335,7 @@ var ExtensionSecurityDialog = class extends React4.Component {
|
|
|
1171
1335
|
{
|
|
1172
1336
|
id: "extension-security-batch",
|
|
1173
1337
|
className: style_names_default.modal,
|
|
1338
|
+
headerClassName: style_names_default.frameHeader,
|
|
1174
1339
|
contentLabel: this.t("title"),
|
|
1175
1340
|
hideCloseButton: true,
|
|
1176
1341
|
onRequestClose: this.handleRequestClose
|
|
@@ -1178,6 +1343,7 @@ var ExtensionSecurityDialog = class extends React4.Component {
|
|
|
1178
1343
|
confirmation ? /* @__PURE__ */ React4.createElement(
|
|
1179
1344
|
"div",
|
|
1180
1345
|
{
|
|
1346
|
+
ref: this.handleWindowAnchor,
|
|
1181
1347
|
className: style_names_default.confirmation,
|
|
1182
1348
|
role: "alertdialog",
|
|
1183
1349
|
"aria-labelledby": "extension-confirm-title",
|
|
@@ -1203,70 +1369,70 @@ var ExtensionSecurityDialog = class extends React4.Component {
|
|
|
1203
1369
|
},
|
|
1204
1370
|
this.t("yes")
|
|
1205
1371
|
))
|
|
1206
|
-
) : /* @__PURE__ */ React4.createElement(
|
|
1372
|
+
) : /* @__PURE__ */ React4.createElement(
|
|
1207
1373
|
"div",
|
|
1208
1374
|
{
|
|
1209
|
-
|
|
1210
|
-
"
|
|
1211
|
-
},
|
|
1212
|
-
this.t("progress", { done, total: entries.length })
|
|
1213
|
-
)), this.renderDistributionBulk(), !allRequired && /* @__PURE__ */ React4.createElement("div", { className: style_names_default.bulk }, /* @__PURE__ */ React4.createElement("span", null, this.t("bulk")), MODES.map((mode) => /* @__PURE__ */ React4.createElement(
|
|
1214
|
-
"button",
|
|
1215
|
-
{
|
|
1216
|
-
type: "button",
|
|
1217
|
-
key: mode,
|
|
1218
|
-
value: mode,
|
|
1219
|
-
disabled: entries.every((entry) => !this.canChoose(entry, mode)),
|
|
1220
|
-
title: this.t("bulkNote"),
|
|
1221
|
-
onClick: this.handleBulk
|
|
1222
|
-
},
|
|
1223
|
-
/* @__PURE__ */ React4.createElement(ModeIcon, { mode }),
|
|
1224
|
-
this.t(mode)
|
|
1225
|
-
)), /* @__PURE__ */ React4.createElement("div", { className: style_names_default.bulkNote }, this.t("bulkNote"))), /* @__PURE__ */ React4.createElement(
|
|
1226
|
-
"div",
|
|
1227
|
-
{
|
|
1228
|
-
className: style_names_default.columns,
|
|
1229
|
-
"aria-hidden": "true"
|
|
1230
|
-
},
|
|
1231
|
-
/* @__PURE__ */ React4.createElement("span", null, this.t("extension")),
|
|
1232
|
-
MODES.map((mode) => /* @__PURE__ */ React4.createElement("span", { key: mode, className: style_names_default.modeHeading }, /* @__PURE__ */ React4.createElement(ModeIcon, { mode }), this.t(mode)))
|
|
1233
|
-
), /* @__PURE__ */ React4.createElement("div", { className: style_names_default.list }, /* @__PURE__ */ React4.createElement(
|
|
1234
|
-
package_sections_default,
|
|
1235
|
-
{
|
|
1236
|
-
entries,
|
|
1237
|
-
items: entries.map((entry, index) => ({ entry, index })),
|
|
1238
|
-
locale: this.props.locale,
|
|
1239
|
-
idPrefix: "security-extension",
|
|
1240
|
-
renderItem: ({ entry, index }) => this.renderRow(entry, index)
|
|
1241
|
-
}
|
|
1242
|
-
), /* @__PURE__ */ React4.createElement("p", { className: style_names_default.note }, this.t("note")), counts.unsandboxed > 0 && /* @__PURE__ */ React4.createElement("p", { className: style_names_default.warning }, this.t("warning"))), /* @__PURE__ */ React4.createElement("footer", { className: `${style_names_default.footer} ${style_names_default.securityFooter}` }, this.props.context === "catalog" && /* @__PURE__ */ React4.createElement("p", { className: style_names_default.cancelDestination }, this.t("catalogCancelDestination")), /* @__PURE__ */ React4.createElement("div", { className: style_names_default.footerControls }, /* @__PURE__ */ React4.createElement(
|
|
1243
|
-
"span",
|
|
1244
|
-
{
|
|
1245
|
-
className: style_names_default.secondary,
|
|
1246
|
-
"aria-live": "polite"
|
|
1247
|
-
},
|
|
1248
|
-
this.t("summary", counts)
|
|
1249
|
-
), /* @__PURE__ */ React4.createElement("div", { className: style_names_default.buttons }, /* @__PURE__ */ React4.createElement(
|
|
1250
|
-
"button",
|
|
1251
|
-
{
|
|
1252
|
-
type: "button",
|
|
1253
|
-
onClick: this.handleCancel
|
|
1254
|
-
},
|
|
1255
|
-
this.t("cancel")
|
|
1256
|
-
), /* @__PURE__ */ React4.createElement(
|
|
1257
|
-
"button",
|
|
1258
|
-
{
|
|
1259
|
-
type: "button",
|
|
1260
|
-
className: style_names_default.primary,
|
|
1261
|
-
disabled: !this.state.ready || !this.selectionReady(),
|
|
1262
|
-
onClick: this.handleOK
|
|
1375
|
+
ref: this.handleWindowAnchor,
|
|
1376
|
+
className: `${style_names_default.body}${this.props.enableDistribution ? " twextsec-with-distribution" : ""}`
|
|
1263
1377
|
},
|
|
1264
|
-
this.t("
|
|
1265
|
-
|
|
1378
|
+
/* @__PURE__ */ React4.createElement("div", { className: "twextsec-window-scroll" }, /* @__PURE__ */ React4.createElement("div", { className: style_names_default.intro }, /* @__PURE__ */ React4.createElement("p", null, this.t("securityInstruction"))), this.renderDistributionBulk(), !allRequired && /* @__PURE__ */ React4.createElement("div", { className: style_names_default.bulk }, /* @__PURE__ */ React4.createElement("span", null, this.t("bulk")), MODES.map((mode) => /* @__PURE__ */ React4.createElement(
|
|
1379
|
+
"button",
|
|
1380
|
+
{
|
|
1381
|
+
type: "button",
|
|
1382
|
+
key: mode,
|
|
1383
|
+
value: mode,
|
|
1384
|
+
disabled: entries.every((entry) => !this.canChoose(entry, mode)),
|
|
1385
|
+
onClick: this.handleBulk
|
|
1386
|
+
},
|
|
1387
|
+
/* @__PURE__ */ React4.createElement(ModeIcon, { mode }),
|
|
1388
|
+
this.t(mode)
|
|
1389
|
+
))), /* @__PURE__ */ React4.createElement(
|
|
1390
|
+
"div",
|
|
1391
|
+
{
|
|
1392
|
+
className: style_names_default.columns,
|
|
1393
|
+
"aria-hidden": "true"
|
|
1394
|
+
},
|
|
1395
|
+
/* @__PURE__ */ React4.createElement("span", null, this.t("extension")),
|
|
1396
|
+
MODES.map((mode) => /* @__PURE__ */ React4.createElement("span", { key: mode, className: style_names_default.modeHeading }, /* @__PURE__ */ React4.createElement(ModeIcon, { mode }), this.t(mode)))
|
|
1397
|
+
), /* @__PURE__ */ React4.createElement("div", { className: style_names_default.list }, /* @__PURE__ */ React4.createElement(
|
|
1398
|
+
package_sections_default,
|
|
1399
|
+
{
|
|
1400
|
+
entries,
|
|
1401
|
+
items: entries.map((entry, index) => ({ entry, index })),
|
|
1402
|
+
locale: this.props.locale,
|
|
1403
|
+
idPrefix: "security-extension",
|
|
1404
|
+
renderItem: ({ entry, index }) => this.renderRow(entry, index)
|
|
1405
|
+
}
|
|
1406
|
+
), /* @__PURE__ */ React4.createElement("p", { className: style_names_default.note }, this.t("note")), counts.unsandboxed > 0 && /* @__PURE__ */ React4.createElement("p", { className: style_names_default.warning }, this.t("warning")))),
|
|
1407
|
+
/* @__PURE__ */ React4.createElement("footer", { className: `${style_names_default.footer} ${style_names_default.securityFooter}` }, this.props.context === "catalog" && /* @__PURE__ */ React4.createElement("p", { className: style_names_default.cancelDestination }, this.t("catalogCancelDestination")), /* @__PURE__ */ React4.createElement("div", { className: style_names_default.footerControls }, /* @__PURE__ */ React4.createElement(
|
|
1408
|
+
"span",
|
|
1409
|
+
{
|
|
1410
|
+
className: style_names_default.secondary,
|
|
1411
|
+
"aria-live": "polite"
|
|
1412
|
+
},
|
|
1413
|
+
this.t("summary", counts)
|
|
1414
|
+
), /* @__PURE__ */ React4.createElement("div", { className: style_names_default.buttons }, /* @__PURE__ */ React4.createElement(
|
|
1415
|
+
"button",
|
|
1416
|
+
{
|
|
1417
|
+
type: "button",
|
|
1418
|
+
onClick: this.handleCancel
|
|
1419
|
+
},
|
|
1420
|
+
this.t("cancel")
|
|
1421
|
+
), /* @__PURE__ */ React4.createElement(
|
|
1422
|
+
"button",
|
|
1423
|
+
{
|
|
1424
|
+
type: "button",
|
|
1425
|
+
className: style_names_default.primary,
|
|
1426
|
+
disabled: !this.state.ready || !this.selectionReady(),
|
|
1427
|
+
onClick: this.handleOK
|
|
1428
|
+
},
|
|
1429
|
+
this.t("ok")
|
|
1430
|
+
))))
|
|
1431
|
+
)
|
|
1266
1432
|
);
|
|
1267
1433
|
}
|
|
1268
1434
|
};
|
|
1269
|
-
var DefaultFrame = ({ children, contentLabel, className }) => /* @__PURE__ */ React4.createElement("section", { role: "dialog", "aria-label": contentLabel, className }, children);
|
|
1435
|
+
var DefaultFrame = ({ children, contentLabel, className, headerClassName }) => /* @__PURE__ */ React4.createElement("section", { role: "dialog", "aria-label": contentLabel, className }, /* @__PURE__ */ React4.createElement("header", { className: headerClassName }, /* @__PURE__ */ React4.createElement("div", null, contentLabel)), children);
|
|
1270
1436
|
ExtensionSecurityDialog.defaultProps = {
|
|
1271
1437
|
loadInfo: loadExtensionInfo,
|
|
1272
1438
|
initialChoices: /* @__PURE__ */ new Map(),
|
|
@@ -1370,7 +1536,7 @@ var ExtensionSelectionList = class extends ExtensionSecurityDialog {
|
|
|
1370
1536
|
},
|
|
1371
1537
|
/* @__PURE__ */ React4.createElement(ModeIcon, { mode }),
|
|
1372
1538
|
this.t(mode)
|
|
1373
|
-
))
|
|
1539
|
+
))), this.renderDistributionBulk(), /* @__PURE__ */ React4.createElement("div", { className: style_names_default.list }, /* @__PURE__ */ React4.createElement(
|
|
1374
1540
|
package_sections_default,
|
|
1375
1541
|
{
|
|
1376
1542
|
entries: this.props.entries,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubohiroya/turbowarp-extension-security-dialog",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Batch extension security review, previews and per-project defaults for TurboWarp hosts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": {
|
|
@@ -30,14 +30,15 @@
|
|
|
30
30
|
"prepack": "pnpm run build",
|
|
31
31
|
"prepare": "pnpm run build"
|
|
32
32
|
},
|
|
33
|
-
"dependencies": {"@turbowarp/jszip": "3.
|
|
33
|
+
"dependencies": {"@turbowarp/jszip": "^3.12.0"},
|
|
34
34
|
"peerDependencies": {"react": "^16.14.0 || ^17 || ^18 || ^19", "react-dom": "^16.14.0 || ^17 || ^18 || ^19"},
|
|
35
35
|
"peerDependenciesMeta": {"react": {"optional": true}, "react-dom": {"optional": true}},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"react
|
|
37
|
+
"@playwright/test": "1.64.1",
|
|
38
|
+
"esbuild": "^0.28.2",
|
|
39
|
+
"jsdom": "^26.1.0",
|
|
40
|
+
"react": "^16.14.0",
|
|
41
|
+
"react-dom": "^16.14.0"
|
|
41
42
|
},
|
|
42
43
|
"packageManager": "pnpm@11.28.8",
|
|
43
44
|
"engines": {"node": ">=24"},
|
package/styles.css
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
.twextsec-modal > * { flex: 1 1 auto; min-height: 0; }
|
|
6
6
|
.twextsec-modal > :not(.twextsec-body):not(.twextsec-confirmation) { display: flex; flex-direction: column; overflow: hidden; }
|
|
7
7
|
.twextsec-modal > :not(.twextsec-body):not(.twextsec-confirmation) > :not(.twextsec-body) { flex-shrink: 0; }
|
|
8
|
+
/* Reset the host title's side-button offset when the close button is hidden. */
|
|
9
|
+
.twextsec-modal .twextsec-frame-header > :only-child { margin: 0; min-width: 0; flex-shrink: 1; text-align: center; }
|
|
8
10
|
.twextsec-body, .twextsec-confirmation { color: var(--ui-modal-foreground, #263145); background: var(--ui-modal-background, #fff); }
|
|
9
11
|
.twextsec-body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; }
|
|
10
12
|
.twextsec-body > :not(.twextsec-list) { flex-shrink: 0; }
|
|
@@ -177,3 +179,31 @@
|
|
|
177
179
|
.twextsec-selection.twextsec-with-distribution .twextsec-row-controls { grid-column: 1 / -1; grid-row: 2; }
|
|
178
180
|
.twextsec-selection.twextsec-with-distribution .twextsec-security-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
179
181
|
}
|
|
182
|
+
|
|
183
|
+
/* Keep window gestures separate from review choices and confirmation state. */
|
|
184
|
+
.twextsec-modal[data-twextsec-window] { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); margin: 0; max-width: 100vw; max-height: calc(100dvh - 32px); }
|
|
185
|
+
.twextsec-modal[data-twextsec-window] .twextsec-frame-header { position: relative; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 56px; padding-inline: 56px; cursor: move; user-select: none; touch-action: none; }
|
|
186
|
+
.twextsec-modal .twextsec-frame-header > :first-child { flex: 1 1 auto; min-width: 0; margin: 0; overflow-wrap: anywhere; text-align: center; cursor: inherit; }
|
|
187
|
+
.twextsec-window-button { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid currentColor; border-radius: 5px; color: inherit; background: transparent; font: 24px/1 system-ui, sans-serif; cursor: pointer; }
|
|
188
|
+
.twextsec-window-button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
|
|
189
|
+
.twextsec-body > .twextsec-window-scroll { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
|
|
190
|
+
.twextsec-window-scroll > :not(.twextsec-list) { flex-shrink: 0; }
|
|
191
|
+
.twextsec-window-scroll > .twextsec-list { flex: 1 0 160px; min-height: 160px; }
|
|
192
|
+
.twextsec-modal[data-twextsec-maximized] { border-radius: 0; max-height: 100dvh; }
|
|
193
|
+
.twextsec-modal[data-twextsec-maximized] .twextsec-frame-header { cursor: default; }
|
|
194
|
+
[data-twextsec-dragging], [data-twextsec-dragging] * { user-select: none; }
|
|
195
|
+
.twextsec-resize { position: absolute; z-index: 2; touch-action: none; }
|
|
196
|
+
.twextsec-resize[data-edge="n"], .twextsec-resize[data-edge="s"] { left: 9px; right: 9px; height: 7px; cursor: ns-resize; }
|
|
197
|
+
.twextsec-resize[data-edge="n"] { top: 0; }
|
|
198
|
+
.twextsec-resize[data-edge="s"] { bottom: 0; }
|
|
199
|
+
.twextsec-resize[data-edge="e"], .twextsec-resize[data-edge="w"] { top: 9px; bottom: 9px; width: 7px; cursor: ew-resize; }
|
|
200
|
+
.twextsec-resize[data-edge="e"] { right: 0; }
|
|
201
|
+
.twextsec-resize[data-edge="w"] { left: 0; }
|
|
202
|
+
.twextsec-resize[data-edge="ne"], .twextsec-resize[data-edge="se"], .twextsec-resize[data-edge="sw"], .twextsec-resize[data-edge="nw"] { width: 10px; height: 10px; }
|
|
203
|
+
.twextsec-resize[data-edge="ne"], .twextsec-resize[data-edge="nw"] { top: 0; }
|
|
204
|
+
.twextsec-resize[data-edge="se"], .twextsec-resize[data-edge="sw"] { bottom: 0; }
|
|
205
|
+
.twextsec-resize[data-edge="ne"], .twextsec-resize[data-edge="se"] { right: 0; }
|
|
206
|
+
.twextsec-resize[data-edge="nw"], .twextsec-resize[data-edge="sw"] { left: 0; }
|
|
207
|
+
.twextsec-resize[data-edge="ne"], .twextsec-resize[data-edge="sw"] { cursor: nesw-resize; }
|
|
208
|
+
.twextsec-resize[data-edge="nw"], .twextsec-resize[data-edge="se"] { cursor: nwse-resize; }
|
|
209
|
+
[data-twextsec-maximized] > .twextsec-resize { display: none; }
|
package/webpack4.css
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
:global(.twextsec-modal) > * { flex: 1 1 auto; min-height: 0; }
|
|
6
6
|
:global(.twextsec-modal) > :not(:global(.twextsec-body)):not(:global(.twextsec-confirmation)) { display: flex; flex-direction: column; overflow: hidden; }
|
|
7
7
|
:global(.twextsec-modal) > :not(:global(.twextsec-body)):not(:global(.twextsec-confirmation)) > :not(:global(.twextsec-body)) { flex-shrink: 0; }
|
|
8
|
+
/* Reset the host title's side-button offset when the close button is hidden. */
|
|
9
|
+
:global(.twextsec-modal) :global(.twextsec-frame-header) > :only-child { margin: 0; min-width: 0; flex-shrink: 1; text-align: center; }
|
|
8
10
|
:global(.twextsec-body), :global(.twextsec-confirmation) { color: var(--ui-modal-foreground, #263145); background: var(--ui-modal-background, #fff); }
|
|
9
11
|
:global(.twextsec-body) { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; }
|
|
10
12
|
:global(.twextsec-body) > :not(:global(.twextsec-list)) { flex-shrink: 0; }
|
|
@@ -177,3 +179,31 @@
|
|
|
177
179
|
:global(.twextsec-selection):global(.twextsec-with-distribution) :global(.twextsec-row-controls) { grid-column: 1 / -1; grid-row: 2; }
|
|
178
180
|
:global(.twextsec-selection):global(.twextsec-with-distribution) :global(.twextsec-security-modes) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
179
181
|
}
|
|
182
|
+
|
|
183
|
+
/* Keep window gestures separate from review choices and confirmation state. */
|
|
184
|
+
:global(.twextsec-modal)[data-twextsec-window] { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); margin: 0; max-width: 100vw; max-height: calc(100dvh - 32px); }
|
|
185
|
+
:global(.twextsec-modal)[data-twextsec-window] :global(.twextsec-frame-header) { position: relative; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 56px; padding-inline: 56px; cursor: move; user-select: none; touch-action: none; }
|
|
186
|
+
:global(.twextsec-modal) :global(.twextsec-frame-header) > :first-child { flex: 1 1 auto; min-width: 0; margin: 0; overflow-wrap: anywhere; text-align: center; cursor: inherit; }
|
|
187
|
+
:global(.twextsec-window-button) { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid currentColor; border-radius: 5px; color: inherit; background: transparent; font: 24px/1 system-ui, sans-serif; cursor: pointer; }
|
|
188
|
+
:global(.twextsec-window-button):focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
|
|
189
|
+
:global(.twextsec-body) > :global(.twextsec-window-scroll) { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
|
|
190
|
+
:global(.twextsec-window-scroll) > :not(:global(.twextsec-list)) { flex-shrink: 0; }
|
|
191
|
+
:global(.twextsec-window-scroll) > :global(.twextsec-list) { flex: 1 0 160px; min-height: 160px; }
|
|
192
|
+
:global(.twextsec-modal)[data-twextsec-maximized] { border-radius: 0; max-height: 100dvh; }
|
|
193
|
+
:global(.twextsec-modal)[data-twextsec-maximized] :global(.twextsec-frame-header) { cursor: default; }
|
|
194
|
+
[data-twextsec-dragging], [data-twextsec-dragging] * { user-select: none; }
|
|
195
|
+
:global(.twextsec-resize) { position: absolute; z-index: 2; touch-action: none; }
|
|
196
|
+
:global(.twextsec-resize)[data-edge="n"], :global(.twextsec-resize)[data-edge="s"] { left: 9px; right: 9px; height: 7px; cursor: ns-resize; }
|
|
197
|
+
:global(.twextsec-resize)[data-edge="n"] { top: 0; }
|
|
198
|
+
:global(.twextsec-resize)[data-edge="s"] { bottom: 0; }
|
|
199
|
+
:global(.twextsec-resize)[data-edge="e"], :global(.twextsec-resize)[data-edge="w"] { top: 9px; bottom: 9px; width: 7px; cursor: ew-resize; }
|
|
200
|
+
:global(.twextsec-resize)[data-edge="e"] { right: 0; }
|
|
201
|
+
:global(.twextsec-resize)[data-edge="w"] { left: 0; }
|
|
202
|
+
:global(.twextsec-resize)[data-edge="ne"], :global(.twextsec-resize)[data-edge="se"], :global(.twextsec-resize)[data-edge="sw"], :global(.twextsec-resize)[data-edge="nw"] { width: 10px; height: 10px; }
|
|
203
|
+
:global(.twextsec-resize)[data-edge="ne"], :global(.twextsec-resize)[data-edge="nw"] { top: 0; }
|
|
204
|
+
:global(.twextsec-resize)[data-edge="se"], :global(.twextsec-resize)[data-edge="sw"] { bottom: 0; }
|
|
205
|
+
:global(.twextsec-resize)[data-edge="ne"], :global(.twextsec-resize)[data-edge="se"] { right: 0; }
|
|
206
|
+
:global(.twextsec-resize)[data-edge="nw"], :global(.twextsec-resize)[data-edge="sw"] { left: 0; }
|
|
207
|
+
:global(.twextsec-resize)[data-edge="ne"], :global(.twextsec-resize)[data-edge="sw"] { cursor: nesw-resize; }
|
|
208
|
+
:global(.twextsec-resize)[data-edge="nw"], :global(.twextsec-resize)[data-edge="se"] { cursor: nwse-resize; }
|
|
209
|
+
[data-twextsec-maximized] > :global(.twextsec-resize) { display: none; }
|