Skip to content

Commit

Permalink
chore(dep) Upgrade to latest Concert with metamodel support
Browse files Browse the repository at this point in the history
Signed-off-by: jeromesimeon <[email protected]>
  • Loading branch information
jeromesimeon committed Jul 26, 2021
1 parent d24ee4c commit 74f014e
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 7 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion packages/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.98.0",
"private": true,
"dependencies": {
"@accordproject/concerto-core": "1.0.5-20210721165725",
"@accordproject/concerto-core": "1.0.5-20210726212028",
"@accordproject/cicero-core": "0.22.0",
"@accordproject/markdown-slate": "0.13.0",
"@accordproject/markdown-transform": "0.13.0",
Expand Down
31 changes: 30 additions & 1 deletion packages/storybook/src/stories/3-ConcertoForm.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,35 @@ export default {
}
};

const initialJson = null;

// const initialJson = {
// "$class": "concerto.metamodel.ModelFile",
// "namespace": "org.litle.test",
// "imports": [],
// "declarations": [
// {
// "$class": "concerto.metamodel.ConceptDeclaration",
// "isAbstract": false,
// "name": "Person",
// "fields": [
// {
// "$class": "concerto.metamodel.StringFieldDeclaration",
// "name": "name",
// "isArray": false,
// "isOptional": false
// },
// {
// "$class": "concerto.metamodel.IntegerFieldDeclaration",
// "name": "age",
// "isArray": false,
// "isOptional": false
// }
// ]
// }
// ]
// };

export const SimpleExample = () => {
const readOnly = boolean('Read-only', false);
const type = text('Type', 'test.Person');
Expand Down Expand Up @@ -117,7 +146,7 @@ export const ModelBuilder = () => {
models={[model]}
options={options}
type={type}
json={null}
json={initialJson}
onValueChange={handleValueChange}
/>
</div>
Expand Down
4 changes: 3 additions & 1 deletion packages/storybook/src/stories/concerto.models.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ concept DecoratorBoolean extends DecoratorLiteral {
concept TypeIdentifier {
@FormEditor("selectOptions", "types")
o String name default="Concept"
@FormEditor( "hide", true)
o String fullyQualifiedName optional
}
concept DecoratorIdentifier extends DecoratorLiteral {
Expand Down Expand Up @@ -201,7 +203,7 @@ concept ImportAll extends Import {
}
concept ImportType extends Import {
o TypeIdentifier identifier
o String name
}
concept ModelFile {
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-concerto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.98.0",
"private": false,
"dependencies": {
"@accordproject/concerto-core": "1.0.5-20210721165725",
"@accordproject/concerto-core": "1.0.5-20210726212028",
"@babel/runtime": "^7.10.3",
"lodash.get": "^4.4.2",
"lodash.isequal": "^4.5.0",
Expand Down

0 comments on commit 74f014e

Please sign in to comment.