@webflow/webflow-cli 1.2.5 → 1.3.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/CHANGELOG.md +6 -0
- package/dist/index.js +31 -57
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -2020,60 +2020,25 @@ var require_public_api = __commonJS({
|
|
|
2020
2020
|
var require_package2 = __commonJS({
|
|
2021
2021
|
"../../node_modules/prettier/package.json"(exports, module2) {
|
|
2022
2022
|
module2.exports = {
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
_inBundle: false,
|
|
2026
|
-
_integrity: "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==",
|
|
2027
|
-
_location: "/prettier",
|
|
2028
|
-
_phantomChildren: {},
|
|
2029
|
-
_requested: {
|
|
2030
|
-
type: "tag",
|
|
2031
|
-
registry: true,
|
|
2032
|
-
raw: "prettier@latest",
|
|
2033
|
-
name: "prettier",
|
|
2034
|
-
escapedName: "prettier",
|
|
2035
|
-
rawSpec: "latest",
|
|
2036
|
-
saveSpec: null,
|
|
2037
|
-
fetchSpec: "latest"
|
|
2038
|
-
},
|
|
2039
|
-
_requiredBy: [
|
|
2040
|
-
"#DEV:/"
|
|
2041
|
-
],
|
|
2042
|
-
_resolved: "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz",
|
|
2043
|
-
_shasum: "e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da",
|
|
2044
|
-
_spec: "prettier@latest",
|
|
2045
|
-
_where: "/Users/federico/source/webflow-cli",
|
|
2046
|
-
author: {
|
|
2047
|
-
name: "James Long"
|
|
2048
|
-
},
|
|
2049
|
-
bin: {
|
|
2050
|
-
prettier: "bin-prettier.js"
|
|
2051
|
-
},
|
|
2052
|
-
browser: "./standalone.js",
|
|
2053
|
-
bugs: {
|
|
2054
|
-
url: "https://github.com/prettier/prettier/issues"
|
|
2055
|
-
},
|
|
2056
|
-
bundleDependencies: false,
|
|
2057
|
-
deprecated: false,
|
|
2023
|
+
name: "prettier",
|
|
2024
|
+
version: "2.8.8",
|
|
2058
2025
|
description: "Prettier is an opinionated code formatter",
|
|
2026
|
+
bin: "./bin-prettier.js",
|
|
2027
|
+
repository: "prettier/prettier",
|
|
2028
|
+
funding: "https://github.com/prettier/prettier?sponsor=1",
|
|
2029
|
+
homepage: "https://prettier.io",
|
|
2030
|
+
author: "James Long",
|
|
2031
|
+
license: "MIT",
|
|
2032
|
+
main: "./index.js",
|
|
2033
|
+
browser: "./standalone.js",
|
|
2034
|
+
unpkg: "./standalone.js",
|
|
2059
2035
|
engines: {
|
|
2060
2036
|
node: ">=10.13.0"
|
|
2061
2037
|
},
|
|
2062
2038
|
files: [
|
|
2063
2039
|
"*.js",
|
|
2064
2040
|
"esm/*.mjs"
|
|
2065
|
-
]
|
|
2066
|
-
funding: "https://github.com/prettier/prettier?sponsor=1",
|
|
2067
|
-
homepage: "https://prettier.io",
|
|
2068
|
-
license: "MIT",
|
|
2069
|
-
main: "./index.js",
|
|
2070
|
-
name: "prettier",
|
|
2071
|
-
repository: {
|
|
2072
|
-
type: "git",
|
|
2073
|
-
url: "git+https://github.com/prettier/prettier.git"
|
|
2074
|
-
},
|
|
2075
|
-
unpkg: "./standalone.js",
|
|
2076
|
-
version: "2.8.8"
|
|
2041
|
+
]
|
|
2077
2042
|
};
|
|
2078
2043
|
}
|
|
2079
2044
|
});
|
|
@@ -229351,6 +229316,15 @@ var serveExtension = async () => {
|
|
|
229351
229316
|
});
|
|
229352
229317
|
return;
|
|
229353
229318
|
}
|
|
229319
|
+
if (request.url === "/__webflow") {
|
|
229320
|
+
response.writeHead(200, {
|
|
229321
|
+
"Content-Length": Buffer.byteLength(prettyJson(manifest.config)),
|
|
229322
|
+
"Content-Type": "application/json",
|
|
229323
|
+
"Access-Control-Allow-Origin": "*",
|
|
229324
|
+
"Access-Control-Allow-Headers": "*"
|
|
229325
|
+
});
|
|
229326
|
+
return response.end(prettyJson(manifest.config));
|
|
229327
|
+
}
|
|
229354
229328
|
(0, import_serve_handler.default)(request, response, {
|
|
229355
229329
|
public: distDir,
|
|
229356
229330
|
cleanUrls: false,
|
|
@@ -229405,17 +229379,16 @@ button:focus {
|
|
|
229405
229379
|
border-color: #1280EE;
|
|
229406
229380
|
}
|
|
229407
229381
|
`;
|
|
229408
|
-
var indexTs = `document.getElementById("lorem").onsubmit = (event) => {
|
|
229382
|
+
var indexTs = `document.getElementById("lorem").onsubmit = async (event) => {
|
|
229409
229383
|
event.preventDefault()
|
|
229410
|
-
webflow.getSelectedElement()
|
|
229411
|
-
|
|
229412
|
-
|
|
229413
|
-
|
|
229414
|
-
|
|
229415
|
-
|
|
229416
|
-
|
|
229417
|
-
|
|
229418
|
-
})
|
|
229384
|
+
const el = await webflow.getSelectedElement();
|
|
229385
|
+
if (el && el.textContent) {
|
|
229386
|
+
el.setTextContent(
|
|
229387
|
+
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do " +
|
|
229388
|
+
"eiusmod tempor incididunt ut labore et dolore magna aliqua."
|
|
229389
|
+
)
|
|
229390
|
+
el.save()
|
|
229391
|
+
}
|
|
229419
229392
|
}
|
|
229420
229393
|
`;
|
|
229421
229394
|
var readme = `
|
|
@@ -229519,6 +229492,7 @@ var bundleExtension = async () => {
|
|
|
229519
229492
|
});
|
|
229520
229493
|
archive.pipe(output);
|
|
229521
229494
|
archive.directory(import_path.default.join(cwd, distDir), false);
|
|
229495
|
+
archive.file(manifest.filepath, { name: manifestFile });
|
|
229522
229496
|
archive.finalize();
|
|
229523
229497
|
});
|
|
229524
229498
|
};
|