Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@react-querybuilder/chakra

Package Overview
Dependencies
Maintainers
1
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-querybuilder/chakra - npm Package Versions

1
13

6.0.2

Diff

Changelog

Source

[v6.0.2] - 2023-02-25

Fixed

  • [#470] parseSQL now handles escaped single quotes within strings
jakeboone02
published 6.0.1 •

Changelog

Source

[v6.0.1] - 2023-02-22

Added

  • Fluent UI compatibility package
jakeboone02
published 6.0.0 •

Changelog

Source

[v6.0.0] - 2023-02-18

Changed

  • [#455] A UMD build is no longer provided. See new instructions for buildless environments using ESM.
  • [#431] Major ValueEditor update--including the ValueEditors in the compatibility packages--for "between"/"notBetween" operators. When the operator for a rule is "between" or "notBetween", two inputs will be displayed. Each will have the class "rule-value-list-item". They will manage the value as a comma-separated list unless listsAsArrays is true, in which case a proper array will be used.
  • [#431] The default border radius on rule groups and branch lines (SCSS variable $rqb-border-radius) is now 0.25rem (previously 4px). Visually, this should be the same for most users since 16px is the default font-size on most browsers, and $16 \times 0.25 = 4$.
  • [#431] Utility function c has been removed. Use a package like clsx (what RQB uses internally) instead.
  • [#431] Bulma compatibility components no longer specify the is-small class, so they will be rendered at their default size.

Fixed

  • [#452] All packages now use the "exports" field in their package.json for better ESM compatibility.

Added

  • [#452] New ValueEditor prop selectorComponent (optional) enables the replacement of only the selector component in the value editor without recreating the logic in the default value editor. E.g., const MyValueEditor = (props: ValueEditorProps) => (<ValueEditor {...props} selectorComponent={MyValueSelector} />) will use the default value editor logic and presentation except when it would normally display the default ValueSelector.
  • [#452] New React Native-compatible package @react-querybuilder/native and associated example showcasing multiple UI libraries.
  • [#452] New exports:
    • useQueryBuilder: All logic and configuration formerly internal to the QueryBuilder component has been extracted into a custom Hook, making it easy to implement one's own presentation layer without reproducing or copy-pasting the official component code.
    • useRuleGroup: As useQueryBuilder is to the QueryBuilder component, the useRuleGroup Hook is to the RuleGroup component.
    • useRule: As useRuleGroup is to the RuleGroup component, the useRule Hook is to the Rule component.
    • RuleGroupHeaderComponents/RuleGroupBodyComponents: These JSX fragments have been extracted from the RuleGroup component and exposed as named exports, enabling the creation of a custom RuleGroup wrapper without recreating the "innards" of the default RuleGroup. (For example, the new @react-querybuilder/native package wraps these fragments in View elements from react-native).
  • [#431] New props and Hook returns to support ValueEditors new behavior for "between"/"notBetween" operators.
    • New QueryBuilder prop getValueEditorSeparator: Takes a field name and an operator name and should return a ReactNode (string, element, etc.) that will be placed between the two editors when operator is "between" or "notBetween". E.g., getValueEditorSeparator={() => "and"}.
    • New QueryBuilder prop parseNumbers: When true, the default ValueEditor will update its rule with an actual number instead of the string representation whenever possible.
    • New ValueEditor prop skipHook: When true, the useValueEditor hook call within the default ValueEditor component will not make query updates. Enables safer rendering of the default ValueEditor as a fallback to a custom value editor.
    • The useValueEditor hook now returns an object with valueAsArray and multiValueHandler properties. See ValueEditor code for usage.
  • [#455] regenerateIDs works for any object, not just rule groups.
  • [#455] Query tools (add, remove, update, and move) will fail gracefully and return the original query if the provided path or parentPath points to an invalid location in the query hierarchy.
  • [#463] The formatQuery option quoteFieldNamesWith now accepts an array of strings with two elements. The first element will precede each field name and the second will succeed each field name. E.g., ['[', ']'] would result in `[Field name] ...`.
jakeboone02
published 6.0.0-rc.0 •

jakeboone02
published 6.0.0-alpha.5 •

jakeboone02
published 6.0.0-alpha.4 •

jakeboone02
published 6.0.0-alpha.3 •

jakeboone02
published 6.0.0-alpha.2 •

jakeboone02
published 6.0.0-alpha.1 •

jakeboone02
published 5.4.1 •

Changelog

Source

[v5.4.1] - 2023-01-30

Fixed

  • [#458] Fixed parseJsonLogic output when a negated "between", "in", "contains", "beginsWith", or "endsWith" rule is the only operation.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc