@inpageedit/core 0.3.1 → 0.3.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/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/lib/index.umd.js +20 -20
- package/lib/index.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -5050,7 +5050,7 @@ class so extends Jt {
|
|
|
5050
5050
|
*/
|
|
5051
5051
|
class Vt extends an {
|
|
5052
5052
|
constructor(e) {
|
|
5053
|
-
super(), this.Endpoints = Ke, this.Schema = sn, this.version = "0.3.
|
|
5053
|
+
super(), this.Endpoints = Ke, this.Schema = sn, this.version = "0.3.2", this.config = {
|
|
5054
5054
|
...Vt.DEFAULT_CONFIG,
|
|
5055
5055
|
...e
|
|
5056
5056
|
}, this.#e(), this.#t(), this.#r();
|
|
@@ -5101,7 +5101,7 @@ function ao(t) {
|
|
|
5101
5101
|
function co(t) {
|
|
5102
5102
|
return ao(t).replace(/-/g, "_").replace(/.[A-Z]+/g, (e) => e[0] + "_" + e.slice(1).toLowerCase());
|
|
5103
5103
|
}
|
|
5104
|
-
class
|
|
5104
|
+
class po {
|
|
5105
5105
|
constructor(e, r = void 0, n) {
|
|
5106
5106
|
this.ctx = e, this.disposeHandlers = [], this.name = n || this.constructor.name, this.config = r || {};
|
|
5107
5107
|
const { promise: i, resolve: o, reject: u } = Promise.withResolvers();
|
|
@@ -5146,7 +5146,9 @@ class ho {
|
|
|
5146
5146
|
}
|
|
5147
5147
|
window.RLQ ||= [];
|
|
5148
5148
|
window.__IPE_MODULES__ ||= [];
|
|
5149
|
-
|
|
5149
|
+
fo("InPageEdit#autoload", () => {
|
|
5150
|
+
window.RLQ.push(uo);
|
|
5151
|
+
});
|
|
5150
5152
|
async function uo() {
|
|
5151
5153
|
typeof window?.ipe?.stop == "function" && (console.warn("[InPageEdit] Plugin already loaded, disposing..."), await window.ipe.stop());
|
|
5152
5154
|
const t = window.InPageEdit || {}, e = new Vt({
|
|
@@ -5180,8 +5182,12 @@ async function uo() {
|
|
|
5180
5182
|
/____/ v` + e.version
|
|
5181
5183
|
);
|
|
5182
5184
|
}
|
|
5185
|
+
function fo(t, e) {
|
|
5186
|
+
const r = Symbol.for(t);
|
|
5187
|
+
return window[r] ? !1 : (window[r] = !0, e(), !0);
|
|
5188
|
+
}
|
|
5183
5189
|
export {
|
|
5184
|
-
|
|
5190
|
+
po as BasePlugin,
|
|
5185
5191
|
Vt as InPageEdit,
|
|
5186
5192
|
yt as Inject,
|
|
5187
5193
|
sn as Schema,
|