@webflow/webflow-cli 1.6.12 → 1.6.13
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 +218 -218
- package/dist/scaffolds/default/README.md +1 -1
- package/dist/scaffolds/default/package.json +1 -2
- package/dist/scaffolds/react/README.md +1 -1
- package/dist/scaffolds/react/package.json +1 -1
- package/dist/scaffolds/react/src/index.tsx +5 -2
- package/dist/scaffolds/typescript-alt/README.md +1 -1
- package/dist/scaffolds/typescript-alt/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Designer Extension Starter: TypeScript
|
|
2
2
|
|
|
3
|
-
This is an example Webflow Designer extension written in TypeScript that inserts a text emoji into an element selected within the Designer. Check out our [documentation](https://
|
|
3
|
+
This is an example Webflow Designer extension written in TypeScript that inserts a text emoji into an element selected within the Designer. Check out our [documentation](https://developers.webflow.com/designer/reference/introduction) for in-depth information about Designer Extension features and API.
|
|
4
4
|
|
|
5
5
|
## Developing
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"lint": "eslint . --ext .ts"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@webflow/designer-extension-typings": "^
|
|
12
|
+
"@webflow/designer-extension-typings": "^2.0.2",
|
|
13
13
|
"@typescript-eslint/eslint-plugin": "^7.7.0",
|
|
14
14
|
"@typescript-eslint/parser": "^7.7.0",
|
|
15
15
|
"eslint": "^8.5.7",
|
|
@@ -18,4 +18,3 @@
|
|
|
18
18
|
"eslint-plugin-promise": "^6.1.1"
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Designer Extension Starter: React
|
|
2
2
|
|
|
3
|
-
Explore the [documentation](https://
|
|
3
|
+
Explore the [documentation](https://developers.webflow.com/designer/reference/introduction) for detailed information on Designer Extension features and API.
|
|
4
4
|
|
|
5
5
|
## Local Development
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"lint": "eslint . --ext .ts,.tsx"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@webflow/designer-extension-typings": "^
|
|
12
|
+
"@webflow/designer-extension-typings": "^2.0.2",
|
|
13
13
|
"concurrently": "^8.2.2",
|
|
14
14
|
"eslint": "^8.5.7",
|
|
15
15
|
"@typescript-eslint/eslint-plugin": "^7.7.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import ReactDOM from "react-dom";
|
|
2
|
+
import ReactDOM from "react-dom/client";
|
|
3
3
|
|
|
4
4
|
const App: React.FC = () => {
|
|
5
5
|
const addText = async () => {
|
|
@@ -23,4 +23,7 @@ const App: React.FC = () => {
|
|
|
23
23
|
);
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
const root = ReactDOM.createRoot(
|
|
27
|
+
document.getElementById("root") as HTMLElement
|
|
28
|
+
);
|
|
29
|
+
root.render(<App />);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Designer Extension Starter: TypeScript (Alt)
|
|
2
2
|
|
|
3
|
-
Explore the [documentation](https://
|
|
3
|
+
Explore the [documentation](https://developers.webflow.com/designer/reference/introduction) for in-depth information about Designer Extension features and API.
|
|
4
4
|
|
|
5
5
|
## Development
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"lint": "eslint . --ext .ts"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@webflow/designer-extension-typings": "^
|
|
12
|
+
"@webflow/designer-extension-typings": "^2.0.2",
|
|
13
13
|
"@typescript-eslint/eslint-plugin": "^7.7.0",
|
|
14
14
|
"@typescript-eslint/parser": "^7.7.0",
|
|
15
15
|
"eslint": "^8.5.7",
|