Skip to content

Commit

Permalink
chore(dep) Update Cicero/Markdown Transform dependencies, adjusts sto…
Browse files Browse the repository at this point in the history
…ries

Signed-off-by: Jerome Simeon <[email protected]>
  • Loading branch information
jeromesimeon committed Aug 4, 2020
1 parent f23f988 commit 8e30157
Show file tree
Hide file tree
Showing 6 changed files with 109 additions and 109 deletions.
160 changes: 79 additions & 81 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "0.93.1",
"private": true,
"dependencies": {
"@accordproject/cicero-core": "0.20.11-20200710202320",
"@accordproject/markdown-slate": "0.11.4-20200710155447",
"@accordproject/markdown-transform": "0.11.4-20200710155447",
"@accordproject/cicero-core": "^0.21.0",
"@accordproject/markdown-slate": "^0.12.0",
"@accordproject/markdown-transform": "^0.12.0",
"@accordproject/ui-components": "0.93.1",
"@accordproject/ui-concerto": "0.93.1",
"@accordproject/ui-markdown-editor": "0.93.1",
Expand Down
24 changes: 13 additions & 11 deletions packages/storybook/src/stories/4-ContractEditor.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,17 @@ const Wrapper = styled.div`
export default { title: 'Contract Editor' };

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

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

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

action('Clause -> Parse: ')({
'Clause': ciceroClause,
'AST': ast,
'Draft': something
});

/* XXX What do we do with this? - JS
const path = ReactEditor.findPath(newReduxState.editor, found[0]);
const newConditional = {
object: 'inline',
type: 'formula',
data: { name: "formula", elementType: "Double" },
children: [{ object: "text", text: `${Math.round(Math.random() * 10)}` }]
};
action('Clause -> Parse: ')({
'Clause': ciceroClause,
'AST': ast,
'Draft': something
});
Editor.withoutNormalizing(newReduxState.editor, () => {
Transforms.removeNodes(newReduxState.editor, { at: path });
Transforms.insertNodes(newReduxState.editor, newConditional, { at: path });
});

*/
}, [editor]);

const onClauseUpdatedHandler = useCallback((val) => {
Expand Down
16 changes: 8 additions & 8 deletions packages/storybook/src/stories/7-Library.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ export const homogeneous = () => {
{
uri: text(
"First template's Uri",
"https://templates.accordproject.org/archives/acceptance-of-delivery@0.13.1.cta"
"https://templates.accordproject.org/archives/acceptance-of-delivery@0.14.0.cta"
),
name: text("First template's Name", "Acceptance of Delivery"),
version: text("First template's Version", "0.20.10"),
version: text("First template's Version", "0.14.0"),
description: text(
"First template's Description",
"This clause allows the receiver of goods to inspect them for a given time period after delivery."
Expand All @@ -21,26 +21,26 @@ export const homogeneous = () => {
},
{
uri:
"https://templates.accordproject.org/archives/car-rental-tr@0.10.1.cta",
"https://templates.accordproject.org/archives/car-rental-tr@0.11.0.cta",
name: "Car Rental (TR)",
version: "0.20.10",
version: "0.11.0",
description: "Ta Simple Car Rental Contract in Turkish Language",
itemType: 'template'
},
{
uri:
"https://templates.accordproject.org/archives/certificate-of-incorporation@0.3.1.cta",
"https://templates.accordproject.org/archives/certificate-of-incorporation@0.4.0.cta",
name: "Certificate Of Incorporation",
version: "0.20.10",
version: "0.4.0",
description: "This is a sample Certificate of Incorporation.",
itemType: 'template'
},
{
uri:
"ap://eat-apples@0.10.1#fc26b60d5cb6c23c4e85ea643a6931bca96c42ec94e467df522d80fb79864353",
"ap://eat-apples@0.11.0#cecf1c8205a8f47bdbbade47046cf1661b4b8ba293f06a02dd43cf4481cc8639",
displayName: "Eat Apples",
name: 'eat-apples',
version: "0.10.1",
version: "0.11.0",
description: "This is a sample Certificate of Incorporation.",
itemType: 'template'
}
Expand Down
Loading

0 comments on commit 8e30157

Please sign in to comment.