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

Release/1.0.0 #81

Merged
merged 349 commits into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
349 commits
Select commit Hold shift + click to select a range
0880eca
refactor: move debounced api fetch to custom hook
g-elwell Oct 3, 2023
36996b7
fix: correct linting error
g-elwell Oct 3, 2023
eb847b9
fix: correct linting errors
g-elwell Oct 3, 2023
abc9917
fix: correct linting errors
g-elwell Oct 3, 2023
e3b85f1
refactor: resolve merge conflict
g-elwell Oct 3, 2023
877f2fd
refactor: resolve merge conflict
g-elwell Oct 3, 2023
e270080
Merge pull request #25 from bigbite/fix/BBT-87-debounce-preview
g-elwell Oct 3, 2023
5d83f85
feature(bbt-88): start of spacing component work
spbuckle Oct 9, 2023
45615f5
style(bbt-99): linting errors
spbuckle Oct 9, 2023
8c47701
Merge branch 'main' into feature/bbt-99-tidy-up-ui
g-elwell Oct 9, 2023
8a29beb
Merge remote-tracking branch 'origin/release/1.0.0' into feature/bbt-…
g-elwell Oct 9, 2023
19e3d72
feat(bbt-88): add functioning spacing component
Joe-Rouse Oct 9, 2023
caf4d60
fix(bbt-88): remove unused imported package
Joe-Rouse Oct 9, 2023
ab98787
feat(bbt-88): add var conversion functions
Joe-Rouse Oct 10, 2023
0f9d079
fix(bbt-88): ensure values are converted to vars
Joe-Rouse Oct 10, 2023
71612d7
feat(bbt-88): ensure values are parsed correctly + comments
Joe-Rouse Oct 10, 2023
97556aa
chore(bbt-88): disable jsdoc alignment rule at top of file
Joe-Rouse Oct 10, 2023
1f1168f
fix(bbt-90): update css length unit helper to handle floats
Joe-Rouse Oct 10, 2023
4e7b57c
fix(bbt-93): update css length unit helper to handle floats
Joe-Rouse Oct 10, 2023
53f1eb1
fix(bbt-92): update css length unit helper to handle floats
Joe-Rouse Oct 10, 2023
26a46e7
fix(bbt-88): add block editor helpers to plugin to support older wp ver
Joe-Rouse Oct 10, 2023
9602375
feat(bbt-101): add filter UI component
Joe-Rouse Oct 10, 2023
4e9c680
docs(bbt-101): add comment to CSS
Joe-Rouse Oct 10, 2023
d183f60
feat(bbt-101): don't render anything if there isn't any duotone options
Joe-Rouse Oct 10, 2023
2a6ba80
refactor(bbt-101): move return false further down
Joe-Rouse Oct 10, 2023
8ffd07e
feat(bbt-102): add custom CSS UI component
Joe-Rouse Oct 11, 2023
931774a
chore(bbt-102): remove console.log
Joe-Rouse Oct 11, 2023
399bc9b
fix(bbt-102): add rel attribute to anchor
Joe-Rouse Oct 11, 2023
f72d3d7
feat(bbt-102): add 'code' font to textarea
Joe-Rouse Oct 11, 2023
8052699
feat(bbt-102): encode URL to WP blog
Joe-Rouse Oct 11, 2023
37d016b
feat(bbt-102): allow component to render when value is empty string
Joe-Rouse Oct 11, 2023
a2e3607
feat(bbt-83): notify user of unsaved changes before leaving
Joe-Rouse Oct 11, 2023
5d96b2a
feat(bbt-83): disable reset if userConfig is the same as baseConfig
Joe-Rouse Oct 11, 2023
2888226
chore(bbt-100): commit current progress
Joe-Rouse Oct 12, 2023
e259683
feat(bbt-83): reset button now resets to most recently saved version
Joe-Rouse Oct 12, 2023
26b5147
feat(bbt-100): hide font family control if no font families
Joe-Rouse Oct 12, 2023
1729323
feat(bbt-100): commit current progress on font size
Joe-Rouse Oct 16, 2023
5820412
style(bbt-88): format jsdoc with linting fix command
Joe-Rouse Oct 16, 2023
7b74209
fix(bbt-92): disallow negative values for blur radius
Joe-Rouse Oct 16, 2023
6d15252
refactor(bbt-92): parse negative value earlier in function
Joe-Rouse Oct 16, 2023
ce5a828
style(bbt-90): update func and var names & remove unnecessary anon funcs
Joe-Rouse Oct 16, 2023
60ccdb5
style(bbt-101): format jsdoc comments
Joe-Rouse Oct 16, 2023
53a77bb
refactor(bbt-101): bail early from func if no duotone options are found
Joe-Rouse Oct 16, 2023
8983fe6
style(bbt-100): remove disable jsdoc alignment comments & fix alignment
Joe-Rouse Oct 17, 2023
9c129b3
feat(bbt-100): add font appearance control
Joe-Rouse Oct 17, 2023
006d4ca
feat(bbt-100): add line height control
Joe-Rouse Oct 17, 2023
dc39034
feat(bbt-100): add text decoration component
Joe-Rouse Oct 17, 2023
4653cd5
feat(bbt-100): add text transform component
Joe-Rouse Oct 17, 2023
3a352d8
feat(bbt-100): add letter spacing component
Joe-Rouse Oct 17, 2023
ff07f6e
fix(bbt-100): remove console.log
Joe-Rouse Oct 17, 2023
1319c59
feat(bbt-100): add functionality to font size + layout styling
Joe-Rouse Oct 17, 2023
873f19f
docs(bbt-100): update font size comment
Joe-Rouse Oct 17, 2023
0c6e02d
feat(bbt-100): add stacking styles from other PR
Joe-Rouse Oct 17, 2023
47efc7b
Merge pull request #22 from bigbite/feature/bbt-92-shadow-ui
Joe-Rouse Oct 17, 2023
abc48a0
Merge branch 'release/1.0.0' into feature/bbt-93-outline-component
Joe-Rouse Oct 17, 2023
485ba9b
Merge pull request #23 from bigbite/feature/bbt-93-outline-component
Joe-Rouse Oct 17, 2023
caef7e3
Merge branch 'release/1.0.0' into feature/bbt-90-dimensions-component
Joe-Rouse Oct 17, 2023
7d744f3
Merge pull request #24 from bigbite/feature/bbt-90-dimensions-component
Joe-Rouse Oct 17, 2023
bbf957c
Merge branch 'release/1.0.0' into release/bbt-88-spacing-component
Joe-Rouse Oct 17, 2023
f6be1d3
Merge pull request #27 from bigbite/release/bbt-88-spacing-component
Joe-Rouse Oct 17, 2023
a6acc5e
Merge branch 'release/1.0.0' into feature/bbt-100-typography-component
Joe-Rouse Oct 19, 2023
382d66f
feat(bbt-100): add parsing helpers for individual controls
Joe-Rouse Oct 19, 2023
191cc80
fix(bbt-100): replace contains calls to includes
Joe-Rouse Oct 20, 2023
c418612
fix(bbt-100): reverse regex logic
Joe-Rouse Oct 20, 2023
ddc5636
refactor(bbt-83): remove any need for extra state
Joe-Rouse Oct 23, 2023
e29613c
Merge branch 'release/1.0.0' into feature/bbt-101-filter-component
Joe-Rouse Oct 23, 2023
3a6b18a
Merge pull request #28 from bigbite/feature/bbt-101-filter-component
Joe-Rouse Oct 23, 2023
04aba68
feat(bbt-100): add parsing function for font size
Joe-Rouse Oct 23, 2023
b3d1e01
feat(bbt-100): add text columns control
Joe-Rouse Oct 23, 2023
978129a
feat(bbt-100): ensure components fall back to defaults
Joe-Rouse Oct 23, 2023
65ce902
fix(bbt-100): add optional chaining to letter spacing value
Joe-Rouse Oct 23, 2023
cb3da12
Merge branch 'release/1.0.0' into feature/bbt-100-typography-component
Joe-Rouse Oct 23, 2023
6ef0f61
refactor(bbt-100): rename typography directory to match others
Joe-Rouse Oct 26, 2023
13e6546
refactor(bbt-100): move helpers from font size & family to helpers file
Joe-Rouse Oct 26, 2023
cba8160
feat(bbt-100): map normal and bold to a numeric value
Joe-Rouse Oct 27, 2023
09a0fae
feat(bbt-106): install interface package
Joe-Rouse Oct 27, 2023
7685d87
feat(bbt-106): add functionality for clear all tool
Joe-Rouse Oct 27, 2023
bac16bd
feat(bbt-106): move export button in more menu dropdown
Joe-Rouse Oct 27, 2023
682dc0a
Merge branch 'release/1.0.0' into feature/bbt-106-clear-all-customisa…
Joe-Rouse Oct 27, 2023
2db012c
chore(bbt-106): update lock file
Joe-Rouse Oct 27, 2023
f6d3cbe
Merge pull request #30 from bigbite/feature/bbt-83-reset-button
Joe-Rouse Oct 27, 2023
7e380e5
Merge branch 'release/1.0.0' into feature/bbt-106-clear-all-customisa…
Joe-Rouse Oct 27, 2023
f4e7b1f
Merge pull request #32 from bigbite/feature/bbt-106-clear-all-customi…
Joe-Rouse Oct 27, 2023
673a9dd
fix: conditionally render summary content
g-elwell Oct 27, 2023
edb4a5c
Merge branch 'release/1.0.0' into feature/bbt-100-typography-component
Joe-Rouse Oct 30, 2023
617faf8
refactor(bbt-100): adjust font appearance fallback logic
Joe-Rouse Oct 30, 2023
8420fc4
Merge pull request #33 from bigbite/fix/BBT-109-conditional-render-su…
g-elwell Oct 30, 2023
c7f9a75
Merge branch 'release/1.0.0' into feature/bbt-100-typography-component
Joe-Rouse Oct 30, 2023
dd994f2
Merge pull request #31 from bigbite/feature/bbt-100-typography-component
Joe-Rouse Oct 30, 2023
ecba81c
feat: obtain blocks from schema and supplement with metadata
g-elwell Oct 30, 2023
a036c1c
merge branch origin/release/1.0.0
g-elwell Oct 30, 2023
6149e09
feat: style revert button as destructive
g-elwell Oct 30, 2023
8e4d3de
fix: remove unnecessary conditional render inside block item
g-elwell Oct 30, 2023
fb7e2c2
fix: repair block icon and name in summary
g-elwell Oct 30, 2023
fa696d1
fix: repair package-lock.json
g-elwell Oct 30, 2023
6ad6e96
feat: refactor style components for reusability, add site and element…
g-elwell Oct 30, 2023
adfb261
Merge pull request #26 from bigbite/feature/bbt-99-tidy-up-ui
g-elwell Oct 31, 2023
943dea1
fix: remove unneeded jsdoc param for removed prop
g-elwell Oct 31, 2023
580d777
Merge pull request #34 from bigbite/feat/BBT-94-refactor-ui-structure
g-elwell Nov 6, 2023
66843ee
feat(bbt-112): add inert attribute to preview
Joe-Rouse Nov 6, 2023
a7cb67a
Merge pull request #37 from bigbite/feature/bbt-112-preview-lockdown
g-elwell Nov 7, 2023
f2600e6
fix: remove string handling
g-elwell Nov 7, 2023
39d35c0
feat: add preview example toggle
g-elwell Nov 9, 2023
3735a22
feat: add previews for all elements, refactor preview functions
g-elwell Nov 10, 2023
70710af
docs: document getBlockPreview function
g-elwell Nov 10, 2023
6c1c102
refactor: use object instead of array for previewBlocks state
g-elwell Nov 10, 2023
af95703
chore: rename heading block preview references
g-elwell Nov 10, 2023
0fb7058
fix: linting issues
g-elwell Nov 10, 2023
763bb08
fix: useCallback to prevent re-render loop
g-elwell Nov 10, 2023
94aab0f
fix: adjust preview toggle icon statue UX
g-elwell Nov 10, 2023
1801b29
fix: delay rendering until global styles id available
g-elwell Nov 10, 2023
46595f7
fix: re-add missing typography styles component
g-elwell Nov 16, 2023
0307621
feat: implement breadcrumb navigation
g-elwell Nov 16, 2023
bc8ec67
Merge pull request #41 from bigbite/fix/BBT-94-re-add-typography-styles
g-elwell Nov 17, 2023
2615b19
feat: styling updates
g-elwell Nov 17, 2023
e4f4cd1
fix: avoid inline styling
g-elwell Nov 17, 2023
06e22a4
fix: linting errors
g-elwell Nov 17, 2023
517ce27
Merge branch 'release/1.0.0' into feat/BBT-116-breadcrumb-navigation
g-elwell Nov 17, 2023
c2514c2
refactor: rename components for consistency and clarity
g-elwell Nov 17, 2023
7a803e7
Merge branch 'feat/BBT-116-breadcrumb-navigation' of github.com:bigbi…
g-elwell Nov 17, 2023
e62a3b4
Merge pull request #38 from bigbite/fix/BBT-110-remove-string-handling
spbuckle Nov 20, 2023
22ce528
Merge pull request #40 from bigbite/fix/BBT-118-update-crashing
spbuckle Nov 20, 2023
8684574
Merge pull request #39 from bigbite/feat/BBT-111-update-preview
spbuckle Nov 20, 2023
21e25eb
Revert "[BBT-110] Remove string handling in spacing styles component"
g-elwell Nov 20, 2023
5e1f4cc
Merge pull request #43 from bigbite/revert-38-fix/BBT-110-remove-stri…
g-elwell Nov 20, 2023
f21410e
merge origin/release/1.0.0
g-elwell Nov 20, 2023
dd9c430
fix: breadcrumb styling
g-elwell Nov 20, 2023
a9d9895
fix: remove console.log
g-elwell Nov 22, 2023
bb28f97
feat: refactor navigation
g-elwell Nov 22, 2023
d2c3f08
docs: update comments
g-elwell Nov 24, 2023
daf9a1f
refactor: tidy nav components and update comments
g-elwell Nov 24, 2023
bd8a50d
refactor: update comments
g-elwell Nov 24, 2023
e6ded01
fix: remove links from breadcrumbs, use classnames for appending css …
g-elwell Nov 24, 2023
5968f00
feat: render all nav items even when no styles are present
g-elwell Dec 4, 2023
be7c0cb
fix: avoid nesting button elements
g-elwell Dec 4, 2023
c4795ea
feat: render all nav items even when no styles are present
g-elwell Dec 4, 2023
49d9de4
fix: avoid nesting button elements
g-elwell Dec 4, 2023
943352a
Merge pull request #44 from bigbite/feat/BBT-116-styles-nav
g-elwell Dec 4, 2023
2edb361
Merge remote-tracking branch 'origin/release/1.0.0' into test/creator
g-elwell Dec 4, 2023
49bc596
feat: render all style components unconditionally
g-elwell Dec 4, 2023
502c210
Merge branch 'release/1.0.0' into feat/BBT-121-manage-all-styles
g-elwell Dec 4, 2023
169e8dd
fix: protect against unknown key on spacing object
g-elwell Dec 5, 2023
a69d44b
fix: avoid multiple state updates in single render
g-elwell Dec 5, 2023
f0b01be
fix: handle font family and size, rename onChange prop
g-elwell Dec 5, 2023
5bd792a
fix: hide core wordpress admin notices
g-elwell Dec 5, 2023
2de3814
Merge pull request #45 from bigbite/feat/BBT-121-manage-all-styles
g-elwell Dec 5, 2023
565c861
feat: implement global preview toggle
g-elwell Dec 5, 2023
c4d3442
fix: ensure preview resets to default correctly
g-elwell Dec 5, 2023
5e82570
refactor: extract PreviewExampleButton to dedicated component
g-elwell Dec 5, 2023
d157397
fix: add gap to toolbar
g-elwell Dec 5, 2023
622b584
fix: i18n button label
g-elwell Dec 5, 2023
6a3b1b6
Merge pull request #47 from bigbite/feat/BBT-120-global-preview-toggle
g-elwell Dec 5, 2023
b3276aa
Merge pull request #46 from bigbite/fix/BBT-119-hide-notices
g-elwell Dec 5, 2023
90438c2
fix: consistent style section headings
g-elwell Jan 2, 2024
8e61035
fix: rename classnames to use BEM
g-elwell Jan 2, 2024
2a0ba80
fix: remove nesting and redundant CSS
g-elwell Jan 2, 2024
25bfe59
refactor: rename scss files
g-elwell Jan 2, 2024
1cdc189
feat: add styled separators
g-elwell Jan 2, 2024
258ad1b
Merge pull request #48 from bigbite/feature/BBT-114-section-styling
g-elwell Jan 3, 2024
a60e930
docs: update plugin metadata
g-elwell Jan 5, 2024
2fcfc0a
Merge pull request #49 from bigbite/fix/BBT-96-plugin-headers
g-elwell Jan 8, 2024
2a217dc
feat(bbt-122): add custom endpoint for fetching wp_global_styles posts
Joe-Rouse Jan 24, 2024
a6d1187
feat(bbt-122): add tax query arguments to query
Joe-Rouse Jan 24, 2024
eb7bdab
fix(bbt-122): add phpcs ignore comment
Joe-Rouse Jan 24, 2024
4de0d58
feat(bbt-123): add basic switcher UI
Joe-Rouse Jan 29, 2024
1fbb8a7
feat(bbt-123): only set id if active variation is found
Joe-Rouse Jan 29, 2024
cdf5416
feat(bbt-123): add functionality for activating a style variation
Joe-Rouse Jan 29, 2024
e82ca9e
feat(bbt-123): check post exists before activating
Joe-Rouse Jan 29, 2024
d6e4c15
feat(bbt-123): add valid permission callback to endpoint
Joe-Rouse Jan 29, 2024
1948162
refactor(bbt-122): use a shorter url for REST endpoint
Joe-Rouse Jan 31, 2024
4e484fd
Merge branch 'feature/bbt-122-global-styles-endpoint' into feature/bb…
Joe-Rouse Jan 31, 2024
ee09c09
refactor(bbt-123): only call wp_update_post on posts that require it
Joe-Rouse Jan 31, 2024
4e28c79
refactor(bbt-123): split endpoint callback up into separate functions
Joe-Rouse Jan 31, 2024
2ad7ec0
Merge pull request #50 from bigbite/feature/bbt-122-global-styles-end…
Joe-Rouse Jan 31, 2024
9e229b3
docs(bbt-123): re-phrase comment on loop that updates post statuses
Joe-Rouse Jan 31, 2024
527c579
style(bbt-123): improve arguments formatting
Joe-Rouse Jan 31, 2024
5bfd3fd
refactor(bbt-123): change internally used methods visibility to private
Joe-Rouse Feb 1, 2024
5a8cc84
refactor(bbt-123): add arg validation for globalStylesId
Joe-Rouse Feb 1, 2024
61554b5
Merge pull request #51 from bigbite/feature/bbt-123-styles-switcher
Joe-Rouse Feb 2, 2024
8758dde
enhance(52/53):add sticky to themer preview; add color and margin to UI
squarewave17 May 8, 2024
085a6cd
hotfix(52/53):remove max-width on editor-styles-wrapper
squarewave17 May 8, 2024
fb26b1e
adds space before style brackets
squarewave17 May 9, 2024
a2f277b
Merge pull request #56 from bigbite/enhancement/bbt-53-ui-styles
g-elwell May 9, 2024
fb4613c
enhance: adding overflow scroll and sticky to panels
thatisrich Jun 24, 2024
68c7a18
enhance: tidying up panel overflows
thatisrich Jun 24, 2024
f222cb4
refactor: changing preview container for scroll
thatisrich Jun 25, 2024
92efcd1
refactor: updating to align with coding standards
thatisrich Jun 25, 2024
2a764ba
refactor: moving wrap into media query for more granular control
thatisrich Jun 25, 2024
6e65043
refactor: adjusting preview container overflow approach
thatisrich Jun 25, 2024
93e97cf
refactor: adding className to add clarity
thatisrich Jun 25, 2024
725c66e
fix: fixing preview width when values increased
thatisrich Jun 25, 2024
84445e3
Merge pull request #67 from bigbite/enhancement/bbt-66-scroll-sticky-…
g-elwell Jun 25, 2024
12b5b2d
feat: add code view functionality with output of current themeConfig
chrishall0 Jun 26, 2024
36bd807
chore: added function comment
chrishall0 Jun 26, 2024
0670b98
feat: conditional button text
chrishall0 Jun 26, 2024
225a0a4
feat: changes made to replace existing Preview with Code View display…
chrishall0 Jun 26, 2024
764665d
feat: split settings and styles in code view to get headings
chrishall0 Jun 26, 2024
d1d033b
feat: changed overflow-y from scroll to auto
chrishall0 Jun 26, 2024
58f54e0
feat: added internationalisation to headings
chrishall0 Jun 26, 2024
a9488b0
remove-style-variations-errored
squarewave17 Jun 26, 2024
02e4b6e
Merge pull request #68 from bigbite/feat/bbt-62-code-view
squarewave17 Jun 26, 2024
f62a6a2
fix: render whole themeConfig, use <pre> and <code> and fix CSS error
chrishall0 Jun 27, 2024
f8ee07f
Merge pull request #70 from bigbite/feat/bbt-62-code-view-changes
g-elwell Jun 27, 2024
d548815
Merge branch 'release/1.0.0' into fix/remove-theme-style-variations
squarewave17 Jun 27, 2024
572d1b7
fixes ci error
squarewave17 Jun 27, 2024
3289d25
Merge pull request #69 from bigbite/fix/remove-theme-style-variations
g-elwell Jun 27, 2024
967f883
fixes background color on the code view
squarewave17 Jun 27, 2024
cabd135
Merge pull request #71 from bigbite/hotfix/code-view-background-color
g-elwell Jun 27, 2024
d4a5b2a
fix: move error message
jordanharris-6 Jul 23, 2024
d0b4f82
fix: avoid storing non-user values in database
Jul 23, 2024
f796c9a
Merge pull request #78 from bigbite/fix/77-theme-json-error-not-appea…
g-elwell Jul 23, 2024
dd2dc75
Merge pull request #80 from bigbite/fix/avoid-storing-non-user-values
g-elwell Jul 23, 2024
6ba82cf
chore: version bump for rc 1
g-elwell Jul 26, 2024
ecdcaac
chore: add description to package.json
g-elwell Jul 26, 2024
722be68
feat: contextualise code view based on current navigator location
g-elwell Aug 7, 2024
f24f39c
Merge pull request #88 from bigbite/feature/improve-code-preview
g-elwell Aug 13, 2024
998bb0c
moves border control to the bottom of the list
squarewave17 Aug 14, 2024
55bf1a9
Merge pull request #92 from bigbite/refactor/move-border-control-to-b…
g-elwell Aug 14, 2024
7267ed3
Merge branch 'release/1.0.0' into feature/bbt-102-custom-css
g-elwell Aug 22, 2024
57e812f
fix: re-add component in new location, provide fallback value, simpli…
g-elwell Aug 22, 2024
99c653c
fix: ensure invalid or undefined colours fall back to set value as an…
g-elwell Aug 23, 2024
63d32d5
chore: remove unneeded file as it had been renamed previously
g-elwell Aug 23, 2024
b70c1a5
Merge pull request #29 from bigbite/feature/bbt-102-custom-css
g-elwell Aug 23, 2024
901571f
Merge pull request #100 from bigbite/fix/93-clear-color
g-elwell Aug 27, 2024
d1ed3c3
feat: adds gradient picker component as part of color component
chrishall0 Aug 29, 2024
16d888d
feat: adds support for disabling custom gradients
chrishall0 Aug 29, 2024
80a478b
docs: updated code comment order
chrishall0 Aug 29, 2024
1cdbd4f
feat: heading translation
chrishall0 Aug 30, 2024
17aefbe
docs: multiline comment
chrishall0 Aug 30, 2024
e153b1a
feat: useMemo for gradients, changes to check before render
chrishall0 Aug 30, 2024
72276cb
Merge pull request #101 from bigbite/feat/bbt-95-add-gradient-support
g-elwell Aug 30, 2024
3e5cdd9
feat: adds in functions to sort blocks/elements by title/name
chrishall0 Sep 20, 2024
a6f5d14
feat: adding contrast checker for text and bg
thatisrich Sep 20, 2024
5c499c7
fix: avoiding custom palette display issue
thatisrich Sep 20, 2024
b761f26
feat: restricting event listeners to container
thatisrich Sep 24, 2024
45051ed
feat: switching event listener to debounce
thatisrich Sep 24, 2024
63f35ee
feat: reducing complexity of approach
thatisrich Sep 24, 2024
78aa155
feat: moving debounce to custom hook
thatisrich Sep 25, 2024
e7264ed
fix: removing unnecessary comment line
thatisrich Sep 25, 2024
744ab6a
Merge pull request #108 from bigbite/feature/bbt-105-contrast-checker…
g-elwell Sep 25, 2024
9412378
chore: remove todo comments
g-elwell Sep 30, 2024
36d3344
chore: remove unused files
g-elwell Sep 30, 2024
d8d7077
Merge pull request #107 from bigbite/feat/96-reorder-block-list
g-elwell Oct 1, 2024
55afbeb
docs: update readme
g-elwell Oct 1, 2024
9d3e3c2
Merge branch 'release/1.0.0' into feature/63-update-readme
g-elwell Oct 1, 2024
c82fe63
Merge branch 'main' into release/1.0.0
g-elwell Oct 1, 2024
5b9804d
Merge branch 'release/1.0.0' into feature/63-update-readme
g-elwell Oct 1, 2024
1f70aa9
Merge pull request #110 from bigbite/feature/63-update-readme
g-elwell Oct 1, 2024
23df4ec
chore: version bump
g-elwell Oct 1, 2024
71130d0
Merge branch 'release/1.0.0' of github.com:bigbite/themer into releas…
g-elwell Oct 1, 2024
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
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
extends: [ 'plugin:@wordpress/eslint-plugin/recommended' ],
rules: {
'@wordpress/no-unsafe-wp-apis': 'off',
},
};
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ vendor/
build/

