@vnejs/shared.views.settings 0.2.1 → 0.2.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.
- package/dist/actions.js +1 -1
- package/dist/fields.d.ts +1 -1
- package/dist/fields.js +2 -2
- package/package.json +1 -1
- package/src/actions.ts +4 -2
- package/src/fields.ts +7 -3
- package/src/tests/actions.test.ts +5 -2
- package/src/tests/fields.test.ts +4 -2
package/dist/actions.js
CHANGED
|
@@ -5,8 +5,8 @@ import "@vnejs/contracts.scenario.fastforward";
|
|
|
5
5
|
import "@vnejs/contracts.views.screens.confirm";
|
|
6
6
|
import "@vnejs/contracts.views.screens.gallery";
|
|
7
7
|
import "@vnejs/contracts.views.settings";
|
|
8
|
-
import { requireNamespaceDefined } from "@vnejs/helpers.require-namespace-defined";
|
|
9
8
|
import { VNE } from "@vnejs/registry";
|
|
9
|
+
import { requireNamespaceDefined } from "@vnejs/helpers.require-namespace-defined";
|
|
10
10
|
const createConfirmAction = (readAcceptEvent) => ({ locKey, locKeyAccept, locKeyDecline }) => ({ emit }, locs) => {
|
|
11
11
|
requireNamespaceDefined(VNE.EVENTS.CONFIRM, "CONFIRM");
|
|
12
12
|
const event = readAcceptEvent();
|
package/dist/fields.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { QUALITIES } from "@vnejs/contracts.canvas.layer";
|
|
2
1
|
import "@vnejs/contracts.settings.filter";
|
|
3
2
|
import "@vnejs/contracts.text.locs";
|
|
3
|
+
import { QUALITIES } from "@vnejs/contracts.canvas.layer";
|
|
4
4
|
import type { SettingsField } from "@vnejs/contracts.views.settings";
|
|
5
5
|
export type SettingsToggleFieldOptions = {
|
|
6
6
|
locKey: string;
|
package/dist/fields.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { QUALITIES, SCREEN_SIZES } from "@vnejs/contracts.canvas.layer";
|
|
2
1
|
import "@vnejs/contracts.settings.filter";
|
|
3
2
|
import "@vnejs/contracts.text.locs";
|
|
4
|
-
import { requireNamespaceDefined } from "@vnejs/helpers.require-namespace-defined";
|
|
5
3
|
import { VNE } from "@vnejs/registry";
|
|
4
|
+
import { requireNamespaceDefined } from "@vnejs/helpers.require-namespace-defined";
|
|
5
|
+
import { QUALITIES, SCREEN_SIZES } from "@vnejs/contracts.canvas.layer";
|
|
6
6
|
export const createFieldToggle = ({ locKey, settingKey }) => ({
|
|
7
7
|
locKey,
|
|
8
8
|
settingKey,
|
package/package.json
CHANGED
package/src/actions.ts
CHANGED
|
@@ -6,10 +6,12 @@ import "@vnejs/contracts.views.screens.confirm";
|
|
|
6
6
|
import "@vnejs/contracts.views.screens.gallery";
|
|
7
7
|
import "@vnejs/contracts.views.settings";
|
|
8
8
|
|
|
9
|
-
import type { SettingsAction } from "@vnejs/contracts.views.settings";
|
|
10
|
-
import { requireNamespaceDefined } from "@vnejs/helpers.require-namespace-defined";
|
|
11
9
|
import { VNE } from "@vnejs/registry";
|
|
12
10
|
|
|
11
|
+
import { requireNamespaceDefined } from "@vnejs/helpers.require-namespace-defined";
|
|
12
|
+
|
|
13
|
+
import type { SettingsAction } from "@vnejs/contracts.views.settings";
|
|
14
|
+
|
|
13
15
|
export type SettingsConfirmActionOptions = {
|
|
14
16
|
locKey: string;
|
|
15
17
|
locKeyAccept: string;
|
package/src/fields.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import { QUALITIES, SCREEN_SIZES } from "@vnejs/contracts.canvas.layer";
|
|
2
1
|
import "@vnejs/contracts.settings.filter";
|
|
3
2
|
import "@vnejs/contracts.text.locs";
|
|
4
|
-
|
|
5
|
-
import { requireNamespaceDefined } from "@vnejs/helpers.require-namespace-defined";
|
|
3
|
+
|
|
6
4
|
import { VNE } from "@vnejs/registry";
|
|
7
5
|
|
|
6
|
+
import { requireNamespaceDefined } from "@vnejs/helpers.require-namespace-defined";
|
|
7
|
+
|
|
8
|
+
import { QUALITIES, SCREEN_SIZES } from "@vnejs/contracts.canvas.layer";
|
|
9
|
+
|
|
10
|
+
import type { SettingsField, SettingsFieldOption } from "@vnejs/contracts.views.settings";
|
|
11
|
+
|
|
8
12
|
export type SettingsToggleFieldOptions = {
|
|
9
13
|
locKey: string;
|
|
10
14
|
settingKey: string;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
import { beforeAll, describe, expect, it, vi } from "vitest";
|
|
2
|
+
|
|
3
|
+
import { regPlugin, VNE } from "@vnejs/registry";
|
|
4
|
+
|
|
1
5
|
import { PLUGIN_NAME as LOGS, SUBSCRIBE_EVENTS as LOGS_EVENTS } from "@vnejs/contracts.core.logs";
|
|
2
6
|
import { PLUGIN_NAME as STORAGE, SUBSCRIBE_EVENTS as STORAGE_EVENTS } from "@vnejs/contracts.core.storage";
|
|
3
7
|
import { PLUGIN_NAME as SAVE, SUBSCRIBE_EVENTS as SAVE_EVENTS } from "@vnejs/contracts.save";
|
|
4
8
|
import { PLUGIN_NAME as FASTFORWARD, SUBSCRIBE_EVENTS as FASTFORWARD_EVENTS } from "@vnejs/contracts.scenario.fastforward";
|
|
5
9
|
import { PLUGIN_NAME as CONFIRM, SUBSCRIBE_EVENTS as CONFIRM_EVENTS } from "@vnejs/contracts.views.screens.confirm";
|
|
6
10
|
import { PLUGIN_NAME as GALLERY, SUBSCRIBE_EVENTS as GALLERY_EVENTS } from "@vnejs/contracts.views.screens.gallery";
|
|
11
|
+
|
|
7
12
|
import type { SettingsActionContext } from "@vnejs/contracts.views.settings";
|
|
8
|
-
import { regPlugin, VNE } from "@vnejs/registry";
|
|
9
|
-
import { beforeAll, describe, expect, it, vi } from "vitest";
|
|
10
13
|
|
|
11
14
|
import {
|
|
12
15
|
createActionLogsClear,
|
package/src/tests/fields.test.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { describe, expect, it, beforeAll } from "vitest";
|
|
2
|
+
|
|
3
|
+
import { regPlugin, VNE } from "@vnejs/registry";
|
|
4
|
+
|
|
1
5
|
import { CONSTANTS, PLUGIN_NAME as LAYER, SETTINGS_KEYS } from "@vnejs/contracts.canvas.layer";
|
|
2
6
|
import { PLUGIN_NAME as FILTER, SETTINGS_KEYS as FILTER_SETTINGS } from "@vnejs/contracts.settings.filter";
|
|
3
7
|
import { PLUGIN_NAME as LOCS, SETTINGS_KEYS as LOCS_SETTINGS } from "@vnejs/contracts.text.locs";
|
|
4
|
-
import { describe, expect, it, beforeAll } from "vitest";
|
|
5
|
-
import { regPlugin, VNE } from "@vnejs/registry";
|
|
6
8
|
|
|
7
9
|
import {
|
|
8
10
|
createFieldActions,
|