Commit 84fa8dc
authored
feat: granular plugin setting (#3319)
* feat: allow enabling, disabling and hiding of blocks
* feat: add enable settings to toolbar features
* feat: add settings store for tracking changes
* feat: settings content organizaiont
* feat: style for sidenav
* feat: sidenav, organization, disabling blocks, and save changes
* fix: change blockstate from 0-2 to 1-3 to avoid nfalsy 0
* feat: add min height to sidenav
* feat: remove template since we will use react instead
* feat: use react approach for cleaner and more efficient code
* feat: admin notice when settings are saved
* feat: integrate pro-related settings
* fix: conditional lazy loading of pro settings
* feat: integrate missing settings such as icon, pro notice, tooltip
* feat: add stackable global settings
* fix: indentation from merge conflict
* feat: apply global settings by conditional registering
* feat: search functionality integration
* feat: application of search highlight through conditional classes
* feat: search highlight style
* feat: admin toolbar setting
* feat: util function for substituting to disabled blocks
* fix: disabling and hiding block variations
* feat: disable/enable confirmation, disable/enable/hide all blocks
* feat: removeChildIfDisabled
* feat: first batch of core substitution and removal integration
* fix: blockname typo
* Revert "feat: first batch of core substitution and removal integration"
This reverts commit 56551e1.
* feat: piggyback on the filter instead of manual change in variations, finish all integrations
* feat: special integration for blocks with no variation/neet to remove
* feat: integrate card default-2 with social-links
* fix: styles and media queries, spinner on saved
* adjusted styling, removed javascript for fixed position
* fade out the non-highlighted tabs
* additional settings tweaking
* fix: grayed out button when there are unsaved changes
* chore: remove emojis fom headings
* fix: line separator only between settings group
* feat: resturcture with settings group, created a centralized search tree for single check (remaining heading fix)
* feat: migration from from disabled blocks array to block states object
* fix: run the migration script, old disabled block represents hidden
* fix: typo on accessing search tree
* fix: typo on setting name
* feat: integrate v2 settings to new settings
* feat: change block name to title in dialog
* fix: disallow disabling of columns block
* feat: add popup on unsaved changes
* style tweaks
* Fixed issue where blocks do not appear in the editor
* enhanced styling of block toggle
* simplified modal
* updated text and buttons
* tweaked subtitles
* inverted box shadows
* tweaked wording
* fix: restucture block dependencies, storing them on individual block.json
* fix: restructure substitition whitelist to individual blocks
* fix: added additional blocks to substitute
* fix: remove substituteIfDisabledFunction
* fix: change content of save button after saving
* feat: if no settings in current tab, display message
* fix: only show dependent children/parents when needed
* chore: rename block dependecies to stk-required-blocks
* fix: restructure block dependency
* chore: rename to required blocks
* fix: move disabling of block outside the registration
* moved deprecated code to new file in deprecated folder
* added missing file
* fix: if a block cannot be disabled, default to hidden when disabling all
* feat: restructured substitute transform to separate files per block
* fix: import substitution rules and apply
* fix: access substitutionRules directly for blocks that uses TEMPLATE
* fix: ensure there are default blocks if not disabled
* fix: remove removeIfDisabled, make icon required for notification
* feat: allow substitution of core blocks, console error for blocks with no substitution
* fix: add alignment attribute to heading, text substitute
* fix: UI changes
* fix: FontAwesome notice alignment in free version
* feat: warn what disabled blocks are needed in design library
* align the font awesome notice with the field label
* fix: use stk-available-states instead, if cannot be change into a state, retain previous value
* fixed alignment of custom fields and role manager settings
* updated font awesome field styles
* added price and icon label substitution
* disallow disabling of design library block
* substitute divider with separator + allow no transform function
* updated some substitutions
* added fix for blocks undefined when inserting new design library entry
* added more substitutions
* added accordion and cta
* added card substitute
* added substitutions
* added more substitutions
* fix old design library entries will encounter an error when being added if the color string value is undefined
* fix: cascade by repeatedly checking if disabled
* fix: refactor, fix some substitutions
* fix: do a preorder traversal to ensure parent is processed first
* feat: add alert when substitution has been made
* fix: substitute from the root, fixes CTA and feature design
* fix: refactor, add oldAttributes to mimic previous design (batch 1)
* substitute: hero, icon, imageBox, pricingBox
* substitute: spacer, toc, testimonial, videoPopup
* substitute: icon-box, transform to column then let it cascade
* substitute: icon-list, generic for now since issue with the design
* fix: change dummy text for iconlist
* substitute(non-design): separator, tabs, timeline
* fix old issue with migrating old colors
* after saving, the substituted image blocks encounter an error
---------
Co-authored-by: [email protected] <>1 parent 558247b commit 84fa8dc
File tree
109 files changed
+2936
-800
lines changed- src
- block
- accordion
- blockquote
- button-group
- button
- call-to-action
- card
- carousel
- columns
- column
- count-up
- countdown
- design-library
- divider
- expand
- feature-grid
- feature
- heading
- hero
- horizontal-scroller
- icon-box
- icon-button
- icon-label
- icon-list
- icon
- image-box
- image
- notification
- number-box
- posts
- price
- pricing-box
- separator
- spacer
- subtitle
- table-of-contents
- tabs
- team-member
- testimonial
- text
- timeline
- video-popup
- components
- admin-base-setting
- admin-toolbar-setting
- deprecated
- v2
- welcome
- format-types/highlight
- plugins
- global-settings
- layout-picker-reset
- save-block
- util
- welcome
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
109 files changed
+2936
-800
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| 281 | + | |
281 | 282 | | |
282 | 283 | | |
283 | 284 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
15 | 23 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| 43 | + | |
42 | 44 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
11 | 17 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| 44 | + | |
43 | 45 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
| 42 | + | |
39 | 43 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| 44 | + | |
43 | 45 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
0 commit comments