Skip to content

Commit cef5daf

Browse files
authored
Merge pull request #244 from codesnippetspro/edit-refresh/core
Update edit menu UI
2 parents df0bd2a + dbaa316 commit cef5daf

File tree

140 files changed

+6904
-8564
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+6904
-8564
lines changed

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
11
# Changelog
22

3+
## [3.7.0] (beta release)
4+
5+
### Added
6+
* New 'conditions' feature: control where and when snippets execute with a powerful logic builder. (PRO)
7+
8+
### Changed
9+
* Redesigned edit menu with refreshed look and functionality.
10+
* Updated snippet type badges to be more visually distinct.
11+
* Redesigned tooltips used throughout the plugin.
12+
* Moved content snippet shortcode options into separate modal window.
13+
* Updated snippet tag editor to use built-in WordPress tag editor.
14+
* Created proper form for sharing beta feedback.
15+
* Improved UX of snippet activation toggle.
16+
17+
### Fixed
18+
* Fetching active snippets on a multisite network now respects the 'priority' field above all else when ordering snippets.
19+
* Cloud search appears correctly and allows downloading snippets in the free version of Code Snippets.
20+
* Improved performance of loading admin menu icon.
21+
22+
## [3.6.9] (2025-02-17)
23+
24+
### Changed
25+
* Updated `Cloud_API::get_bundles()` to properly check bundle data and return an empty array if no valid bundles are present.
26+
* Refactored `Cloud_List_Table::fetch_snippets()` to always return a valid `Cloud_Snippets` instance.
27+
* Cleaned up bundle iteration code and improved translation handling in the bundles view.
28+
29+
### Fixed
30+
* Fixed errors in bundle iteration by adding a check for the bundles array before iterating.
31+
332
## [3.6.8] (2025-02-14)
433

534
### Added
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
declare module 'postcss-color-hsl' {
2+
import type { Plugin } from 'postcss'
3+
export default function (): Plugin
4+
}

config/webpack-css.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import path from 'path'
22
import libsass from 'sass'
33
import cssnano from 'cssnano'
44
import autoprefixer from 'autoprefixer'
5-
import hexrgba from 'postcss-hexrgba'
5+
import rgbaCompat from 'postcss-hexrgba'
6+
import hslCompat from 'postcss-color-hsl'
67
import MiniCssExtractPlugin from 'mini-css-extract-plugin'
78
import RemoveEmptyScriptsPlugin from 'webpack-remove-empty-scripts'
89
import { glob } from 'glob'
@@ -12,7 +13,8 @@ import type { Config as PostCssConfig } from 'postcss-load-config'
1213

1314
const postcssOptions: PostCssConfig = {
1415
plugins: [
15-
hexrgba(),
16+
rgbaCompat(),
17+
hslCompat(),
1618
autoprefixer(),
1719
cssnano({
1820
preset: ['default', { discardComments: { removeAll: true } }]
@@ -61,7 +63,10 @@ export const cssWebpackConfig: Configuration = {
6163
loader: 'sass-loader',
6264
options: {
6365
implementation: libsass,
64-
sourceMap: true
66+
sourceMap: true,
67+
sassOptions: {
68+
loadPaths: ['node_modules']
69+
}
6570
}
6671
}
6772
]

eslint.config.mjs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import globals from 'globals'
44
import eslintJs from '@eslint/js'
55
import eslintTs from 'typescript-eslint'
66
import stylistic from '@stylistic/eslint-plugin'
7+
import reactHooks from 'eslint-plugin-react-hooks'
78
import importPlugin from 'eslint-plugin-import'
89
import reactPlugin from 'eslint-plugin-react'
910
import { FlatCompat } from '@eslint/eslintrc'
@@ -21,7 +22,11 @@ export default eslintTs.config(
2122
reactPlugin.configs.flat.recommended,
2223
importPlugin.flatConfigs.recommended,
2324
{
24-
ignores: ['bundle/*', 'src/dist/*', 'src/vendor/*', 'svn/*', 'eslint.config.mjs']
25+
plugins: { 'react-hooks': reactHooks },
26+
rules: reactHooks.configs.recommended.rules,
27+
},
28+
{
29+
ignores: ['bundle/*', 'src/dist/*', 'src/vendor/*', 'svn/*', '*.config.mjs', '*.config.js']
2530
},
2631
{
2732
languageOptions: {
@@ -58,13 +63,13 @@ export default eslintTs.config(
5863
'@stylistic/indent': ['error', 'tab', { SwitchCase: 1 }],
5964
'@stylistic/jsx-quotes': ['error', 'prefer-double'],
6065
'@stylistic/linebreak-style': ['error', 'unix'],
61-
'@stylistic/max-len': ['warn', 140, { ignorePattern: 'd="([\\s\\S]*?)"' }],
66+
'@stylistic/max-len': ['warn', 140, { ignorePattern: 'd="(.*?)"|_[_xn]\\(|import .+ from .+' }],
6267
'@stylistic/multiline-ternary': 'off',
6368
'@stylistic/no-extra-parens': ['error', 'all'],
6469
'@stylistic/no-mixed-spaces-and-tabs': ['error', 'smart-tabs'],
6570
'@stylistic/no-tabs': ['error', { allowIndentationTabs: true }],
6671
'@stylistic/object-property-newline': ['error', { allowAllPropertiesOnSameLine: true }],
67-
'@stylistic/operator-linebreak': ['error', 'before'],
72+
'@stylistic/operator-linebreak': ['error', 'after', { 'overrides': { '?': 'before', ':': 'before' } }],
6873
'@stylistic/padded-blocks': ['error', 'never'],
6974
'@stylistic/quote-props': ['error', 'consistent-as-needed'],
7075
'@stylistic/quotes': ['error', 'single', { avoidEscape: true }],

0 commit comments

Comments
 (0)