Skip to content

Commit

Permalink
tno-core update (#2230)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdtoombs authored Aug 30, 2024
1 parent 7a3cf09 commit f413465
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 15 deletions.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion app/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"redux-logger": "3.0.6",
"styled-components": "6.1.11",
"stylis": "4.3.2",
"tno-core": "0.1.142"
"tno-core": "0.1.143"
},
"devDependencies": {
"@simbathesailor/use-what-changed": "2.0.0",
Expand Down
10 changes: 5 additions & 5 deletions app/editor/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11074,7 +11074,7 @@ __metadata:
sass-extract-loader: 1.1.0
styled-components: 6.1.11
stylis: 4.3.2
tno-core: 0.1.142
tno-core: 0.1.143
typescript: 4.9.5
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -15258,9 +15258,9 @@ __metadata:
languageName: node
linkType: hard

"tno-core@npm:0.1.142":
version: 0.1.142
resolution: "tno-core@npm:0.1.142"
"tno-core@npm:0.1.143":
version: 0.1.143
resolution: "tno-core@npm:0.1.143"
dependencies:
"@elastic/elasticsearch": ^8.13.1
"@fortawesome/free-solid-svg-icons": ^6.4.2
Expand Down Expand Up @@ -15293,7 +15293,7 @@ __metadata:
styled-components: ^6.1.11
stylis: ^4.3.2
yup: ^1.1.1
checksum: dc350208c8d3e326c8a87e63002398c44b78e48ea69f20a0f5d3e928f435e2e4dfd8f9aa068c5c443016b159e71397806355a66616a9993587aa3656e3b96d6a
checksum: aebfbb21bd9b631206781fcdf18fffe41ec489cd16332de246afc49f0809cf87a32325b7f9de8697b306b82a6b3f07d3495390711f18fd23bd56da7183009c5a
languageName: node
linkType: hard

Expand Down
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion app/subscriber/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"sheetjs": "file:packages/xlsx-0.20.1.tgz",
"styled-components": "6.1.11",
"stylis": "4.3.2",
"tno-core": "0.1.142"
"tno-core": "0.1.143"
},
"devDependencies": {
"@testing-library/jest-dom": "6.4.5",
Expand Down
10 changes: 5 additions & 5 deletions app/subscriber/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10705,7 +10705,7 @@ __metadata:
sheetjs: "file:packages/xlsx-0.20.1.tgz"
styled-components: 6.1.11
stylis: 4.3.2
tno-core: 0.1.142
tno-core: 0.1.143
typescript: 4.9.5
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -14750,9 +14750,9 @@ __metadata:
languageName: node
linkType: hard

"tno-core@npm:0.1.142":
version: 0.1.142
resolution: "tno-core@npm:0.1.142"
"tno-core@npm:0.1.143":
version: 0.1.143
resolution: "tno-core@npm:0.1.143"
dependencies:
"@elastic/elasticsearch": ^8.13.1
"@fortawesome/free-solid-svg-icons": ^6.4.2
Expand Down Expand Up @@ -14785,7 +14785,7 @@ __metadata:
styled-components: ^6.1.11
stylis: ^4.3.2
yup: ^1.1.1
checksum: dc350208c8d3e326c8a87e63002398c44b78e48ea69f20a0f5d3e928f435e2e4dfd8f9aa068c5c443016b159e71397806355a66616a9993587aa3656e3b96d6a
checksum: aebfbb21bd9b631206781fcdf18fffe41ec489cd16332de246afc49f0809cf87a32325b7f9de8697b306b82a6b3f07d3495390711f18fd23bd56da7183009c5a
languageName: node
linkType: hard

Expand Down
Binary file modified libs/npm/core/.yarn/install-state.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion libs/npm/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tno-core",
"description": "TNO shared library",
"version": "0.1.142",
"version": "0.1.143",
"homepage": "https://github.com/bcgov/tno",
"license": "Apache-2.0",
"files": [
Expand Down
5 changes: 3 additions & 2 deletions libs/npm/core/src/components/form/wysiwyg/Wysiwyg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,10 @@ export const Wysiwyg: React.FC<IWysiwygProps> = (props) => {

React.useEffect(() => {
if (props.value && props.value !== normalState.html) {
const formattedValue = props.value.replace(/\n+/g, '<br>') ?? '';
setNormalState({
...normalState,
html: props.value?.replace(/\n+/g, '<br>') ?? '',
text: formattedValue,
html: formattedValue,
});
}
// only update when value changes
Expand Down

0 comments on commit f413465

Please sign in to comment.