@lvce-editor/extension-detail-view 7.19.1 → 7.19.2
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.
|
@@ -11,6 +11,7 @@ const i18nString = (key, placeholders = emptyObject) => {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
const ActivationEvents$1 = 'Activation Events';
|
|
14
|
+
const ActivationEvent = 'Activation Event';
|
|
14
15
|
const ActivationTime = 'Activation Time: ';
|
|
15
16
|
const Categories$1 = 'Categories';
|
|
16
17
|
const Changelog$2 = 'Changelog';
|
|
@@ -160,6 +161,9 @@ const webViews = () => {
|
|
|
160
161
|
const activationEvents = () => {
|
|
161
162
|
return i18nString(ActivationEvents$1);
|
|
162
163
|
};
|
|
164
|
+
const activationEvent = () => {
|
|
165
|
+
return i18nString(ActivationEvent);
|
|
166
|
+
};
|
|
163
167
|
const runtimeStatus = () => {
|
|
164
168
|
return i18nString(RuntimeStatus$1);
|
|
165
169
|
};
|
|
@@ -876,7 +880,7 @@ const li = {
|
|
|
876
880
|
childCount: 1,
|
|
877
881
|
type: Li
|
|
878
882
|
};
|
|
879
|
-
const code = {
|
|
883
|
+
const code$1 = {
|
|
880
884
|
childCount: 1,
|
|
881
885
|
type: Code$2
|
|
882
886
|
};
|
|
@@ -892,9 +896,9 @@ const getActivationEventVirtualDom = event => {
|
|
|
892
896
|
className: mergeClassNames('ListItem', 'ListItemInvalid'),
|
|
893
897
|
title: errorMessage,
|
|
894
898
|
type: Li
|
|
895
|
-
}, code, text(stringValue)];
|
|
899
|
+
}, code$1, text(stringValue)];
|
|
896
900
|
}
|
|
897
|
-
return [li, code, text(stringValue)];
|
|
901
|
+
return [li, code$1, text(stringValue)];
|
|
898
902
|
};
|
|
899
903
|
|
|
900
904
|
const featureContentHeadingNode = {
|
|
@@ -2692,29 +2696,22 @@ const create$2 = rpcId => {
|
|
|
2692
2696
|
};
|
|
2693
2697
|
|
|
2694
2698
|
const {
|
|
2695
|
-
invoke: invoke$
|
|
2699
|
+
invoke: invoke$5,
|
|
2696
2700
|
set: set$b
|
|
2697
2701
|
} = create$2(ClipBoardWorker);
|
|
2698
2702
|
const writeText$1 = async text => {
|
|
2699
|
-
return invoke$
|
|
2703
|
+
return invoke$5('ClipBoard.writeText', text);
|
|
2700
2704
|
};
|
|
2701
2705
|
const writeImage = async image => {
|
|
2702
|
-
return invoke$
|
|
2706
|
+
return invoke$5('ClipBoard.writeImage', image);
|
|
2703
2707
|
};
|
|
2704
2708
|
|
|
2705
2709
|
const {
|
|
2706
|
-
invoke: invoke$5,
|
|
2707
2710
|
set: set$a
|
|
2708
2711
|
} = create$2(ExtensionHostWorker);
|
|
2709
|
-
const getRuntimeStatus$2 = async extensionId => {
|
|
2710
|
-
// @ts-ignore
|
|
2711
|
-
return invoke$5('ExtensionHost.getRuntimeStatus', extensionId);
|
|
2712
|
-
};
|
|
2713
2712
|
|
|
2714
2713
|
const ExtensionHost = {
|
|
2715
2714
|
__proto__: null,
|
|
2716
|
-
getRuntimeStatus: getRuntimeStatus$2,
|
|
2717
|
-
invoke: invoke$5,
|
|
2718
2715
|
set: set$a
|
|
2719
2716
|
};
|
|
2720
2717
|
|
|
@@ -2842,16 +2839,8 @@ const getAllPreferences = async () => {
|
|
|
2842
2839
|
return invoke$1('Preferences.getAll');
|
|
2843
2840
|
};
|
|
2844
2841
|
|
|
2845
|
-
const {
|
|
2846
|
-
getRuntimeStatus: getRuntimeStatus$1,
|
|
2847
|
-
set: set$5
|
|
2848
|
-
} = ExtensionHost;
|
|
2849
|
-
|
|
2850
2842
|
const getRuntimeStatus = async extensionId => {
|
|
2851
|
-
|
|
2852
|
-
const status = await getRuntimeStatus$1(extensionId);
|
|
2853
|
-
// @ts-ignore
|
|
2854
|
-
return status;
|
|
2843
|
+
return invoke$4('Extensions.getRuntimeStatus', extensionId);
|
|
2855
2844
|
};
|
|
2856
2845
|
|
|
2857
2846
|
const getRuntimeStatusDetails = async extension => {
|
|
@@ -2897,6 +2886,27 @@ const getActivationTimeVirtualDom = (importTime$1, activationTime$1) => {
|
|
|
2897
2886
|
return [definitionTermNode, text(importTime()), definitionDescriptionNode, text(formattedImportTime), definitionTermNode, text(activationTime()), definitionDescriptionNode, text(formattedTime)];
|
|
2898
2887
|
};
|
|
2899
2888
|
|
|
2889
|
+
const key$1 = {
|
|
2890
|
+
childCount: 1,
|
|
2891
|
+
className: 'RuntimeStatusDefinitionListKey',
|
|
2892
|
+
type: Dt
|
|
2893
|
+
};
|
|
2894
|
+
const value$1 = {
|
|
2895
|
+
childCount: 1,
|
|
2896
|
+
className: 'RuntimeStatusDefinitionListValue',
|
|
2897
|
+
type: Dd
|
|
2898
|
+
};
|
|
2899
|
+
const code = {
|
|
2900
|
+
childCount: 1,
|
|
2901
|
+
type: Code$2
|
|
2902
|
+
};
|
|
2903
|
+
const getRuntimeActivationEventVirtualDom = activationEvent$1 => {
|
|
2904
|
+
if (!activationEvent$1) {
|
|
2905
|
+
return [];
|
|
2906
|
+
}
|
|
2907
|
+
return [key$1, text(`${activationEvent()}: `), value$1, code, text(activationEvent$1)];
|
|
2908
|
+
};
|
|
2909
|
+
|
|
2900
2910
|
const None$1 = 0;
|
|
2901
2911
|
const Importing = 1;
|
|
2902
2912
|
const Activating = 2;
|
|
@@ -2941,9 +2951,12 @@ const featureContentNode$3 = {
|
|
|
2941
2951
|
className: FeatureContent,
|
|
2942
2952
|
type: Div
|
|
2943
2953
|
};
|
|
2944
|
-
const getChildCount$1 = (status, activationTime, importTime) => {
|
|
2954
|
+
const getChildCount$1 = (status, activationEvent, activationTime, importTime) => {
|
|
2945
2955
|
let childCount = 0;
|
|
2946
2956
|
childCount += 2; // status
|
|
2957
|
+
if (activationEvent) {
|
|
2958
|
+
childCount += 2;
|
|
2959
|
+
}
|
|
2947
2960
|
if (importTime || activationTime) {
|
|
2948
2961
|
childCount += 4;
|
|
2949
2962
|
}
|
|
@@ -2951,17 +2964,18 @@ const getChildCount$1 = (status, activationTime, importTime) => {
|
|
|
2951
2964
|
};
|
|
2952
2965
|
const getRuntimeStatusVirtualDom = state => {
|
|
2953
2966
|
const {
|
|
2954
|
-
activationTime
|
|
2955
|
-
importTime
|
|
2956
|
-
status
|
|
2967
|
+
activationTime,
|
|
2968
|
+
importTime,
|
|
2969
|
+
status,
|
|
2970
|
+
wasActivatedByEvent
|
|
2957
2971
|
} = state;
|
|
2958
2972
|
const heading = runtimeStatus();
|
|
2959
|
-
const childCount = getChildCount$1(status,
|
|
2973
|
+
const childCount = getChildCount$1(status, wasActivatedByEvent, activationTime, importTime);
|
|
2960
2974
|
return [featureContentNode$3, ...getFeatureContentHeadingVirtualDom(heading), {
|
|
2961
2975
|
childCount,
|
|
2962
2976
|
className: 'RuntimeStatusDefinitionList',
|
|
2963
2977
|
type: Dl
|
|
2964
|
-
}, ...getStatusVirtualDom(status), ...getActivationTimeVirtualDom(
|
|
2978
|
+
}, ...getStatusVirtualDom(status), ...getRuntimeActivationEventVirtualDom(wasActivatedByEvent), ...getActivationTimeVirtualDom(importTime, activationTime)];
|
|
2965
2979
|
};
|
|
2966
2980
|
|
|
2967
2981
|
const getSettingsTableEntry = setting => {
|
|
@@ -3098,7 +3112,7 @@ const getScrollToTopVirtualDom = scrollToTopButtonEnabled => {
|
|
|
3098
3112
|
const {
|
|
3099
3113
|
getVirtualDom,
|
|
3100
3114
|
render,
|
|
3101
|
-
set: set$
|
|
3115
|
+
set: set$5
|
|
3102
3116
|
} = MarkdownWorker;
|
|
3103
3117
|
|
|
3104
3118
|
const addScrollToTopVirtualDom = dom => {
|
|
@@ -3228,7 +3242,7 @@ const get$2 = async (key, bucketName) => {
|
|
|
3228
3242
|
const text = await response?.text();
|
|
3229
3243
|
return text || '';
|
|
3230
3244
|
};
|
|
3231
|
-
const set$
|
|
3245
|
+
const set$4 = async (key, bucketName, value) => {
|
|
3232
3246
|
const cache = await getCache(cacheName$1, bucketName);
|
|
3233
3247
|
await cache.put(key, new Response(value, {
|
|
3234
3248
|
headers: {
|
|
@@ -3247,7 +3261,7 @@ const renderMarkdownCached = async (markdown, options) => {
|
|
|
3247
3261
|
return value; // TODO validate if it's valid
|
|
3248
3262
|
}
|
|
3249
3263
|
const html = await render(markdown, options);
|
|
3250
|
-
await set$
|
|
3264
|
+
await set$4(cacheKey, bucketName, html);
|
|
3251
3265
|
return html;
|
|
3252
3266
|
};
|
|
3253
3267
|
|
|
@@ -3737,7 +3751,7 @@ const {
|
|
|
3737
3751
|
exists,
|
|
3738
3752
|
invoke,
|
|
3739
3753
|
readFile: readFile$1,
|
|
3740
|
-
set: set$
|
|
3754
|
+
set: set$3
|
|
3741
3755
|
} = FileSystemWorker;
|
|
3742
3756
|
const readFileAsBlob = async uri => {
|
|
3743
3757
|
// TODO maybe readAsObjectUrl?
|
|
@@ -3790,7 +3804,7 @@ const {
|
|
|
3790
3804
|
get: get$1,
|
|
3791
3805
|
getCommandIds,
|
|
3792
3806
|
registerCommands,
|
|
3793
|
-
set: set$
|
|
3807
|
+
set: set$2,
|
|
3794
3808
|
wrapCommand,
|
|
3795
3809
|
wrapGetter
|
|
3796
3810
|
} = create$1();
|
|
@@ -3871,7 +3885,7 @@ const create = (uid, uri, x, y, width, height, platform, assetDir) => {
|
|
|
3871
3885
|
webViews: [],
|
|
3872
3886
|
width
|
|
3873
3887
|
};
|
|
3874
|
-
set$
|
|
3888
|
+
set$2(uid, state, state);
|
|
3875
3889
|
};
|
|
3876
3890
|
|
|
3877
3891
|
const isEqual$3 = (oldState, newState) => {
|
|
@@ -5765,7 +5779,7 @@ const get = async (uri, now = Date.now(), getCacheFunction = getCache) => {
|
|
|
5765
5779
|
return undefined;
|
|
5766
5780
|
}
|
|
5767
5781
|
};
|
|
5768
|
-
const set = async (uri, value, now = Date.now(), getCacheFunction = getCache) => {
|
|
5782
|
+
const set$1 = async (uri, value, now = Date.now(), getCacheFunction = getCache) => {
|
|
5769
5783
|
try {
|
|
5770
5784
|
const cache = await getCacheFunction(cacheName, bucketName);
|
|
5771
5785
|
await cache.put(getCacheKey(uri), new Response(value, {
|
|
@@ -5783,7 +5797,7 @@ const set = async (uri, value, now = Date.now(), getCacheFunction = getCache) =>
|
|
|
5783
5797
|
const ChangelogCache = {
|
|
5784
5798
|
__proto__: null,
|
|
5785
5799
|
get,
|
|
5786
|
-
set
|
|
5800
|
+
set: set$1
|
|
5787
5801
|
};
|
|
5788
5802
|
|
|
5789
5803
|
const error = async error => {
|
|
@@ -6172,9 +6186,13 @@ const createExtensionHostWorkerRpc = async () => {
|
|
|
6172
6186
|
}
|
|
6173
6187
|
};
|
|
6174
6188
|
|
|
6189
|
+
const {
|
|
6190
|
+
set
|
|
6191
|
+
} = ExtensionHost;
|
|
6192
|
+
|
|
6175
6193
|
const initializeExtensionHostWorker = async () => {
|
|
6176
6194
|
const rpc = await createExtensionHostWorkerRpc();
|
|
6177
|
-
set
|
|
6195
|
+
set(rpc);
|
|
6178
6196
|
};
|
|
6179
6197
|
|
|
6180
6198
|
const createExtensionManagementWorkerRpc = async () => {
|
|
@@ -6216,7 +6234,7 @@ const createFileSystemWorkerRpc = async () => {
|
|
|
6216
6234
|
|
|
6217
6235
|
const initializeFileSystemWorker = async () => {
|
|
6218
6236
|
const rpc = await createFileSystemWorkerRpc();
|
|
6219
|
-
set$
|
|
6237
|
+
set$3(rpc);
|
|
6220
6238
|
};
|
|
6221
6239
|
|
|
6222
6240
|
const sendMessagePortToMarkdownWorker = async port => {
|
|
@@ -6233,7 +6251,7 @@ const createMarkdownWorkerRpc = async () => {
|
|
|
6233
6251
|
|
|
6234
6252
|
const initializeMarkdownWorker = async () => {
|
|
6235
6253
|
const rpc = await createMarkdownWorkerRpc();
|
|
6236
|
-
set$
|
|
6254
|
+
set$5(rpc);
|
|
6237
6255
|
};
|
|
6238
6256
|
|
|
6239
6257
|
const initialize = async () => {
|
|
@@ -6986,7 +7004,7 @@ const render2 = (uid, diffResult) => {
|
|
|
6986
7004
|
newState,
|
|
6987
7005
|
oldState
|
|
6988
7006
|
} = get$1(uid);
|
|
6989
|
-
set$
|
|
7007
|
+
set$2(uid, newState, newState);
|
|
6990
7008
|
const commands = applyRender(oldState, newState, diffResult);
|
|
6991
7009
|
return commands;
|
|
6992
7010
|
};
|