@lvce-editor/extension-detail-view 7.4.0 → 7.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.
@@ -2580,7 +2580,6 @@ const getAllPreferences = async () => {
2580
2580
  };
2581
2581
 
2582
2582
  /* eslint-disable unicorn/prefer-export-from */
2583
-
2584
2583
  const {
2585
2584
  getRuntimeStatus: getRuntimeStatus$1,
2586
2585
  set: set$4
@@ -2813,7 +2812,6 @@ const getScrollToTopVirtualDom = scrollToTopButtonEnabled => {
2813
2812
  };
2814
2813
 
2815
2814
  /* eslint-disable unicorn/prefer-export-from */
2816
-
2817
2815
  const {
2818
2816
  getVirtualDom,
2819
2817
  render,
@@ -3202,13 +3200,13 @@ const create$1 = () => {
3202
3200
  },
3203
3201
  diff(uid, modules, numbers) {
3204
3202
  const {
3205
- newState,
3206
- oldState
3203
+ oldState,
3204
+ scheduledState
3207
3205
  } = states[uid];
3208
3206
  const diffResult = [];
3209
3207
  for (let i = 0; i < modules.length; i++) {
3210
3208
  const fn = modules[i];
3211
- if (!fn(oldState, newState)) {
3209
+ if (!fn(oldState, scheduledState)) {
3212
3210
  diffResult.push(numbers[i]);
3213
3211
  }
3214
3212
  }
@@ -3226,17 +3224,16 @@ const create$1 = () => {
3226
3224
  return ids;
3227
3225
  },
3228
3226
  getKeys() {
3229
- return Object.keys(states).map(key => {
3230
- return Number.parseFloat(key);
3231
- });
3227
+ return Object.keys(states).map(Number);
3232
3228
  },
3233
3229
  registerCommands(commandMap) {
3234
3230
  Object.assign(commandMapRef, commandMap);
3235
3231
  },
3236
- set(uid, oldState, newState) {
3232
+ set(uid, oldState, newState, scheduledState) {
3237
3233
  states[uid] = {
3238
3234
  newState,
3239
- oldState
3235
+ oldState,
3236
+ scheduledState: scheduledState ?? newState
3240
3237
  };
3241
3238
  },
3242
3239
  wrapCommand(fn) {
@@ -3256,7 +3253,8 @@ const create$1 = () => {
3256
3253
  };
3257
3254
  states[uid] = {
3258
3255
  newState: latestNew,
3259
- oldState: latestOld.oldState
3256
+ oldState: latestOld.oldState,
3257
+ scheduledState: latestNew
3260
3258
  };
3261
3259
  };
3262
3260
  return wrapped;
@@ -3293,7 +3291,8 @@ const create$1 = () => {
3293
3291
  };
3294
3292
  states[uid] = {
3295
3293
  newState: latestNew,
3296
- oldState: latestOld.oldState
3294
+ oldState: latestOld.oldState,
3295
+ scheduledState: latestNew
3297
3296
  };
3298
3297
  return {
3299
3298
  error
@@ -3315,7 +3314,6 @@ const writeText = async text => {
3315
3314
  };
3316
3315
 
3317
3316
  /* eslint-disable unicorn/prefer-export-from */
3318
-
3319
3317
  const {
3320
3318
  exists,
3321
3319
  invoke,
@@ -5283,6 +5281,7 @@ const getExtraProps = (title, onClick) => {
5283
5281
  props.title = title;
5284
5282
  }
5285
5283
  if (onClick) {
5284
+ props.style = 'cursor: pointer';
5286
5285
  props.tabIndex = 0;
5287
5286
  }
5288
5287
  return props;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/extension-detail-view",
3
- "version": "7.4.0",
3
+ "version": "7.5.0",
4
4
  "description": "Extension Detail View Worker",
5
5
  "repository": {
6
6
  "type": "git",