@synerise/ds-logic 0.9.8 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.10.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-logic@0.9.8...@synerise/ds-logic@0.10.0) (2025-01-29)
7
+
8
+
9
+ ### Features
10
+
11
+ * antd@4.24 react@18 ([d97a667](https://github.com/Synerise/synerise-design/commit/d97a667b1f33aed3177e1851de3b6f60be2d46a6))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [0.9.8](https://github.com/Synerise/synerise-design/compare/@synerise/ds-logic@0.9.7...@synerise/ds-logic@0.9.8) (2025-01-21)
7
18
 
8
19
  **Note:** Version bump only for package @synerise/ds-logic
@@ -1,9 +1,5 @@
1
1
  var _excluded = ["matching", "sentence", "onChange", "texts", "readOnly"];
2
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
6
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
2
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
7
3
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
8
4
  import React from 'react';
9
5
  import { useIntl } from 'react-intl';
@@ -20,7 +16,7 @@ var Matching = function Matching(_ref) {
20
16
  htmlAttributes = _objectWithoutPropertiesLoose(_ref, _excluded);
21
17
  var intl = useIntl();
22
18
  var text = React.useMemo(function () {
23
- return _objectSpread({
19
+ return _extends({
24
20
  matching: intl.formatMessage({
25
21
  id: 'DS.MATCHING.MATCHING',
26
22
  defaultMessage: 'matching'
@@ -1,8 +1,4 @@
1
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
5
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
6
2
  import styled, { css } from 'styled-components';
7
3
  var getColor = function getColor(_ref) {
8
4
  var theme = _ref.theme,
@@ -31,7 +27,7 @@ export var Toggle = styled.span.withConfig({
31
27
  theme = props.theme;
32
28
  return !readOnly && "\n&:after {\n position: absolute;\n bottom: -2px;\n width: 100%;\n content: '';\n height: 1px;\n left: 1px;\n background-image: linear-gradient(\n to right,\n " + color + " 25%,\n " + theme.palette.white + " 0%\n );\n background-position: top;\n background-size: 4px 1px;\n background-repeat: repeat-x;\n}";
33
29
  }, function (props) {
34
- var hoveredColor = getColor(_objectSpread({}, props, {
30
+ var hoveredColor = getColor(_extends({}, props, {
35
31
  hovered: true
36
32
  }));
37
33
  var readOnly = props.readOnly,
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export { default } from './Logic';
2
+ export { default as Matching } from './Matching/Matching';
2
3
  export type { LogicOperator, LogicOperatorValue, LogicProps } from './Logic.types';
3
4
  export type { MatchingProps, MatchingTexts } from './Matching/Matching.types';
package/dist/index.js CHANGED
@@ -1 +1,2 @@
1
- export { default } from './Logic';
1
+ export { default } from './Logic';
2
+ export { default as Matching } from './Matching/Matching';
package/dist/modules.d.js CHANGED
@@ -1 +1 @@
1
- import '@testing-library/jest-dom/extend-expect';
1
+ import '@testing-library/jest-dom';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-logic",
3
- "version": "0.9.8",
3
+ "version": "0.10.0",
4
4
  "description": "Logic UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -34,15 +34,15 @@
34
34
  ],
35
35
  "types": "dist/index.d.ts",
36
36
  "dependencies": {
37
- "@synerise/ds-icon": "^0.70.0",
38
- "@synerise/ds-typography": "^0.16.12",
39
- "@synerise/ds-utils": "^0.31.2"
37
+ "@synerise/ds-icon": "^0.71.0",
38
+ "@synerise/ds-typography": "^0.17.0",
39
+ "@synerise/ds-utils": "^0.32.0"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@synerise/ds-core": "*",
43
- "react": ">=16.9.0 <= 17.0.2",
43
+ "react": ">=16.9.0 <= 18.3.1",
44
44
  "react-intl": ">=3.12.0 <= 6.8",
45
- "styled-components": "5.0.1"
45
+ "styled-components": "^5.3.3"
46
46
  },
47
- "gitHead": "56e23cda61b7ddfe7da4669307183b105a500e1a"
47
+ "gitHead": "fbde34e126b492edaf148e469ab96247a891d6df"
48
48
  }