Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Commit 8e30157

Browse files
committed
chore(dep) Update Cicero/Markdown Transform dependencies, adjusts stories
Signed-off-by: Jerome Simeon <[email protected]>
1 parent f23f988 commit 8e30157

File tree

6 files changed

+109
-109
lines changed

6 files changed

+109
-109
lines changed

package-lock.json

Lines changed: 79 additions & 81 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/storybook/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"version": "0.93.1",
44
"private": true,
55
"dependencies": {
6-
"@accordproject/cicero-core": "0.20.11-20200710202320",
7-
"@accordproject/markdown-slate": "0.11.4-20200710155447",
8-
"@accordproject/markdown-transform": "0.11.4-20200710155447",
6+
"@accordproject/cicero-core": "^0.21.0",
7+
"@accordproject/markdown-slate": "^0.12.0",
8+
"@accordproject/markdown-transform": "^0.12.0",
99
"@accordproject/ui-components": "0.93.1",
1010
"@accordproject/ui-concerto": "0.93.1",
1111
"@accordproject/ui-markdown-editor": "0.93.1",

packages/storybook/src/stories/4-ContractEditor.stories.js

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,17 @@ const Wrapper = styled.div`
7272
export default { title: 'Contract Editor' };
7373

7474
const templates = {
75-
'Optional Clause': 'https://parserv2--templates-accordproject.netlify.app/archives/[email protected]',
76-
'Fixed Interest': 'https://parserv2--templates-accordproject.netlify.app/archives/[email protected]',
77-
'Late Delivery And Penalty': 'https://templates.accordproject.org/archives/latedeliveryandpenalty@0.15.0.cta',
78-
'Fragile Goods': 'https://templates.accordproject.org/archives/fragile-goods@0.13.1.cta',
75+
'Optional Clause': 'https://templates.accordproject.org/archives/[email protected]',
76+
'Fixed Interest': 'https://templates.accordproject.org/archives/[email protected]',
77+
'Late Delivery And Penalty': 'https://templates.accordproject.org/archives/latedeliveryandpenalty@0.16.0.cta',
78+
'Fragile Goods': 'https://templates.accordproject.org/archives/fragile-goods@0.14.0.cta',
7979
};
8080

8181
export const contractEditor = () => {
8282
const markdownText = text( 'Markdown', `# Heading One
8383
This is text. This is *italic* text. This is **bold** text. This is a [link](https://clause.io). This is \`inline code\`.
8484
`);
85-
const templateUrl = select('Template Archive URL', templates, 'https://parserv2--templates-accordproject.netlify.app/archives/fixed-interests@0.5.0.cta');
85+
const templateUrl = select('Template Archive URL', templates, 'https://templates.accordproject.org/archives/latedeliveryandpenalty@0.16.0.cta');
8686
const lockText = boolean('lockText', true);
8787
const readOnly = boolean('readOnly', false);
8888
const [slateValue, setSlateValue] = useState( () => {
@@ -158,24 +158,26 @@ This is text. This is *italic* text. This is **bold** text. This is a [link](htt
158158

159159
const found = val.children[1].children.filter(element => element.type === 'formula' && element.data.name === 'formula');
160160

161+
action('Clause -> Parse: ')({
162+
'Clause': ciceroClause,
163+
'AST': ast,
164+
'Draft': something
165+
});
166+
167+
/* XXX What do we do with this? - JS
161168
const path = ReactEditor.findPath(newReduxState.editor, found[0]);
162169
const newConditional = {
163170
object: 'inline',
164171
type: 'formula',
165172
data: { name: "formula", elementType: "Double" },
166173
children: [{ object: "text", text: `${Math.round(Math.random() * 10)}` }]
167174
};
168-
action('Clause -> Parse: ')({
169-
'Clause': ciceroClause,
170-
'AST': ast,
171-
'Draft': something
172-
});
173175
174176
Editor.withoutNormalizing(newReduxState.editor, () => {
175177
Transforms.removeNodes(newReduxState.editor, { at: path });
176178
Transforms.insertNodes(newReduxState.editor, newConditional, { at: path });
177179
});
178-
180+
*/
179181
}, [editor]);
180182

181183
const onClauseUpdatedHandler = useCallback((val) => {

packages/storybook/src/stories/7-Library.stories.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ export const homogeneous = () => {
99
{
1010
uri: text(
1111
"First template's Uri",
12-
"https://templates.accordproject.org/archives/acceptance-of-delivery@0.13.1.cta"
12+
"https://templates.accordproject.org/archives/acceptance-of-delivery@0.14.0.cta"
1313
),
1414
name: text("First template's Name", "Acceptance of Delivery"),
15-
version: text("First template's Version", "0.20.10"),
15+
version: text("First template's Version", "0.14.0"),
1616
description: text(
1717
"First template's Description",
1818
"This clause allows the receiver of goods to inspect them for a given time period after delivery."
@@ -21,26 +21,26 @@ export const homogeneous = () => {
2121
},
2222
{
2323
uri:
24-
"https://templates.accordproject.org/archives/car-rental-tr@0.10.1.cta",
24+
"https://templates.accordproject.org/archives/car-rental-tr@0.11.0.cta",
2525
name: "Car Rental (TR)",
26-
version: "0.20.10",
26+
version: "0.11.0",
2727
description: "Ta Simple Car Rental Contract in Turkish Language",
2828
itemType: 'template'
2929
},
3030
{
3131
uri:
32-
"https://templates.accordproject.org/archives/certificate-of-incorporation@0.3.1.cta",
32+
"https://templates.accordproject.org/archives/certificate-of-incorporation@0.4.0.cta",
3333
name: "Certificate Of Incorporation",
34-
version: "0.20.10",
34+
version: "0.4.0",
3535
description: "This is a sample Certificate of Incorporation.",
3636
itemType: 'template'
3737
},
3838
{
3939
uri:
40-
"ap://eat-apples@0.10.1#fc26b60d5cb6c23c4e85ea643a6931bca96c42ec94e467df522d80fb79864353",
40+
"ap://eat-apples@0.11.0#cecf1c8205a8f47bdbbade47046cf1661b4b8ba293f06a02dd43cf4481cc8639",
4141
displayName: "Eat Apples",
4242
name: 'eat-apples',
43-
version: "0.10.1",
43+
version: "0.11.0",
4444
description: "This is a sample Certificate of Incorporation.",
4545
itemType: 'template'
4646
}

0 commit comments

Comments
 (0)