miaoda-expo-devkit 0.1.1-beta.41 → 0.1.1-beta.43
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.
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
18
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
29
|
var lgui_control_exports = {};
|
|
20
30
|
__export(lgui_control_exports, {
|
|
@@ -22,7 +32,7 @@ __export(lgui_control_exports, {
|
|
|
22
32
|
});
|
|
23
33
|
module.exports = __toCommonJS(lgui_control_exports);
|
|
24
34
|
var import_css_control = require("./css-control");
|
|
25
|
-
var
|
|
35
|
+
var import_lodash = __toESM(require("lodash.throttle"));
|
|
26
36
|
const MD_CONFIG = {
|
|
27
37
|
HOVERED_ATTR: "data-editor-hover",
|
|
28
38
|
ACTIVE_ATTR: "data-editor-active",
|
|
@@ -30,9 +40,7 @@ const MD_CONFIG = {
|
|
|
30
40
|
FULL_WIDTH_ATTR: "data-editor-full-width"
|
|
31
41
|
};
|
|
32
42
|
const THROTTLE_INTERVAL = 8;
|
|
33
|
-
const THROTTLE_OPTIONS = {
|
|
34
|
-
edges: ["leading", "trailing"]
|
|
35
|
-
};
|
|
43
|
+
const THROTTLE_OPTIONS = { leading: true, trailing: true };
|
|
36
44
|
function isInsideSvgButNotSvgElement(el) {
|
|
37
45
|
const tag = el.tagName.toLowerCase();
|
|
38
46
|
return tag !== "svg" && el.closest("svg") !== null;
|
|
@@ -181,7 +189,7 @@ class EditorController {
|
|
|
181
189
|
* 滚动事件处理(节流)
|
|
182
190
|
* 当页面滚动时,向父窗口发送选中元素的新位置信息
|
|
183
191
|
*/
|
|
184
|
-
this.onScroll = (0,
|
|
192
|
+
this.onScroll = (0, import_lodash.default)(
|
|
185
193
|
() => {
|
|
186
194
|
const target = this.activeNode;
|
|
187
195
|
if (!target) return;
|
|
@@ -348,10 +356,8 @@ class EditorController {
|
|
|
348
356
|
if (!this.activeNode) return;
|
|
349
357
|
this.stopObservingActiveNode();
|
|
350
358
|
this.clearSiblingHighlights();
|
|
351
|
-
|
|
352
|
-
removeActiveAttr(nodeToDelete);
|
|
359
|
+
removeActiveAttr(this.activeNode);
|
|
353
360
|
this.activeNode = null;
|
|
354
|
-
nodeToDelete.remove();
|
|
355
361
|
postToParent("iframe-node-clear");
|
|
356
362
|
}
|
|
357
363
|
}
|
|
@@ -1,29 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
12
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
}
|
|
14
|
-
return to;
|
|
15
|
-
};
|
|
16
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
-
mod
|
|
23
|
-
));
|
|
24
|
-
|
|
25
|
-
// src/stubs/sentry-react-native-stub.ts
|
|
26
|
-
var RealSentry = __toESM(require("@sentry/react-native"));
|
|
27
2
|
|
|
28
3
|
// src/capture.ts
|
|
29
4
|
var import_stacktrace_parser = require("stacktrace-parser");
|
|
@@ -155,6 +130,7 @@ var SentryCapture = class {
|
|
|
155
130
|
};
|
|
156
131
|
|
|
157
132
|
// src/stubs/sentry-react-native-stub.ts
|
|
133
|
+
var RealSentry = require("@sentry/react-native");
|
|
158
134
|
function getParentOrigin() {
|
|
159
135
|
try {
|
|
160
136
|
const w = globalThis.window;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "miaoda-expo-devkit",
|
|
3
|
-
"version": "0.1.1-beta.
|
|
3
|
+
"version": "0.1.1-beta.43",
|
|
4
4
|
"description": "Expo 应用开发工具集:Sentry DSN 替换 stub、错误/网络捕获、Metro 符号化",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
],
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"connect": "^3.7.0",
|
|
75
|
-
"
|
|
75
|
+
"lodash.throttle": "^4.1.1",
|
|
76
76
|
"metro-minify-esbuild": "^0.2.0",
|
|
77
77
|
"oxc-resolver": "^11.19.1",
|
|
78
78
|
"package-up": "^5.0.0",
|