@lvce-editor/settings-view 2.8.0 → 2.10.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/dist/settingsViewWorkerMain.js +175 -120
- package/package.json +2 -2
|
@@ -412,56 +412,14 @@ const IpcChildWithModuleWorkerAndMessagePort$1 = {
|
|
|
412
412
|
wrap: wrap$e
|
|
413
413
|
};
|
|
414
414
|
|
|
415
|
-
const Two = '2.0';
|
|
416
|
-
const create$4 = (method, params) => {
|
|
417
|
-
return {
|
|
418
|
-
jsonrpc: Two,
|
|
419
|
-
method,
|
|
420
|
-
params
|
|
421
|
-
};
|
|
422
|
-
};
|
|
415
|
+
const Two$1 = '2.0';
|
|
423
416
|
const callbacks = Object.create(null);
|
|
424
|
-
const set$4 = (id, fn) => {
|
|
425
|
-
callbacks[id] = fn;
|
|
426
|
-
};
|
|
427
417
|
const get$2 = id => {
|
|
428
418
|
return callbacks[id];
|
|
429
419
|
};
|
|
430
|
-
const remove = id => {
|
|
420
|
+
const remove$1 = id => {
|
|
431
421
|
delete callbacks[id];
|
|
432
422
|
};
|
|
433
|
-
let id = 0;
|
|
434
|
-
const create$3$1 = () => {
|
|
435
|
-
return ++id;
|
|
436
|
-
};
|
|
437
|
-
const registerPromise = () => {
|
|
438
|
-
const id = create$3$1();
|
|
439
|
-
const {
|
|
440
|
-
resolve,
|
|
441
|
-
promise
|
|
442
|
-
} = Promise.withResolvers();
|
|
443
|
-
set$4(id, resolve);
|
|
444
|
-
return {
|
|
445
|
-
id,
|
|
446
|
-
promise
|
|
447
|
-
};
|
|
448
|
-
};
|
|
449
|
-
const create$2$1 = (method, params) => {
|
|
450
|
-
const {
|
|
451
|
-
id,
|
|
452
|
-
promise
|
|
453
|
-
} = registerPromise();
|
|
454
|
-
const message = {
|
|
455
|
-
jsonrpc: Two,
|
|
456
|
-
method,
|
|
457
|
-
params,
|
|
458
|
-
id
|
|
459
|
-
};
|
|
460
|
-
return {
|
|
461
|
-
message,
|
|
462
|
-
promise
|
|
463
|
-
};
|
|
464
|
-
};
|
|
465
423
|
class JsonRpcError extends Error {
|
|
466
424
|
constructor(message) {
|
|
467
425
|
super(message);
|
|
@@ -612,7 +570,7 @@ const resolve = (id, response) => {
|
|
|
612
570
|
return;
|
|
613
571
|
}
|
|
614
572
|
fn(response);
|
|
615
|
-
remove(id);
|
|
573
|
+
remove$1(id);
|
|
616
574
|
};
|
|
617
575
|
const E_COMMAND_NOT_FOUND = 'E_COMMAND_NOT_FOUND';
|
|
618
576
|
const getErrorType = prettyError => {
|
|
@@ -655,9 +613,9 @@ const getErrorProperty = (error, prettyError) => {
|
|
|
655
613
|
}
|
|
656
614
|
};
|
|
657
615
|
};
|
|
658
|
-
const create$1$
|
|
616
|
+
const create$1$2 = (id, error) => {
|
|
659
617
|
return {
|
|
660
|
-
jsonrpc: Two,
|
|
618
|
+
jsonrpc: Two$1,
|
|
661
619
|
id,
|
|
662
620
|
error
|
|
663
621
|
};
|
|
@@ -666,22 +624,22 @@ const getErrorResponse = (id, error, preparePrettyError, logError) => {
|
|
|
666
624
|
const prettyError = preparePrettyError(error);
|
|
667
625
|
logError(error, prettyError);
|
|
668
626
|
const errorProperty = getErrorProperty(error, prettyError);
|
|
669
|
-
return create$1$
|
|
627
|
+
return create$1$2(id, errorProperty);
|
|
670
628
|
};
|
|
671
|
-
const create$
|
|
629
|
+
const create$3 = (message, result) => {
|
|
672
630
|
return {
|
|
673
|
-
jsonrpc: Two,
|
|
631
|
+
jsonrpc: Two$1,
|
|
674
632
|
id: message.id,
|
|
675
633
|
result: result ?? null
|
|
676
634
|
};
|
|
677
635
|
};
|
|
678
636
|
const getSuccessResponse = (message, result) => {
|
|
679
637
|
const resultProperty = result ?? null;
|
|
680
|
-
return create$
|
|
638
|
+
return create$3(message, resultProperty);
|
|
681
639
|
};
|
|
682
640
|
const getErrorResponseSimple = (id, error) => {
|
|
683
641
|
return {
|
|
684
|
-
jsonrpc: Two,
|
|
642
|
+
jsonrpc: Two$1,
|
|
685
643
|
id,
|
|
686
644
|
error: {
|
|
687
645
|
code: Custom,
|
|
@@ -768,29 +726,6 @@ const handleJsonRpcMessage = async (...args) => {
|
|
|
768
726
|
}
|
|
769
727
|
throw new JsonRpcError('unexpected message');
|
|
770
728
|
};
|
|
771
|
-
const invokeHelper = async (ipc, method, params, useSendAndTransfer) => {
|
|
772
|
-
const {
|
|
773
|
-
message,
|
|
774
|
-
promise
|
|
775
|
-
} = create$2$1(method, params);
|
|
776
|
-
if (useSendAndTransfer && ipc.sendAndTransfer) {
|
|
777
|
-
ipc.sendAndTransfer(message);
|
|
778
|
-
} else {
|
|
779
|
-
ipc.send(message);
|
|
780
|
-
}
|
|
781
|
-
const responseMessage = await promise;
|
|
782
|
-
return unwrapJsonRpcResult(responseMessage);
|
|
783
|
-
};
|
|
784
|
-
const send = (transport, method, ...params) => {
|
|
785
|
-
const message = create$4(method, params);
|
|
786
|
-
transport.send(message);
|
|
787
|
-
};
|
|
788
|
-
const invoke$1 = (ipc, method, ...params) => {
|
|
789
|
-
return invokeHelper(ipc, method, params, false);
|
|
790
|
-
};
|
|
791
|
-
const invokeAndTransfer$1 = (ipc, method, ...params) => {
|
|
792
|
-
return invokeHelper(ipc, method, params, true);
|
|
793
|
-
};
|
|
794
729
|
|
|
795
730
|
class CommandNotFoundError extends Error {
|
|
796
731
|
constructor(command) {
|
|
@@ -813,24 +748,87 @@ const execute = (command, ...args) => {
|
|
|
813
748
|
return fn(...args);
|
|
814
749
|
};
|
|
815
750
|
|
|
751
|
+
const Two = '2.0';
|
|
752
|
+
const create$s = (method, params) => {
|
|
753
|
+
return {
|
|
754
|
+
jsonrpc: Two,
|
|
755
|
+
method,
|
|
756
|
+
params
|
|
757
|
+
};
|
|
758
|
+
};
|
|
759
|
+
const create$r = (id, method, params) => {
|
|
760
|
+
const message = {
|
|
761
|
+
id,
|
|
762
|
+
jsonrpc: Two,
|
|
763
|
+
method,
|
|
764
|
+
params
|
|
765
|
+
};
|
|
766
|
+
return message;
|
|
767
|
+
};
|
|
768
|
+
let id = 0;
|
|
769
|
+
const create$q = () => {
|
|
770
|
+
return ++id;
|
|
771
|
+
};
|
|
772
|
+
|
|
773
|
+
/* eslint-disable n/no-unsupported-features/es-syntax */
|
|
774
|
+
|
|
775
|
+
const registerPromise = map => {
|
|
776
|
+
const id = create$q();
|
|
777
|
+
const {
|
|
778
|
+
promise,
|
|
779
|
+
resolve
|
|
780
|
+
} = Promise.withResolvers();
|
|
781
|
+
map[id] = resolve;
|
|
782
|
+
return {
|
|
783
|
+
id,
|
|
784
|
+
promise
|
|
785
|
+
};
|
|
786
|
+
};
|
|
787
|
+
|
|
788
|
+
// @ts-ignore
|
|
789
|
+
const invokeHelper = async (callbacks, ipc, method, params, useSendAndTransfer) => {
|
|
790
|
+
const {
|
|
791
|
+
id,
|
|
792
|
+
promise
|
|
793
|
+
} = registerPromise(callbacks);
|
|
794
|
+
const message = create$r(id, method, params);
|
|
795
|
+
if (useSendAndTransfer && ipc.sendAndTransfer) {
|
|
796
|
+
ipc.sendAndTransfer(message);
|
|
797
|
+
} else {
|
|
798
|
+
ipc.send(message);
|
|
799
|
+
}
|
|
800
|
+
const responseMessage = await promise;
|
|
801
|
+
return unwrapJsonRpcResult(responseMessage);
|
|
802
|
+
};
|
|
816
803
|
const createRpc = ipc => {
|
|
804
|
+
const callbacks = Object.create(null);
|
|
805
|
+
ipc._resolve = (id, response) => {
|
|
806
|
+
const fn = callbacks[id];
|
|
807
|
+
if (!fn) {
|
|
808
|
+
console.warn(`callback ${id} may already be disposed`);
|
|
809
|
+
return;
|
|
810
|
+
}
|
|
811
|
+
fn(response);
|
|
812
|
+
delete callbacks[id];
|
|
813
|
+
};
|
|
817
814
|
const rpc = {
|
|
815
|
+
async dispose() {
|
|
816
|
+
await ipc?.dispose();
|
|
817
|
+
},
|
|
818
|
+
invoke(method, ...params) {
|
|
819
|
+
return invokeHelper(callbacks, ipc, method, params, false);
|
|
820
|
+
},
|
|
821
|
+
invokeAndTransfer(method, ...params) {
|
|
822
|
+
return invokeHelper(callbacks, ipc, method, params, true);
|
|
823
|
+
},
|
|
818
824
|
// @ts-ignore
|
|
819
825
|
ipc,
|
|
820
826
|
/**
|
|
821
827
|
* @deprecated
|
|
822
828
|
*/
|
|
823
829
|
send(method, ...params) {
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
invoke(method, ...params) {
|
|
827
|
-
return invoke$1(ipc, method, ...params);
|
|
828
|
-
},
|
|
829
|
-
invokeAndTransfer(method, ...params) {
|
|
830
|
-
return invokeAndTransfer$1(ipc, method, ...params);
|
|
831
|
-
},
|
|
832
|
-
async dispose() {
|
|
833
|
-
await ipc?.dispose();
|
|
830
|
+
const message = create$s(method, params);
|
|
831
|
+
ipc.send(message);
|
|
834
832
|
}
|
|
835
833
|
};
|
|
836
834
|
return rpc;
|
|
@@ -847,7 +845,7 @@ const logError = () => {
|
|
|
847
845
|
const handleMessage = event => {
|
|
848
846
|
const actualRequiresSocket = event?.target?.requiresSocket || requiresSocket;
|
|
849
847
|
const actualExecute = event?.target?.execute || execute;
|
|
850
|
-
return handleJsonRpcMessage(event.target, event.data, actualExecute,
|
|
848
|
+
return handleJsonRpcMessage(event.target, event.data, actualExecute, event.target._resolve, preparePrettyError, logError, actualRequiresSocket);
|
|
851
849
|
};
|
|
852
850
|
const handleIpc = ipc => {
|
|
853
851
|
if ('addEventListener' in ipc) {
|
|
@@ -865,7 +863,7 @@ const listen$1 = async (module, options) => {
|
|
|
865
863
|
const ipc = module.wrap(rawIpc);
|
|
866
864
|
return ipc;
|
|
867
865
|
};
|
|
868
|
-
const create$
|
|
866
|
+
const create$1$1 = async ({
|
|
869
867
|
commandMap
|
|
870
868
|
}) => {
|
|
871
869
|
// TODO create a commandMap per rpc instance
|
|
@@ -877,7 +875,7 @@ const create$3 = async ({
|
|
|
877
875
|
};
|
|
878
876
|
const WebWorkerRpcClient = {
|
|
879
877
|
__proto__: null,
|
|
880
|
-
create: create$
|
|
878
|
+
create: create$1$1
|
|
881
879
|
};
|
|
882
880
|
const createMockRpc = ({
|
|
883
881
|
commandMap
|
|
@@ -892,9 +890,9 @@ const createMockRpc = ({
|
|
|
892
890
|
return command(...params);
|
|
893
891
|
};
|
|
894
892
|
const mockRpc = {
|
|
893
|
+
invocations,
|
|
895
894
|
invoke,
|
|
896
|
-
invokeAndTransfer: invoke
|
|
897
|
-
invocations
|
|
895
|
+
invokeAndTransfer: invoke
|
|
898
896
|
};
|
|
899
897
|
return mockRpc;
|
|
900
898
|
};
|
|
@@ -1697,18 +1695,35 @@ const Select$1 = 63;
|
|
|
1697
1695
|
const Option = 64;
|
|
1698
1696
|
const Label$1 = 66;
|
|
1699
1697
|
|
|
1698
|
+
const ClientX = 'event.clientX';
|
|
1699
|
+
const ClientY = 'event.clientY';
|
|
1700
|
+
const DeltaY = 'event.deltaY';
|
|
1701
|
+
const TargetName = 'event.target.name';
|
|
1702
|
+
const TargetValue = 'event.target.value';
|
|
1703
|
+
|
|
1700
1704
|
const UpArrow = 14;
|
|
1701
1705
|
const DownArrow = 16;
|
|
1702
1706
|
|
|
1707
|
+
const Script = 2;
|
|
1708
|
+
|
|
1709
|
+
const SettingsFilter = 94;
|
|
1710
|
+
|
|
1711
|
+
const None$1 = 0;
|
|
1712
|
+
|
|
1713
|
+
const DebugWorker = 55;
|
|
1714
|
+
const RendererWorker$1 = 1;
|
|
1715
|
+
|
|
1716
|
+
const SetCss = 'Viewlet.setCss';
|
|
1717
|
+
|
|
1703
1718
|
const mergeClassNames = (...classNames) => {
|
|
1704
1719
|
return classNames.filter(Boolean).join(' ');
|
|
1705
1720
|
};
|
|
1706
1721
|
|
|
1707
1722
|
const text = data => {
|
|
1708
1723
|
return {
|
|
1709
|
-
|
|
1724
|
+
childCount: 0,
|
|
1710
1725
|
text: data,
|
|
1711
|
-
|
|
1726
|
+
type: Text
|
|
1712
1727
|
};
|
|
1713
1728
|
};
|
|
1714
1729
|
|
|
@@ -1724,23 +1739,6 @@ const getKeyBindings$1 = () => {
|
|
|
1724
1739
|
}];
|
|
1725
1740
|
};
|
|
1726
1741
|
|
|
1727
|
-
const ClientX = 'event.clientX';
|
|
1728
|
-
const ClientY = 'event.clientY';
|
|
1729
|
-
const DeltaY = 'event.deltaY';
|
|
1730
|
-
const TargetName = 'event.target.name';
|
|
1731
|
-
const TargetValue = 'event.target.value';
|
|
1732
|
-
|
|
1733
|
-
const Script = 2;
|
|
1734
|
-
|
|
1735
|
-
const SettingsFilter = 94;
|
|
1736
|
-
|
|
1737
|
-
const None$1 = 0;
|
|
1738
|
-
|
|
1739
|
-
const DebugWorker = 55;
|
|
1740
|
-
const RendererWorker$1 = 1;
|
|
1741
|
-
|
|
1742
|
-
const SetCss = 'Viewlet.setCss';
|
|
1743
|
-
|
|
1744
1742
|
const emptyObject = {};
|
|
1745
1743
|
const RE_PLACEHOLDER = /\{(PH\d+)\}/g;
|
|
1746
1744
|
const i18nString = (key, placeholders = emptyObject) => {
|
|
@@ -1759,6 +1757,8 @@ const AutoUpdateExtensions = 'Auto Update Extensions';
|
|
|
1759
1757
|
const AutoUpdateExtensionsDescription = 'Automatically update extensions';
|
|
1760
1758
|
const AutoUpdates = 'Auto Updates';
|
|
1761
1759
|
const AutoUpdatesDescription = 'Automatically check for updates';
|
|
1760
|
+
const LinkProtection = 'Link Protection';
|
|
1761
|
+
const LinkProtectionEnabledDescription = 'Whether ot not link protection is enabled';
|
|
1762
1762
|
const Clear$1 = 'Clear';
|
|
1763
1763
|
const ExtensionRecommendations = 'Extension Recommendations';
|
|
1764
1764
|
const ExtensionRecommendationsDescription = 'Show extension recommendations';
|
|
@@ -1783,7 +1783,9 @@ const ThemeDescription = 'The color theme of the workbench';
|
|
|
1783
1783
|
const TwoFactorAuth = 'Two Factor Auth';
|
|
1784
1784
|
const TwoFactorAuthDescription = 'Enable two factor authentication';
|
|
1785
1785
|
const WindowSize = 'Window Size';
|
|
1786
|
+
const WindowTitleBarStyle = 'Window Title Bar Style';
|
|
1786
1787
|
const WindowSizeDescription = 'The default window size';
|
|
1788
|
+
const WindowTitleBarStyleDescription = 'The title bar style of the window';
|
|
1787
1789
|
const WindowTitle = 'Window Title';
|
|
1788
1790
|
const WindowTitleDescription = 'The title shown in the window';
|
|
1789
1791
|
const NoSettingsMatching = 'No settings matching "{PH1}" found';
|
|
@@ -2053,6 +2055,12 @@ const autoUpdates = () => {
|
|
|
2053
2055
|
const autoUpdatesDescription = () => {
|
|
2054
2056
|
return i18nString(AutoUpdatesDescription);
|
|
2055
2057
|
};
|
|
2058
|
+
const linkProtection = () => {
|
|
2059
|
+
return i18nString(LinkProtection);
|
|
2060
|
+
};
|
|
2061
|
+
const linkProtectionEnabledDescription = () => {
|
|
2062
|
+
return i18nString(LinkProtectionEnabledDescription);
|
|
2063
|
+
};
|
|
2056
2064
|
const clear = () => {
|
|
2057
2065
|
return i18nString(Clear$1);
|
|
2058
2066
|
};
|
|
@@ -2131,9 +2139,15 @@ const twoFactorAuthDescription = () => {
|
|
|
2131
2139
|
const windowSize = () => {
|
|
2132
2140
|
return i18nString(WindowSize);
|
|
2133
2141
|
};
|
|
2142
|
+
const windowTitleBarStyle = () => {
|
|
2143
|
+
return i18nString(WindowTitleBarStyle);
|
|
2144
|
+
};
|
|
2134
2145
|
const windowSizeDescription = () => {
|
|
2135
2146
|
return i18nString(WindowSizeDescription);
|
|
2136
2147
|
};
|
|
2148
|
+
const windowTitleBarStyleDescription = () => {
|
|
2149
|
+
return i18nString(WindowTitleBarStyleDescription);
|
|
2150
|
+
};
|
|
2137
2151
|
const windowTitle = () => {
|
|
2138
2152
|
return i18nString(WindowTitle);
|
|
2139
2153
|
};
|
|
@@ -2944,7 +2958,11 @@ const set$2 = (id, rpc) => {
|
|
|
2944
2958
|
const get = id => {
|
|
2945
2959
|
return rpcs[id];
|
|
2946
2960
|
};
|
|
2961
|
+
const remove = id => {
|
|
2962
|
+
delete rpcs[id];
|
|
2963
|
+
};
|
|
2947
2964
|
|
|
2965
|
+
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
2948
2966
|
const create = rpcId => {
|
|
2949
2967
|
return {
|
|
2950
2968
|
async dispose() {
|
|
@@ -2963,6 +2981,18 @@ const create = rpcId => {
|
|
|
2963
2981
|
// @ts-ignore
|
|
2964
2982
|
return rpc.invokeAndTransfer(method, ...params);
|
|
2965
2983
|
},
|
|
2984
|
+
registerMockRpc(commandMap) {
|
|
2985
|
+
const mockRpc = createMockRpc({
|
|
2986
|
+
commandMap
|
|
2987
|
+
});
|
|
2988
|
+
set$2(rpcId, mockRpc);
|
|
2989
|
+
// @ts-ignore
|
|
2990
|
+
mockRpc[Symbol.dispose] = () => {
|
|
2991
|
+
remove(rpcId);
|
|
2992
|
+
};
|
|
2993
|
+
// @ts-ignore
|
|
2994
|
+
return mockRpc;
|
|
2995
|
+
},
|
|
2966
2996
|
set(rpc) {
|
|
2967
2997
|
set$2(rpcId, rpc);
|
|
2968
2998
|
}
|
|
@@ -2973,6 +3003,7 @@ const {
|
|
|
2973
3003
|
dispose,
|
|
2974
3004
|
invoke,
|
|
2975
3005
|
invokeAndTransfer,
|
|
3006
|
+
registerMockRpc,
|
|
2976
3007
|
set: set$1
|
|
2977
3008
|
} = create(RendererWorker$1);
|
|
2978
3009
|
const searchFileHtml = async uri => {
|
|
@@ -3096,6 +3127,10 @@ const sendMessagePortToExtensionHostWorker = async (port, rpcId = 0) => {
|
|
|
3096
3127
|
const command = 'HandleMessagePort.handleMessagePort2';
|
|
3097
3128
|
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionHostWorker', port, command, rpcId);
|
|
3098
3129
|
};
|
|
3130
|
+
const sendMessagePortToFileSearchWorker = async (port, rpcId = 0) => {
|
|
3131
|
+
const command = 'QuickPick.handleMessagePort';
|
|
3132
|
+
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToFileSearchWorker', port, command, rpcId);
|
|
3133
|
+
};
|
|
3099
3134
|
const sendMessagePortToSearchProcess = async port => {
|
|
3100
3135
|
await invokeAndTransfer('SendMessagePortToElectron.sendMessagePortToElectron', port, 'HandleMessagePortForSearchProcess.handleMessagePortForSearchProcess');
|
|
3101
3136
|
};
|
|
@@ -3298,12 +3333,8 @@ const getLogsDir = async () => {
|
|
|
3298
3333
|
const measureTextBlockHeight = async (actualInput, fontFamily, fontSize, lineHeightPx, width) => {
|
|
3299
3334
|
return invoke(`MeasureTextHeight.measureTextBlockHeight`, actualInput, fontFamily, fontSize, lineHeightPx, width);
|
|
3300
3335
|
};
|
|
3301
|
-
const
|
|
3302
|
-
|
|
3303
|
-
commandMap
|
|
3304
|
-
});
|
|
3305
|
-
set$1(mockRpc);
|
|
3306
|
-
return mockRpc;
|
|
3336
|
+
const refreshOutput = async () => {
|
|
3337
|
+
await invoke('Output.refresh');
|
|
3307
3338
|
};
|
|
3308
3339
|
|
|
3309
3340
|
const RendererWorker = {
|
|
@@ -3360,6 +3391,7 @@ const RendererWorker = {
|
|
|
3360
3391
|
openWidget,
|
|
3361
3392
|
readClipBoardText,
|
|
3362
3393
|
readFile,
|
|
3394
|
+
refreshOutput,
|
|
3363
3395
|
registerMockRpc,
|
|
3364
3396
|
registerWebViewInterceptor,
|
|
3365
3397
|
renderMarkdown,
|
|
@@ -3371,6 +3403,7 @@ const RendererWorker = {
|
|
|
3371
3403
|
sendMessagePortToErrorWorker,
|
|
3372
3404
|
sendMessagePortToExtensionHostWorker,
|
|
3373
3405
|
sendMessagePortToExtensionManagementWorker,
|
|
3406
|
+
sendMessagePortToFileSearchWorker,
|
|
3374
3407
|
sendMessagePortToFileSystemProcess,
|
|
3375
3408
|
sendMessagePortToFileSystemWorker,
|
|
3376
3409
|
sendMessagePortToIconThemeWorker,
|
|
@@ -3800,6 +3833,13 @@ const getSettingItemsApplications = () => {
|
|
|
3800
3833
|
id: 'updates',
|
|
3801
3834
|
type: Boolean$1,
|
|
3802
3835
|
value: 'true'
|
|
3836
|
+
}, {
|
|
3837
|
+
category: ApplicationsTab,
|
|
3838
|
+
description: linkProtectionEnabledDescription(),
|
|
3839
|
+
heading: linkProtection(),
|
|
3840
|
+
id: 'application.linkProtectionEnabled',
|
|
3841
|
+
type: Boolean$1,
|
|
3842
|
+
value: 'true'
|
|
3803
3843
|
}];
|
|
3804
3844
|
};
|
|
3805
3845
|
|
|
@@ -4737,6 +4777,20 @@ const getSettingItemsWindow = () => {
|
|
|
4737
4777
|
id: 'windowSize',
|
|
4738
4778
|
type: String,
|
|
4739
4779
|
value: '1024x768'
|
|
4780
|
+
}, {
|
|
4781
|
+
category: WindowTab,
|
|
4782
|
+
description: windowTitleBarStyleDescription(),
|
|
4783
|
+
heading: windowTitleBarStyle(),
|
|
4784
|
+
id: 'window.titleBarStyle',
|
|
4785
|
+
options: [{
|
|
4786
|
+
id: 'native',
|
|
4787
|
+
label: 'native'
|
|
4788
|
+
}, {
|
|
4789
|
+
id: 'custom',
|
|
4790
|
+
label: 'custom'
|
|
4791
|
+
}],
|
|
4792
|
+
type: Enum,
|
|
4793
|
+
value: 'custom' // TODO get it from settings
|
|
4740
4794
|
}];
|
|
4741
4795
|
};
|
|
4742
4796
|
|
|
@@ -5141,12 +5195,13 @@ const getResizerVirtualDom = () => {
|
|
|
5141
5195
|
}];
|
|
5142
5196
|
};
|
|
5143
5197
|
|
|
5198
|
+
const parentNode$2 = {
|
|
5199
|
+
childCount: 1,
|
|
5200
|
+
className: SettingsContentHeading,
|
|
5201
|
+
type: H1
|
|
5202
|
+
};
|
|
5144
5203
|
const getContentHeadingDom = headerText => {
|
|
5145
|
-
return [
|
|
5146
|
-
childCount: 1,
|
|
5147
|
-
className: SettingsContentHeading,
|
|
5148
|
-
type: H1
|
|
5149
|
-
}, text(headerText)];
|
|
5204
|
+
return [parentNode$2, text(headerText)];
|
|
5150
5205
|
};
|
|
5151
5206
|
|
|
5152
5207
|
const parentNode$1 = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/settings-view",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"description": "Explorer Worker",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -11,6 +11,6 @@
|
|
|
11
11
|
"type": "module",
|
|
12
12
|
"main": "dist/settingsViewWorkerMain.js",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@lvce-editor/constants": "^2.
|
|
14
|
+
"@lvce-editor/constants": "^2.8.0"
|
|
15
15
|
}
|
|
16
16
|
}
|