@inpageedit/core 0.17.4 → 0.18.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/InPageEdit.js +2 -2
- package/dist/{PluginImagesUsed-DIsW4sQH.js → PluginImagesUsed-D9D4IRJt.js} +2 -2
- package/dist/{PluginImagesUsed-DIsW4sQH.js.map → PluginImagesUsed-D9D4IRJt.js.map} +1 -1
- package/dist/{PluginPrefSync-BM1-tOBL.js → PluginPrefSync-DzmDUTF-.js} +2 -2
- package/dist/{PluginPrefSync-BM1-tOBL.js.map → PluginPrefSync-DzmDUTF-.js.map} +1 -1
- package/dist/{PluginStoreApp-By2yV_Kl.js → PluginStoreApp-BifScxOt.js} +2 -2
- package/dist/{PluginStoreApp-By2yV_Kl.js.map → PluginStoreApp-BifScxOt.js.map} +1 -1
- package/dist/{PluginTemplatesUsed-BhNX1xSY.js → PluginTemplatesUsed-De0Y5yo9.js} +2 -2
- package/dist/{PluginTemplatesUsed-BhNX1xSY.js.map → PluginTemplatesUsed-De0Y5yo9.js.map} +1 -1
- package/dist/core.js +2 -2
- package/dist/{index-BAJiXDPz.js → index-9I-lTJju.js} +153 -143
- package/dist/index-9I-lTJju.js.map +1 -0
- package/dist/{index-C0spLL-i.js → index-Ay5PsdkH.js} +250 -248
- package/dist/{index-C0spLL-i.js.map → index-Ay5PsdkH.js.map} +1 -1
- package/dist/{index-B5KNZ_9z.js → index-B5tbjHvN.js} +2 -2
- package/dist/{index-B5KNZ_9z.js.map → index-B5tbjHvN.js.map} +1 -1
- package/dist/{index-S6Jhp39r.js → index-B6Zxq3gX.js} +2 -2
- package/dist/{index-S6Jhp39r.js.map → index-B6Zxq3gX.js.map} +1 -1
- package/dist/{index-BFdMEvlW.js → index-BVuMfFbP.js} +3 -3
- package/dist/{index-BFdMEvlW.js.map → index-BVuMfFbP.js.map} +1 -1
- package/dist/{index-D8_-baBt.js → index-BwGWWeee.js} +2 -2
- package/dist/{index-D8_-baBt.js.map → index-BwGWWeee.js.map} +1 -1
- package/dist/{index-CoX1x5ls.js → index-Cn0EjRz9.js} +2 -2
- package/dist/{index-CoX1x5ls.js.map → index-Cn0EjRz9.js.map} +1 -1
- package/dist/{index-DHitL1S2.js → index-D3hnOW_f.js} +8 -8
- package/dist/{index-DHitL1S2.js.map → index-D3hnOW_f.js.map} +1 -1
- package/dist/{index-QZjXZBoj.js → index-D6AvNjpW.js} +3 -3
- package/dist/{index-QZjXZBoj.js.map → index-D6AvNjpW.js.map} +1 -1
- package/dist/{index-Bf8jOXlz.js → index-DiWAbu-c.js} +3 -3
- package/dist/{index-Bf8jOXlz.js.map → index-DiWAbu-c.js.map} +1 -1
- package/dist/{index-BoVgsh8u.js → index-DkyIt0u7.js} +2 -2
- package/dist/{index-BoVgsh8u.js.map → index-DkyIt0u7.js.map} +1 -1
- package/dist/{index-CZfEZBOj.js → index-JE9-Xotj.js} +246 -221
- package/dist/index-JE9-Xotj.js.map +1 -0
- package/dist/{index-Bd_cTayA.js → index-b29qTV0M.js} +3 -3
- package/dist/{index-Bd_cTayA.js.map → index-b29qTV0M.js.map} +1 -1
- package/dist/{index-ruv3nAtX.js → index-mLleTCbq.js} +2 -2
- package/dist/{index-ruv3nAtX.js.map → index-mLleTCbq.js.map} +1 -1
- package/dist/index.d.ts +16 -10
- package/dist/index.js +2 -2
- package/dist/models/index.js +1 -1
- package/dist/plugins/index.js +12 -12
- package/dist/services/index.js +1 -1
- package/lib/index.umd.js +18 -18
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/index-BAJiXDPz.js.map +0 -1
- package/dist/index-CZfEZBOj.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@inpageedit/modal/style.css";
|
|
2
2
|
import "@/styles/index.scss";
|
|
3
|
-
import * as
|
|
3
|
+
import * as fexios2 from "fexios";
|
|
4
4
|
import "./plugins/quick-preview/style.scss";
|
|
5
5
|
import "./plugins/quick-upload/style.scss";
|
|
6
6
|
import "./plugins/toolbox/styles.scss";
|
|
@@ -1431,6 +1431,10 @@ interface WikiSiteInfo {
|
|
|
1431
1431
|
magicwords: WikiMagicWord[];
|
|
1432
1432
|
namespaces: Record<string, WikiNamespace>;
|
|
1433
1433
|
repos: WikiFileRepo[];
|
|
1434
|
+
/** Allowed upload file extensions. Optional: older MediaWiki / some foreign repos may omit it. */
|
|
1435
|
+
fileextensions?: {
|
|
1436
|
+
ext: string;
|
|
1437
|
+
}[];
|
|
1434
1438
|
}
|
|
1435
1439
|
interface WikiSiteGeneralInfo {
|
|
1436
1440
|
mainpage: string;
|
|
@@ -13616,10 +13620,10 @@ declare class WikiMetadataService extends Service {
|
|
|
13616
13620
|
protected start(): Promise<void>;
|
|
13617
13621
|
initData<T extends keyof WikiMetadataKindMap>(kind: T, noCache?: boolean): Promise<WikiMetadataKindMap[T]>;
|
|
13618
13622
|
private getCacheKey;
|
|
13619
|
-
fetchFromApi
|
|
13620
|
-
fetchFromCache<T extends keyof WikiMetadataKindMap>(kind: T): Promise<WikiMetadataKindMap[T] | null>;
|
|
13621
|
-
saveToCache<T extends keyof WikiMetadataKindMap>(kind: T, data: WikiMetadataKindMap[T]): Promise<TypedStorageEntry<
|
|
13622
|
-
invalidateCache<T extends keyof WikiMetadataKindMap>(kind: T): Promise<void>;
|
|
13623
|
+
private fetchFromApi;
|
|
13624
|
+
fetchFromCache<T extends keyof WikiMetadataKindMap>(kind: T, api?: MediaWikiApi): Promise<WikiMetadataKindMap[T] | null>;
|
|
13625
|
+
saveToCache<T extends keyof WikiMetadataKindMap>(kind: T, data: WikiMetadataKindMap[T], api?: MediaWikiApi): Promise<TypedStorageEntry<WikiUserInfo | WikiSiteInfo>>;
|
|
13626
|
+
invalidateCache<T extends keyof WikiMetadataKindMap>(kind: T, api?: MediaWikiApi): Promise<void>;
|
|
13623
13627
|
private onClearCache;
|
|
13624
13628
|
get _raw(): WikiMetadataKindMap;
|
|
13625
13629
|
get siteInfo(): WikiSiteInfo;
|
|
@@ -13633,6 +13637,8 @@ declare class WikiMetadataService extends Service {
|
|
|
13633
13637
|
aliases: string[];
|
|
13634
13638
|
}[];
|
|
13635
13639
|
get magicWords(): WikiMagicWord[];
|
|
13640
|
+
get allowedFileExtensions(): string[];
|
|
13641
|
+
getAllowedFileExtensions(targetApi?: MediaWikiApi): Promise<string[]>;
|
|
13636
13642
|
get userInfo(): WikiUserInfo;
|
|
13637
13643
|
get userOptions(): WikiUserOptions;
|
|
13638
13644
|
get isUserBlocked(): boolean | "" | undefined;
|
|
@@ -14061,7 +14067,7 @@ declare class PreferencesService extends Service {
|
|
|
14061
14067
|
getAllSchema(): Schema<PreferencesMap, PreferencesMap>;
|
|
14062
14068
|
defineCategory(category: InPageEditPreferenceUICategory): this;
|
|
14063
14069
|
getConfigCategories(): InPageEditPreferenceUICategory[];
|
|
14064
|
-
private
|
|
14070
|
+
private _migrateFromLegacyMasterDB;
|
|
14065
14071
|
}
|
|
14066
14072
|
//#endregion
|
|
14067
14073
|
//#region ../../node_modules/.pnpm/schemastery@3.17.2/node_modules/schemastery/lib/index.d.ts
|
|
@@ -14590,7 +14596,7 @@ declare class WikiFileService extends Service {
|
|
|
14590
14596
|
getFileName(title: string | IWikiTitle): string;
|
|
14591
14597
|
getHashPath(title: string | IWikiTitle, hashLevel?: number): string;
|
|
14592
14598
|
getFileUrl(title: string | IWikiTitle, repo?: WikiFileRepo): string;
|
|
14593
|
-
upload(params: Partial<UploadFileParams>, repo?: WikiFileRepo): Promise<
|
|
14599
|
+
upload(params: Partial<UploadFileParams>, repo?: WikiFileRepo): Promise<fexios2.FexiosFinalContext<MwApiResponse<{
|
|
14594
14600
|
upload: UploadFileResult;
|
|
14595
14601
|
}>>>;
|
|
14596
14602
|
}
|
|
@@ -16663,7 +16669,7 @@ declare class PluginQuickEdit extends BasePlugin {
|
|
|
16663
16669
|
constructor(ctx: InPageEdit);
|
|
16664
16670
|
protected start(): Promise<void> | void;
|
|
16665
16671
|
showModal(payload?: string | Partial<QuickEditOptions>): Promise<void>;
|
|
16666
|
-
handleSubmit(payload: QuickEditSubmitPayload): Promise<
|
|
16672
|
+
handleSubmit(payload: QuickEditSubmitPayload): Promise<fexios2.FexiosFinalContext<MwApiResponse<{
|
|
16667
16673
|
edit: WikiPageActionEditResult;
|
|
16668
16674
|
}>>>;
|
|
16669
16675
|
static readonly BUILT_IN_FONT_OPTIONS: string[];
|
|
@@ -16723,7 +16729,7 @@ declare class PluginQuickMove extends BasePlugin {
|
|
|
16723
16729
|
protected start(): Promise<void> | void;
|
|
16724
16730
|
private injectToolbox;
|
|
16725
16731
|
showModal(options?: Partial<QuickMoveOptions>): Promise<CustomIPEModal>;
|
|
16726
|
-
movePage(options: MovePageOptions): Promise<
|
|
16732
|
+
movePage(options: MovePageOptions): Promise<fexios2.FexiosFinalContext<MwApiResponse<{
|
|
16727
16733
|
success: boolean;
|
|
16728
16734
|
}>>>;
|
|
16729
16735
|
}
|
|
@@ -16812,7 +16818,7 @@ declare class PluginQuickRedirect extends BasePlugin {
|
|
|
16812
16818
|
protected start(): Promise<void> | void;
|
|
16813
16819
|
protected stop(): Promise<void> | void;
|
|
16814
16820
|
showModal(options?: Partial<QuickRedirectOptions>): Promise<CustomIPEModal>;
|
|
16815
|
-
redirectPage(options: RedirectPageOptions): Promise<
|
|
16821
|
+
redirectPage(options: RedirectPageOptions): Promise<fexios2.FexiosFinalContext<MwApiResponse<{
|
|
16816
16822
|
edit: WikiPageActionEditResult;
|
|
16817
16823
|
}>>>;
|
|
16818
16824
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as r, E as s } from "./index-
|
|
2
|
-
import { C as E, s as l, b as g, F as L, a as S, e as I, m as P, $ as m, M as y, R as U, S as M, c as h, d as R, f as O } from "./index-
|
|
1
|
+
import { I as r, E as s } from "./index-9I-lTJju.js";
|
|
2
|
+
import { C as E, s as l, b as g, F as L, a as S, e as I, m as P, $ as m, M as y, R as U, S as M, c as h, d as R, f as O } from "./index-9I-lTJju.js";
|
|
3
3
|
import { BasePlugin as b } from "./core.js";
|
|
4
4
|
window.RLQ ||= [];
|
|
5
5
|
window.__IPE_MODULES__ ||= [];
|
package/dist/models/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as n, c, a as g, u } from "../index-
|
|
1
|
+
import { b as n, c, a as g, u } from "../index-Ay5PsdkH.js";
|
|
2
2
|
var r = /* @__PURE__ */ ((e) => (e.preferences = "preferences", e.watch = "watch", e.unwatch = "unwatch", e.nochange = "nochange", e))(r || {});
|
|
3
3
|
export {
|
|
4
4
|
n as MemoryStorage,
|
package/dist/plugins/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { PluginAnalytics as i } from "../index-
|
|
2
|
-
import { PluginInArticleLinks as u } from "../index-
|
|
3
|
-
import { PluginPluginStore as n } from "../index-
|
|
4
|
-
import { PluginPreferencesUI as f } from "../index-
|
|
5
|
-
import { PluginQuickDiff as g } from "../index-
|
|
6
|
-
import { PluginQuickEdit as x } from "../index-
|
|
7
|
-
import { PluginQuickMove as c } from "../index-
|
|
8
|
-
import { PluginQuickPreview as Q } from "../index-
|
|
9
|
-
import { PluginQuickRedirect as a } from "../index-
|
|
10
|
-
import { PluginQuickUpload as U } from "../index-
|
|
11
|
-
import { PluginQuickUsage as A } from "../index-
|
|
12
|
-
import { PluginToolbox as b } from "../index-
|
|
1
|
+
import { PluginAnalytics as i } from "../index-B5tbjHvN.js";
|
|
2
|
+
import { PluginInArticleLinks as u } from "../index-mLleTCbq.js";
|
|
3
|
+
import { PluginPluginStore as n } from "../index-D6AvNjpW.js";
|
|
4
|
+
import { PluginPreferencesUI as f } from "../index-b29qTV0M.js";
|
|
5
|
+
import { PluginQuickDiff as g } from "../index-B6Zxq3gX.js";
|
|
6
|
+
import { PluginQuickEdit as x } from "../index-BVuMfFbP.js";
|
|
7
|
+
import { PluginQuickMove as c } from "../index-D3hnOW_f.js";
|
|
8
|
+
import { PluginQuickPreview as Q } from "../index-DkyIt0u7.js";
|
|
9
|
+
import { PluginQuickRedirect as a } from "../index-Cn0EjRz9.js";
|
|
10
|
+
import { PluginQuickUpload as U } from "../index-JE9-Xotj.js";
|
|
11
|
+
import { PluginQuickUsage as A } from "../index-DiWAbu-c.js";
|
|
12
|
+
import { PluginToolbox as b } from "../index-BwGWWeee.js";
|
|
13
13
|
export {
|
|
14
14
|
i as PluginAnalytics,
|
|
15
15
|
u as PluginInArticleLinks,
|
package/dist/services/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as r, B as i, k as s, l as c, N as S, P as v, n as o, o as t, r as d, j as l, T as P, W as E, t as I, v as T, w as k, u as A } from "../index-
|
|
1
|
+
import { A as r, B as i, k as s, l as c, N as S, P as v, n as o, o as t, r as d, j as l, T as P, W as E, t as I, v as T, w as k, u as A } from "../index-9I-lTJju.js";
|
|
2
2
|
export {
|
|
3
3
|
r as ApiService,
|
|
4
4
|
i as BUILTIN_SITE_ADAPTERS,
|