6157 Commits
Author SHA1 Message Date
Bogdan Chadkin d3da479511 fix: fallback video to provided url for self hosted websites (#5357) 0.227.0 2025-08-04 16:07:05 +02:00
Bogdan Chadkin bc599ad37b fix: access available features from product plans (#5358)
This will let us to configure available features for each plan.
2025-08-04 14:11:57 +02:00
Bogdan Chadkin a7a019f2f6 fix: remove vercel route configs (#5355)
These official documented route configs started to wipe whole builder.
We should migrate away from vercel ASAP.
2025-08-04 00:40:53 +02:00
Bogdan Chadkin 0960101fa3 fix: accept any string in <iframe> name attribute (#5349)
Fixes
https://discord.com/channels/955905230107738152/1400906922235920445/1400906922235920445

The spec does not clearly indicate possible values and in case of iframe
and object name attribute accepts any string.
0.226.0
2025-08-03 19:56:05 +02:00
Bogdan Chadkin c2bf7d4af2 feat: support self-hosting animations (#5341)
While animations source code is still private
here enabled publishing minified version of it
so users who self-hosting websites could deploy.
them with working animations.
2025-08-03 19:51:35 +02:00
Oleg Isonen dda59fdd36 chore: Add the note for animation engine license (#5351)
Add proprietary license for animations engine

## Description

1. What is this PR about (link the issue and add a short description)

## Steps for reproduction

1. click button
2. expect xyz

## Code Review

- [ ] hi @kof, I need you to do
  - conceptual review (architecture, feature-correctness)
  - detailed review (read every line)
  - test it on preview

## Before requesting a review

- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
0000)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env` file
2025-08-03 19:25:05 +02:00
Oleg Isonen 8e72a3c069 chore: Update LICENSE for sdk-components-animation (#5350)
For simplicity we are changing the license in this package to be the
same as the ./private-src

## Description

1. What is this PR about (link the issue and add a short description)

## Steps for reproduction

1. click button
2. expect xyz

## Code Review

- [ ] hi @kof, I need you to do
  - conceptual review (architecture, feature-correctness)
  - detailed review (read every line)
  - test it on preview

## Before requesting a review

- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
0000)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env` file
2025-08-03 19:24:45 +02:00
Bogdan Chadkin 0f13788fdb fix: support older browsers in docker template (#5346)
URL.canParse is very new method and need to be polyfilled. Docker is the
only place it is used.
2025-08-03 14:39:16 +02:00
Bogdan Chadkin fc033006a4 fix: relax redirects validation (#5348)
Fixes https://github.com/webstudio-is/webstudio/issues/5337

1. checking specific characters will always be error prone
2. checking matching paths is no longer relevant with `/*` which matches
them all
3. added check to validate url or path with `new URL()`
2025-08-03 14:11:22 +02:00
Bogdan Chadkin ee374471ef chore: drop support for legacy shared url (#5347)
It's 1.5 years since we switched to new subdomain based shared url
format.
2025-08-03 12:35:56 +02:00
Bogdan Chadkin aff636940b chore: drop legacy AI prompts and logic (#5345)
All of this is very outdated and does not make a lot of sense to have in
our code base.
2025-08-03 10:21:10 +02:00
Bogdan Chadkin 49bb819ab1 fix: support videos in self-hosted websites (#5340)
Ref
https://discord.com/channels/955905230107738152/955905231227609158/1400561168648638576

User tried to self hosted a website with video component which got
converted to /cgi/video which does not exist in self hosted targets.

Here moved the logic into own custom loader and fall back to original
url.
2025-08-03 02:12:42 +02:00
Bogdan Chadkin 6bc16940e0 chore: drop AI from UI (#5344)
Our first AI experiment is barely used. And we don't want our users to
confuse it with upcoming Inception. The next integrated with builder
solution will be based on Inception.
2025-08-03 02:04:26 +02:00
Bogdan Chadkin d7e757b59b fix: avoid using global color for head slot and xml (#5342)
Fixes
https://discord.com/channels/955905230107738152/1398319996832059574/1398319996832059574

Here explicitly specified black color for text in xml and head slot.
This prevents white color on root to override text.
2025-08-02 22:44:10 +02:00
Bogdan Chadkin 9409657219 fix: let user type "auto" into duration input (#5343)
Ref
https://discord.com/channels/955905230107738152/1401100781989531718/1401100781989531718


https://github.com/user-attachments/assets/7d6c0a6e-5e92-4d90-84e2-460824675d99
2025-08-02 22:43:56 +02:00
Bogdan Chadkin ac6b649397 fix: allow <p> inside of <hgroup> (#5338)
Ref https://github.com/webstudio-is/webstudio-community/discussions/241

Never supported heading outline algorithm was never supported and the
latest update to html spec allowed paragraphs as part of this removal
for lower level subtitles or descriptions.

Though indices tables were not updated. I [sent
PR](https://github.com/whatwg/html/pull/11524)
2025-08-02 16:14:25 +02:00
Bogdan Chadkin 94b1fb9951 fix: consider Text and Link components as rich text (#5334)
This prevents editing Text and Link components parent and instead
enforces editing these components as rich text containers.
2025-07-23 20:50:24 +02:00
Bogdan Chadkin 4abb7cf3e2 feat: support svg properties in style panel (#5332)
Ref https://github.com/webstudio-is/webstudio/issues/5258

Newer mdn-data contains all stylable svg properties (they finally got
through some documentation and implementation process).

Tweaked all experimental stuff and ditched obsolete properties.

<img width="286" height="538" alt="image"
src="https://github.com/user-attachments/assets/1e579be0-0a12-4013-ab04-09d5e008aeed"
/>
0.225.0
2025-07-18 18:04:26 +02:00
Bogdan Chadkin 1eb11fdb34 feat: autocomplete SVG attributes (#5331)
Ref https://github.com/webstudio-is/webstudio/issues/5258

Now user will see all available attributes for any SVG element.

<img width="283" height="507" alt="image"
src="https://github.com/user-attachments/assets/750c3027-aada-4e55-b429-c5adb5449158"
/>
2025-07-18 15:47:35 +02:00
Bogdan Chadkin 60ab7c7b68 feat: support svg elements (#5330)
Ref https://github.com/webstudio-is/webstudio/issues/5258

Now users can create svg elements and paste svg code or html with svg.



https://github.com/user-attachments/assets/77738ede-e4ee-4fd8-b128-5679170b30b4
2025-07-18 02:38:33 +02:00
Oleg Isonen 82ecb10d34 feat: Manual save command (#5327)
Closes https://github.com/webstudio-is/webstudio/issues/5325

## Description

As a user I am sometimes afraid my changes weren't saved. So this is an
extra layer of confidence to know that changes are actually saved.




https://github.com/user-attachments/assets/9135e225-2c12-450b-b6d0-680d9ecd7454

<img width="207" height="175" alt="image"
src="https://github.com/user-attachments/assets/49ecdbad-e191-4088-8046-99b2b55070f7"
/>

## Steps for reproduction

1. click button
2. expect xyz

## Code Review

- [ ] hi @kof, I need you to do
  - conceptual review (architecture, feature-correctness)
  - detailed review (read every line)
  - test it on preview

## Before requesting a review

- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
0000)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env` file
2025-07-17 17:24:27 +02:00
Bogdan Chadkin d5d1fed5a8 fix: avoid body when insert section from marketplace (#5329)
We remove body from pages when insert section
but I forgot to add a check for body element which replaced Body
component for new pages.
2025-07-17 14:20:02 +02:00
Bogdan Chadkin f46095ea2a fix: show only one "delete instance" command (#5324)
<img width="501" height="213" alt="image"
src="https://github.com/user-attachments/assets/8a5223e6-dbb7-42c6-89fa-1c8dd3945b52"
/>
2025-07-17 12:01:39 +02:00
Bogdan Chadkin 4a9fe16fd6 refactor: fix inception paste typo (#5323) 2025-07-12 23:57:02 +02:00
Bogdan Chadkin 111564c88f feat: automatically paste tailwind when html has inception mark (#5322)
We want to reduce friction in pasting from inception and will
automatically process tailwind classes and generate styles when paste
into builder without using command panel.
2025-07-12 18:43:05 +02:00
Bogdan ChadkinandOleg Isonen 5632a40940 feat: allow restore from published backup (#5320)
Ref https://github.com/webstudio-is/webstudio/issues/5276

---------

Co-authored-by: Oleg Isonen <oleg008@gmail.com>
2025-07-11 19:05:31 +02:00
Oleg Isonen a57783eb69 chore: Delete support hub (#5317)
## Description

Product was discontinued

## Steps for reproduction

1. click button
2. expect xyz

## Code Review

- [ ] hi @kof, I need you to do
  - conceptual review (architecture, feature-correctness)
  - detailed review (read every line)
  - test it on preview

## Before requesting a review

- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
0000)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env` file
2025-07-07 11:59:12 +02:00
Bogdan Chadkin 9a1486b306 fix: avoid error when domain does not exist in iana (#5315)
We use iana registry to find if cloudflare nameserver is used for domain
and we can avoid using www.
2025-07-06 14:03:10 +03:00
Bogdan Chadkin 4c2e7cd955 fix: improve www detection (#5314)
We detect cloudflare to preserve root domain and add www for everything
else. Now we check official dns registry for top level domains and check
its data for required nameservers.
2025-07-02 17:00:38 +03:00
Bogdan Chadkin 03c7366b04 feat: create projects with 404 page on all plans (#5309)
Ref https://github.com/webstudio-is/webstudio/issues/2782

Here I did a few things

- allow `/*` path on free plan
- allow changing status code on free plan
- create "Not Found" page for all new projects



https://github.com/user-attachments/assets/1f36882f-3c09-4814-a1ee-d6bdfd468467
0.223.0
2025-07-01 18:56:15 +03:00
Bogdan Chadkin 19a98fa1ae fix: order routes before navigating in preview (#5311)
Ref https://github.com/webstudio-is/webstudio/issues/5223

Navigating within preview didn't work well because we relied on order of
creation and more inclusive routes like `/*` could match before
`/my-page`.

Here fixed it with routes sorting. The algorithm is very simplified but
covers our usecases within builder.
2025-07-01 18:45:25 +03:00
Bogdan Chadkin 395ebc44f2 fix: convert space-* on breakpoints when paste tailwind (#5308)
Ref https://github.com/webstudio-is/webstudio/issues/2651

Didn't consider spaces on breakpoints when converted space-* to gap for
example `md:space-x-6` -> `md:gap-x-6`
2025-06-30 13:33:18 +03:00
Bogdan Chadkin 218f161f51 fix: detect registrar by nameservers (#5305)
We detect cname flattening by registrar though when nameservers are
rerouted legal registar stays the same.

So instead we check if nameservers are cloudflare and can use cname
flattening.
2025-06-28 23:01:30 +03:00
Bogdan Chadkin 232847ced1 fix: add unset values to adapt tailwind breakpoints (#5303)
Ref https://github.com/webstudio-is/webstudio/issues/2651

When convert tailwind breakpoints to webstudio breakpoints our algorithm
can find holes and will stop conversion. Though this will create
mobile-first breakpoints which users do not expect.

Here I added workaround to specify "unset" value on property when
tailwind breakpoints has holes. Here's examples

**sm:opacity-20** - here the hole is in the beginning, opacity: 0.2 can
be defined on base breakpoint but we need to fill with something
`max-width: 479`

**max-sm:opacity-10 md:opacity-20** - here the holr is in the middle, we
have `max-width: 479` and base breakpoint but no `max-width: 767`
2025-06-28 17:55:24 +03:00
Bogdan Chadkin 4f2d21ee06 fix: strip invalid attributes when paste html (#5304)
We never validated invalid attributes which cannot be rendered as jsx
and will break the build. Here just strip them away.
2025-06-28 17:15:58 +03:00
Oleg Isonen 013a2b53a9 chore: Better button colors, better upgrade request (#5302)
<img width="335" alt="image"
src="https://github.com/user-attachments/assets/94d621c1-527a-4608-8529-53971af26b8c"
/>
<img width="321" alt="image"
src="https://github.com/user-attachments/assets/fd232773-dad5-4fde-8748-1d13645a4adf"
/>


## Description

1. What is this PR about (link the issue and add a short description)

## Steps for reproduction

1. click button
2. expect xyz

## Code Review

- [ ] hi @kof, I need you to do
  - conceptual review (architecture, feature-correctness)
  - detailed review (read every line)
  - test it on preview

## Before requesting a review

- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
0000)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env` file
2025-06-28 00:22:01 +02:00
Luke AKA Shoot Your Bricks ced54582cf fix: add .editorconfig to fix error due to line endings on Windows (#5292)
Added editor config file to ensure that line endings are the same
regardless of the OS (This was causing problems for Windows + Docker)

## Steps for reproduction (Windows)

1. Clone webstudion builder and open with vs code, docker, etc.
2. every single file will have a git status of "m" (modified) due to
changed line endings

## Code Review

 hi @kof, I need you to take a look and make sure this is an ideal fix

It seems to work great on my end.
2025-06-27 17:33:55 +03:00
Bogdan Chadkin 310ab3aa1d fix: support max-* breakpoints in tailwind (#5299)
Ref https://github.com/webstudio-is/webstudio/issues/2651

Tailwind has max-sm, max-lg etc endpoints which need to adapt to ours as
well
2025-06-27 16:32:41 +03:00
Bogdan Chadkin fe110a0fb1 build: drop fzf (#5298)
Seems like no longer used and better remove.
2025-06-27 13:20:37 +03:00
Bogdan Chadkin d5efe60822 Remove unused import 0.222.0 2025-06-27 10:47:37 +03:00
Bogdan Chadkin 43f958b96f format code 2025-06-27 10:40:59 +03:00
Michael b30e0e33a3 fix: allow case sensitive path in redirects ( old path field ) #5079 (#5084)
fixes #5079 

## Description
this fix was to allow case sensitive path in redirects (specifically the
"old-path" field), for users migrating from legacy system this could be
important.

![Screen Shot 2025-04-03 at 2 00 54
PM](https://github.com/user-attachments/assets/011d9026-4a54-436c-b26c-8b3300b52c5b)



1. What is this PR about (link the issue and add a short description)

## Steps for reproduction

1. click on project setting
2. go to redirects tab
3. input a path with uppercase letter(s) in the old-path field and the
page you want to redirect to
4. This should work without any error

## Code Review

- [ ] hi @kof, I need you to do
  - conceptual review (architecture, feature-correctness)
  - detailed review (read every line)
  - test it on preview

## Before requesting a review

- [x] made a self-review
- [x] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [x] tested locally and on preview environment (preview dev login:
0000)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env` file
2025-06-27 10:38:07 +03:00
Bogdan Chadkin 1bbfe42249 feat: paste HTML with tailwind classes (#5296)
Ref https://github.com/webstudio-is/webstudio/issues/2651

Added command to let users paste tailwind fragments.

- all classes are converted to local styles
- breakpoints are adapted to desktop-first if possible
- images are automatically uploaded
2025-06-27 00:21:35 +03:00
Bogdan Chadkin 701793d8b8 experimental: use --tw- prefix for tailwind css variables (#5294)
Ref https://github.com/webstudio-is/webstudio/issues/2651
2025-06-26 16:31:00 +03:00
Bogdan Chadkin 3cc2f3be1e feat: improve automatic domain configuration (#5289)
- added official entrijs with types and mimimal runtime (no
dependencies)
- automatically add `www.` prefix to non-cloudflare root domains
- enabled automatic www redirect to setup with entri (though does not
work seamlesly, namecheap requires ssl certificate, godaddy requires
manual setup by user)
- toast error when click on "Configure automatically" on free plan
2025-06-26 15:22:31 +03:00
Bogdan Chadkin 7c05003cc5 fix: properly support details and summary elements (#5285)
This fixes headings inside of summary and interactive elements inside of
details content.
2025-06-25 16:53:27 +03:00
Bogdan Chadkin 83159aaaa2 feat: open page settings when click on publish blockers (#5290)
Here improved publish dialog to open page settings when one of blockers
is dynamic path or redirect.



https://github.com/user-attachments/assets/816c8bb9-a357-4c86-ae8b-f2bf2a1b753e
2025-06-25 15:33:08 +03:00
Oleg Isonen e11137a411 fix: Check width and height of the badge is not 0 (#5291)
## Description

1. What is this PR about (link the issue and add a short description)

## Steps for reproduction

1. click button
2. expect xyz

## Code Review

- [ ] hi @kof, I need you to do
  - conceptual review (architecture, feature-correctness)
  - detailed review (read every line)
  - test it on preview

## Before requesting a review

- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
0000)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env` file
2025-06-24 11:50:05 +02:00
Bogdan Chadkin 7981060826 fix: shorten fixture image to fix cloning on windows (#5284)
Fixes https://github.com/webstudio-is/webstudio/issues/5267
2025-06-20 22:56:54 +03:00
Oleg Isonen 78d3145c17 fix: Improve clarity of the upgrade banner (#5282)
## Description
<img width="348" alt="image"
src="https://github.com/user-attachments/assets/85ff2cb9-9cdf-4283-b932-c03423fcc02e"
/>

1. What is this PR about (link the issue and add a short description)

## Steps for reproduction

1. click button
2. expect xyz

## Code Review

- [ ] hi @kof, I need you to do
  - conceptual review (architecture, feature-correctness)
  - detailed review (read every line)
  - test it on preview

## Before requesting a review

- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
0000)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env` file
2025-06-17 17:52:03 +02:00