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

V3 #85

Open
wants to merge 115 commits into
base: master
Choose a base branch
from
Open

V3 #85

wants to merge 115 commits into from

Conversation

felixgirault
Copy link
Contributor

No description provided.

@felixgirault felixgirault self-assigned this May 11, 2022
@felixgirault felixgirault marked this pull request as ready for review December 21, 2022 16:48
This was referenced Apr 11, 2023
@felixgirault felixgirault force-pushed the v3 branch 2 times, most recently from e8025d6 to 8ceb717 Compare June 13, 2023 08:18
@dtrucs
Copy link

dtrucs commented Oct 2, 2023

Hello,
There are a lot of promising changes here, can we help move this new version forward?

@felixgirault
Copy link
Contributor Author

Hi,
Yes there is, it's a shame I can't do much right now...
I talked about releasing an alpha v3 version here, would you want to try it if I did?

@felixgirault felixgirault force-pushed the v3 branch 4 times, most recently from 48b3072 to 0b4c213 Compare September 12, 2024 11:55
@felixgirault felixgirault force-pushed the v3 branch 3 times, most recently from b5d6f9a to dc28fdd Compare September 13, 2024 16:44
* preact
* react-modal
Another option would have been to make every class name fully
configurable (the whole class name instead of just the prefix), but the
cost of it would outweigh the gain.
Also, the `stylePrefix` option wasn't even documented, so we're betting
on the fact that very few people are actually using it, if any.
This change is to better align with CNIL's recommendations.
For now, the change has been made kind of brutally, so some things don't
make sense (i.e. purposes can have purposes...).
Further changes will fix the remaining problems.
This seems to be the most broadly used naming.
For now, they are just set to empty strings, but this allows to see
what's missing at a glance.
The previous mechanics were overly complicated for such a small app, and
pretty unlegible.
* using a page object to abstract things away
* mocking an HTML page to load custom configs
The default ones were merged over the ones from the config.
The default banner styles don't depend on the screen width anymore.
This avoids a potential mismatch between the media queries and the
public configuration variables, causing the banner to overflow in some
cases.
The distinction between regular and "forced" banner is also removed, as
the backdrop on forced banners is distictive enough.
This shaves a bit of weight on the final bundle.
Compat was used so users could import Orejime inside a React app, but
we're not supporting this usage anymore.
* Using type "orejime" instead of "opt-in" to make things clearer
* Setting the type attribute to "text/javascript" by default, removing
the need to set it explicitly to begin with
@felixgirault felixgirault force-pushed the v3 branch 4 times, most recently from fb856e6 to a7496e8 Compare February 13, 2025 17:02
This commit is obviously too big but also hard to split.
The main goal is to build standalone modules instead of using a
complicated async loading workflow, as to ease development,
optimization, and usage.
This also include a huge rewrite of the docs to accommodate for the
change and make them more readable.
Incidentally removed an unused method of the manager
Using the default settings shaves off more that 2kb from gzipped
bundles.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants