@inpageedit/core 0.13.0 → 0.13.1
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/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Context, Events as Events$1, ForkScope, Inject, Inject as Inject$1, Service } from "@cordisjs/core";
|
|
2
2
|
import * as _inpageedit_logger0 from "@inpageedit/logger";
|
|
3
3
|
import { Logger } from "@inpageedit/logger";
|
|
4
|
-
import * as
|
|
4
|
+
import * as wiki_saikou1 from "wiki-saikou";
|
|
5
5
|
import { FexiosConfigs, MwApiParams } from "wiki-saikou";
|
|
6
6
|
import { FexiosFinalContext, MediaWikiApi, MwApi, MwApiParams as MwApiParams$1, MwApiResponse } from "wiki-saikou/browser";
|
|
7
7
|
import { IPEModal, IPEModalEvent, IPEModalOptions } from "@inpageedit/modal";
|
|
@@ -9,11 +9,11 @@ import "@inpageedit/modal/style.css";
|
|
|
9
9
|
import { IDBPlus } from "idb-plus";
|
|
10
10
|
import "@/styles/index.scss";
|
|
11
11
|
import Schema, { default as Schema$1 } from "schemastery";
|
|
12
|
-
import * as
|
|
12
|
+
import * as jsx_dom1 from "jsx-dom";
|
|
13
13
|
import { JSX, ReactElement, ReactNode } from "jsx-dom";
|
|
14
14
|
import { JSX as JSX$1 } from "jsx-dom/jsx-runtime";
|
|
15
15
|
import { JSX as JSX$2 } from "vue/jsx-runtime";
|
|
16
|
-
import
|
|
16
|
+
import * as vue0 from "vue";
|
|
17
17
|
import { App } from "vue";
|
|
18
18
|
import "./plugins/toolbox/styles.scss";
|
|
19
19
|
export * from "@inpageedit/logger";
|
|
@@ -1022,21 +1022,21 @@ declare function TabView({
|
|
|
1022
1022
|
content: ReactNode;
|
|
1023
1023
|
})[];
|
|
1024
1024
|
defaultActiveIndex?: number;
|
|
1025
|
-
}):
|
|
1025
|
+
}): jsx_dom1.ReactElement;
|
|
1026
1026
|
declare function TabLabel({
|
|
1027
1027
|
name,
|
|
1028
1028
|
children
|
|
1029
1029
|
}: {
|
|
1030
1030
|
name: string;
|
|
1031
1031
|
children: ReactNode;
|
|
1032
|
-
}):
|
|
1032
|
+
}): jsx_dom1.ReactElement;
|
|
1033
1033
|
declare function TabContent({
|
|
1034
1034
|
name,
|
|
1035
1035
|
children
|
|
1036
1036
|
}: {
|
|
1037
1037
|
name: string;
|
|
1038
1038
|
children: ReactNode;
|
|
1039
|
-
}):
|
|
1039
|
+
}): jsx_dom1.ReactElement;
|
|
1040
1040
|
//#endregion
|
|
1041
1041
|
//#region src/components/TwinSwapInput/index.d.ts
|
|
1042
1042
|
type TwinSwapInputProps = {
|
|
@@ -1081,7 +1081,7 @@ type CheckBoxProps = {
|
|
|
1081
1081
|
inputProps?: JSX.IntrinsicElements['input'];
|
|
1082
1082
|
labelProps?: JSX.IntrinsicElements['span'];
|
|
1083
1083
|
} & JSX.IntrinsicElements['label'];
|
|
1084
|
-
declare const CheckBox: (props: CheckBoxProps) =>
|
|
1084
|
+
declare const CheckBox: (props: CheckBoxProps) => jsx_dom1.ReactElement;
|
|
1085
1085
|
//#endregion
|
|
1086
1086
|
//#region src/components/InputBox.d.ts
|
|
1087
1087
|
type InputBoxProps = {
|
|
@@ -1093,7 +1093,7 @@ type InputBoxProps = {
|
|
|
1093
1093
|
labelProps?: JSX.IntrinsicElements['label'];
|
|
1094
1094
|
inputProps?: JSX.IntrinsicElements['input'];
|
|
1095
1095
|
} & JSX.IntrinsicElements['div'];
|
|
1096
|
-
declare const InputBox: (props: InputBoxProps) =>
|
|
1096
|
+
declare const InputBox: (props: InputBoxProps) => jsx_dom1.ReactElement;
|
|
1097
1097
|
//#endregion
|
|
1098
1098
|
//#region src/components/RadioBox.d.ts
|
|
1099
1099
|
type RadioBoxProps = {
|
|
@@ -1104,7 +1104,7 @@ type RadioBoxProps = {
|
|
|
1104
1104
|
inputProps?: JSX.IntrinsicElements['input'];
|
|
1105
1105
|
labelProps?: JSX.IntrinsicElements['span'];
|
|
1106
1106
|
} & JSX.IntrinsicElements['label'];
|
|
1107
|
-
declare const RadioBox: (props: RadioBoxProps) =>
|
|
1107
|
+
declare const RadioBox: (props: RadioBoxProps) => jsx_dom1.ReactElement;
|
|
1108
1108
|
//#endregion
|
|
1109
1109
|
//#region src/models/MemoryStorage.d.ts
|
|
1110
1110
|
declare class MemoryStorage implements Storage {
|
|
@@ -1303,6 +1303,14 @@ declare class PluginPluginStore extends BasePlugin {
|
|
|
1303
1303
|
refreshAllRegistryCaches(): Promise<Record<string, PluginStoreRegistry | null>>;
|
|
1304
1304
|
}
|
|
1305
1305
|
//#endregion
|
|
1306
|
+
//#region src/plugins/preferences-ui/components/PreferencesApp.vue.d.ts
|
|
1307
|
+
declare const __VLS_export: vue0.DefineComponent<{}, {
|
|
1308
|
+
getValue(): any;
|
|
1309
|
+
mergeValue(details: Record<string, unknown>): void;
|
|
1310
|
+
selectTab(name: string): void;
|
|
1311
|
+
}, {}, {}, {}, vue0.ComponentOptionsMixin, vue0.ComponentOptionsMixin, {}, string, vue0.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue0.ComponentProvideOptions, true, {}, any>;
|
|
1312
|
+
declare const _default: typeof __VLS_export;
|
|
1313
|
+
//#endregion
|
|
1306
1314
|
//#region src/plugins/preferences-ui/index.d.ts
|
|
1307
1315
|
// ↓ '@/InPageEdit'
|
|
1308
1316
|
declare module '.' {
|
|
@@ -1317,7 +1325,7 @@ declare module '.' {
|
|
|
1317
1325
|
'preferences-ui/vue-app-mounted'(payload: {
|
|
1318
1326
|
ctx: InPageEdit;
|
|
1319
1327
|
app: App;
|
|
1320
|
-
form: InstanceType<typeof
|
|
1328
|
+
form: InstanceType<typeof _default>;
|
|
1321
1329
|
}): void;
|
|
1322
1330
|
'preferences-ui/modal-tab-changed'(payload: {
|
|
1323
1331
|
ctx: InPageEdit;
|
|
@@ -1340,11 +1348,11 @@ declare class PluginPreferencesUI extends BasePlugin {
|
|
|
1340
1348
|
protected start(): Promise<void>;
|
|
1341
1349
|
protected stop(): Promise<void> | void;
|
|
1342
1350
|
_modal: CustomIPEModal | null;
|
|
1343
|
-
_form: InstanceType<typeof
|
|
1351
|
+
_form: InstanceType<typeof _default> | null;
|
|
1344
1352
|
showModal(): CustomIPEModal;
|
|
1345
1353
|
getCurrentModal(): CustomIPEModal | null;
|
|
1346
1354
|
closeCurrentModal(): CustomIPEModal | undefined;
|
|
1347
|
-
dispatchFormSave(form?: InstanceType<typeof
|
|
1355
|
+
dispatchFormSave(form?: InstanceType<typeof _default>): Promise<boolean>;
|
|
1348
1356
|
getCurrentFormValue(): any;
|
|
1349
1357
|
mergeFormValue(value: Record<string, unknown>): boolean;
|
|
1350
1358
|
createPreferencesUIApp(): any;
|
|
@@ -1499,7 +1507,7 @@ declare class PluginQuickEdit extends BasePlugin {
|
|
|
1499
1507
|
constructor(ctx: InPageEdit);
|
|
1500
1508
|
protected start(): Promise<void> | void;
|
|
1501
1509
|
showModal(payload?: string | Partial<QuickEditOptions>): Promise<void>;
|
|
1502
|
-
handleSubmit(payload: QuickEditSubmitPayload): Promise<Required<
|
|
1510
|
+
handleSubmit(payload: QuickEditSubmitPayload): Promise<Required<wiki_saikou1.FexiosContext<wiki_saikou1.MwApiResponse<{
|
|
1503
1511
|
success: boolean;
|
|
1504
1512
|
}>>>>;
|
|
1505
1513
|
static readonly BUILT_IN_FONT_OPTIONS: string[];
|
|
@@ -1555,7 +1563,7 @@ declare class PluginQuickMove extends BasePlugin {
|
|
|
1555
1563
|
protected start(): Promise<void> | void;
|
|
1556
1564
|
private injectToolbox;
|
|
1557
1565
|
showModal(options?: Partial<QuickMoveOptions>): Promise<CustomIPEModal>;
|
|
1558
|
-
movePage(options: MovePageOptions): Promise<Required<
|
|
1566
|
+
movePage(options: MovePageOptions): Promise<Required<wiki_saikou1.FexiosContext<wiki_saikou1.MwApiResponse<{
|
|
1559
1567
|
success: boolean;
|
|
1560
1568
|
}>>>>;
|
|
1561
1569
|
}
|
|
@@ -1636,7 +1644,7 @@ declare class PluginQuickRedirect extends BasePlugin {
|
|
|
1636
1644
|
protected start(): Promise<void> | void;
|
|
1637
1645
|
protected stop(): Promise<void> | void;
|
|
1638
1646
|
showModal(options?: Partial<QuickRedirectOptions>): Promise<CustomIPEModal>;
|
|
1639
|
-
redirectPage(options: RedirectPageOptions): Promise<Required<
|
|
1647
|
+
redirectPage(options: RedirectPageOptions): Promise<Required<wiki_saikou1.FexiosContext<wiki_saikou1.MwApiResponse<{
|
|
1640
1648
|
success: boolean;
|
|
1641
1649
|
}>>>>;
|
|
1642
1650
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as s } from "./index-
|
|
2
|
-
import { m as l, $ as g, S as m } from "./index-
|
|
1
|
+
import { I as s } from "./index-DqA6EAM6.js";
|
|
2
|
+
import { m as l, $ as g, S as m } from "./index-DqA6EAM6.js";
|
|
3
3
|
import { E as r } from "./endpoints-DgyuoRZd.js";
|
|
4
4
|
import { I as L, S as P, a as U } from "./endpoints-DgyuoRZd.js";
|
|
5
5
|
import { B as S } from "./BasePlugin-Bf2UuIHF.js";
|
package/dist/services/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as r, C as i, b as s, N as c, P as o, M as v, c as S, R as t, a as d, W as P, d as M, e as l } from "../index-
|
|
1
|
+
import { A as r, C as i, b as s, N as c, P as o, M as v, c as S, R as t, a as d, W as P, d as M, e as l } from "../index-DqA6EAM6.js";
|
|
2
2
|
export {
|
|
3
3
|
r as ApiService,
|
|
4
4
|
i as CurrentPageService,
|