.DS_Store
.vscode
90 changes: 0 additions & 90 deletions README.md

This file was deleted.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "bigbite/themer",
"description": "",
"type": "wordpress-plugin",
"version": "1.0.0-alpha.1",
"version": "1.0.0",
"repositories": [
{
"url": "git@github.com:bigbite/phpcs-config.git",
Expand Down
74 changes: 50 additions & 24 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

79 changes: 79 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Themer

Themer is a WordPress plugin that provides a UI for users to edit the [theme.json](https://developer.wordpress.org/themes/global-settings-and-styles/) file of your currently active theme. It was built as a companion to the [Site Editor](https://wordpress.org/documentation/article/site-editor/) allowing for even more granular control over your site styles through a dedicated UI.

## Features

- Edit and add new styles to your theme.json file through the UI
- Edit global styles, block styles and element styles
- Edit pseudo-class styles on elements
- Edit elements and pseudo-class styles within specific blocks
- Built in accessibility checker for colour contrast
- Contextual view of theme.json code whilst editing styles
- Option to export theme.json file for inclusion in your theme

![86068](https://github.com/user-attachments/assets/b036dc73-4252-407c-bdf8-75dd46fc2606)

## Installing

### Prerequisites

- **WordPress:** 6.2
- **PHP:** 8.0

### Via Composer

When installing to your site, add the following to you `composer.json` file. This will ensure that installation will use the build version of the package and allow it to be loaded using composer in the preferred path.

```json
{
"repositories": [
{
"type": "vcs",
"url": "git@github.com:@bigbite/themer.git"
}
],
"require": {
"@bigbite/themer": "^1.0.0"
},
"extra": {
"installer-paths": {
"plugins/{$name}/": [ "type:wordpress-plugin" ]
}
}
}
```

## Local Development or Manual Install

Clone the repository into your `plugins` or `client-mu-plugins` directory.

```
git clone git@github.com:@bigbite/themer.git && cd themer
```

Install JS packages.

```
npm install
```

Build all assets

```
npm run build:prod
```

Install PHP packages and create autoloader for the plugin.

```
composer update
```

## Issues

We welcome bug reports, feature requests, questions, and pull requests. If you spot any mistakes or have an idea to make the plugin better, just [open an issue](https://github.com/bigbite/themer/issues/new/choose).

## Contributing

Please read [Code of Conduct](./CODE_OF_CONDUCT.md) for details on our code of conduct and [Contributing](./CONTRIBUTING.md) for details on the process for submitting pull requests to us.
10 changes: 5 additions & 5 deletions inc/class-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ public function __construct() {
* @return void
*/
public function create_admin_screen() : void {
add_options_page(
__( 'Theme Settings' ),
'Theme Customiser',
'manage_options',
'theme_settings',
add_theme_page(
__( 'Styles Editor' ),
'Styles Editor',
'edit_theme_options',
'styles_editor',
array( $this, 'theme_render_settings' ),
);
}
Expand Down
5 changes: 5 additions & 0 deletions inc/class-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ public function __construct() {
* @return void
*/
public function enqueue_themer_assets() : void {
$current_screen = get_current_screen();
if ( 'appearance_page_styles_editor' !== $current_screen->id ) {
return;
}

$plugin_name = basename( THEMER_DIR );
$asset_file = include THEMER_DIR . '/build/index.asset.php';

Expand Down
Loading