Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Destack v3 #103

Merged
merged 119 commits into from
Dec 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
8ea6888
worked on prototype
LiveDuo Nov 4, 2023
8c8844f
worked on components
LiveDuo Nov 4, 2023
7cd33b4
fixed scrolling
LiveDuo Nov 4, 2023
a98446c
fixed height
LiveDuo Nov 4, 2023
a651c51
worked on component drop
LiveDuo Nov 4, 2023
1019496
fixed component id
LiveDuo Nov 4, 2023
448f3f4
added mutation observer
LiveDuo Nov 4, 2023
3f9dd6d
fixed mutation with use effect
LiveDuo Nov 4, 2023
fcbd2ba
fixed notes
LiveDuo Nov 4, 2023
bcf7366
fix load and save page
LiveDuo Nov 4, 2023
e9e10af
fixed preview images
LiveDuo Nov 4, 2023
5913668
worked on categories, fixed canvas width
LiveDuo Nov 4, 2023
526de52
fixed standalone server
LiveDuo Nov 4, 2023
5c3138a
worked on theme selection
LiveDuo Nov 4, 2023
f42c706
worked on theme selection
LiveDuo Nov 4, 2023
6386860
fixed canvas size
LiveDuo Nov 4, 2023
c5eb500
updated template
LiveDuo Nov 4, 2023
15203f3
removed other pages
LiveDuo Nov 5, 2023
ef1c41d
worked on build
LiveDuo Nov 5, 2023
ed8e841
added powered by
LiveDuo Nov 5, 2023
0ad6672
fixed content provider path
LiveDuo Nov 5, 2023
6858b80
worked on tests
LiveDuo Nov 5, 2023
e03f05c
fixed editor
LiveDuo Nov 5, 2023
f6305e7
worked on tests
LiveDuo Nov 5, 2023
227467b
worked on react dev project
LiveDuo Nov 5, 2023
8419a5c
worked on react tests
LiveDuo Nov 5, 2023
ee06a48
replaced cra with webpack in dev react project
LiveDuo Nov 5, 2023
93dde53
update dev react html
LiveDuo Nov 5, 2023
621a8b2
added esbuild
LiveDuo Nov 5, 2023
cadb755
worked on events
LiveDuo Nov 5, 2023
3ad8131
worked on tests
LiveDuo Nov 5, 2023
e74cc25
worked on tests
LiveDuo Nov 5, 2023
fedfbb0
worked on react
LiveDuo Nov 5, 2023
403c115
split editor and providers
LiveDuo Nov 5, 2023
40ad0b0
fixed header
LiveDuo Nov 5, 2023
7472c7d
fixed eslint
LiveDuo Nov 5, 2023
a86e0ab
missed changes
LiveDuo Nov 5, 2023
1d3072b
fixed theme folder
LiveDuo Nov 5, 2023
b3be7c9
worked on preview
LiveDuo Nov 5, 2023
97c299b
fixed component delete in e2e
LiveDuo Nov 5, 2023
0456f33
cleanup powered
LiveDuo Nov 5, 2023
a0f089e
used ts in editor
LiveDuo Nov 5, 2023
450c7bb
fixed types
LiveDuo Nov 5, 2023
daba6cf
fixed types
LiveDuo Nov 5, 2023
c683775
fixed borders
LiveDuo Nov 5, 2023
4891670
worked on image dialog
LiveDuo Nov 5, 2023
2a688ac
add content editable
LiveDuo Nov 5, 2023
1a8ff55
worked on dialogs
LiveDuo Nov 5, 2023
2a5a085
worked on dialogs
LiveDuo Nov 5, 2023
cb5b1a9
added selected element
LiveDuo Nov 5, 2023
d518922
worked on image dialog
LiveDuo Nov 6, 2023
532cab1
worked on dialogs
LiveDuo Nov 6, 2023
a124c27
worked on dialogs
LiveDuo Nov 6, 2023
13f07c3
fixed type
LiveDuo Nov 6, 2023
79435ff
worked on dialogs
LiveDuo Nov 6, 2023
3fc1e3a
worked on dialogs
LiveDuo Nov 6, 2023
7cb34c6
worked on link dialog
LiveDuo Nov 6, 2023
2e85d35
worked on image dialog
LiveDuo Nov 6, 2023
90b7140
worked on image dialog
LiveDuo Nov 6, 2023
ad1fed6
worked on upload test
LiveDuo Nov 6, 2023
fe43d0d
worked on upload test
LiveDuo Nov 6, 2023
d3395ec
worked on upload test
LiveDuo Nov 6, 2023
fae8f0d
fixed react test
LiveDuo Nov 6, 2023
a323684
worked on tests
LiveDuo Nov 7, 2023
2604ae4
fixed react dev project build
LiveDuo Nov 7, 2023
b616c04
update react dev template
LiveDuo Nov 7, 2023
06ce1e0
worked on react build
LiveDuo Nov 7, 2023
0bc560d
worked on react build
LiveDuo Nov 7, 2023
9cf16f1
removed comment
LiveDuo Nov 7, 2023
215e90b
enabled react build test
LiveDuo Nov 7, 2023
d923363
try to fix build tests
LiveDuo Nov 7, 2023
307a917
cleanup react project
LiveDuo Nov 7, 2023
e25144f
minor fix
LiveDuo Nov 7, 2023
d4c44ad
updated github actions
LiveDuo Nov 7, 2023
e252d5f
minor fix
LiveDuo Nov 7, 2023
a89e7d5
updated github actions
LiveDuo Nov 7, 2023
583e15c
fixed react dev
LiveDuo Nov 7, 2023
47930db
minor fix
LiveDuo Nov 7, 2023
8bd0af7
fixed canvas click
LiveDuo Nov 7, 2023
9413c34
fixed canvas click
LiveDuo Nov 7, 2023
cb85cda
worked on button
LiveDuo Nov 7, 2023
908b5ff
minor fix
LiveDuo Nov 7, 2023
3aa38a8
worked on button
LiveDuo Nov 8, 2023
6953fe2
worked on button
LiveDuo Nov 8, 2023
a5a3504
worked on button
LiveDuo Nov 8, 2023
1fe9860
worked on canvas click
LiveDuo Nov 8, 2023
ac69585
added comments
LiveDuo Nov 8, 2023
5f91d22
minor fix
LiveDuo Nov 8, 2023
377ca5f
worked on svg
LiveDuo Nov 8, 2023
5327a5e
cleanup
LiveDuo Nov 8, 2023
82599b7
cleanup
LiveDuo Nov 8, 2023
4edef6a
cleanup
LiveDuo Nov 8, 2023
0cba67e
cleanup
LiveDuo Nov 8, 2023
a7cfd2d
cleanup
LiveDuo Nov 8, 2023
6aac940
added tailwind classes
LiveDuo Nov 8, 2023
145e13a
rotate animation
LiveDuo Nov 8, 2023
6e675a7
minor fixes
LiveDuo Nov 8, 2023
957db08
cleanup
LiveDuo Nov 8, 2023
e8adfb2
restore pointer-events-none
LiveDuo Nov 8, 2023
0b0b27f
worked on popover
LiveDuo Nov 8, 2023
720517a
prevent outline
LiveDuo Nov 8, 2023
31975b1
remove console
LiveDuo Nov 8, 2023
17ad541
worked on popover
LiveDuo Nov 8, 2023
bad3a0a
worked on click popover
LiveDuo Nov 8, 2023
48ceb9b
fixed click popover
LiveDuo Nov 8, 2023
6fe0b44
minor css fix
LiveDuo Dec 15, 2023
53e4f2f
fixed vanilla types
LiveDuo Dec 15, 2023
f07b863
moved css url
LiveDuo Dec 15, 2023
cf336d6
added grapesjs page
LiveDuo Dec 15, 2023
01b60d8
fixed craft and grapes
LiveDuo Dec 16, 2023
1128499
added grapes example page
LiveDuo Dec 16, 2023
0c1c04c
switched to esm
LiveDuo Dec 16, 2023
dc3bd24
fixed rollup config
LiveDuo Dec 16, 2023
0132422
fixed grapes page
LiveDuo Dec 16, 2023
21cafad
fixed craft
LiveDuo Dec 16, 2023
b3a8518
added craft page
LiveDuo Dec 16, 2023
be4c509
fixed props
LiveDuo Dec 16, 2023
608cd68
fixed craft
LiveDuo Dec 16, 2023
9954e74
fixed grapes
LiveDuo Dec 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,7 @@ module.exports = {
node: true,
es6: true,
},
ignorePatterns: [
'node_modules/*',
'.next/*',
'.out/*',
'!.prettierrc.js',
'public/*',
'dev/nextjs-project/data/default.json',
], // We don't want to lint generated files nor node_modules, but we want to lint .prettierrc.js (ignored by default by eslint)
ignorePatterns: ['node_modules/*', '.next/*', '.out/*', '!.prettierrc.js', 'public/*', '**.html'], // We don't want to lint generated files nor node_modules, but we want to lint .prettierrc.js (ignored by default by eslint)
extends: ['eslint:recommended'],
overrides: [
{
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@ jobs:
- uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
- run: DEBUG=pw:webserver CI=true npm run test:e2e
- uses: actions/upload-artifact@v3
if: always()
with:
path: test-results
2 changes: 1 addition & 1 deletion .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
semi: false,
printWidth: 100,
printWidth: 120,
trailingComma: 'all',
singleQuote: true,
tabWidth: 2,
Expand Down
12 changes: 0 additions & 12 deletions dev/nextjs-project/data/another.json

This file was deleted.

333 changes: 333 additions & 0 deletions dev/nextjs-project/data/craft.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,333 @@
{
"ROOT": {
"type": { "resolvedName": "Container" },
"isCanvas": true,
"props": { "width": "100%", "height": "800px" },
"displayName": "Container",
"custom": { "displayName": "App" },
"hidden": false,
"nodes": ["3dgeY13Kt4"],
"linkedNodes": {}
},
"3dgeY13Kt4": {
"type": { "resolvedName": "Component" },
"isCanvas": false,
"props": {
"root": {
"childNodes": [
{
"childNodes": [],
"attrs": {},
"classNames": "",
"nodeType": 3,
"innerText": "\n",
"constructor": "TextNode"
},
{
"childNodes": [
{
"childNodes": [],
"attrs": {},
"classNames": "",
"nodeType": 3,
"innerText": "\n ",
"constructor": "TextNode"
},
{
"childNodes": [
{
"childNodes": [],
"attrs": {},
"classNames": "",
"nodeType": 3,
"innerText": "\n ",
"constructor": "TextNode"
},
{
"childNodes": [
{
"childNodes": [],
"attrs": {},
"classNames": "",
"nodeType": 3,
"innerText": "\n ",
"constructor": "TextNode"
},
{
"childNodes": [
{
"childNodes": [],
"attrs": {},
"classNames": "",
"nodeType": 3,
"innerText": "\n Understand User Flow.\n ",
"constructor": "TextNode"
},
{
"childNodes": [],
"attrs": {},
"tagName": "BR",
"classNames": "",
"nodeType": 1,
"innerText": "",
"constructor": "HTMLElement"
},
{
"childNodes": [],
"attrs": {},
"classNames": "",
"nodeType": 3,
"innerText": "\n Increase Conversion.\n ",
"constructor": "TextNode"
}
],
"attrs": {},
"tagName": "H1",
"classNames": "bg-gradient-to-r from-green-300 via-blue-500 to-purple-600 bg-clip-text text-3xl font-extrabold text-transparent sm:text-5xl caret-white",
"nodeType": 1,
"innerText": "\n Understand User Flow.\n \n Increase Conversion.\n ",
"constructor": "HTMLElement"
},
{
"childNodes": [],
"attrs": {},
"classNames": "",
"nodeType": 3,
"innerText": "\n\n ",
"constructor": "TextNode"
},
{
"childNodes": [
{
"childNodes": [],
"attrs": {},
"classNames": "",
"nodeType": 3,
"innerText": "\n Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nesciunt illo\n tenetur fuga ducimus numquam ea!\n ",
"constructor": "TextNode"
}
],
"attrs": {},
"tagName": "P",
"classNames": "mx-auto mt-4 max-w-xl sm:text-xl sm:leading-relaxed",
"nodeType": 1,
"innerText": "\n Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nesciunt illo\n tenetur fuga ducimus numquam ea!\n ",
"constructor": "HTMLElement"
},
{
"childNodes": [],
"attrs": {},
"classNames": "",
"nodeType": 3,
"innerText": "\n\n ",
"constructor": "TextNode"
},
{
"childNodes": [
{
"childNodes": [],
"attrs": {},
"classNames": "",
"nodeType": 3,
"innerText": "\n ",
"constructor": "TextNode"
},
{
"childNodes": [
{
"childNodes": [],
"attrs": {},
"classNames": "",
"nodeType": 3,
"innerText": "\n Get Started\n ",
"constructor": "TextNode"
}
],
"attrs": { "href": "/get-started" },
"tagName": "A",
"classNames": "block w-full rounded border border-blue-600 bg-blue-600 px-12 py-3 text-sm font-medium text-white hover:bg-transparent hover:text-white focus:outline-none focus:ring active:text-opacity-75 sm:w-auto cursor-pointer",
"nodeType": 1,
"innerText": "\n Get Started\n ",
"constructor": "HTMLElement"
},
{
"childNodes": [],
"attrs": {},
"classNames": "",
"nodeType": 3,
"innerText": "\n\n ",
"constructor": "TextNode"
},
{
"childNodes": [
{
"childNodes": [],
"attrs": {},
"classNames": "",
"nodeType": 3,
"innerText": "\n Learn More\n ",
"constructor": "TextNode"
}
],
"attrs": { "href": "/about" },
"tagName": "A",
"classNames": "block w-full rounded border border-blue-600 px-12 py-3 text-sm font-medium text-white hover:bg-blue-600 focus:outline-none focus:ring active:bg-blue-500 sm:w-auto cursor-pointer",
"nodeType": 1,
"innerText": "\n Learn More\n ",
"constructor": "HTMLElement"
},
{
"childNodes": [],
"attrs": {},
"classNames": "",
"nodeType": 3,
"innerText": "\n ",
"constructor": "TextNode"
}
],
"attrs": {},
"tagName": "DIV",
"classNames": "mt-8 flex flex-wrap justify-center gap-4",
"nodeType": 1,
"innerText": "\n \n Get Started\n \n\n \n Learn More\n \n ",
"constructor": "HTMLElement"
},
{
"childNodes": [],
"attrs": {},
"classNames": "",
"nodeType": 3,
"innerText": "\n ",
"constructor": "TextNode"
}
],
"attrs": {},
"tagName": "DIV",
"classNames": "mx-auto max-w-3xl text-center",
"nodeType": 1,
"innerText": "\n \n Understand User Flow.\n \n Increase Conversion.\n \n\n \n Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nesciunt illo\n tenetur fuga ducimus numquam ea!\n \n\n \n \n Get Started\n \n\n \n Learn More\n \n \n ",
"constructor": "HTMLElement"
},
{
"childNodes": [],
"attrs": {},
"classNames": "",
"nodeType": 3,
"innerText": "\n ",
"constructor": "TextNode"
}
],
"attrs": { "style": "caret-color: white" },
"tagName": "DIV",
"classNames": "mx-auto max-w-screen-xl px-4 py-32 lg:flex lg:h-screen lg:items-center",
"nodeType": 1,
"innerText": "\n \n \n Understand User Flow.\n \n Increase Conversion.\n \n\n \n Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nesciunt illo\n tenetur fuga ducimus numquam ea!\n \n\n \n \n Get Started\n \n\n \n Learn More\n \n \n \n ",
"constructor": "HTMLElement"
},
{
"childNodes": [],
"attrs": {},
"classNames": "",
"nodeType": 3,
"innerText": "\n",
"constructor": "TextNode"
}
],
"attrs": {},
"tagName": "SECTION",
"classNames": "bg-gray-900 text-white",
"nodeType": 1,
"innerText": "\n \n \n \n Understand User Flow.\n \n Increase Conversion.\n \n\n \n Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nesciunt illo\n tenetur fuga ducimus numquam ea!\n \n\n \n \n Get Started\n \n\n \n Learn More\n \n \n \n \n",
"constructor": "HTMLElement"
},
{
"childNodes": [],
"attrs": {},
"classNames": "",
"nodeType": 3,
"innerText": "\n",
"constructor": "TextNode"
}
],
"attrs": {},
"tagName": null,
"classNames": "",
"nodeType": 1,
"innerText": "\n\n \n \n \n Understand User Flow.\n \n Increase Conversion.\n \n\n \n Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nesciunt illo\n tenetur fuga ducimus numquam ea!\n \n\n \n \n Get Started\n \n\n \n Learn More\n \n \n \n \n\n",
"constructor": "HTMLElement"
}
},
"displayName": "Component",
"custom": {},
"parent": "ROOT",
"hidden": false,
"nodes": [],
"linkedNodes": { "011151": "JPUyrf73EB", "011153": "hzPqN4IGpt" }
},
"JPUyrf73EB": {
"type": { "resolvedName": "Link" },
"isCanvas": false,
"props": {
"r": {
"childNodes": [
{
"childNodes": [],
"attrs": {},
"classNames": "",
"nodeType": 3,
"innerText": "\n Get Started\n ",
"constructor": "TextNode"
}
],
"attrs": { "href": "/get-started" },
"tagName": "A",
"classNames": "block w-full rounded border border-blue-600 bg-blue-600 px-12 py-3 text-sm font-medium text-white hover:bg-transparent hover:text-white focus:outline-none focus:ring active:text-opacity-75 sm:w-auto cursor-pointer",
"nodeType": 1,
"innerText": "\n Get Started\n ",
"constructor": "HTMLElement"
},
"d": [0, 1, 1, 1, 5],
"i": 1,
"propId": "011151"
},
"displayName": "Link",
"custom": {},
"parent": "3dgeY13Kt4",
"hidden": false,
"nodes": [],
"linkedNodes": {}
},
"hzPqN4IGpt": {
"type": { "resolvedName": "Link" },
"isCanvas": false,
"props": {
"r": {
"childNodes": [
{
"childNodes": [],
"attrs": {},
"classNames": "",
"nodeType": 3,
"innerText": "\n Learn More\n ",
"constructor": "TextNode"
}
],
"attrs": { "href": "/about" },
"tagName": "A",
"classNames": "block w-full rounded border border-blue-600 px-12 py-3 text-sm font-medium text-white hover:bg-blue-600 focus:outline-none focus:ring active:bg-blue-500 sm:w-auto cursor-pointer",
"nodeType": 1,
"innerText": "\n Learn More\n ",
"constructor": "HTMLElement"
},
"d": [0, 1, 1, 1, 5],
"i": 3,
"propId": "011153"
},
"displayName": "Link",
"custom": {},
"parent": "3dgeY13Kt4",
"hidden": false,
"nodes": [],
"linkedNodes": {}
}
}
Loading
Loading