2d506f9f57
* Remove lodash `without` usage * isNumber * Remove lodash `difference` * Replace lodash isEmpty with type guard * Replace isObject with type guard * remove lodash noop * Replace lodash clamp * replace lodash uniqueId * Remove uniqueId import * Add eslint rule to restrict lodash import * Replace lodash range * Replace lodash has() function Replace lodash has * replace omitby * Replace lodash isEqual with fastDeepEqual * Replace kebabCase with change-case package * Replace lodash camelCase Replace lodash mapKeys with function Move mapkeys to utility Create camelCaseKeys which replaces usage of mapKeys * Replace lodash debounce with custom utiity * replace lodash keyby * Replace lodash pick with native function * Replace lodash cloneDeep with klona * Replace snake case keys package with change case * Replace sortBy with fast sort package * replace isEmpty with type guard * Replace pickBy usage in validation reducer * Replace groupBy usage in search list control * Replace flatten, uniqBy usage in getProducts() * Remove setWith and clone from updateState * Replace custom useThrottle with useThrottledCallback from use-debounce package * onSelectRate can use-debounce * Fix missing flatten * Update assets/js/data/cart/test/push-changes.ts Co-authored-by: Paulo Arromba <17236129+wavvves@users.noreply.github.com> --------- Co-authored-by: Paulo Arromba <17236129+wavvves@users.noreply.github.com> |
||
---|---|---|
.. | ||
components | ||
context | ||
hocs | ||
hooks | ||
utils | ||
README.MD |
README.MD
Base Components/Context/Hooks
Base components are designed to be used on the frontend of a store. Due to this, we need to avoid using heavy WordPress externals as dependencies (wp-components, wp-block-editor, etc). To get around this, import from a local package instead.
e.g. Instead of importing from @wordpress/components
, use:
import { Component } from 'wordpress-components';
Check the built *.assets.php
files to ensure extra dependencies aren't being added to the build.