@lvce-editor/find-widget-worker 1.4.0 → 1.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/dist/findWidgetWorkerMain.js +21 -22
- package/package.json +1 -1
|
@@ -974,7 +974,10 @@ const focusIndex = (state, index) => {
|
|
|
974
974
|
// newState,
|
|
975
975
|
// }
|
|
976
976
|
// const newWidgets = [...widgets.slice(0, childIndex), newWidget, ...widgets.slice(childIndex + 1)]
|
|
977
|
-
return
|
|
977
|
+
return {
|
|
978
|
+
...state,
|
|
979
|
+
matchIndex: index
|
|
980
|
+
};
|
|
978
981
|
};
|
|
979
982
|
const focusFirst = state => {
|
|
980
983
|
return focusIndex(state, 0);
|
|
@@ -1272,45 +1275,41 @@ const i18nString = (key, placeholders = emptyObject) => {
|
|
|
1272
1275
|
return key.replaceAll(RE_PLACEHOLDER, replacer);
|
|
1273
1276
|
};
|
|
1274
1277
|
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
const
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
Find: 'Find',
|
|
1285
|
-
Replace: 'Replace',
|
|
1286
|
-
ReplaceAll: 'Replace All'
|
|
1287
|
-
};
|
|
1278
|
+
const MatchOf = '{PH1} of {PH2}';
|
|
1279
|
+
const NoResults = 'No Results';
|
|
1280
|
+
const Close$2 = 'Close';
|
|
1281
|
+
const PreviousMatch = 'Previous Match';
|
|
1282
|
+
const NextMatch = 'Next Match';
|
|
1283
|
+
const Find$1 = 'Find';
|
|
1284
|
+
const Replace$2 = 'Replace';
|
|
1285
|
+
const ReplaceAll$2 = 'Replace All';
|
|
1286
|
+
|
|
1288
1287
|
const noResults = () => {
|
|
1289
|
-
return i18nString(
|
|
1288
|
+
return i18nString(NoResults);
|
|
1290
1289
|
};
|
|
1291
1290
|
const matchOf = (matchIndex, matchCount) => {
|
|
1292
|
-
return i18nString(
|
|
1291
|
+
return i18nString(MatchOf, {
|
|
1293
1292
|
PH1: matchIndex,
|
|
1294
1293
|
PH2: matchCount
|
|
1295
1294
|
});
|
|
1296
1295
|
};
|
|
1297
1296
|
const previousMatch = () => {
|
|
1298
|
-
return i18nString(
|
|
1297
|
+
return i18nString(PreviousMatch);
|
|
1299
1298
|
};
|
|
1300
1299
|
const nextMatch = () => {
|
|
1301
|
-
return i18nString(
|
|
1300
|
+
return i18nString(NextMatch);
|
|
1302
1301
|
};
|
|
1303
1302
|
const close = () => {
|
|
1304
|
-
return i18nString(
|
|
1303
|
+
return i18nString(Close$2);
|
|
1305
1304
|
};
|
|
1306
1305
|
const find = () => {
|
|
1307
|
-
return i18nString(
|
|
1306
|
+
return i18nString(Find$1);
|
|
1308
1307
|
};
|
|
1309
1308
|
const replace = () => {
|
|
1310
|
-
return i18nString(
|
|
1309
|
+
return i18nString(Replace$2);
|
|
1311
1310
|
};
|
|
1312
1311
|
const replaceAll = () => {
|
|
1313
|
-
return i18nString(
|
|
1312
|
+
return i18nString(ReplaceAll$2);
|
|
1314
1313
|
};
|
|
1315
1314
|
|
|
1316
1315
|
const ArrowDown = 'ArrowDown';
|