Skip to content

Commit

Permalink
Merge pull request #3515 from bettyblocks/acceptance
Browse files Browse the repository at this point in the history
release
  • Loading branch information
dylanBetty authored Oct 28, 2024
2 parents 4f3d936 + 6efeaaf commit d76565e
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 14 deletions.
21 changes: 20 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,29 @@
## [2.193.3](https://github.com/bettyblocks/material-ui-component-set/compare/v2.193.2...v2.193.3) (2024-10-11)
## [2.195.1](https://github.com/bettyblocks/material-ui-component-set/compare/v2.195.0...v2.195.1) (2024-10-28)


### Bug Fixes

* rely on use-page-state to get the current value ([5e717f5](https://github.com/bettyblocks/material-ui-component-set/commit/5e717f5e07853e40b6b0c7b1e0596b7f27c8f79d))

# [2.195.0](https://github.com/bettyblocks/material-ui-component-set/compare/v2.194.0...v2.195.0) (2024-10-24)


### Features

* **clear:** added option to clear richTextInput ([50806e0](https://github.com/bettyblocks/material-ui-component-set/commit/50806e061339d2061c213c9e9818d3dc3d0dae6f))

# [2.194.0](https://github.com/bettyblocks/material-ui-component-set/compare/v2.193.2...v2.194.0) (2024-10-22)


### Bug Fixes

* force pipeline ([323ed59](https://github.com/bettyblocks/material-ui-component-set/commit/323ed5999820be6aca7c1b3c66787f74ee51ef83))


### Features

* changed column overflow in designtime ([356fa42](https://github.com/bettyblocks/material-ui-component-set/commit/356fa4215b7f7ba232197d7ea73e2c91be746f9c))

## [2.193.2](https://github.com/bettyblocks/material-ui-component-set/compare/v2.193.1...v2.193.2) (2024-10-11)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "component-set",
"version": "2.193.3",
"version": "2.195.1",
"main": "dist/templates.json",
"license": "UNLICENSED",
"private": false,
Expand Down
4 changes: 0 additions & 4 deletions src/components/checkboxinput.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@
const helperTextResolved = useText(helperText);
const validationValueMissingText = useText(validationValueMissing);

useEffect(() => {
setChecked(boolify(resolvedValue));
}, [resolvedValue]);

const {
Checkbox: MUICheckbox,
Switch,
Expand Down
5 changes: 2 additions & 3 deletions src/components/column.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@
return ColumnComponent;
})(),
styles: (B) => (theme) => {
const { env, mediaMinWidth, Styling } = B;
const isDev = env === 'dev';
const { mediaMinWidth, Styling } = B;
const style = new Styling(theme);
const getSpacing = (idx, device = 'Mobile') =>
idx === '0' ? '0rem' : style.getSpacing(idx, device);
Expand Down Expand Up @@ -124,7 +123,7 @@
borderColor: 'transparent',
borderStyle: 'none',
borderRadius: 0,
overflow: isDev ? 'unset' : 'auto',
overflow: 'auto',
boxSizing: 'border-box',
[`@media ${mediaMinWidth(600)}`]: {
display: ({
Expand Down
1 change: 0 additions & 1 deletion src/components/ratingInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@

const value = useText(defaultValue, { rawValue: true });
useEffect(() => {
setCurrentValue(value);
B.defineFunction('Clear', () => setCurrentValue(''));
B.defineFunction('Enable', () => setIsDisabled(false));
B.defineFunction('Disable', () => setIsDisabled(true));
Expand Down
13 changes: 13 additions & 0 deletions src/components/richTextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,19 @@
);
const fragment = deserialize(parsed.body);

B.defineFunction('Clear', () => {
editor.children.forEach(() => {
Transforms.delete(editor, { at: [0] });
});

editor.children = [
{
type: 'p',
children: [{ text: '' }],
},
];
});

if (isDev) {
useEffect(() => {
Transforms.delete(editor, {
Expand Down
4 changes: 0 additions & 4 deletions src/components/textinput.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,6 @@
const helperTextResolved = useText(helperText);
const dataComponentAttributeValue = useText(dataComponentAttribute);

useEffect(() => {
setCurrentValue(optionValue);
}, [optionValue]);

const validationMessage = (validityObject) => {
if (validityObject.customError && patternMismatchMessage) {
return patternMismatchMessage;
Expand Down

0 comments on commit d76565e

Please sign in to comment.