@react-grab/visual-edit 0.0.88 → 0.0.89
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/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/client.cjs +669 -643
- package/dist/client.global.js +30 -30
- package/dist/client.js +669 -643
- package/dist/server.cjs +7 -3
- package/dist/server.js +7 -3
- package/package.json +2 -2
package/dist/server.cjs
CHANGED
|
@@ -7,9 +7,11 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
7
7
|
var pc__default = /*#__PURE__*/_interopDefault(pc);
|
|
8
8
|
|
|
9
9
|
// src/server.ts
|
|
10
|
-
var VERSION = "0.0.
|
|
10
|
+
var VERSION = "0.0.89";
|
|
11
11
|
try {
|
|
12
|
-
fetch(
|
|
12
|
+
fetch(
|
|
13
|
+
`https://www.react-grab.com/api/version?source=visual-edit&t=${Date.now()}`
|
|
14
|
+
).catch(() => {
|
|
13
15
|
});
|
|
14
16
|
} catch {
|
|
15
17
|
}
|
|
@@ -17,7 +19,9 @@ var startServer = async (_port) => {
|
|
|
17
19
|
console.log(
|
|
18
20
|
`${pc__default.default.magenta("\u273F")} ${pc__default.default.bold("React Grab")} ${pc__default.default.gray(VERSION)} ${pc__default.default.dim("(Visual Edit)")}`
|
|
19
21
|
);
|
|
20
|
-
console.log(
|
|
22
|
+
console.log(
|
|
23
|
+
`${pc__default.default.yellow("\u26A0")} Visual Edit provider does not require a server`
|
|
24
|
+
);
|
|
21
25
|
};
|
|
22
26
|
|
|
23
27
|
exports.startServer = startServer;
|
package/dist/server.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import pc from 'picocolors';
|
|
2
2
|
|
|
3
3
|
// src/server.ts
|
|
4
|
-
var VERSION = "0.0.
|
|
4
|
+
var VERSION = "0.0.89";
|
|
5
5
|
try {
|
|
6
|
-
fetch(
|
|
6
|
+
fetch(
|
|
7
|
+
`https://www.react-grab.com/api/version?source=visual-edit&t=${Date.now()}`
|
|
8
|
+
).catch(() => {
|
|
7
9
|
});
|
|
8
10
|
} catch {
|
|
9
11
|
}
|
|
@@ -11,7 +13,9 @@ var startServer = async (_port) => {
|
|
|
11
13
|
console.log(
|
|
12
14
|
`${pc.magenta("\u273F")} ${pc.bold("React Grab")} ${pc.gray(VERSION)} ${pc.dim("(Visual Edit)")}`
|
|
13
15
|
);
|
|
14
|
-
console.log(
|
|
16
|
+
console.log(
|
|
17
|
+
`${pc.yellow("\u26A0")} Visual Edit provider does not require a server`
|
|
18
|
+
);
|
|
15
19
|
};
|
|
16
20
|
|
|
17
21
|
export { startServer };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-grab/visual-edit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.89",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"react-grab-visual-edit": "./dist/cli.cjs"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@types/node": "^24.10.2",
|
|
28
28
|
"picocolors": "^1.1.1",
|
|
29
|
-
"react-grab": "0.0.
|
|
29
|
+
"react-grab": "0.0.89"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"dev": "tsup --watch",
|