Skip to content

Releases: picasso/zukit

2.1.0

15 Feb 09:18
Compare
Choose a tag to compare
Core
  • refactored setupOptionsStore and its hooks
  • refactor externalData to avoid mixing blocks and settings data
  • add duration support for useLoaders hook
  • add init_inner method to resolve init override in zukit_Blocks
Components
  • add boxed mode for TitleIndicator component
  • fix checkbox-control, components-select-control and components-base-control css
  • fix ListInputControl css
Debug
  • add debug-load context for settings page
  • make DevTools always available from global window scope
  • rename zu_loge into zu_log_errorfile to make it more clear
Other
  • fix PHP 8.2 deprecations
  • fix deprecated position prop in Tooltip
  • opting into the new margin-free styles
  • opting into the new 40px default height
  • fix deprecated plugin slots
  • fix deprecated Button props
  • fix deprecated registerStore
  • fix preserveAspectRatio for loaders

2.0.1

08 Jan 12:02
Compare
Choose a tag to compare
  • test with Wordpress 6.6.2
  • update outdated npm packages
  • add Prettier and its config
  • replace ESLint config with v9
  • replace classnames package with the faster and smaller clsx package
  • add wp-scripts build and webpack configs for it
  • migrate SASS files to avoid deprecation warnings
  • refactor JS with lodash-es and prettier rules
  • replace wordpress import from const to import
  • fix PHP formatting and some errors found by intelephense
  • update script dependencies based on generated by wp-scripts

1.5.5

04 Mar 23:41
Compare
Choose a tag to compare
Snippets
  • removed zusnippets_Lang trait (these helpers duplicated in the Zu Translate plugin)
Debug
  • delayed value creation for the second argument of logGroup method
  • renaming debug JS data set to inhouse
  • refactoring init for _debug and _panels option groups
  • keep _debug and _panels option groups even on reset
  • added zu_loge function as last resort for complex debug cases
Other
  • added unescapeHtml helper to utils
  • added hover to notice__dismiss button
  • fixed markdown CSS in action buttons
  • fixed CSS of Settings (Safari)
  • improved inserting separators in the Admin Menu

1.5.2

09 Feb 10:02
Compare
Choose a tag to compare
Debug
  • added dim color modifier
  • refactoring logGroup method
  • changed opaque color for ^ modifier
  • delayed value creation - if the data is a function, then we replace it with the value returned from the function
Other
  • added outline on :focus for SelectItemControl control
  • improved CSS on various screen widths

1.5.0

25 Jan 14:29
Compare
Choose a tag to compare
  • color modifiers support for opaque colors in Debug module
  • some helpers for input/textarea manipulations (compatible with React) in JQ module
  • minify JS output

1.4.9

19 Jan 23:41
Compare
Choose a tag to compare
Core
  • refactoring AdminMenu methods (docs update required)
  • implemented keep_file and get_file static methods to keep file paths
  • added File field to plugin/theme meta
Components
  • refactoring zukit_Table class and ZukitTable component to support CSS Grid layout
  • added ZukitToggle component with simple markdown support
  • use ZukitToggle instead of ToggleControl
Debug
  • added simple __log method - for debugging without any classes
  • added support for Color Modifiers in info method
  • disable Zukit scripts caching with static zukit_debug method
  • removed package.json import (and ver getter) in Debug module
Other
  • updated NPM package dependencies
  • logo experiments
  • improved CSS

1.4.6

05 Jan 12:19
Compare
Choose a tag to compare
Core
  • added has_snippet method
  • added get_callable method which allows to use functions as configuration values
  • all set_option for Ajax requests are now running with the option rewrite_array equal to true
  • fixed bug in method set_option when rewrite_array is true and key is path
Components
  • added onKeyEnter prop for AdvTextControl component
  • added isSideBySide prop to ListInputControl and AdvTextControl components
  • added isOpen and isNotEmptyLabel props for ListInput Component
  • added more argument in transformValue function for SelectItemControl component
  • fix CSS and htmlFor support when isSideBySide is true for ListInputControl and AdvTextControl components
  • disable animation in ListInputControl component when isOpen is true
Other
  • added scrollTop DOM helper
  • added noColon check in messageWithError function

1.4.3

28 Dec 10:23
Compare
Choose a tag to compare
  • made path_autocreated = true by default
  • added TitleIndicator component
  • added withPlugin and withPluginMeta HOCs to work with predefined WP slots (PluginDocumentSettingPanel, PluginSidebar and etc.)
  • exported debug module for Zukit settings
  • fixed bug in set_option method when $value is array and $key is path
  • fix styles of some standard controls (checkbox, toggle)
  • small improvements

1.4.2

28 Dec 10:20
Compare
Choose a tag to compare
  • refactoring do_addons to work with options and collect results
  • added extend_metadata method which allows you to modify the name, description and other information about the plugin/theme
  • refactoring ConditionalWrap after understanding how the JSX works with the createEelement function
  • added custom hooks - useRefInit and useRefDefaults
  • refactoring React custom hooks for folders
  • replacing deprecated jQuery methods
  • refactoring debug module with new knowledge about React hooks
  • fixed bug with zudata Ajax request
  • converted instyle SASS to SCSS
  • refactoring extend_block_colors and default Zukit color palette
  • implemented markdown in plugin/theme description
  • small improvements

1.4.1

16 Oct 11:40
Compare
Choose a tag to compare
  • adapted to WP 5.8.1
Core
  • implemented zukit_ExchangeWithMagic trait
  • refactoring redirect to parent methods with PHP __call
  • redefined array_with_defaults method from snippets for convenience
  • improved extend snippets, frontend_handles, trace_summary and prefix_it methods
  • simplified the error checking method
  • refactoring dependencies for scripts and styles to fix errors in WP 5.8 (widgets.php)
REST & AJAX
  • implemented default_options AJAX response
  • logic of set_options_ajax method is changed - if at least one call returns true, then the overall result will also be true
  • refactoring sanitize helpers, added rest_response and maybe_fix_sanitize methods
Blocks & Components
  • improved SelectItemControl component - added fillNull option and smart style support
  • refactoring zukit_Blocks to allow use config from the class that was inherited from zukit_Blocks
  • added the ability to create an instance of the zukit_Blocks class by name
  • improved svgRef and getColor helpers
CSS
  • refactoring SASS with div() function because using / for division is deprecated
  • small fixes for Safari browser
Snippets
  • added cast_array, array_zip_merge, add_inline_script_now, build_style methods
  • added null_on_failure arg for to_bool function
  • added minify argument for inline styles and scripts
  • added as_array argument for get_background_color method
  • added $reindex argument to array_pick_keys, array_without_keys and array_without_null methods