-
-And
html.
-
-# Smart Clause (Heading One)
-
-And below is a **clause**.
-
-{{#clause f30a9f03-8d0f-481a-81bb-4a64f46ab297 src="ap://acceptance-of-delivery@0.14.0#5d2fd778622e85e0f9224be383df3db2d4dfdc878d70b94a0a6231d53b3bf5ee"}}
-Acceptance of Delivery.
-----
-
-"Barilla" will be deemed to have completed its delivery obligations
-if in "Acme"'s opinion, the "Pasta" satisfies the
-Acceptance Criteria, and "Acme" notifies "Barilla" in writing
-that it is accepting the "Pasta".
-
-Inspection and Notice.
-----
-
-"Acme" will have 10 Business Days to inspect and
-evaluate the "Pasta" on the delivery date before notifying
-"Barilla" that it is either accepting or rejecting the
-"Pasta".
-
-Acceptance Criteria.
-----
-
-The "Acceptance Criteria" are the specifications the "Pasta"
-must meet for the "Barilla" to comply with its requirements and
-obligations under this agreement, detailed in "Attachment X", attached
-to this agreement.
-{{/clause}}
-
-## Image URL (Heading Two)
-
-This is an image link using a http url.
-
-
-
-This is an image link using an unreachable http url - to test "offline" mode.
-
-
-
-### Image Data URI (Heading Three)
-
-This is an image link using a data uri.
-
-
-
-#### Ordered List (Heading Four)
-
-This is is an ordered list:
-
-1. one
-2. two
-3. three
-
-##### Unordered List (Heading Five)
-
-This is an unordered list:
-
-- apples
-- pears
-- peaches
-
-###### Bold Italic (Heading Six)
-
-This is ***bold italic*** text. More text.
-
-###### Justified Long Text (Heading Six)
-
-Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Metus dictum at tempor commodo ullamcorper. Arcu odio ut sem nulla. Sapien et ligula ullamcorper malesuada proin libero. Etiam sit amet nisl purus in mollis nunc sed id. Hendrerit gravida rutrum quisque non tellus orci ac auctor augue. Vitae elementum curabitur vitae nunc sed velit dignissim sodales ut. Egestas maecenas pharetra convallis posuere. Risus nullam eget felis eget nunc. Dignissim diam quis enim lobortis scelerisque fermentum dui faucibus. Eu mi bibendum neque egestas. Interdum posuere lorem ipsum dolor sit amet consectetur adipiscing. Viverra aliquet eget sit amet tellus cras adipiscing enim. Suspendisse ultrices gravida dictum fusce.
-
-Augue lacus viverra vitae congue eu consequat ac felis. Enim lobortis scelerisque fermentum dui faucibus in ornare. Tempus urna et pharetra pharetra. Et tortor at risus viverra adipiscing at in. Mauris pellentesque pulvinar pellentesque habitant morbi tristique senectus et netus. Nibh tellus molestie nunc non blandit massa enim nec dui. Semper feugiat nibh sed pulvinar proin gravida. Enim ut sem viverra aliquet. Tristique et egestas quis ipsum suspendisse ultrices gravida. Mi bibendum neque egestas congue quisque egestas diam in.
-
-Odio eu feugiat pretium nibh. Imperdiet proin fermentum leo vel orci porta non. Sit amet cursus sit amet dictum sit amet justo donec. Pharetra et ultrices neque ornare. Commodo nulla facilisi nullam vehicula ipsum. Consectetur libero id faucibus nisl. Magna fringilla urna porttitor rhoncus. Et netus et malesuada fames ac. Eget est lorem ipsum dolor sit amet. Tortor at risus viverra adipiscing at in tellus.
-
-Rhoncus urna neque viverra justo. Commodo nulla facilisi nullam vehicula ipsum a arcu cursus. Sit amet consectetur adipiscing elit. Eu tincidunt tortor aliquam nulla facilisi. Vitae justo eget magna fermentum iaculis eu non diam. Risus ultricies tristique nulla aliquet enim. Diam in arcu cursus euismod quis. Arcu dui vivamus arcu felis bibendum ut tristique et. Tincidunt arcu non sodales neque sodales ut. Penatibus et magnis dis parturient montes nascetur ridiculus mus. Auctor eu augue ut lectus arcu bibendum at varius vel. Sed risus ultricies tristique nulla. Turpis tincidunt id aliquet risus feugiat in. Donec et odio pellentesque diam volutpat. Euismod nisi porta lorem mollis aliquam. Tellus mauris a diam maecenas sed enim ut. Orci a scelerisque purus semper eget duis.
-
-Elit scelerisque mauris pellentesque pulvinar pellentesque habitant morbi tristique senectus. Aliquam malesuada bibendum arcu vitae elementum curabitur. Adipiscing bibendum est ultricies integer quis auctor elit sed. Laoreet sit amet cursus sit amet dictum sit amet justo. Tristique sollicitudin nibh sit amet commodo. Nisl tincidunt eget nullam non nisi est sit amet. Feugiat nibh sed pulvinar proin. Morbi tristique senectus et netus. Pellentesque eu tincidunt tortor aliquam. Congue eu consequat ac felis donec et odio. Pretium nibh ipsum consequat nisl. Ultrices vitae auctor eu augue ut lectus arcu bibendum at. Donec adipiscing tristique risus nec. Ultricies mi eget mauris pharetra et ultrices neque ornare aenean. Ac felis donec et odio pellentesque diam volutpat commodo sed. Id aliquet risus feugiat in ante metus. Mi quis hendrerit dolor magna eget. Non arcu risus quis varius quam quisque id diam.
\ No newline at end of file
diff --git a/packages/markdown-pdf/test/data/contract2.md b/packages/markdown-pdf/test/data/contract2.md
deleted file mode 100644
index dcd040db..00000000
--- a/packages/markdown-pdf/test/data/contract2.md
+++ /dev/null
@@ -1,45 +0,0 @@
-Cicero 0.21 Migration
-====
-
-Demo Day Aug 19th!
-----
-
-## Smart Clause One
-
-{{#clause f30a9f03-8d0f-481a-81bb-4a64f46ab297 src="ap://acceptance-of-delivery@0.14.0#5d2fd778622e85e0f9224be383df3db2d4dfdc878d70b94a0a6231d53b3bf5ee"}}
-Acceptance of Delivery.
-----
-
-"Barilla" will be deemed to have completed its delivery obligations
-if in "Acme"'s opinion, the "Pasta" satisfies the
-Acceptance Criteria, and "Acme" notifies "Barilla" in writing
-that it is accepting the "Pasta".
-
-Inspection and Notice.
-----
-
-"Acme" will have 10 Business Days to inspect and
-evaluate the "Pasta" on the delivery date before notifying
-"Barilla" that it is either accepting or rejecting the
-"Pasta".
-
-Acceptance Criteria.
-----
-
-The "Acceptance Criteria" are the specifications the "Pasta"
-must meet for the "Barilla" to comply with its requirements and
-obligations under this agreement, detailed in "Attachment X", attached
-to this agreement.
-{{/clause}}
-
-## Smart Clause Two
-
-{{#clause 1e3ba696-a406-4eb4-ac65-b969a7f950ae src="deyway://test-fixed-interests@0.1.0#4a2690f74dea49b151a410a2d0ea23bbd7c3860c8e9daf240747ec45f46383de"}}
-Fixed rate loan
-----
-
-This is a *fixed interest* loan to the amount of £100,000.00
-at the yearly interest rate of 2.5%
-with a loan term of 15,
-and monthly payments of {{%"£667.00"%}}
-{{/clause}}
\ No newline at end of file
diff --git a/packages/markdown-pdf/test/data/fixedinterest.json b/packages/markdown-pdf/test/data/fixedinterest.json
deleted file mode 100644
index 93fab355..00000000
--- a/packages/markdown-pdf/test/data/fixedinterest.json
+++ /dev/null
@@ -1,93 +0,0 @@
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "xmlns": "http://commonmark.org/xml/1.0",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Fixed rate loan"
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "This is a "
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Emph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "fixed interest"
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " loan to the amount of "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.FormattedVariable",
- "format": "K0,0.00",
- "value": "£100,000.00",
- "name": "loanAmount",
- "elementType": "org.accordproject.money.MonetaryAmount"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "at the yearly interest rate of "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "2.5",
- "name": "rate",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "with a loan term of "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "15",
- "name": "loanDuration",
- "elementType": "Integer"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ","
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "and monthly payments of "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Formula",
- "value": " eval( monthlyPaymentFormula(loanAmount,rate,loanDuration) as \"K0,0.00\" ) ",
- "dependencies": [],
- "code": " monthlyPaymentFormula(loanAmount,rate,loanDuration) as \"K0,0.00\" ",
- "name": "formula"
- }
- ]
- }
- ]
-}
\ No newline at end of file
diff --git a/packages/markdown-pdf/test/data/latedelivery.json b/packages/markdown-pdf/test/data/latedelivery.json
deleted file mode 100644
index 8ea13aa6..00000000
--- a/packages/markdown-pdf/test/data/latedelivery.json
+++ /dev/null
@@ -1,202 +0,0 @@
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Late Delivery and Penalty."
- }
- ],
- "level": "2"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "In case of delayed delivery"
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Conditional",
- "name": "forceMajeure",
- "isTrue": true,
- "whenTrue": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " except for Force Majeure cases,"
- }
- ],
- "whenFalse": [],
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " except for Force Majeure cases,"
- }
- ]
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "name": "partyId",
- "value": "\"Dan\"",
- "elementType": "String"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " (the Seller) shall pay to "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "name": "partyId",
- "value": "\"Steve\"",
- "elementType": "String"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " (the Buyer) for every "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "name": "amount",
- "value": "2",
- "elementType": "Long"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.EnumVariable",
- "name": "unit",
- "value": "days",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks"
- ],
- "elementType": "org.accordproject.time.TemporalUnit"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "of delay penalty amounting to "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "name": "penaltyPercentage",
- "value": "10.5",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "% of the total value of the Equipment"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "whose delivery has been delayed. Any fractional part of a "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.EnumVariable",
- "name": "fractionalPart",
- "value": "days",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks"
- ],
- "elementType": "org.accordproject.time.TemporalUnit"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " is to be"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "considered a full "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.EnumVariable",
- "name": "fractionalPart",
- "value": "days",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks"
- ],
- "elementType": "org.accordproject.time.TemporalUnit"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ". The total amount of penalty shall not however,"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "exceed "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "name": "capPercentage",
- "value": "55.0",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "% of the total value of the Equipment involved in late delivery."
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "If the delay is more than "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "name": "amount",
- "value": "15",
- "elementType": "Long"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.EnumVariable",
- "name": "unit",
- "value": "days",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks"
- ],
- "elementType": "org.accordproject.time.TemporalUnit"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ", the Buyer is entitled to terminate this Contract."
- }
- ]
- }
- ],
- "xmlns": "http://commonmark.org/xml/1.0"
-}
\ No newline at end of file
diff --git a/packages/markdown-pdf/test/data/tables.md b/packages/markdown-pdf/test/data/tables.md
deleted file mode 100644
index 5e56c198..00000000
--- a/packages/markdown-pdf/test/data/tables.md
+++ /dev/null
@@ -1,14 +0,0 @@
-This is a simple table:
-
-| Header1 | Header 2 |
-| ----------- | ----------- |
-| Simple | Table |
-| Paragraph | Text |
-
-This is a complex table:
-
-| Column1 | Column 2 |
-| ----------- | ----------- |
-| `code block` |  |
-| Paragraph | **Bold content** |
-| [link](http://clause.io) | *Italics* |
\ No newline at end of file
diff --git a/packages/markdown-pdf/webpack.config.js b/packages/markdown-pdf/webpack.config.js
deleted file mode 100644
index dcc2ef1d..00000000
--- a/packages/markdown-pdf/webpack.config.js
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-'use strict';
-
-let path = require('path');
-const webpack = require('webpack');
-const packageJson = require('./package.json');
-
-module.exports = {
- entry: {
- client: [
- './index.dist.js'
- ]
- },
- output: {
- path: path.join(__dirname, 'umd'),
- filename: 'markdown-pdf.js',
- library: {
- name: 'markdown-pdf',
- type: 'umd',
- },
- umdNamedDefine: true,
- },
- plugins: [
- new webpack.BannerPlugin(`Markdown Transform v${packageJson.version}
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.`),
- new webpack.DefinePlugin({
- 'process.env': {
- 'NODE_ENV': JSON.stringify('production')
- }
- }),
- new webpack.IgnorePlugin({
- resourceRegExp: /^\.$/,
- contextRegExp: /jsdom$/,
- })
- ],
- module: {
- rules: [
- {
- test: /\.js$/,
- include: [path.join(__dirname, 'src')],
- use: ['babel-loader']
- },
- {
- test: /\.ne$/,
- use:['raw-loader']
- }
- ]
- },
- resolve: {
- fallback: {
- 'fs': false,
- 'tls': false,
- 'net': false,
- 'path': false,
- 'os': false,
- 'util': false,
- 'url': false,
- 'crypto': require.resolve('crypto-browserify'),
- 'stream': require.resolve('stream-browserify'),
- }
- }
-};
\ No newline at end of file
diff --git a/packages/markdown-slate/.eslintignore b/packages/markdown-slate/.eslintignore
deleted file mode 100644
index e0114b5e..00000000
--- a/packages/markdown-slate/.eslintignore
+++ /dev/null
@@ -1,6 +0,0 @@
-coverage
-node_modules
-out
-umd
-test/data
-scripts
diff --git a/packages/markdown-slate/.eslintrc.yml b/packages/markdown-slate/.eslintrc.yml
deleted file mode 100644
index ec0c5d88..00000000
--- a/packages/markdown-slate/.eslintrc.yml
+++ /dev/null
@@ -1,47 +0,0 @@
-env:
- es6: true
- node: true
- mocha: true
-extends: 'eslint:recommended'
-parserOptions:
- ecmaVersion: 12
- sourceType: 'script'
-rules:
- indent:
- - error
- - 4
- linebreak-style:
- - warn
- - unix
- quotes:
- - error
- - single
- semi:
- - error
- - always
- no-unused-vars:
- - error
- - args: none
- no-console: warn
- curly: error
- eqeqeq: error
- no-throw-literal: error
- strict: error
- no-var: error
- dot-notation: error
- no-tabs: error
- no-trailing-spaces: error
- # no-use-before-define: error
- no-useless-call: error
- no-with: error
- operator-linebreak: error
- require-jsdoc:
- - error
- - require:
- ClassDeclaration: true
- MethodDefinition: true
- FunctionDeclaration: true
- valid-jsdoc:
- - error
- - requireReturn: false
- yoda: error
diff --git a/packages/markdown-slate/.gitignore b/packages/markdown-slate/.gitignore
deleted file mode 100644
index 7b72ec14..00000000
--- a/packages/markdown-slate/.gitignore
+++ /dev/null
@@ -1,80 +0,0 @@
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-.DS_Store
-
-# Downloaded model files
-# **/models/@*.cto
-
-# Logs
-logs
-*.log
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-
-# Runtime data
-pids
-*.pid
-*.seed
-*.pid.lock
-
-# Directory for instrumented libs generated by jscoverage/JSCover
-lib-cov
-
-# Coverage directory used by tools like istanbul
-coverage
-
-# nyc test coverage
-.nyc_output
-
-# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
-.grunt
-
-# Bower dependency directory (https://bower.io/)
-bower_components
-
-# node-waf configuration
-.lock-wscript
-
-# Compiled binary addons (http://nodejs.org/api/addons.html)
-build/Release
-
-# Dependency directories
-node_modules/
-jspm_packages/
-
-# Typescript v1 declaration files
-typings/
-
-# Optional npm cache directory
-.npm
-
-# Optional eslint cache
-.eslintcache
-
-# Optional REPL history
-.node_repl_history
-
-# Output of 'npm pack'
-*.tgz
-
-# Yarn Integrity file
-.yarn-integrity
-
-# User Data
-userdata.json
-
-# build output
-umd
\ No newline at end of file
diff --git a/packages/markdown-slate/HEADER b/packages/markdown-slate/HEADER
deleted file mode 100644
index e1971c44..00000000
--- a/packages/markdown-slate/HEADER
+++ /dev/null
@@ -1,13 +0,0 @@
-/*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
diff --git a/packages/markdown-slate/LICENSE b/packages/markdown-slate/LICENSE
deleted file mode 100644
index 8dada3ed..00000000
--- a/packages/markdown-slate/LICENSE
+++ /dev/null
@@ -1,201 +0,0 @@
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "{}"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright {yyyy} {name of copyright owner}
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/packages/markdown-slate/README.md b/packages/markdown-slate/README.md
deleted file mode 100644
index 60772762..00000000
--- a/packages/markdown-slate/README.md
+++ /dev/null
@@ -1,22 +0,0 @@
-# Slate Transformer
-
-Use `SlateTransformer` to transform a CiceroMark DOM to/from a JSON representation for the Slate DOM (version 0.4x.x).
-
-## Installation
-
-```
-npm install @accordproject/markdown-slate --save
-```
-
-## Usage
-
-``` javascript
-const SlateTransformer = require('@accordproject/markdown-slate').SlateTransformer;
-slateTransformer = new SlateTransformer();
-const slateValue = slateTransformer.fromMarkdown('test
');
-```
-
-## License
-Accord Project source code files are made available under the Apache License, Version 2.0 (Apache-2.0), located in the LICENSE file. Accord Project documentation files are made available under the Creative Commons Attribution 4.0 International License (CC-BY-4.0), available at http://creativecommons.org/licenses/by/4.0/.
-
-© 2017-2019 Clause, Inc.
diff --git a/packages/markdown-slate/header.md b/packages/markdown-slate/header.md
deleted file mode 100644
index 0b2e1ff6..00000000
--- a/packages/markdown-slate/header.md
+++ /dev/null
@@ -1,2 +0,0 @@
-## License
-Accord Project source code files are made available under the Apache License, Version 2.0 (Apache-2.0), located in the LICENSE file. Accord Project documentation files are made available under the Creative Commons Attribution 4.0 International License (CC-BY-4.0), available at http://creativecommons.org/licenses/by/4.0/.
\ No newline at end of file
diff --git a/packages/markdown-slate/header.txt b/packages/markdown-slate/header.txt
deleted file mode 100644
index c90765b4..00000000
--- a/packages/markdown-slate/header.txt
+++ /dev/null
@@ -1,11 +0,0 @@
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
diff --git a/packages/markdown-slate/index.js b/packages/markdown-slate/index.js
deleted file mode 100644
index 2df4b23f..00000000
--- a/packages/markdown-slate/index.js
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-'use strict';
-
-/**
- * Export the framework and plugins
- * @module markdown-transform
- */
-
-module.exports.SlateTransformer = require('./lib/SlateTransformer');
diff --git a/packages/markdown-slate/jest.config.js b/packages/markdown-slate/jest.config.js
deleted file mode 100644
index 958bd62d..00000000
--- a/packages/markdown-slate/jest.config.js
+++ /dev/null
@@ -1,197 +0,0 @@
-/*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-'use strict';
-// For a detailed explanation regarding each configuration property, visit:
-// https://jestjs.io/docs/en/configuration.html
-
-module.exports = {
- // All imported modules in your tests should be mocked automatically
- // automock: false,
-
- // Stop running tests after `n` failures
- // bail: 0,
-
- // Respect "browser" field in package.json when resolving modules
- // browser: false,
-
- // The directory where Jest should store its cached dependency information
- // cacheDirectory: "/private/var/folders/tv/4ljndl3s2jg90nxd8h7f3bgr0000gn/T/jest_dx",
-
- // Automatically clear mock calls and instances between every test
- clearMocks: true,
-
- // Indicates whether the coverage information should be collected while executing the test
- // collectCoverage: false,
-
- // An array of glob patterns indicating a set of files for which coverage information should be collected
- collectCoverageFrom: [ 'lib/**/*.js' ],
-
- // The directory where Jest should output its coverage files
- coverageDirectory: 'coverage',
-
- // An array of regexp pattern strings used to skip coverage collection
- coveragePathIgnorePatterns: [
- '/node_modules/'
- ],
-
- // A list of reporter names that Jest uses when writing coverage reports
- coverageReporters: [
- 'json',
- 'text',
- 'lcov',
- 'html'
- ],
-
- // An object that configures minimum threshold enforcement for coverage results
- // coverageThreshold: null,
-
- // A path to a custom dependency extractor
- // dependencyExtractor: null,
-
- // Make calling deprecated APIs throw helpful error messages
- // errorOnDeprecated: false,
-
- // Force coverage collection from ignored files using an array of glob patterns
- // forceCoverageMatch: [],
-
- // A path to a module which exports an async function that is triggered once before all test suites
- // globalSetup: null,
-
- // A path to a module which exports an async function that is triggered once after all test suites
- // globalTeardown: null,
-
- // A set of global variables that need to be available in all test environments
- // globals: {},
-
- // An array of directory names to be searched recursively up from the requiring module's location
- // moduleDirectories: [
- // "node_modules"
- // ],
-
- // An array of file extensions your modules use
- // moduleFileExtensions: [
- // "js",
- // "json",
- // "jsx",
- // "ts",
- // "tsx",
- // "node"
- // ],
-
- // An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
- // modulePathIgnorePatterns: [],
-
- // Activates notifications for test results
- // notify: false,
-
- // An enum that specifies notification mode. Requires { notify: true }
- // notifyMode: "failure-change",
-
- // A preset that is used as a base for Jest's configuration
- // preset: null,
-
- // Run tests from one or more projects
- // projects: null,
-
- // Use this configuration option to add custom reporters to Jest
- // reporters: undefined,
-
- // Automatically reset mock state between every test
- // resetMocks: false,
-
- // Reset the module registry before running each individual test
- // resetModules: false,
-
- // A path to a custom resolver
- // resolver: null,
-
- // Automatically restore mock state between every test
- // restoreMocks: false,
-
- // The root directory that Jest should scan for tests and modules within
- // rootDir: null,
-
- // A list of paths to directories that Jest should use to search for files in
- // roots: [
- // "
"
- // ],
-
- // Allows you to use a custom runner instead of Jest's default test runner
- // runner: "jest-runner",
-
- // The paths to modules that run some code to configure or set up the testing environment before each test
- // setupFiles: [],
-
- // A list of paths to modules that run some code to configure or set up the testing framework before each test
- // setupFilesAfterEnv: [],
-
- // A list of paths to snapshot serializer modules Jest should use for snapshot testing
- // snapshotSerializers: [],
-
- // The test environment that will be used for testing
- testEnvironment: 'node',
-
- // Options that will be passed to the testEnvironment
- // testEnvironmentOptions: {},
-
- // Adds a location field to test results
- // testLocationInResults: false,
-
- // The glob patterns Jest uses to detect test files
- // testMatch: [
- // "**/__tests__/**/*.[jt]s?(x)",
- // "**/?(*.)+(spec|test).[tj]s?(x)"
- // ],
-
- // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
- // testPathIgnorePatterns: [
- // "/node_modules/"
- // ],
-
- // The regexp pattern or array of patterns that Jest uses to detect test files
- // testRegex: [],
-
- // This option allows the use of a custom results processor
- // testResultsProcessor: null,
-
- // This option allows use of a custom test runner
- // testRunner: "jasmine2",
-
- // This option sets the URL for the jsdom environment. It is reflected in properties such as location.href
- // testURL: "http://localhost",
-
- // Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout"
- // timers: "real",
-
- // A map from regular expressions to paths to transformers
- // transform: null,
-
- // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
- // transformIgnorePatterns: [
- // "/node_modules/"
- // ],
-
- // An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
- // unmockedModulePathPatterns: undefined,
-
- // Indicates whether each individual test should be reported during the run
- // verbose: null,
-
- // An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
- // watchPathIgnorePatterns: [],
-
- // Whether to use watchman for file crawling
- // watchman: true,
-};
diff --git a/packages/markdown-slate/jsdoc.json b/packages/markdown-slate/jsdoc.json
deleted file mode 100644
index 0e564706..00000000
--- a/packages/markdown-slate/jsdoc.json
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- "tags": {
- "allowUnknownTags": true,
- "dictionaries": ["jsdoc", "closure"]
- },
- "source": {
- "include": [
- "./lib",
- "./index.js"
- ],
- "includePattern": ".+\\.js(doc|x)?$"
- },
- "plugins": ["plugins/markdown"],
- "templates": {
- "logoFile": "",
- "cleverLinks": false,
- "monospaceLinks": false,
- "dateFormat": "ddd MMM Do YYYY",
- "outputSourceFiles": true,
- "outputSourcePath": true,
- "systemName": "Accord Project Cicero SDK",
- "footer": "",
- "copyright": "Released under the Apache License v2.0",
- "navType": "vertical",
- "theme": "spacelab",
- "linenums": true,
- "collapseSymbols": false,
- "inverseNav": true,
- "protocol": "html://",
- "methodHeadingReturns": false
- },
- "markdown": {
- "parser": "gfm",
- "hardwrap": true
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/lib/CiceroMarkFromSlateVisitor.js b/packages/markdown-slate/lib/CiceroMarkFromSlateVisitor.js
deleted file mode 100644
index ab7fa429..00000000
--- a/packages/markdown-slate/lib/CiceroMarkFromSlateVisitor.js
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-'use strict';
-
-const FromSlateVisitor = require('./FromSlateVisitor');
-const ciceromarkfromslaterules = require('./ciceromarkfromslaterules');
-
-/**
- * Converts a Slate JSON to a CiceroMark DOM.
- */
-class CiceroMarkFromSlateVisitor extends FromSlateVisitor {
- /**
- * Constructor for a new slate visitor
- */
- constructor() {
- super(ciceromarkfromslaterules);
- }
-}
-
-module.exports = CiceroMarkFromSlateVisitor;
\ No newline at end of file
diff --git a/packages/markdown-slate/lib/CiceroMarkToSlateVisitor.js b/packages/markdown-slate/lib/CiceroMarkToSlateVisitor.js
deleted file mode 100644
index 805e9d18..00000000
--- a/packages/markdown-slate/lib/CiceroMarkToSlateVisitor.js
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-'use strict';
-
-const ToSlateVisitor = require('./ToSlateVisitor');
-const ciceromarktoslaterules = require('./ciceromarktoslaterules');
-
-/**
- * Converts a CiceroMark DOM to a Slate JSON.
- */
-class CiceroMarkToSlateVisitor extends ToSlateVisitor {
- /**
- * Constructor for a new slate visitor
- */
- constructor() {
- super(ciceromarktoslaterules);
- }
-}
-
-module.exports = CiceroMarkToSlateVisitor;
\ No newline at end of file
diff --git a/packages/markdown-slate/lib/CommonMarkFromSlateVisitor.js b/packages/markdown-slate/lib/CommonMarkFromSlateVisitor.js
deleted file mode 100644
index c8c54408..00000000
--- a/packages/markdown-slate/lib/CommonMarkFromSlateVisitor.js
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-'use strict';
-
-const FromSlateVisitor = require('./FromSlateVisitor');
-
-/**
- * Converts a Slate DOM to a CommonMark JSON.
- */
-class CommonMarkFromSlateVisitor extends FromSlateVisitor {
- /**
- * Constructor for a new slate visitor
- */
- constructor() {
- super();
- }
-}
-
-module.exports = CommonMarkFromSlateVisitor;
\ No newline at end of file
diff --git a/packages/markdown-slate/lib/CommonMarkToSlateVisitor.js b/packages/markdown-slate/lib/CommonMarkToSlateVisitor.js
deleted file mode 100644
index e64373f5..00000000
--- a/packages/markdown-slate/lib/CommonMarkToSlateVisitor.js
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-'use strict';
-
-const ToSlateVisitor = require('./ToSlateVisitor');
-
-/**
- * Converts a CommonMark DOM to a Slate JSON.
- */
-class CommonMarkToSlateVisitor extends ToSlateVisitor {
- /**
- * Constructor for a new slate visitor
- */
- constructor() {
- super();
- }
-}
-
-module.exports = CommonMarkToSlateVisitor;
\ No newline at end of file
diff --git a/packages/markdown-slate/lib/FromSlateVisitor.js b/packages/markdown-slate/lib/FromSlateVisitor.js
deleted file mode 100644
index 799f709b..00000000
--- a/packages/markdown-slate/lib/FromSlateVisitor.js
+++ /dev/null
@@ -1,100 +0,0 @@
-/*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-'use strict';
-
-const { CommonMarkModel } = require('@accordproject/markdown-common');
-
-const fromslateutil = require('./fromslateutil');
-const commonmarkfromslaterules = require('./commonmarkfromslaterules');
-
-/**
- * Converts a Slate DOM to a Markdown DOM
- */
-class FromSlateVisitor {
- /**
- * Constructor for a new visitor from slate
- * @param {*} rules - additional rules
- */
- constructor(rules) {
- this.rules = commonmarkfromslaterules;
- if (rules) {
- this.rules = Object.assign(this.rules,rules);
- }
- }
-
- /**
- * Converts a set of Slate child node to Markdown DOM (as JSON)
- * @param {*} value the Slate value
- * @returns {*} the Markdown DOM
- */
- fromSlate(value) {
-
- const result = {
- $class : `${CommonMarkModel.NAMESPACE}.Document`,
- xmlns : 'http://commonmark.org/xml/1.0',
- nodes : []
- };
- // convert the value to a plain object
- this.processChildren(result, value.document.children);
- return fromslateutil.removeEmptyParagraphs(result);
- }
-
- /**
- * Converts an array of Slate nodes, pushing them into the parent
- * @param {*} parent the parent CiceroMark DOM node
- * @param {*} nodes an array of Slate nodes
- */
- processChildren(parent, nodes) {
- if(!parent.nodes) {
- throw new Error(`Parent node doesn't have children ${JSON.stringify(parent)}`);
- }
- this.processNodes(parent.nodes, nodes);
- }
-
- /**
- * Converts an array of Slate nodes, pushing them into the parent
- * @param {*} target the target nodes
- * @param {*} nodes an array of Slate nodes
- */
- processNodes(target, nodes) {
- nodes.forEach((node, index) => {
- let result = null;
- let handleChildren = !(node.type === 'variable'); // XXX Can't remember why
-
- if('text' in node && !node.type) {
- result = fromslateutil.handleText(node);
- } else {
- const rule = this.rules[node.type];
- if (rule) {
- result = rule(node,this.processNodes);
- }
- }
-
- // process any children, attaching to first child if it exists (for list items)
- if(node.children && result && result.nodes && handleChildren) {
- this.processChildren(result.nodes[0] ? result.nodes[0] : result, node.children);
- if (result.nodes.length === 0) {
- result.nodes.push({$class : `${CommonMarkModel.NAMESPACE}.Text`, text : ''});
- }
- }
-
- if(result) {
- target.push(result);
- }
- });
- }
-}
-
-module.exports = FromSlateVisitor;
\ No newline at end of file
diff --git a/packages/markdown-slate/lib/SlateTransformer.js b/packages/markdown-slate/lib/SlateTransformer.js
deleted file mode 100644
index 2e8d15a0..00000000
--- a/packages/markdown-slate/lib/SlateTransformer.js
+++ /dev/null
@@ -1,186 +0,0 @@
-/*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-'use strict';
-
-const CiceroMarkTransformer = require('@accordproject/markdown-cicero').CiceroMarkTransformer;
-const TemplateMarkTransformer = require('@accordproject/markdown-template').TemplateMarkTransformer;
-
-const CiceroMarkFromSlateVisitor = require('./CiceroMarkFromSlateVisitor');
-const TemplateMarkFromSlateVisitor = require('./TemplateMarkFromSlateVisitor');
-const CiceroMarkToSlateVisitor = require('./CiceroMarkToSlateVisitor');
-const TemplateMarkToSlateVisitor = require('./TemplateMarkToSlateVisitor');
-
-/**
- * post processing for clause nodes
- * @param {object} node - the slate node
- * @return {obejct} the post processed nodes
- */
-function postProcessClauses(node) {
- const result = node;
-
- const CLAUSE = 'clause';
- const paragraphSpaceNodeJSON = {
- object: 'block',
- type: 'paragraph',
- data: {
- },
- children: [
- {
- object: 'text',
- text: ''
- }
- ]
- };
-
- // Find any clauses next to each other, force in a paragraph between
- if (result.document.children.length > 1) {
- let newArray = [];
- for (let i = 0; i <= result.document.children.length-1; i++) {
- newArray.push(result.document.children[i]);
- if (result.document.children[i].type === CLAUSE &&
- result.document.children[i + 1] &&
- result.document.children[i + 1].type === CLAUSE) {
- newArray.push(paragraphSpaceNodeJSON);
- }
- }
- result.document.children = newArray;
- }
-
- // If the final node is a clause, force in a paragraph after
- const lastNodeType = result.document.children[result.document.children.length - 1]
- ? result.document.children[result.document.children.length - 1].type
- : null;
-
- if (lastNodeType === CLAUSE) {
- result.document.children.push(paragraphSpaceNodeJSON);
- }
- return result;
-}
-
-/**
- * Converts a CiceroMark DOM to/from a Slate DOM.
- */
-class SlateTransformer {
- /**
- * Construct the Slate transformer.
- */
- constructor() {
- this.ciceroMarkTransformer = new CiceroMarkTransformer();
- this.templateMarkTransformer = new TemplateMarkTransformer();
- this.serializerCicero = this.ciceroMarkTransformer.getSerializer();
- this.serializerTemplate = this.templateMarkTransformer.getSerializer();
- }
-
- /**
- * Converts a CiceroMark DOM to a Slate DOM
- * @param {*} input - CiceroMark DOM
- * @returns {*} Slate JSON
- */
- fromCiceroMark(input) {
- if(!input.getType) {
- input = this.serializerCicero.fromJSON(input);
- }
-
- const parameters = {};
- parameters.serializer = this.serializerCicero;
- parameters.result = {};
- const visitor = new CiceroMarkToSlateVisitor();
- input.accept( visitor, parameters );
- const result = {
- document: parameters.result
- };
-
- return postProcessClauses(result);
- }
-
- /**
- * Converts a TemplateMark DOM to a Slate DOM
- * @param {*} input - TemplateMark DOM
- * @returns {*} Slate JSON
- */
- fromTemplateMark(input) {
- if(!input.getType) {
- input = this.serializerTemplate.fromJSON(input);
- }
-
- const parameters = {};
- parameters.serializer = this.serializerTemplate;
- parameters.result = {};
- const visitor = new TemplateMarkToSlateVisitor();
- input.accept( visitor, parameters );
- const result = {
- document: parameters.result
- };
-
- return postProcessClauses(result);
- }
-
- /**
- * Converts a Slate JSON to CiceroMark DOM
- * @param {*} value - Slate json
- * @returns {*} the CiceroMark DOM
- */
- toCiceroMark(value) {
- const clonedValue = JSON.parse(JSON.stringify(value)); // Workaround in case value is immutable
- const visitor = new CiceroMarkFromSlateVisitor();
- return visitor.fromSlate(clonedValue);
- }
-
- /**
- * Converts a Slate JSON to TemplateMark DOM
- * @param {*} value - Slate json
- * @returns {*} the TemplateMark DOM
- */
- toTemplateMark(value) {
- const clonedValue = JSON.parse(JSON.stringify(value)); // Workaround in case value is immutable
- const visitor = new TemplateMarkFromSlateVisitor();
- return visitor.fromSlate(clonedValue);
- }
-
- /**
- * Converts a Slate JSON to a markdown string
- * @param {*} value - Slate json
- * @param {object} [options] - configuration options
- * @returns {*} markdown string
- */
- toMarkdown(value, options) {
- const ciceroMark = this.toCiceroMark(value);
- return this.ciceroMarkTransformer.toMarkdown(ciceroMark, options);
- }
-
- /**
- * Converts a Slate JSON to a markdown cicero string
- * @param {*} value - Slate json
- * @param {object} [options] - configuration options
- * @returns {*} markdown cicero string
- */
- toMarkdownCicero(value, options) {
- const ciceroMark = this.toCiceroMark(value);
- const ciceroMarkUnwrapped = this.ciceroMarkTransformer.toCiceroMarkUnwrapped(ciceroMark, options);
- return this.ciceroMarkTransformer.toMarkdownCicero(ciceroMarkUnwrapped, options);
- }
-
- /**
- * Converts a markdown string to a Slate JSON
- * @param {string} markdown - a markdown string
- * @returns {*} Slate json
- */
- fromMarkdown(markdown) {
- const ciceroMarkDom = this.ciceroMarkTransformer.fromMarkdown(markdown);
- return this.fromCiceroMark(ciceroMarkDom);
- }
-}
-
-module.exports = SlateTransformer;
\ No newline at end of file
diff --git a/packages/markdown-slate/lib/SlateTransformer.test.js b/packages/markdown-slate/lib/SlateTransformer.test.js
deleted file mode 100644
index ad0148a5..00000000
--- a/packages/markdown-slate/lib/SlateTransformer.test.js
+++ /dev/null
@@ -1,201 +0,0 @@
-/*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-'use strict';
-
-const fs = require('fs');
-const path = require('path');
-const SlateTransformer = require('./SlateTransformer');
-
-let slateTransformer = null;
-
-/* eslint-disable no-undef */
-// @ts-nocheck
-
-/**
- * Prepare the text for parsing (normalizes new lines, etc)
- * @param {string} input - the text for the clause
- * @return {string} - the normalized text for the clause
- */
-function normalizeNLs(input) {
- // we replace all \r and \n with \n
- let text = input.replace(/\r/gm,'');
- return text;
-}
-
-// @ts-ignore
-// eslint-disable-next-line no-undef
-beforeAll(() => {
- slateTransformer = new SlateTransformer();
-});
-
-/**
- * Get the name and contents of all slate test files for Markdown
- * @returns {*} an array of name/contents tuples
- */
-function getMarkdownSlateFiles() {
- const result = [];
- const files = fs.readdirSync(__dirname + '/../test/data/markdown/');
-
- files.forEach(function(file) {
- if(file.endsWith('.json')) {
- let contents = fs.readFileSync(__dirname + '/../test/data/markdown/' + file, 'utf8');
- result.push([file, contents]);
- }
- });
-
- return result;
-}
-
-describe('markdown <-> slate', () => {
- getMarkdownSlateFiles().forEach( ([file, jsonText], index) => {
- it(`converts ${file} to and from Markdown`, () => {
- const value = JSON.parse(jsonText);
- const ciceroMark = slateTransformer.toCiceroMark(value, 'json');
-
- // check no changes to cicero mark
- expect(ciceroMark).toMatchSnapshot(); // (1)
-
- // load expected markdown
- const extension = path.extname(file);
- const mdFile = path.basename(file,extension);
- const expectedMarkdown = fs.readFileSync(__dirname + '/../test/data/markdown/' + mdFile + '.md', 'utf8');
- expect(expectedMarkdown).toMatchSnapshot(); // (2)
-
- // convert the expected markdown to cicero mark and compare
- const expectedSlateValue = slateTransformer.fromMarkdown(expectedMarkdown);
- expect(expectedSlateValue).toMatchSnapshot(); // (3)
- // if(mdFile === 'image') {
- // console.log(JSON.stringify(expectedSlateValue, null, 4));
- // }
-
- const expectedCiceroMark = slateTransformer.toCiceroMark(expectedSlateValue, 'json');
- expect(expectedCiceroMark).toMatchSnapshot(); // (4)
- // if(mdFile === 'image') {
- // console.log('Expected expectedCiceroMark', JSON.stringify(expectedCiceroMark, null, 4));
- // }
-
- // check that ast created from slate and from the expected md is the same
- expect(ciceroMark).toEqual(expectedCiceroMark);
-
- // check roundtrip
- expect(expectedSlateValue).toEqual(value);
- });
- });
-});
-
-/**
- * Get the name and contents of all slate test files for CiceroMark
- * @returns {*} an array of name/contents tuples
- */
-function getCiceroMarkSlateFiles() {
- const result = [];
- const files = fs.readdirSync(__dirname + '/../test/data/ciceromark/');
-
- files.forEach(function(file) {
- if(file.endsWith('_slate.json')) {
- let contents = fs.readFileSync(__dirname + '/../test/data/ciceromark/' + file, 'utf8');
- result.push([file, contents]);
- }
- });
-
- return result;
-}
-
-/**
- * Get the name and contents of all slate test files for TemplateMark
- * @returns {*} an array of name/contents tuples
- */
-function getTemplateMarkSlateFiles() {
- const result = [];
- const files = fs.readdirSync(__dirname + '/../test/data/templatemark/');
-
- files.forEach(function(file) {
- if(file.endsWith('_slate.json')) {
- let contents = fs.readFileSync(__dirname + '/../test/data/templatemark/' + file, 'utf8');
- result.push([file, contents]);
- }
- });
-
- return result;
-}
-
-describe('ciceromark <-> slate', () => {
- getCiceroMarkSlateFiles().forEach( ([file, jsonText], index) => {
- it(`converts ${file} to and from CiceroMark`, () => {
- const value = JSON.parse(jsonText);
- const ciceroMark = slateTransformer.toCiceroMark(value, 'json');
-
- // check no changes to ciceromark
- expect(ciceroMark).toMatchSnapshot(); // (1)
-
- // load expected ciceromark
- const expectedCiceroMark = JSON.parse(fs.readFileSync(__dirname + '/../test/data/ciceromark/' + file.replace(/_slate.json$/,'_ciceromark.json'), 'utf8'));
- expect(expectedCiceroMark).toMatchSnapshot(); // (2)
-
- // convert the expected markdown to ciceromark and compare
- const expectedSlateValue = slateTransformer.fromCiceroMark(expectedCiceroMark);
- expect(expectedSlateValue).toMatchSnapshot(); // (3)
-
- // check that ast created from slate and from the expected md is the same
- expect(ciceroMark).toEqual(expectedCiceroMark);
-
- // check roundtrip
- expect(expectedSlateValue).toEqual(value);
- });
- });
-});
-
-describe('templatemark <-> slate', () => {
- getTemplateMarkSlateFiles().forEach( ([file, jsonText], index) => {
- it(`converts ${file} to and from TemplateMark`, () => {
- const value = JSON.parse(jsonText);
- const templateMark = slateTransformer.toTemplateMark(value, 'json');
-
- // check no changes to templatemark
- expect(templateMark).toMatchSnapshot(); // (1)
-
- // load expected templatemark
- const expectedTemplateMark = JSON.parse(fs.readFileSync(__dirname + '/../test/data/templatemark/' + file.replace(/_slate.json$/,'_templatemark.json'), 'utf8'));
- expect(expectedTemplateMark).toMatchSnapshot(); // (2)
-
- // convert the expected markdown to templatemark and compare
- const expectedSlateValue = slateTransformer.fromTemplateMark(expectedTemplateMark);
- expect(expectedSlateValue).toMatchSnapshot(); // (3)
-
- // check that ast created from slate and from the expected md is the same
- expect(templateMark).toEqual(expectedTemplateMark);
-
- // check roundtrip
- expect(expectedSlateValue).toEqual(value);
- });
- });
-});
-
-describe('slate -> markdown_cicero', () => {
- it('converts acceptance from slate to markdown cicero', () => {
- // load slate DOM
- const slateDom = JSON.parse(fs.readFileSync(__dirname + '/../test/data/ciceromark/acceptance_slate.json', 'utf8'));
- // load expected markdown cicero
- const expectedMarkdownCicero = normalizeNLs(fs.readFileSync(__dirname + '/../test/data/ciceromark/acceptance.md', 'utf8'));
-
- // convert the slate to markdown cicero and compare
- const actualMarkdownCicero = slateTransformer.toMarkdownCicero(slateDom);
- expect(actualMarkdownCicero).toMatchSnapshot(); // (3)
-
- // check roundtrip
- expect(actualMarkdownCicero).toEqual(expectedMarkdownCicero);
- });
-});
-
diff --git a/packages/markdown-slate/lib/TemplateMarkFromSlateVisitor.js b/packages/markdown-slate/lib/TemplateMarkFromSlateVisitor.js
deleted file mode 100644
index 00392a23..00000000
--- a/packages/markdown-slate/lib/TemplateMarkFromSlateVisitor.js
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-'use strict';
-
-const FromSlateVisitor = require('./FromSlateVisitor');
-const templatemarkfromslaterules = require('./templatemarkfromslaterules');
-
-/**
- * Converts a TemplateMark DOM to a Slate JSON.
- */
-class TemplateMarkFromSlateVisitor extends FromSlateVisitor {
- /**
- * Constructor for a new slate visitor
- */
- constructor() {
- super(templatemarkfromslaterules);
- }
-}
-
-module.exports = TemplateMarkFromSlateVisitor;
\ No newline at end of file
diff --git a/packages/markdown-slate/lib/TemplateMarkToSlateVisitor.js b/packages/markdown-slate/lib/TemplateMarkToSlateVisitor.js
deleted file mode 100644
index 4c3230a6..00000000
--- a/packages/markdown-slate/lib/TemplateMarkToSlateVisitor.js
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-'use strict';
-
-const ToSlateVisitor = require('./ToSlateVisitor');
-const templatemarktoslaterules = require('./templatemarktoslaterules');
-
-/**
- * Converts a TemplateMark DOM to a Slate JSON.
- */
-class TemplateMarkToSlateVisitor extends ToSlateVisitor {
- /**
- * Constructor for a new slate visitor
- */
- constructor() {
- super(templatemarktoslaterules);
- }
-}
-
-module.exports = TemplateMarkToSlateVisitor;
\ No newline at end of file
diff --git a/packages/markdown-slate/lib/ToSlateVisitor.js b/packages/markdown-slate/lib/ToSlateVisitor.js
deleted file mode 100644
index ccb610cc..00000000
--- a/packages/markdown-slate/lib/ToSlateVisitor.js
+++ /dev/null
@@ -1,88 +0,0 @@
-/*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-'use strict';
-
-const toslateutil = require('./toslateutil');
-const commonmarktoslaterules = require('./commonmarktoslaterules');
-
-/**
- * Converts a Markdown DOM to a Slate DOM
- */
-class ToSlateVisitor {
- /**
- * Constructor for a new visitor to slate
- * @param {*} rules - additional rules
- */
- constructor(rules) {
- this.rules = commonmarktoslaterules;
- if (rules) {
- this.rules = Object.assign(this.rules,rules);
- }
- }
-
- /**
- * Returns the processed children
- * @param {*} thing a concerto ast node
- * @param {string} fieldName name of the field containing the children
- * @param {*} parameters the parameters
- * @returns {*} an array of slate nodes
- */
- processChildren(thing,fieldName,parameters) {
- const result = [];
- const nodes = thing[fieldName] ? thing[fieldName] : [];
-
- nodes.forEach(node => {
- //console.log(`Processing ${thing.getType()} > ${node.getType()}`);
- const newParameters = {
- serializer: parameters.serializer,
- strong: parameters.strong,
- emph: parameters.emph,
- };
- node.accept(this, newParameters);
- if (Array.isArray(newParameters.result)) {
- Array.prototype.push.apply(result,newParameters.result);
- } else {
- result.push(newParameters.result);
- }
- });
-
- return result;
- }
-
- /**
- * Visit a concerto ast node and return the corresponding slate node
- * @param {*} thing the object being visited
- * @param {*} parameters the parameters
- */
- visit(thing, parameters) {
-
- let result = null;
-
- const processChildren = (thing,fieldName,parameters) => {
- return this.processChildren(thing,fieldName,parameters);
- };
-
- const rule = this.rules[thing.getType()];
- if (!rule) {
- throw new Error(`Unhandled type ${thing.getType()}`);
- }
- result = rule(thing,processChildren,parameters);
-
- const cleanResult = toslateutil.cleanup(result);
- parameters.result = cleanResult;
- }
-}
-
-module.exports = ToSlateVisitor;
\ No newline at end of file
diff --git a/packages/markdown-slate/lib/__snapshots__/SlateTransformer.test.js.snap b/packages/markdown-slate/lib/__snapshots__/SlateTransformer.test.js.snap
deleted file mode 100644
index b1b513b5..00000000
--- a/packages/markdown-slate/lib/__snapshots__/SlateTransformer.test.js.snap
+++ /dev/null
@@ -1,13886 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`ciceromark <-> slate converts acceptance_slate.json to and from CiceroMark 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "1",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Heading",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "And below is a ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Strong",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "clause",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ".",
- },
- ],
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Clause",
- "elementType": "org.accordproject.acceptanceofdelivery@1.0.0.AcceptanceOfDeliveryClause",
- "name": "deliveryClause",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Acceptance of Delivery.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "shipper",
- "value": ""Party A"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " will be deemed to have completed its delivery obligations",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "if in ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "receiver",
- "value": ""Party B"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "'s opinion, the ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "String",
- "name": "deliverable",
- "value": ""Widgets"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " satisfies the",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Acceptance Criteria, and ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "receiver",
- "value": ""Party B"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " notifies ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "shipper",
- "value": ""Party A"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " in writing",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "that it is accepting the ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "String",
- "name": "deliverable",
- "value": ""Widgets"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ".",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Inspection and Notice.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "receiver",
- "value": ""Party B"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " will have ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Long",
- "name": "businessDays",
- "value": "10",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " Business Days to inspect and",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "evaluate the ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "String",
- "name": "deliverable",
- "value": ""Widgets"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " on the delivery date before notifying",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "shipper",
- "value": ""Party A"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " that it is either accepting or rejecting the",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "String",
- "name": "deliverable",
- "value": ""Widgets"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ".",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Acceptance Criteria.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "The "Acceptance Criteria" are the specifications the ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "String",
- "name": "deliverable",
- "value": ""Widgets"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "must meet for the ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "shipper",
- "value": ""Party A"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " to comply with its requirements and",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "obligations under this agreement, detailed in ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "String",
- "name": "attachment",
- "value": ""Attachment X"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ", attached",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "to this agreement.",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "More text",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`ciceromark <-> slate converts acceptance_slate.json to and from CiceroMark 2`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "1",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Heading",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "And below is a ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Strong",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "clause",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ".",
- },
- ],
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Clause",
- "elementType": "org.accordproject.acceptanceofdelivery@1.0.0.AcceptanceOfDeliveryClause",
- "name": "deliveryClause",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Acceptance of Delivery.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "shipper",
- "value": ""Party A"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " will be deemed to have completed its delivery obligations",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "if in ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "receiver",
- "value": ""Party B"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "'s opinion, the ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "String",
- "name": "deliverable",
- "value": ""Widgets"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " satisfies the",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Acceptance Criteria, and ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "receiver",
- "value": ""Party B"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " notifies ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "shipper",
- "value": ""Party A"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " in writing",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "that it is accepting the ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "String",
- "name": "deliverable",
- "value": ""Widgets"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ".",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Inspection and Notice.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "receiver",
- "value": ""Party B"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " will have ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Long",
- "name": "businessDays",
- "value": "10",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " Business Days to inspect and",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "evaluate the ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "String",
- "name": "deliverable",
- "value": ""Widgets"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " on the delivery date before notifying",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "shipper",
- "value": ""Party A"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " that it is either accepting or rejecting the",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "String",
- "name": "deliverable",
- "value": ""Widgets"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ".",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Acceptance Criteria.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "The "Acceptance Criteria" are the specifications the ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "String",
- "name": "deliverable",
- "value": ""Widgets"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "must meet for the ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "shipper",
- "value": ""Party A"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " to comply with its requirements and",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "obligations under this agreement, detailed in ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "String",
- "name": "attachment",
- "value": ""Attachment X"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ", attached",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "to this agreement.",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "More text",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`ciceromark <-> slate converts acceptance_slate.json to and from CiceroMark 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "Heading",
- },
- ],
- "data": {},
- "object": "block",
- "type": "heading_one",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "And below is a ",
- },
- {
- "bold": true,
- "object": "text",
- "text": "clause",
- },
- {
- "object": "text",
- "text": ".",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "Acceptance of Delivery.",
- },
- ],
- "data": {},
- "object": "block",
- "type": "heading_two",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Party A",
- },
- ],
- "data": {
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "shipper",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": " will be deemed to have completed its delivery obligations",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "if in ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Party B",
- },
- ],
- "data": {
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "receiver",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "'s opinion, the ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Widgets",
- },
- ],
- "data": {
- "elementType": "String",
- "name": "deliverable",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": " satisfies the",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "Acceptance Criteria, and ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Party B",
- },
- ],
- "data": {
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "receiver",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": " notifies ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Party A",
- },
- ],
- "data": {
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "shipper",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": " in writing",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "that it is accepting the ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Widgets",
- },
- ],
- "data": {
- "elementType": "String",
- "name": "deliverable",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": ".",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Inspection and Notice.",
- },
- ],
- "data": {},
- "object": "block",
- "type": "heading_two",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Party B",
- },
- ],
- "data": {
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "receiver",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": " will have ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "10",
- },
- ],
- "data": {
- "elementType": "Long",
- "name": "businessDays",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": " Business Days to inspect and",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "evaluate the ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Widgets",
- },
- ],
- "data": {
- "elementType": "String",
- "name": "deliverable",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": " on the delivery date before notifying",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Party A",
- },
- ],
- "data": {
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "shipper",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": " that it is either accepting or rejecting the",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Widgets",
- },
- ],
- "data": {
- "elementType": "String",
- "name": "deliverable",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": ".",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Acceptance Criteria.",
- },
- ],
- "data": {},
- "object": "block",
- "type": "heading_two",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "The "Acceptance Criteria" are the specifications the ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Widgets",
- },
- ],
- "data": {
- "elementType": "String",
- "name": "deliverable",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "must meet for the ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Party A",
- },
- ],
- "data": {
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "shipper",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": " to comply with its requirements and",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "obligations under this agreement, detailed in ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Attachment X",
- },
- ],
- "data": {
- "elementType": "String",
- "name": "attachment",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": ", attached",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "to this agreement.",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {
- "elementType": "org.accordproject.acceptanceofdelivery@1.0.0.AcceptanceOfDeliveryClause",
- "name": "deliveryClause",
- },
- "object": "block",
- "type": "clause",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "More text",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`ciceromark <-> slate converts fixedinterest_slate.json to and from CiceroMark 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Fixed rate loan",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "This is a ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Emph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "fixed interest",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " loan to the amount of ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.FormattedVariable",
- "elementType": "org.accordproject.money.MonetaryAmount",
- "format": "K0,0.00",
- "name": "loanAmount",
- "value": "£100,000.00",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "at the yearly interest rate of ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "rate",
- "value": "2.5",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "with a loan term of ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Integer",
- "name": "loanDuration",
- "value": "15",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ",",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "and monthly payments of ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Formula",
- "code": " monthlyPaymentFormula(loanAmount,rate,loanDuration) as "K0,0.00" ",
- "dependencies": [],
- "name": "formula",
- "value": " eval( monthlyPaymentFormula(loanAmount,rate,loanDuration) as "K0,0.00" ) ",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`ciceromark <-> slate converts fixedinterest_slate.json to and from CiceroMark 2`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Fixed rate loan",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "This is a ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Emph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "fixed interest",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " loan to the amount of ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.FormattedVariable",
- "elementType": "org.accordproject.money.MonetaryAmount",
- "format": "K0,0.00",
- "name": "loanAmount",
- "value": "£100,000.00",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "at the yearly interest rate of ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "rate",
- "value": "2.5",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "with a loan term of ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Integer",
- "name": "loanDuration",
- "value": "15",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ",",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "and monthly payments of ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Formula",
- "code": " monthlyPaymentFormula(loanAmount,rate,loanDuration) as "K0,0.00" ",
- "dependencies": [],
- "name": "formula",
- "value": " eval( monthlyPaymentFormula(loanAmount,rate,loanDuration) as "K0,0.00" ) ",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`ciceromark <-> slate converts fixedinterest_slate.json to and from CiceroMark 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "Fixed rate loan",
- },
- ],
- "data": {},
- "object": "block",
- "type": "heading_two",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "This is a ",
- },
- {
- "italic": true,
- "object": "text",
- "text": "fixed interest",
- },
- {
- "object": "text",
- "text": " loan to the amount of ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "£100,000.00",
- },
- ],
- "data": {
- "elementType": "org.accordproject.money.MonetaryAmount",
- "format": "K0,0.00",
- "name": "loanAmount",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "at the yearly interest rate of ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "2.5",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "rate",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "%",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "with a loan term of ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "15",
- },
- ],
- "data": {
- "elementType": "Integer",
- "name": "loanDuration",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": ",",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "and monthly payments of ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": " eval( monthlyPaymentFormula(loanAmount,rate,loanDuration) as "K0,0.00" ) ",
- },
- ],
- "data": {
- "code": " monthlyPaymentFormula(loanAmount,rate,loanDuration) as "K0,0.00" ",
- "dependencies": [],
- "name": "formula",
- },
- "object": "inline",
- "type": "formula",
- },
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`ciceromark <-> slate converts latedelivery_slate.json to and from CiceroMark 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Late Delivery and Penalty.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "In case of delayed delivery",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Conditional",
- "isTrue": true,
- "name": "forceMajeure",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " except for Force Majeure cases,",
- },
- ],
- "whenFalse": [],
- "whenTrue": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " except for Force Majeure cases,",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "String",
- "name": "partyId",
- "value": ""Dan"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " (the Seller) shall pay to ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "String",
- "name": "partyId",
- "value": ""Steve"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " (the Buyer) for every ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Long",
- "name": "amount",
- "value": "2",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.EnumVariable",
- "elementType": "org.accordproject.time.TemporalUnit",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks",
- ],
- "name": "unit",
- "value": "days",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "of delay penalty amounting to ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "penaltyPercentage",
- "value": "10.5",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "% of the total value of the Equipment",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "whose delivery has been delayed. Any fractional part of a ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.EnumVariable",
- "elementType": "org.accordproject.time.TemporalUnit",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks",
- ],
- "name": "fractionalPart",
- "value": "days",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " is to be",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "considered a full ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.EnumVariable",
- "elementType": "org.accordproject.time.TemporalUnit",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks",
- ],
- "name": "fractionalPart",
- "value": "days",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ". The total amount of penalty shall not however,",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "exceed ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "capPercentage",
- "value": "55.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "% of the total value of the Equipment involved in late delivery.",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "If the delay is more than ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Long",
- "name": "amount",
- "value": "15",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.EnumVariable",
- "elementType": "org.accordproject.time.TemporalUnit",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks",
- ],
- "name": "unit",
- "value": "days",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ", the Buyer is entitled to terminate this Contract.",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`ciceromark <-> slate converts latedelivery_slate.json to and from CiceroMark 2`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Late Delivery and Penalty.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "In case of delayed delivery",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Conditional",
- "isTrue": true,
- "name": "forceMajeure",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " except for Force Majeure cases,",
- },
- ],
- "whenFalse": [],
- "whenTrue": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " except for Force Majeure cases,",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "String",
- "name": "partyId",
- "value": ""Dan"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " (the Seller) shall pay to ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "String",
- "name": "partyId",
- "value": ""Steve"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " (the Buyer) for every ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Long",
- "name": "amount",
- "value": "2",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.EnumVariable",
- "elementType": "org.accordproject.time.TemporalUnit",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks",
- ],
- "name": "unit",
- "value": "days",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "of delay penalty amounting to ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "penaltyPercentage",
- "value": "10.5",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "% of the total value of the Equipment",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "whose delivery has been delayed. Any fractional part of a ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.EnumVariable",
- "elementType": "org.accordproject.time.TemporalUnit",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks",
- ],
- "name": "fractionalPart",
- "value": "days",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " is to be",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "considered a full ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.EnumVariable",
- "elementType": "org.accordproject.time.TemporalUnit",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks",
- ],
- "name": "fractionalPart",
- "value": "days",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ". The total amount of penalty shall not however,",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "exceed ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "capPercentage",
- "value": "55.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "% of the total value of the Equipment involved in late delivery.",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "If the delay is more than ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Long",
- "name": "amount",
- "value": "15",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.EnumVariable",
- "elementType": "org.accordproject.time.TemporalUnit",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks",
- ],
- "name": "unit",
- "value": "days",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ", the Buyer is entitled to terminate this Contract.",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`ciceromark <-> slate converts latedelivery_slate.json to and from CiceroMark 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "Late Delivery and Penalty.",
- },
- ],
- "data": {},
- "object": "block",
- "type": "heading_two",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "In case of delayed delivery",
- },
- {
- "children": [
- {
- "object": "text",
- "text": " except for Force Majeure cases,",
- },
- ],
- "data": {
- "isTrue": true,
- "name": "forceMajeure",
- "whenFalse": [],
- "whenTrue": [
- {
- "object": "text",
- "text": " except for Force Majeure cases,",
- },
- ],
- },
- "object": "inline",
- "type": "conditional",
- },
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Dan",
- },
- ],
- "data": {
- "elementType": "String",
- "name": "partyId",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": " (the Seller) shall pay to ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Steve",
- },
- ],
- "data": {
- "elementType": "String",
- "name": "partyId",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": " (the Buyer) for every ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "2",
- },
- ],
- "data": {
- "elementType": "Long",
- "name": "amount",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": " ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "days",
- },
- ],
- "data": {
- "elementType": "org.accordproject.time.TemporalUnit",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks",
- ],
- "name": "unit",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "of delay penalty amounting to ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "10.5",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "penaltyPercentage",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "% of the total value of the Equipment",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "whose delivery has been delayed. Any fractional part of a ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "days",
- },
- ],
- "data": {
- "elementType": "org.accordproject.time.TemporalUnit",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks",
- ],
- "name": "fractionalPart",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": " is to be",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "considered a full ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "days",
- },
- ],
- "data": {
- "elementType": "org.accordproject.time.TemporalUnit",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks",
- ],
- "name": "fractionalPart",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": ". The total amount of penalty shall not however,",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "exceed ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "55.0",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "capPercentage",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "% of the total value of the Equipment involved in late delivery.",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "If the delay is more than ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "15",
- },
- ],
- "data": {
- "elementType": "Long",
- "name": "amount",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": " ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "days",
- },
- ],
- "data": {
- "elementType": "org.accordproject.time.TemporalUnit",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks",
- ],
- "name": "unit",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": ", the Buyer is entitled to terminate this Contract.",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`ciceromark <-> slate converts signature_slate.json to and from CiceroMark 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Signature: ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "SignHere",
- },
- ],
- "name": "DocuSignTab",
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [],
- "name": "SignatureVariable",
- },
- ],
- "elementType": "String",
- "name": "signature",
- "value": ""{{sn}}|alice@example.com"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [],
- "name": "SignatureVariable",
- },
- ],
- "elementType": "org.accordproject.cicero.contract.AccordParty",
- "identifiedBy": "partyId",
- "name": "party",
- "value": ""{{partyId}}|alice@example.com"",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Title: ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "Title",
- },
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "optional",
- },
- ],
- "name": "DocuSignTab",
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [],
- "name": "SignatureVariable",
- },
- ],
- "elementType": "String",
- "name": "title",
- "value": ""{{title}}|alice@example.com"",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Full name: ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "FullName",
- },
- ],
- "name": "DocuSignTab",
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [],
- "name": "SignatureVariable",
- },
- ],
- "elementType": "String",
- "name": "name",
- "value": ""{{fullName}}|alice@example.com"",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Date signed: ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "DateSigned",
- },
- ],
- "name": "DocuSignTab",
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [],
- "name": "SignatureVariable",
- },
- ],
- "elementType": "String",
- "name": "date",
- "value": ""{{dateSigned}}|alice@example.com"",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Favorite Color: ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "Text",
- },
- ],
- "name": "DocuSignTab",
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [],
- "name": "SignatureVariable",
- },
- ],
- "elementType": "String",
- "name": "favoriteColor",
- "value": ""{{favoriteColor}}|alice@example.com"",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Test: ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorBoolean",
- "value": true,
- },
- ],
- "name": "BoolAnnot",
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "foo",
- },
- ],
- "name": "StringAnnot",
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorNumber",
- "value": 3.14,
- },
- ],
- "name": "NumberAnnot",
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorTypeReference",
- "isArray": false,
- "type": {
- "$class": "concerto.metamodel@1.0.0.TypeIdentifier",
- "name": "identifier",
- },
- },
- ],
- "name": "IdentAnnot",
- },
- ],
- "elementType": "Boolean",
- "name": "bool",
- "value": "true",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " Numbers: ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorNumber",
- "value": 3,
- },
- ],
- "name": "ArrayAnnot",
- },
- ],
- "elementType": "Double",
- "name": "this",
- "value": "1.1",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ",",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorNumber",
- "value": 3,
- },
- ],
- "name": "ArrayAnnot",
- },
- ],
- "elementType": "Double",
- "name": "this",
- "value": "2.2",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ",",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorNumber",
- "value": 3,
- },
- ],
- "name": "ArrayAnnot",
- },
- ],
- "elementType": "Double",
- "name": "this",
- "value": "3.3",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ",",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorNumber",
- "value": 3,
- },
- ],
- "name": "ArrayAnnot",
- },
- ],
- "elementType": "Double",
- "name": "this",
- "value": "4.4",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`ciceromark <-> slate converts signature_slate.json to and from CiceroMark 2`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Signature: ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "SignHere",
- },
- ],
- "name": "DocuSignTab",
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [],
- "name": "SignatureVariable",
- },
- ],
- "elementType": "String",
- "name": "signature",
- "value": ""{{sn}}|alice@example.com"",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [],
- "name": "SignatureVariable",
- },
- ],
- "elementType": "org.accordproject.cicero.contract.AccordParty",
- "identifiedBy": "partyId",
- "name": "party",
- "value": ""{{partyId}}|alice@example.com"",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Title: ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "Title",
- },
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "optional",
- },
- ],
- "name": "DocuSignTab",
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [],
- "name": "SignatureVariable",
- },
- ],
- "elementType": "String",
- "name": "title",
- "value": ""{{title}}|alice@example.com"",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Full name: ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "FullName",
- },
- ],
- "name": "DocuSignTab",
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [],
- "name": "SignatureVariable",
- },
- ],
- "elementType": "String",
- "name": "name",
- "value": ""{{fullName}}|alice@example.com"",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Date signed: ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "DateSigned",
- },
- ],
- "name": "DocuSignTab",
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [],
- "name": "SignatureVariable",
- },
- ],
- "elementType": "String",
- "name": "date",
- "value": ""{{dateSigned}}|alice@example.com"",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Favorite Color: ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "Text",
- },
- ],
- "name": "DocuSignTab",
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [],
- "name": "SignatureVariable",
- },
- ],
- "elementType": "String",
- "name": "favoriteColor",
- "value": ""{{favoriteColor}}|alice@example.com"",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Test: ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorBoolean",
- "value": true,
- },
- ],
- "name": "BoolAnnot",
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "foo",
- },
- ],
- "name": "StringAnnot",
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorNumber",
- "value": 3.14,
- },
- ],
- "name": "NumberAnnot",
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorTypeReference",
- "isArray": false,
- "type": {
- "$class": "concerto.metamodel@1.0.0.TypeIdentifier",
- "name": "identifier",
- },
- },
- ],
- "name": "IdentAnnot",
- },
- ],
- "elementType": "Boolean",
- "name": "bool",
- "value": "true",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " Numbers: ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorNumber",
- "value": 3,
- },
- ],
- "name": "ArrayAnnot",
- },
- ],
- "elementType": "Double",
- "name": "this",
- "value": "1.1",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ",",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorNumber",
- "value": 3,
- },
- ],
- "name": "ArrayAnnot",
- },
- ],
- "elementType": "Double",
- "name": "this",
- "value": "2.2",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ",",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorNumber",
- "value": 3,
- },
- ],
- "name": "ArrayAnnot",
- },
- ],
- "elementType": "Double",
- "name": "this",
- "value": "3.3",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ",",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorNumber",
- "value": 3,
- },
- ],
- "name": "ArrayAnnot",
- },
- ],
- "elementType": "Double",
- "name": "this",
- "value": "4.4",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`ciceromark <-> slate converts signature_slate.json to and from CiceroMark 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "Signature: ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "{{sn}}|alice@example.com",
- },
- ],
- "data": {
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "SignHere",
- },
- ],
- "name": "DocuSignTab",
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [],
- "name": "SignatureVariable",
- },
- ],
- "elementType": "String",
- "name": "signature",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": " ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "{{partyId}}|alice@example.com",
- },
- ],
- "data": {
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [],
- "name": "SignatureVariable",
- },
- ],
- "elementType": "org.accordproject.cicero.contract.AccordParty",
- "identifiedBy": "partyId",
- "name": "party",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Title: ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "{{title}}|alice@example.com",
- },
- ],
- "data": {
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "Title",
- },
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "optional",
- },
- ],
- "name": "DocuSignTab",
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [],
- "name": "SignatureVariable",
- },
- ],
- "elementType": "String",
- "name": "title",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Full name: ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "{{fullName}}|alice@example.com",
- },
- ],
- "data": {
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "FullName",
- },
- ],
- "name": "DocuSignTab",
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [],
- "name": "SignatureVariable",
- },
- ],
- "elementType": "String",
- "name": "name",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Date signed: ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "{{dateSigned}}|alice@example.com",
- },
- ],
- "data": {
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "DateSigned",
- },
- ],
- "name": "DocuSignTab",
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [],
- "name": "SignatureVariable",
- },
- ],
- "elementType": "String",
- "name": "date",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Favorite Color: ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "{{favoriteColor}}|alice@example.com",
- },
- ],
- "data": {
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "Text",
- },
- ],
- "name": "DocuSignTab",
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [],
- "name": "SignatureVariable",
- },
- ],
- "elementType": "String",
- "name": "favoriteColor",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Test: ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "true",
- },
- ],
- "data": {
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorBoolean",
- "value": true,
- },
- ],
- "name": "BoolAnnot",
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "foo",
- },
- ],
- "name": "StringAnnot",
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorNumber",
- "value": 3.14,
- },
- ],
- "name": "NumberAnnot",
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorTypeReference",
- "isArray": false,
- "type": {
- "$class": "concerto.metamodel@1.0.0.TypeIdentifier",
- "name": "identifier",
- },
- },
- ],
- "name": "IdentAnnot",
- },
- ],
- "elementType": "Boolean",
- "name": "bool",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": " Numbers: ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "1.1",
- },
- ],
- "data": {
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorNumber",
- "value": 3,
- },
- ],
- "name": "ArrayAnnot",
- },
- ],
- "elementType": "Double",
- "name": "this",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": ",",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "2.2",
- },
- ],
- "data": {
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorNumber",
- "value": 3,
- },
- ],
- "name": "ArrayAnnot",
- },
- ],
- "elementType": "Double",
- "name": "this",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": ",",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "3.3",
- },
- ],
- "data": {
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorNumber",
- "value": 3,
- },
- ],
- "name": "ArrayAnnot",
- },
- ],
- "elementType": "Double",
- "name": "this",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": ",",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "4.4",
- },
- ],
- "data": {
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorNumber",
- "value": 3,
- },
- ],
- "name": "ArrayAnnot",
- },
- ],
- "elementType": "Double",
- "name": "this",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`ciceromark <-> slate converts volumediscountolist_slate.json to and from CiceroMark 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Volume-Based Card Acceptance Agreement [Abbreviated]",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "This Agreement is by and between Card, Inc., a New York corporation, and you, the Merchant. By accepting the Card, you agree to be bound by the Agreement.",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Discount means an amount that we charge you for accepting the Card, which amount is:",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "(i) a percentage (Discount Rate) of the face amount of the Charge that you submit, or a flat per-",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Transaction fee, or a combination of both; and/or",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "(ii) a Monthly Flat Fee (if you meet our requirements).",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Transaction Processing and Payments. Our Card acceptance, processing, and payment requirements are set forth in the Merchant Regulations. Some requirements are summarized here for ease of reference, but do not supersede the provisions in the Merchant Regulations.",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Payment for Charges. We will pay you, through our agent, according to your payment plan in US dollars for the face amount of Charges submitted from your Establishments less all applicable deductions, rejections, and withholdings, which include:",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "(i) the Discount,",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "(ii) any amounts you owe us or our Affiliates,",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "(iii) any amounts for which we have Chargebacks and",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "(iv) any Credits you submit. Your initial Discount is indicated in the Agreement or otherwise provided to you in writing by us. In addition to your Discount we may charge you additional fees and assessments, as listed in the Merchant Regulations or as otherwise provided to you in writing by us. We may adjust any of these amounts and may change any other amount we charge you for accepting the Card.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "SETTLEMENT",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "a) Settlement Amount. Our agent will pay you according to your payment plan, as described below, in US dollars for the face amount of Charges submitted from your Establishments less all applicable deductions, rejections, and withholdings, which include:",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "(i) the Discount,",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "(ii) any amounts you owe us or our Affiliates,",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "(iii) any amounts for which we have Chargebacks, and (iv) any Credits you submit. Our agent will subtract the full amount of all applicable deductions, rejections, and withholdings, from this payment to you (or debit your Bank Account), but if it cannot, then you must pay it promptly upon demand.",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "b) Discount. The Discount is determined according to the following table:",
- },
- ],
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.ListBlock",
- "delimiter": "period",
- "name": "rates",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeAbove",
- "value": "0.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeUpTo",
- "value": "1.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "rate",
- "value": "3.1",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeAbove",
- "value": "1.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeUpTo",
- "value": "10.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "rate",
- "value": "3.1",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeAbove",
- "value": "10.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeUpTo",
- "value": "50.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "rate",
- "value": "2.9",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeAbove",
- "value": "50.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeUpTo",
- "value": "500.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "rate",
- "value": "2.5",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeAbove",
- "value": "500.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeUpTo",
- "value": "1000.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "rate",
- "value": "1.2",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeAbove",
- "value": "1000.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeUpTo",
- "value": "1000000.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "rate",
- "value": "0.1",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%",
- },
- ],
- },
- ],
- },
- ],
- "start": "1",
- "tight": "true",
- "type": "ordered",
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`ciceromark <-> slate converts volumediscountolist_slate.json to and from CiceroMark 2`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Volume-Based Card Acceptance Agreement [Abbreviated]",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "This Agreement is by and between Card, Inc., a New York corporation, and you, the Merchant. By accepting the Card, you agree to be bound by the Agreement.",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Discount means an amount that we charge you for accepting the Card, which amount is:",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "(i) a percentage (Discount Rate) of the face amount of the Charge that you submit, or a flat per-",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Transaction fee, or a combination of both; and/or",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "(ii) a Monthly Flat Fee (if you meet our requirements).",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Transaction Processing and Payments. Our Card acceptance, processing, and payment requirements are set forth in the Merchant Regulations. Some requirements are summarized here for ease of reference, but do not supersede the provisions in the Merchant Regulations.",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Payment for Charges. We will pay you, through our agent, according to your payment plan in US dollars for the face amount of Charges submitted from your Establishments less all applicable deductions, rejections, and withholdings, which include:",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "(i) the Discount,",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "(ii) any amounts you owe us or our Affiliates,",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "(iii) any amounts for which we have Chargebacks and",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "(iv) any Credits you submit. Your initial Discount is indicated in the Agreement or otherwise provided to you in writing by us. In addition to your Discount we may charge you additional fees and assessments, as listed in the Merchant Regulations or as otherwise provided to you in writing by us. We may adjust any of these amounts and may change any other amount we charge you for accepting the Card.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "SETTLEMENT",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "a) Settlement Amount. Our agent will pay you according to your payment plan, as described below, in US dollars for the face amount of Charges submitted from your Establishments less all applicable deductions, rejections, and withholdings, which include:",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "(i) the Discount,",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "(ii) any amounts you owe us or our Affiliates,",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "(iii) any amounts for which we have Chargebacks, and (iv) any Credits you submit. Our agent will subtract the full amount of all applicable deductions, rejections, and withholdings, from this payment to you (or debit your Bank Account), but if it cannot, then you must pay it promptly upon demand.",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "b) Discount. The Discount is determined according to the following table:",
- },
- ],
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.ListBlock",
- "delimiter": "period",
- "name": "rates",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeAbove",
- "value": "0.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeUpTo",
- "value": "1.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "rate",
- "value": "3.1",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeAbove",
- "value": "1.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeUpTo",
- "value": "10.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "rate",
- "value": "3.1",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeAbove",
- "value": "10.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeUpTo",
- "value": "50.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "rate",
- "value": "2.9",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeAbove",
- "value": "50.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeUpTo",
- "value": "500.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "rate",
- "value": "2.5",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeAbove",
- "value": "500.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeUpTo",
- "value": "1000.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "rate",
- "value": "1.2",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeAbove",
- "value": "1000.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeUpTo",
- "value": "1000000.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "rate",
- "value": "0.1",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%",
- },
- ],
- },
- ],
- },
- ],
- "start": "1",
- "tight": "true",
- "type": "ordered",
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`ciceromark <-> slate converts volumediscountolist_slate.json to and from CiceroMark 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "Volume-Based Card Acceptance Agreement [Abbreviated]",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "This Agreement is by and between Card, Inc., a New York corporation, and you, the Merchant. By accepting the Card, you agree to be bound by the Agreement.",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "Discount means an amount that we charge you for accepting the Card, which amount is:",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "(i) a percentage (Discount Rate) of the face amount of the Charge that you submit, or a flat per-",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "Transaction fee, or a combination of both; and/or",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "(ii) a Monthly Flat Fee (if you meet our requirements).",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Transaction Processing and Payments. Our Card acceptance, processing, and payment requirements are set forth in the Merchant Regulations. Some requirements are summarized here for ease of reference, but do not supersede the provisions in the Merchant Regulations.",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "Payment for Charges. We will pay you, through our agent, according to your payment plan in US dollars for the face amount of Charges submitted from your Establishments less all applicable deductions, rejections, and withholdings, which include:",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "(i) the Discount,",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "(ii) any amounts you owe us or our Affiliates,",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "(iii) any amounts for which we have Chargebacks and",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "(iv) any Credits you submit. Your initial Discount is indicated in the Agreement or otherwise provided to you in writing by us. In addition to your Discount we may charge you additional fees and assessments, as listed in the Merchant Regulations or as otherwise provided to you in writing by us. We may adjust any of these amounts and may change any other amount we charge you for accepting the Card.",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "SETTLEMENT",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "a) Settlement Amount. Our agent will pay you according to your payment plan, as described below, in US dollars for the face amount of Charges submitted from your Establishments less all applicable deductions, rejections, and withholdings, which include:",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "(i) the Discount,",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "(ii) any amounts you owe us or our Affiliates,",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "(iii) any amounts for which we have Chargebacks, and (iv) any Credits you submit. Our agent will subtract the full amount of all applicable deductions, rejections, and withholdings, from this payment to you (or debit your Bank Account), but if it cannot, then you must pay it promptly upon demand.",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "b) Discount. The Discount is determined according to the following table:",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "0.0",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "volumeAbove",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "$ million <= Volume < ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "1.0",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "volumeUpTo",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "$ million : ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "3.1",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "rate",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "%",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "1.0",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "volumeAbove",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "$ million <= Volume < ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "10.0",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "volumeUpTo",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "$ million : ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "3.1",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "rate",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "%",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "10.0",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "volumeAbove",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "$ million <= Volume < ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "50.0",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "volumeUpTo",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "$ million : ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "2.9",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "rate",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "%",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "50.0",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "volumeAbove",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "$ million <= Volume < ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "500.0",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "volumeUpTo",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "$ million : ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "2.5",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "rate",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "%",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "500.0",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "volumeAbove",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "$ million <= Volume < ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "1000.0",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "volumeUpTo",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "$ million : ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "1.2",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "rate",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "%",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "1000.0",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "volumeAbove",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "$ million <= Volume < ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "1000000.0",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "volumeUpTo",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "$ million : ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "0.1",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "rate",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "%",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- ],
- "data": {
- "delimiter": "period",
- "name": "rates",
- "start": "1",
- "tight": "true",
- "type": "variable",
- },
- "object": "block",
- "type": "ol_list_block",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`ciceromark <-> slate converts volumediscountulist_slate.json to and from CiceroMark 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Volume-Based Card Acceptance Agreement [Abbreviated]",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "This Agreement is by and between Card, Inc., a New York corporation, and you, the Merchant. By accepting the Card, you agree to be bound by the Agreement.",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Discount means an amount that we charge you for accepting the Card, which amount is:",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.List",
- "delimiter": "period",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "a percentage (Discount Rate) of the face amount of the Charge that you submit, or a flat per-",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Transaction fee, or a combination of both; and/or",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "a Monthly Flat Fee (if you meet our requirements).",
- },
- ],
- },
- ],
- },
- ],
- "start": "1",
- "tight": "true",
- "type": "ordered",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Transaction Processing and Payments. Our Card acceptance, processing, and payment requirements are set forth in the Merchant Regulations. Some requirements are summarized here for ease of reference, but do not supersede the provisions in the Merchant Regulations.",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Payment for Charges. We will pay you, through our agent, according to your payment plan in US dollars for the face amount of Charges submitted from your Establishments less all applicable deductions, rejections, and withholdings, which include:",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.List",
- "delimiter": "period",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "the Discount,",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "any amounts you owe us or our Affiliates,",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "any amounts for which we have Chargebacks and",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "any Credits you submit.",
- },
- ],
- },
- ],
- },
- ],
- "start": "1",
- "tight": "true",
- "type": "ordered",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Your initial Discount is indicated in the Agreement or otherwise provided to you in writing by us. In addition to your Discount we may charge you additional fees and assessments, as listed in the Merchant Regulations or as otherwise provided to you in writing by us. We may adjust any of these amounts and may change any other amount we charge you for accepting the Card.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "3",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "SETTLEMENT",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "4",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Settlement Amount.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Our agent will pay you according to your payment plan, as described below, in US dollars for the face amount of Charges submitted from your Establishments less all applicable deductions, rejections, and withholdings, which include:",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.List",
- "delimiter": "period",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "the Discount,",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "any amounts you owe us or our Affiliates,",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "any amounts for which we have Chargebacks, and",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "any Credits you submit.",
- },
- ],
- },
- ],
- },
- ],
- "start": "1",
- "tight": "true",
- "type": "ordered",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Our agent will subtract the full amount of all applicable deductions, rejections, and withholdings, from this payment to you (or debit your Bank Account), but if it cannot, then you must pay it promptly upon demand.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "4",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Discount.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "The Discount is determined according to the following table:",
- },
- ],
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.ListBlock",
- "delimiter": undefined,
- "name": "rates",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeAbove",
- "value": "0.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeUpTo",
- "value": "1.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "rate",
- "value": "3.1",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeAbove",
- "value": "1.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeUpTo",
- "value": "10.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "rate",
- "value": "3.1",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeAbove",
- "value": "10.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeUpTo",
- "value": "50.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "rate",
- "value": "2.9",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeAbove",
- "value": "50.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeUpTo",
- "value": "500.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "rate",
- "value": "2.5",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeAbove",
- "value": "500.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeUpTo",
- "value": "1000.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "rate",
- "value": "1.2",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeAbove",
- "value": "1000.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeUpTo",
- "value": "1000000.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "rate",
- "value": "0.1",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%",
- },
- ],
- },
- ],
- },
- ],
- "start": undefined,
- "tight": "true",
- "type": "bullet",
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`ciceromark <-> slate converts volumediscountulist_slate.json to and from CiceroMark 2`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Volume-Based Card Acceptance Agreement [Abbreviated]",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "This Agreement is by and between Card, Inc., a New York corporation, and you, the Merchant. By accepting the Card, you agree to be bound by the Agreement.",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Discount means an amount that we charge you for accepting the Card, which amount is:",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.List",
- "delimiter": "period",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "a percentage (Discount Rate) of the face amount of the Charge that you submit, or a flat per-",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Transaction fee, or a combination of both; and/or",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "a Monthly Flat Fee (if you meet our requirements).",
- },
- ],
- },
- ],
- },
- ],
- "start": "1",
- "tight": "true",
- "type": "ordered",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Transaction Processing and Payments. Our Card acceptance, processing, and payment requirements are set forth in the Merchant Regulations. Some requirements are summarized here for ease of reference, but do not supersede the provisions in the Merchant Regulations.",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Payment for Charges. We will pay you, through our agent, according to your payment plan in US dollars for the face amount of Charges submitted from your Establishments less all applicable deductions, rejections, and withholdings, which include:",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.List",
- "delimiter": "period",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "the Discount,",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "any amounts you owe us or our Affiliates,",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "any amounts for which we have Chargebacks and",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "any Credits you submit.",
- },
- ],
- },
- ],
- },
- ],
- "start": "1",
- "tight": "true",
- "type": "ordered",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Your initial Discount is indicated in the Agreement or otherwise provided to you in writing by us. In addition to your Discount we may charge you additional fees and assessments, as listed in the Merchant Regulations or as otherwise provided to you in writing by us. We may adjust any of these amounts and may change any other amount we charge you for accepting the Card.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "3",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "SETTLEMENT",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "4",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Settlement Amount.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Our agent will pay you according to your payment plan, as described below, in US dollars for the face amount of Charges submitted from your Establishments less all applicable deductions, rejections, and withholdings, which include:",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.List",
- "delimiter": "period",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "the Discount,",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "any amounts you owe us or our Affiliates,",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "any amounts for which we have Chargebacks, and",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "any Credits you submit.",
- },
- ],
- },
- ],
- },
- ],
- "start": "1",
- "tight": "true",
- "type": "ordered",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Our agent will subtract the full amount of all applicable deductions, rejections, and withholdings, from this payment to you (or debit your Bank Account), but if it cannot, then you must pay it promptly upon demand.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "4",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Discount.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "The Discount is determined according to the following table:",
- },
- ],
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.ListBlock",
- "name": "rates",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeAbove",
- "value": "0.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeUpTo",
- "value": "1.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "rate",
- "value": "3.1",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeAbove",
- "value": "1.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeUpTo",
- "value": "10.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "rate",
- "value": "3.1",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeAbove",
- "value": "10.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeUpTo",
- "value": "50.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "rate",
- "value": "2.9",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeAbove",
- "value": "50.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeUpTo",
- "value": "500.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "rate",
- "value": "2.5",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeAbove",
- "value": "500.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeUpTo",
- "value": "1000.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "rate",
- "value": "1.2",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeAbove",
- "value": "1000.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "volumeUpTo",
- "value": "1000000.0",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : ",
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "elementType": "Double",
- "name": "rate",
- "value": "0.1",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%",
- },
- ],
- },
- ],
- },
- ],
- "tight": "true",
- "type": "bullet",
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`ciceromark <-> slate converts volumediscountulist_slate.json to and from CiceroMark 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "Volume-Based Card Acceptance Agreement [Abbreviated]",
- },
- ],
- "data": {},
- "object": "block",
- "type": "heading_two",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "This Agreement is by and between Card, Inc., a New York corporation, and you, the Merchant. By accepting the Card, you agree to be bound by the Agreement.",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "Discount means an amount that we charge you for accepting the Card, which amount is:",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "a percentage (Discount Rate) of the face amount of the Charge that you submit, or a flat per-",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "Transaction fee, or a combination of both; and/or",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "a Monthly Flat Fee (if you meet our requirements).",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- ],
- "data": {
- "delimiter": "period",
- "start": "1",
- "tight": "true",
- },
- "object": "block",
- "type": "ol_list",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Transaction Processing and Payments. Our Card acceptance, processing, and payment requirements are set forth in the Merchant Regulations. Some requirements are summarized here for ease of reference, but do not supersede the provisions in the Merchant Regulations.",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "Payment for Charges. We will pay you, through our agent, according to your payment plan in US dollars for the face amount of Charges submitted from your Establishments less all applicable deductions, rejections, and withholdings, which include:",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "the Discount,",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "any amounts you owe us or our Affiliates,",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "any amounts for which we have Chargebacks and",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "any Credits you submit.",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- ],
- "data": {
- "delimiter": "period",
- "start": "1",
- "tight": "true",
- },
- "object": "block",
- "type": "ol_list",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Your initial Discount is indicated in the Agreement or otherwise provided to you in writing by us. In addition to your Discount we may charge you additional fees and assessments, as listed in the Merchant Regulations or as otherwise provided to you in writing by us. We may adjust any of these amounts and may change any other amount we charge you for accepting the Card.",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "SETTLEMENT",
- },
- ],
- "data": {},
- "object": "block",
- "type": "heading_three",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Settlement Amount.",
- },
- ],
- "data": {},
- "object": "block",
- "type": "heading_four",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Our agent will pay you according to your payment plan, as described below, in US dollars for the face amount of Charges submitted from your Establishments less all applicable deductions, rejections, and withholdings, which include:",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "the Discount,",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "any amounts you owe us or our Affiliates,",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "any amounts for which we have Chargebacks, and",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "any Credits you submit.",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- ],
- "data": {
- "delimiter": "period",
- "start": "1",
- "tight": "true",
- },
- "object": "block",
- "type": "ol_list",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Our agent will subtract the full amount of all applicable deductions, rejections, and withholdings, from this payment to you (or debit your Bank Account), but if it cannot, then you must pay it promptly upon demand.",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Discount.",
- },
- ],
- "data": {},
- "object": "block",
- "type": "heading_four",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "The Discount is determined according to the following table:",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "0.0",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "volumeAbove",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "$ million <= Volume < ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "1.0",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "volumeUpTo",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "$ million : ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "3.1",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "rate",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "%",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "1.0",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "volumeAbove",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "$ million <= Volume < ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "10.0",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "volumeUpTo",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "$ million : ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "3.1",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "rate",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "%",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "10.0",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "volumeAbove",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "$ million <= Volume < ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "50.0",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "volumeUpTo",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "$ million : ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "2.9",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "rate",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "%",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "50.0",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "volumeAbove",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "$ million <= Volume < ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "500.0",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "volumeUpTo",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "$ million : ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "2.5",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "rate",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "%",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "500.0",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "volumeAbove",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "$ million <= Volume < ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "1000.0",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "volumeUpTo",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "$ million : ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "1.2",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "rate",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "%",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "1000.0",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "volumeAbove",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "$ million <= Volume < ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "1000000.0",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "volumeUpTo",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "$ million : ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "0.1",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "rate",
- },
- "object": "inline",
- "type": "variable",
- },
- {
- "object": "text",
- "text": "%",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- ],
- "data": {
- "delimiter": undefined,
- "name": "rates",
- "start": undefined,
- "tight": "true",
- "type": "variable",
- },
- "object": "block",
- "type": "ul_list_block",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`markdown <-> slate converts bold.json to and from Markdown 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Strong",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "bold",
- },
- ],
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts bold.json to and from Markdown 2`] = `"**bold**"`;
-
-exports[`markdown <-> slate converts bold.json to and from Markdown 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "bold": true,
- "object": "text",
- "text": "bold",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`markdown <-> slate converts bold.json to and from Markdown 4`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Strong",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "bold",
- },
- ],
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts boldem.json to and from Markdown 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Emph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Strong",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "bold",
- },
- ],
- },
- ],
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts boldem.json to and from Markdown 2`] = `"_**bold**_"`;
-
-exports[`markdown <-> slate converts boldem.json to and from Markdown 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "bold": true,
- "italic": true,
- "object": "text",
- "text": "bold",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`markdown <-> slate converts boldem.json to and from Markdown 4`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Emph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Strong",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "bold",
- },
- ],
- },
- ],
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts code.json to and from Markdown 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Code",
- "text": "some code",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts code.json to and from Markdown 2`] = `"\`some code\`"`;
-
-exports[`markdown <-> slate converts code.json to and from Markdown 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "code": true,
- "object": "text",
- "text": "some code",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`markdown <-> slate converts code.json to and from Markdown 4`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Code",
- "text": "some code",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts codeblock.json to and from Markdown 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.CodeBlock",
- "text": "
-this
-is a
-code block.
-",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "end.",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts codeblock.json to and from Markdown 2`] = `
-"\`\`\`
-this
-is a
-code block.
-\`\`\`
-
-
-
-end."
-`;
-
-exports[`markdown <-> slate converts codeblock.json to and from Markdown 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "this
-is a
-code block.
-",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "code_block",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "end.",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`markdown <-> slate converts codeblock.json to and from Markdown 4`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.CodeBlock",
- "text": "
-this
-is a
-code block.
-",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "end.",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts commonmark.json to and from Markdown 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Try CommonMark",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "You can try CommonMark here. This dingus is powered by",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Link",
- "destination": "https://github.com/jgm/commonmark.js",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " commonmark.js",
- },
- ],
- "title": "",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ", the JavaScript reference implementation.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.List",
- "delimiter": "period",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "item one",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "item two",
- },
- ],
- },
- ],
- },
- ],
- "start": "1",
- "tight": "true",
- "type": "ordered",
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts commonmark.json to and from Markdown 2`] = `
-"Try CommonMark
-----
-
-You can try CommonMark here. This dingus is powered by[ commonmark.js](https://github.com/jgm/commonmark.js), the JavaScript reference implementation.
-1. item one
-2. item two"
-`;
-
-exports[`markdown <-> slate converts commonmark.json to and from Markdown 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "Try CommonMark",
- },
- ],
- "data": {},
- "object": "block",
- "type": "heading_two",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "You can try CommonMark here. This dingus is powered by",
- },
- {
- "children": [
- {
- "object": "text",
- "text": " commonmark.js",
- },
- ],
- "data": {
- "href": "https://github.com/jgm/commonmark.js",
- "title": "",
- },
- "object": "inline",
- "type": "link",
- },
- {
- "object": "text",
- "text": ", the JavaScript reference implementation.",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "item one",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "item two",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- ],
- "data": {
- "delimiter": "period",
- "start": "1",
- "tight": "true",
- },
- "object": "block",
- "type": "ol_list",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`markdown <-> slate converts commonmark.json to and from Markdown 4`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Try CommonMark",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "You can try CommonMark here. This dingus is powered by",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Link",
- "destination": "https://github.com/jgm/commonmark.js",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " commonmark.js",
- },
- ],
- "title": "",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ", the JavaScript reference implementation.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.List",
- "delimiter": "period",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "item one",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "item two",
- },
- ],
- },
- ],
- },
- ],
- "start": "1",
- "tight": "true",
- "type": "ordered",
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts empty.json to and from Markdown 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts empty.json to and from Markdown 2`] = `""`;
-
-exports[`markdown <-> slate converts empty.json to and from Markdown 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`markdown <-> slate converts empty.json to and from Markdown 4`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts headings.json to and from Markdown 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "H1",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "H2",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "3",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "H3",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "4",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "H4",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "5",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "H5",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "6",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "H6",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "####### Text!!",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "end.",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts headings.json to and from Markdown 2`] = `
-"## H1
-
-
-## H2
-
-
-### H3
-
-
-#### H4
-
-
-##### H5
-
-
-###### H6
-
-
-\\####### Text!!
-
-
-end.
-"
-`;
-
-exports[`markdown <-> slate converts headings.json to and from Markdown 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "H1",
- },
- ],
- "data": {},
- "object": "block",
- "type": "heading_two",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "H2",
- },
- ],
- "data": {},
- "object": "block",
- "type": "heading_two",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "H3",
- },
- ],
- "data": {},
- "object": "block",
- "type": "heading_three",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "H4",
- },
- ],
- "data": {},
- "object": "block",
- "type": "heading_four",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "H5",
- },
- ],
- "data": {},
- "object": "block",
- "type": "heading_five",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "H6",
- },
- ],
- "data": {},
- "object": "block",
- "type": "heading_six",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "####### Text!!",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "end.",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`markdown <-> slate converts headings.json to and from Markdown 4`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "H1",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "H2",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "3",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "H3",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "4",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "H4",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "5",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "H5",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "6",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "H6",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "####### Text!!",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "end.",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts html.json to and from Markdown 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "This is text with ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.HtmlInline",
- "text": "",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " inside it",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.HtmlBlock",
- "text": "
-",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "This is more text",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts html.json to and from Markdown 2`] = `
-"This is text with inside it
-
-
-
-This is more text
-"
-`;
-
-exports[`markdown <-> slate converts html.json to and from Markdown 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "This is text with ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {
- "content": "",
- },
- "object": "inline",
- "type": "html_inline",
- },
- {
- "object": "text",
- "text": " inside it",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "children": [
- {
- "html": true,
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "html_block",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "This is more text",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`markdown <-> slate converts html.json to and from Markdown 4`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "This is text with ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.HtmlInline",
- "text": "",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " inside it",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.HtmlBlock",
- "text": "
-",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "This is more text",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts html-block.json to and from Markdown 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.HtmlBlock",
- "text": "
-
-this
-is an
-html block.
-
-end.",
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts html-block.json to and from Markdown 2`] = `
-"
-this
-is an
-html block.
-
-end."
-`;
-
-exports[`markdown <-> slate converts html-block.json to and from Markdown 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "html": true,
- "object": "text",
- "text": "
-this
-is an
-html block.
-
-end.",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "html_block",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`markdown <-> slate converts html-block.json to and from Markdown 4`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.HtmlBlock",
- "text": "
-
-this
-is an
-html block.
-
-end.",
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts image.json to and from Markdown 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "This is an image",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Image",
- "destination": "https://studio.accordproject.org/static/img/logo.png",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "",
- },
- ],
- "title": "title",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts image.json to and from Markdown 2`] = `
-"This is an image
-
-"
-`;
-
-exports[`markdown <-> slate converts image.json to and from Markdown 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "This is an image",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {
- "href": "https://studio.accordproject.org/static/img/logo.png",
- "title": "title",
- },
- "object": "inline",
- "type": "image",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`markdown <-> slate converts image.json to and from Markdown 4`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "This is an image",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Image",
- "destination": "https://studio.accordproject.org/static/img/logo.png",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "",
- },
- ],
- "title": "title",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts image-notitle.json to and from Markdown 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "This is an image",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Image",
- "destination": "https://studio.accordproject.org/static/img/logo.png",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "",
- },
- ],
- "title": "",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts image-notitle.json to and from Markdown 2`] = `
-"This is an image
-
-"
-`;
-
-exports[`markdown <-> slate converts image-notitle.json to and from Markdown 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "This is an image",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {
- "href": "https://studio.accordproject.org/static/img/logo.png",
- "title": "",
- },
- "object": "inline",
- "type": "image",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`markdown <-> slate converts image-notitle.json to and from Markdown 4`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "This is an image",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Image",
- "destination": "https://studio.accordproject.org/static/img/logo.png",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "",
- },
- ],
- "title": "",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts italic.json to and from Markdown 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Emph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "italic",
- },
- ],
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts italic.json to and from Markdown 2`] = `"*italic*"`;
-
-exports[`markdown <-> slate converts italic.json to and from Markdown 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "italic": true,
- "object": "text",
- "text": "italic",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`markdown <-> slate converts italic.json to and from Markdown 4`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Emph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "italic",
- },
- ],
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts linebreak.json to and from Markdown 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "This is a",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Linebreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "linebreak in para 1.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "And this is para 2.",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts linebreak.json to and from Markdown 2`] = `
-"This is a
-linebreak in para 1.
-
-And this is para 2."
-`;
-
-exports[`markdown <-> slate converts linebreak.json to and from Markdown 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "This is a",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "linebreak",
- },
- {
- "object": "text",
- "text": "linebreak in para 1.",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "And this is para 2.",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`markdown <-> slate converts linebreak.json to and from Markdown 4`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "This is a",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Linebreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "linebreak in para 1.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "And this is para 2.",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts link.json to and from Markdown 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "a ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Link",
- "destination": "http://clause.io",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "link",
- },
- ],
- "title": "title",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts link.json to and from Markdown 2`] = `"a [link](http://clause.io "title")"`;
-
-exports[`markdown <-> slate converts link.json to and from Markdown 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "a ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "link",
- },
- ],
- "data": {
- "href": "http://clause.io",
- "title": "title",
- },
- "object": "inline",
- "type": "link",
- },
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`markdown <-> slate converts link.json to and from Markdown 4`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "a ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Link",
- "destination": "http://clause.io",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "link",
- },
- ],
- "title": "title",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts link-notitle.json to and from Markdown 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "a ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Link",
- "destination": "http://clause.io",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "link",
- },
- ],
- "title": "",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts link-notitle.json to and from Markdown 2`] = `"a [link](http://clause.io)"`;
-
-exports[`markdown <-> slate converts link-notitle.json to and from Markdown 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "a ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "link",
- },
- ],
- "data": {
- "href": "http://clause.io",
- "title": "",
- },
- "object": "inline",
- "type": "link",
- },
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`markdown <-> slate converts link-notitle.json to and from Markdown 4`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "a ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Link",
- "destination": "http://clause.io",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "link",
- },
- ],
- "title": "",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts linkcode.json to and from Markdown 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "this is a ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Link",
- "destination": "https://google.com",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Code",
- "text": "code link",
- },
- ],
- "title": "",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "this is a ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Code",
- "text": "code snippet",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts linkcode.json to and from Markdown 2`] = `
-"this is a [\`code link\`](https://google.com)
-
-this is a \`code snippet\`"
-`;
-
-exports[`markdown <-> slate converts linkcode.json to and from Markdown 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "this is a ",
- },
- {
- "children": [
- {
- "code": true,
- "object": "text",
- "text": "code link",
- },
- ],
- "data": {
- "href": "https://google.com",
- "title": "",
- },
- "object": "inline",
- "type": "link",
- },
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "this is a ",
- },
- {
- "code": true,
- "object": "text",
- "text": "code snippet",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`markdown <-> slate converts linkcode.json to and from Markdown 4`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "this is a ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Link",
- "destination": "https://google.com",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Code",
- "text": "code link",
- },
- ],
- "title": "",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "this is a ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Code",
- "text": "code snippet",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts linkem.json to and from Markdown 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "this is a ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Link",
- "destination": "https://google.com",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Emph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "code link",
- },
- ],
- },
- ],
- "title": "",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts linkem.json to and from Markdown 2`] = `
-"this is a [*code link*](https://google.com)
-"
-`;
-
-exports[`markdown <-> slate converts linkem.json to and from Markdown 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "this is a ",
- },
- {
- "children": [
- {
- "italic": true,
- "object": "text",
- "text": "code link",
- },
- ],
- "data": {
- "href": "https://google.com",
- "title": "",
- },
- "object": "inline",
- "type": "link",
- },
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`markdown <-> slate converts linkem.json to and from Markdown 4`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "this is a ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Link",
- "destination": "https://google.com",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Emph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "code link",
- },
- ],
- },
- ],
- "title": "",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts linkmixed.json to and from Markdown 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Link",
- "destination": "http://google.com",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "This is a ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Emph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "link",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " with ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Code",
- "text": "code",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " and ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Strong",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "bold",
- },
- ],
- },
- ],
- "title": "",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts linkmixed.json to and from Markdown 2`] = `"[This is a *link* with \`code\` and **bold**](http://google.com)"`;
-
-exports[`markdown <-> slate converts linkmixed.json to and from Markdown 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "This is a ",
- },
- {
- "italic": true,
- "object": "text",
- "text": "link",
- },
- {
- "object": "text",
- "text": " with ",
- },
- {
- "code": true,
- "object": "text",
- "text": "code",
- },
- {
- "object": "text",
- "text": " and ",
- },
- {
- "bold": true,
- "object": "text",
- "text": "bold",
- },
- ],
- "data": {
- "href": "http://google.com",
- "title": "",
- },
- "object": "inline",
- "type": "link",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`markdown <-> slate converts linkmixed.json to and from Markdown 4`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Link",
- "destination": "http://google.com",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "This is a ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Emph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "link",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " with ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Code",
- "text": "code",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " and ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Strong",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "bold",
- },
- ],
- },
- ],
- "title": "",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts linktext.json to and from Markdown 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "this is a ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Link",
- "destination": "https://google.com",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "code link",
- },
- ],
- "title": "",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts linktext.json to and from Markdown 2`] = `
-"this is a [code link](https://google.com)
-"
-`;
-
-exports[`markdown <-> slate converts linktext.json to and from Markdown 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "this is a ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "code link",
- },
- ],
- "data": {
- "href": "https://google.com",
- "title": "",
- },
- "object": "inline",
- "type": "link",
- },
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`markdown <-> slate converts linktext.json to and from Markdown 4`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "this is a ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Link",
- "destination": "https://google.com",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "code link",
- },
- ],
- "title": "",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts nested-list.json to and from Markdown 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Prolog",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.List",
- "delimiter": "period",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "item one",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "item two",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.List",
- "delimiter": undefined,
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "sublist",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "sublist",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "with some text in the same paragraph",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "",
- },
- ],
- },
- ],
- "start": undefined,
- "tight": "true",
- "type": "bullet",
- },
- ],
- },
- ],
- "start": "1",
- "tight": "true",
- "type": "ordered",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Epilog",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts nested-list.json to and from Markdown 2`] = `
-"Prolog
-1. item one
-2. item two
- - sublist
- - sublist
-with some text in the same paragraph
- -
-
-Epilog
-"
-`;
-
-exports[`markdown <-> slate converts nested-list.json to and from Markdown 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "Prolog",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "item one",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "item two",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "sublist",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "sublist",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "with some text in the same paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- ],
- "data": {
- "delimiter": undefined,
- "start": undefined,
- "tight": "true",
- },
- "object": "block",
- "type": "ul_list",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- ],
- "data": {
- "delimiter": "period",
- "start": "1",
- "tight": "true",
- },
- "object": "block",
- "type": "ol_list",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Epilog",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`markdown <-> slate converts nested-list.json to and from Markdown 4`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Prolog",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.List",
- "delimiter": "period",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "item one",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "item two",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.List",
- "delimiter": undefined,
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "sublist",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "sublist",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "with some text in the same paragraph",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "",
- },
- ],
- },
- ],
- "start": undefined,
- "tight": "true",
- "type": "bullet",
- },
- ],
- },
- ],
- "start": "1",
- "tight": "true",
- "type": "ordered",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Epilog",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts ordered.json to and from Markdown 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.List",
- "delimiter": "period",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "one",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "two",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "three",
- },
- ],
- },
- ],
- },
- ],
- "start": "1",
- "tight": "true",
- "type": "ordered",
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts ordered.json to and from Markdown 2`] = `
-"1. one
-2. two
-3. three"
-`;
-
-exports[`markdown <-> slate converts ordered.json to and from Markdown 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "one",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "two",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "three",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- ],
- "data": {
- "delimiter": "period",
- "start": "1",
- "tight": "true",
- },
- "object": "block",
- "type": "ol_list",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`markdown <-> slate converts ordered.json to and from Markdown 4`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.List",
- "delimiter": "period",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "one",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "two",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "three",
- },
- ],
- },
- ],
- },
- ],
- "start": "1",
- "tight": "true",
- "type": "ordered",
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts paragraphs.json to and from Markdown 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "one",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "two",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "three",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts paragraphs.json to and from Markdown 2`] = `
-"one
-
-two
-
-three"
-`;
-
-exports[`markdown <-> slate converts paragraphs.json to and from Markdown 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "one",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "two",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "three",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`markdown <-> slate converts paragraphs.json to and from Markdown 4`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "one",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "two",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "three",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts plain.json to and from Markdown 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "plain",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts plain.json to and from Markdown 2`] = `"plain"`;
-
-exports[`markdown <-> slate converts plain.json to and from Markdown 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "plain",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`markdown <-> slate converts plain.json to and from Markdown 4`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "plain",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts quote.json to and from Markdown 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.BlockQuote",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "this is a quote",
- },
- ],
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts quote.json to and from Markdown 2`] = `"> this is a quote"`;
-
-exports[`markdown <-> slate converts quote.json to and from Markdown 3`] = `
-{
- "document": {
- "children": [
- {
- "block_quote": true,
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "this is a quote",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "block_quote",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`markdown <-> slate converts quote.json to and from Markdown 4`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.BlockQuote",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "this is a quote",
- },
- ],
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts softbreak.json to and from Markdown 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "This is a",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "softbreak in para 1.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "And this is para 2.",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts softbreak.json to and from Markdown 2`] = `
-"This is a
-softbreak in para 1.
-
-And this is para 2."
-`;
-
-exports[`markdown <-> slate converts softbreak.json to and from Markdown 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "This is a",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "softbreak in para 1.",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "And this is para 2.",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`markdown <-> slate converts softbreak.json to and from Markdown 4`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "This is a",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "softbreak in para 1.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "And this is para 2.",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts table.json to and from Markdown 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Table",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableHead",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableRow",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.HeaderCell",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Column 1",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.HeaderCell",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Column 2",
- },
- ],
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableBody",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableRow",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableCell",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Simple",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableCell",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Table",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableRow",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableCell",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Paragraph",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableCell",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Text",
- },
- ],
- },
- ],
- },
- ],
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts table.json to and from Markdown 2`] = `
-"| Column 1 | Column 2 |
-| ----------- | ----------- |
-| Simple | Table |
-| Paragraph | Text |"
-`;
-
-exports[`markdown <-> slate converts table.json to and from Markdown 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "Column 1",
- },
- ],
- "data": {},
- "object": "block",
- "type": "header_cell",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Column 2",
- },
- ],
- "data": {},
- "object": "block",
- "type": "header_cell",
- },
- ],
- "data": {},
- "object": "block",
- "type": "table_row",
- },
- ],
- "data": {},
- "object": "block",
- "type": "table_head",
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "Simple",
- },
- ],
- "data": {},
- "object": "block",
- "type": "table_cell",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Table",
- },
- ],
- "data": {},
- "object": "block",
- "type": "table_cell",
- },
- ],
- "data": {},
- "object": "block",
- "type": "table_row",
- },
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "Paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "table_cell",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Text",
- },
- ],
- "data": {},
- "object": "block",
- "type": "table_cell",
- },
- ],
- "data": {},
- "object": "block",
- "type": "table_row",
- },
- ],
- "data": {},
- "object": "block",
- "type": "table_body",
- },
- ],
- "data": {},
- "object": "block",
- "type": "table",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`markdown <-> slate converts table.json to and from Markdown 4`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Table",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableHead",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableRow",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.HeaderCell",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Column 1",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.HeaderCell",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Column 2",
- },
- ],
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableBody",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableRow",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableCell",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Simple",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableCell",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Table",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableRow",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableCell",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Paragraph",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableCell",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Text",
- },
- ],
- },
- ],
- },
- ],
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts table_complex.json to and from Markdown 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Table",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableHead",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableRow",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.HeaderCell",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Column 1",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.HeaderCell",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Column 2",
- },
- ],
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableBody",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableRow",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableCell",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Code",
- "text": "code block",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableCell",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Image",
- "destination": "https://docs.accordproject.org/docs/assets/020/template.png",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "",
- },
- ],
- "title": "AP triangle",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableRow",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableCell",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Paragraph",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableCell",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Strong",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Bold content",
- },
- ],
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableRow",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableCell",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Link",
- "destination": "http://clause.io",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "link",
- },
- ],
- "title": "",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableCell",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Emph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Italics",
- },
- ],
- },
- ],
- },
- ],
- },
- ],
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts table_complex.json to and from Markdown 2`] = `
-"| Column 1 | Column 2 |
-| ----------- | ----------- |
-| \`code block\` |  |
-| Paragraph | **Bold content** |
-| [link](http://clause.io) | *Italics* |"
-`;
-
-exports[`markdown <-> slate converts table_complex.json to and from Markdown 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "Column 1",
- },
- ],
- "data": {},
- "object": "block",
- "type": "header_cell",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Column 2",
- },
- ],
- "data": {},
- "object": "block",
- "type": "header_cell",
- },
- ],
- "data": {},
- "object": "block",
- "type": "table_row",
- },
- ],
- "data": {},
- "object": "block",
- "type": "table_head",
- },
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "code": true,
- "object": "text",
- "text": "code block",
- },
- ],
- "data": {},
- "object": "block",
- "type": "table_cell",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {
- "href": "https://docs.accordproject.org/docs/assets/020/template.png",
- "title": "AP triangle",
- },
- "object": "inline",
- "type": "image",
- },
- ],
- "data": {},
- "object": "block",
- "type": "table_cell",
- },
- ],
- "data": {},
- "object": "block",
- "type": "table_row",
- },
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "Paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "table_cell",
- },
- {
- "children": [
- {
- "bold": true,
- "object": "text",
- "text": "Bold content",
- },
- ],
- "data": {},
- "object": "block",
- "type": "table_cell",
- },
- ],
- "data": {},
- "object": "block",
- "type": "table_row",
- },
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "link",
- },
- ],
- "data": {
- "href": "http://clause.io",
- "title": "",
- },
- "object": "inline",
- "type": "link",
- },
- ],
- "data": {},
- "object": "block",
- "type": "table_cell",
- },
- {
- "children": [
- {
- "italic": true,
- "object": "text",
- "text": "Italics",
- },
- ],
- "data": {},
- "object": "block",
- "type": "table_cell",
- },
- ],
- "data": {},
- "object": "block",
- "type": "table_row",
- },
- ],
- "data": {},
- "object": "block",
- "type": "table_body",
- },
- ],
- "data": {},
- "object": "block",
- "type": "table",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`markdown <-> slate converts table_complex.json to and from Markdown 4`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Table",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableHead",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableRow",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.HeaderCell",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Column 1",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.HeaderCell",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Column 2",
- },
- ],
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableBody",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableRow",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableCell",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Code",
- "text": "code block",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableCell",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Image",
- "destination": "https://docs.accordproject.org/docs/assets/020/template.png",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "",
- },
- ],
- "title": "AP triangle",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableRow",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableCell",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Paragraph",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableCell",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Strong",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Bold content",
- },
- ],
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableRow",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableCell",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Link",
- "destination": "http://clause.io",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "link",
- },
- ],
- "title": "",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.TableCell",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Emph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Italics",
- },
- ],
- },
- ],
- },
- ],
- },
- ],
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts text.json to and from Markdown 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "plain ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Emph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "italic",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Strong",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "bold",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Emph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Strong",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "bold-italic",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Code",
- "text": "code",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts text.json to and from Markdown 2`] = `"plain *italic* **bold** ***bold-italic*** \`code\`"`;
-
-exports[`markdown <-> slate converts text.json to and from Markdown 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "plain ",
- },
- {
- "italic": true,
- "object": "text",
- "text": "italic",
- },
- {
- "object": "text",
- "text": " ",
- },
- {
- "bold": true,
- "object": "text",
- "text": "bold",
- },
- {
- "object": "text",
- "text": " ",
- },
- {
- "bold": true,
- "italic": true,
- "object": "text",
- "text": "bold-italic",
- },
- {
- "object": "text",
- "text": " ",
- },
- {
- "code": true,
- "object": "text",
- "text": "code",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`markdown <-> slate converts text.json to and from Markdown 4`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "plain ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Emph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "italic",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Strong",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "bold",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Emph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Strong",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "bold-italic",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " ",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Code",
- "text": "code",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts thematicbreak.json to and from Markdown 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "This is a",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.ThematicBreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "thematic break",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts thematicbreak.json to and from Markdown 2`] = `
-"This is a
-
-----
-
-thematic break"
-`;
-
-exports[`markdown <-> slate converts thematicbreak.json to and from Markdown 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "This is a",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "hr": true,
- "object": "block",
- "type": "horizontal_rule",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "thematic break",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`markdown <-> slate converts thematicbreak.json to and from Markdown 4`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "This is a",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.ThematicBreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "thematic break",
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts unordered.json to and from Markdown 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.List",
- "delimiter": undefined,
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "one",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "two",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "three",
- },
- ],
- },
- ],
- },
- ],
- "start": undefined,
- "tight": "true",
- "type": "bullet",
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`markdown <-> slate converts unordered.json to and from Markdown 2`] = `
-"* one
-* two
-* three"
-`;
-
-exports[`markdown <-> slate converts unordered.json to and from Markdown 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "one",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "two",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "three",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {},
- "object": "block",
- "type": "list_item",
- },
- ],
- "data": {
- "delimiter": undefined,
- "start": undefined,
- "tight": "true",
- },
- "object": "block",
- "type": "ul_list",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`markdown <-> slate converts unordered.json to and from Markdown 4`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.List",
- "delimiter": undefined,
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "one",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "two",
- },
- ],
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "three",
- },
- ],
- },
- ],
- },
- ],
- "start": undefined,
- "tight": "true",
- "type": "bullet",
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`slate -> markdown_cicero converts acceptance from slate to markdown cicero 1`] = `
-"Heading
-====
-
-And below is a **clause**.
-
-{{#clause deliveryClause}}
-Acceptance of Delivery.
-----
-
-"Party A" will be deemed to have completed its delivery obligations
-if in "Party B"'s opinion, the "Widgets" satisfies the
-Acceptance Criteria, and "Party B" notifies "Party A" in writing
-that it is accepting the "Widgets".
-
-Inspection and Notice.
-----
-
-"Party B" will have 10 Business Days to inspect and
-evaluate the "Widgets" on the delivery date before notifying
-"Party A" that it is either accepting or rejecting the
-"Widgets".
-
-Acceptance Criteria.
-----
-
-The "Acceptance Criteria" are the specifications the "Widgets"
-must meet for the "Party A" to comply with its requirements and
-obligations under this agreement, detailed in "Attachment X", attached
-to this agreement.
-{{/clause}}
-
-More text"
-`;
-
-exports[`templatemark <-> slate converts acceptance_slate.json to and from TemplateMark 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.templatemark@0.5.0.ClauseDefinition",
- "elementType": "org.accordproject.acceptanceofdelivery@1.0.0.AcceptanceOfDeliveryClause",
- "name": "top",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Acceptance of Delivery.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "shipper",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " will be deemed to have completed its delivery obligations",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "if in ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "receiver",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "'s opinion, the ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "String",
- "name": "deliverable",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " satisfies the",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Acceptance Criteria, and ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "receiver",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " notifies ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "shipper",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " in writing",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "that it is accepting the ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "String",
- "name": "deliverable",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ".",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Inspection and Notice.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "receiver",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " will have ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "Long",
- "name": "businessDays",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " Business Days to inspect and",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "evaluate the ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "String",
- "name": "deliverable",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " on the delivery date before notifying",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "shipper",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " that it is either accepting or rejecting the",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "String",
- "name": "deliverable",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ".",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Acceptance Criteria.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "The "Acceptance Criteria" are the specifications the ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "String",
- "name": "deliverable",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "must meet for the ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "shipper",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " to comply with its requirements and",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "obligations under this agreement, detailed in ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "String",
- "name": "attachment",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ", attached",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "to this agreement.",
- },
- ],
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`templatemark <-> slate converts acceptance_slate.json to and from TemplateMark 2`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.templatemark@0.5.0.ClauseDefinition",
- "elementType": "org.accordproject.acceptanceofdelivery@1.0.0.AcceptanceOfDeliveryClause",
- "name": "top",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Acceptance of Delivery.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "shipper",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " will be deemed to have completed its delivery obligations",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "if in ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "receiver",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "'s opinion, the ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "String",
- "name": "deliverable",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " satisfies the",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Acceptance Criteria, and ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "receiver",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " notifies ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "shipper",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " in writing",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "that it is accepting the ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "String",
- "name": "deliverable",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ".",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Inspection and Notice.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "receiver",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " will have ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "Long",
- "name": "businessDays",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " Business Days to inspect and",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "evaluate the ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "String",
- "name": "deliverable",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " on the delivery date before notifying",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "shipper",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " that it is either accepting or rejecting the",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "String",
- "name": "deliverable",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ".",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Acceptance Criteria.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "The "Acceptance Criteria" are the specifications the ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "String",
- "name": "deliverable",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "must meet for the ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "shipper",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " to comply with its requirements and",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "obligations under this agreement, detailed in ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "String",
- "name": "attachment",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ", attached",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "to this agreement.",
- },
- ],
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`templatemark <-> slate converts acceptance_slate.json to and from TemplateMark 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "Acceptance of Delivery.",
- },
- ],
- "data": {},
- "object": "block",
- "type": "heading_two",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "shipper",
- },
- ],
- "data": {
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "shipper",
- },
- "object": "inline",
- "type": "variable_definition",
- },
- {
- "object": "text",
- "text": " will be deemed to have completed its delivery obligations",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "if in ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "receiver",
- },
- ],
- "data": {
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "receiver",
- },
- "object": "inline",
- "type": "variable_definition",
- },
- {
- "object": "text",
- "text": "'s opinion, the ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "deliverable",
- },
- ],
- "data": {
- "elementType": "String",
- "name": "deliverable",
- },
- "object": "inline",
- "type": "variable_definition",
- },
- {
- "object": "text",
- "text": " satisfies the",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "Acceptance Criteria, and ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "receiver",
- },
- ],
- "data": {
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "receiver",
- },
- "object": "inline",
- "type": "variable_definition",
- },
- {
- "object": "text",
- "text": " notifies ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "shipper",
- },
- ],
- "data": {
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "shipper",
- },
- "object": "inline",
- "type": "variable_definition",
- },
- {
- "object": "text",
- "text": " in writing",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "that it is accepting the ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "deliverable",
- },
- ],
- "data": {
- "elementType": "String",
- "name": "deliverable",
- },
- "object": "inline",
- "type": "variable_definition",
- },
- {
- "object": "text",
- "text": ".",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Inspection and Notice.",
- },
- ],
- "data": {},
- "object": "block",
- "type": "heading_two",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "receiver",
- },
- ],
- "data": {
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "receiver",
- },
- "object": "inline",
- "type": "variable_definition",
- },
- {
- "object": "text",
- "text": " will have ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "businessDays",
- },
- ],
- "data": {
- "elementType": "Long",
- "name": "businessDays",
- },
- "object": "inline",
- "type": "variable_definition",
- },
- {
- "object": "text",
- "text": " Business Days to inspect and",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "evaluate the ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "deliverable",
- },
- ],
- "data": {
- "elementType": "String",
- "name": "deliverable",
- },
- "object": "inline",
- "type": "variable_definition",
- },
- {
- "object": "text",
- "text": " on the delivery date before notifying",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "shipper",
- },
- ],
- "data": {
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "shipper",
- },
- "object": "inline",
- "type": "variable_definition",
- },
- {
- "object": "text",
- "text": " that it is either accepting or rejecting the",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "deliverable",
- },
- ],
- "data": {
- "elementType": "String",
- "name": "deliverable",
- },
- "object": "inline",
- "type": "variable_definition",
- },
- {
- "object": "text",
- "text": ".",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "Acceptance Criteria.",
- },
- ],
- "data": {},
- "object": "block",
- "type": "heading_two",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "The "Acceptance Criteria" are the specifications the ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "deliverable",
- },
- ],
- "data": {
- "elementType": "String",
- "name": "deliverable",
- },
- "object": "inline",
- "type": "variable_definition",
- },
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "must meet for the ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "shipper",
- },
- ],
- "data": {
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier",
- "name": "shipper",
- },
- "object": "inline",
- "type": "variable_definition",
- },
- {
- "object": "text",
- "text": " to comply with its requirements and",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "obligations under this agreement, detailed in ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "attachment",
- },
- ],
- "data": {
- "elementType": "String",
- "name": "attachment",
- },
- "object": "inline",
- "type": "variable_definition",
- },
- {
- "object": "text",
- "text": ", attached",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "to this agreement.",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {
- "elementType": "org.accordproject.acceptanceofdelivery@1.0.0.AcceptanceOfDeliveryClause",
- "name": "top",
- },
- "object": "block",
- "type": "clause_definition",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`templatemark <-> slate converts latedelivery_slate.json to and from TemplateMark 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.templatemark@0.5.0.ContractDefinition",
- "elementType": "org.accordproject.latedeliveryandpenalty.LateDeliveryAndPenaltyContract",
- "name": "top",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Late Delivery and Penalty.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "In case of delayed delivery",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.ConditionalDefinition",
- "name": "forceMajeure",
- "whenFalse": [],
- "whenTrue": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " except for Force Majeure cases,",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "org.accordproject.cicero.contract.AccordParty",
- "name": "seller",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " (the Seller) shall pay to ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "org.accordproject.cicero.contract.AccordParty",
- "name": "buyer",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " (the Buyer) for every ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "org.accordproject.time.Duration",
- "name": "penaltyDuration",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "of delay penalty amounting to ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "Double",
- "name": "penaltyPercentage",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "% of the total value of the Equipment",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "whose delivery has been delayed. Any fractional part of a ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.EnumVariableDefinition",
- "elementType": "org.accordproject.time.TemporalUnit",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks",
- ],
- "name": "fractionalPart",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " is to be",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "considered a full ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.EnumVariableDefinition",
- "elementType": "org.accordproject.time.TemporalUnit",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks",
- ],
- "name": "fractionalPart",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ". The total amount of penalty shall not however,",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "exceed ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "Double",
- "name": "capPercentage",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "% of the total value of the Equipment involved in late delivery.",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "If the delay is more than ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "org.accordproject.time.Duration",
- "name": "termination",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ", the Buyer is entitled to terminate this Contract.",
- },
- ],
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`templatemark <-> slate converts latedelivery_slate.json to and from TemplateMark 2`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.templatemark@0.5.0.ContractDefinition",
- "elementType": "org.accordproject.latedeliveryandpenalty.LateDeliveryAndPenaltyContract",
- "name": "top",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Late Delivery and Penalty.",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "In case of delayed delivery",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.ConditionalDefinition",
- "name": "forceMajeure",
- "whenFalse": [],
- "whenTrue": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " except for Force Majeure cases,",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "org.accordproject.cicero.contract.AccordParty",
- "name": "seller",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " (the Seller) shall pay to ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "org.accordproject.cicero.contract.AccordParty",
- "name": "buyer",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " (the Buyer) for every ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "org.accordproject.time.Duration",
- "name": "penaltyDuration",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "of delay penalty amounting to ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "Double",
- "name": "penaltyPercentage",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "% of the total value of the Equipment",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "whose delivery has been delayed. Any fractional part of a ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.EnumVariableDefinition",
- "elementType": "org.accordproject.time.TemporalUnit",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks",
- ],
- "name": "fractionalPart",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " is to be",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "considered a full ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.EnumVariableDefinition",
- "elementType": "org.accordproject.time.TemporalUnit",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks",
- ],
- "name": "fractionalPart",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ". The total amount of penalty shall not however,",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "exceed ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "Double",
- "name": "capPercentage",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "% of the total value of the Equipment involved in late delivery.",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "If the delay is more than ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "org.accordproject.time.Duration",
- "name": "termination",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ", the Buyer is entitled to terminate this Contract.",
- },
- ],
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`templatemark <-> slate converts latedelivery_slate.json to and from TemplateMark 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "Late Delivery and Penalty.",
- },
- ],
- "data": {},
- "object": "block",
- "type": "heading_two",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "In case of delayed delivery",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {
- "isTrue": undefined,
- "name": "forceMajeure",
- "whenFalse": [],
- "whenTrue": [
- {
- "object": "text",
- "text": " except for Force Majeure cases,",
- },
- ],
- },
- "object": "inline",
- "type": "conditional_definition",
- },
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "seller",
- },
- ],
- "data": {
- "elementType": "org.accordproject.cicero.contract.AccordParty",
- "name": "seller",
- },
- "object": "inline",
- "type": "variable_definition",
- },
- {
- "object": "text",
- "text": " (the Seller) shall pay to ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "buyer",
- },
- ],
- "data": {
- "elementType": "org.accordproject.cicero.contract.AccordParty",
- "name": "buyer",
- },
- "object": "inline",
- "type": "variable_definition",
- },
- {
- "object": "text",
- "text": " (the Buyer) for every ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "penaltyDuration",
- },
- ],
- "data": {
- "elementType": "org.accordproject.time.Duration",
- "name": "penaltyDuration",
- },
- "object": "inline",
- "type": "variable_definition",
- },
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "of delay penalty amounting to ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "penaltyPercentage",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "penaltyPercentage",
- },
- "object": "inline",
- "type": "variable_definition",
- },
- {
- "object": "text",
- "text": "% of the total value of the Equipment",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "whose delivery has been delayed. Any fractional part of a ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "fractionalPart",
- },
- ],
- "data": {
- "elementType": "org.accordproject.time.TemporalUnit",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks",
- ],
- "name": "fractionalPart",
- },
- "object": "inline",
- "type": "variable_definition",
- },
- {
- "object": "text",
- "text": " is to be",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "considered a full ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "fractionalPart",
- },
- ],
- "data": {
- "elementType": "org.accordproject.time.TemporalUnit",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks",
- ],
- "name": "fractionalPart",
- },
- "object": "inline",
- "type": "variable_definition",
- },
- {
- "object": "text",
- "text": ". The total amount of penalty shall not however,",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "exceed ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "capPercentage",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "capPercentage",
- },
- "object": "inline",
- "type": "variable_definition",
- },
- {
- "object": "text",
- "text": "% of the total value of the Equipment involved in late delivery.",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {},
- "object": "inline",
- "type": "softbreak",
- },
- {
- "object": "text",
- "text": "If the delay is more than ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "termination",
- },
- ],
- "data": {
- "elementType": "org.accordproject.time.Duration",
- "name": "termination",
- },
- "object": "inline",
- "type": "variable_definition",
- },
- {
- "object": "text",
- "text": ", the Buyer is entitled to terminate this Contract.",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {
- "elementType": "org.accordproject.latedeliveryandpenalty.LateDeliveryAndPenaltyContract",
- "name": "top",
- },
- "object": "block",
- "type": "contract_definition",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
-
-exports[`templatemark <-> slate converts test1_slate.json to and from TemplateMark 1`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.templatemark@0.5.0.ClauseDefinition",
- "elementType": "org.test.MyClause",
- "name": "top",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "This is a contract between ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "String",
- "name": "seller",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " and ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "String",
- "name": "buyer",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " for the amount of ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "Double",
- "name": "amount",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.EnumVariableDefinition",
- "elementType": "org.accordproject.money.CurrencyCode",
- "enumValues": [
- "AED",
- "AFN",
- "ALL",
- "AMD",
- "ANG",
- "AOA",
- "ARS",
- "AUD",
- "AWG",
- "AZN",
- "BAM",
- "BBD",
- "BDT",
- "BGN",
- "BHD",
- "BIF",
- "BMD",
- "BND",
- "BOB",
- "BOV",
- "BRL",
- "BSD",
- "BTN",
- "BWP",
- "BYN",
- "BZD",
- "CAD",
- "CDF",
- "CHE",
- "CHF",
- "CHW",
- "CLF",
- "CLP",
- "CNY",
- "COP",
- "COU",
- "CRC",
- "CUC",
- "CUP",
- "CVE",
- "CZK",
- "DJF",
- "DKK",
- "DOP",
- "DZD",
- "EGP",
- "ERN",
- "ETB",
- "EUR",
- "FJD",
- "FKP",
- "GBP",
- "GEL",
- "GHS",
- "GIP",
- "GMD",
- "GNF",
- "GTQ",
- "GYD",
- "HKD",
- "HNL",
- "HRK",
- "HTG",
- "HUF",
- "IDR",
- "ILS",
- "INR",
- "IQD",
- "IRR",
- "ISK",
- "JMD",
- "JOD",
- "JPY",
- "KES",
- "KGS",
- "KHR",
- "KMF",
- "KPW",
- "KRW",
- "KWD",
- "KYD",
- "KZT",
- "LAK",
- "LBP",
- "LKR",
- "LRD",
- "LSL",
- "LYD",
- "MAD",
- "MDL",
- "MGA",
- "MKD",
- "MMK",
- "MNT",
- "MOP",
- "MRU",
- "MUR",
- "MVR",
- "MWK",
- "MXN",
- "MXV",
- "MYR",
- "MZN",
- "NAD",
- "NGN",
- "NIO",
- "NOK",
- "NPR",
- "NZD",
- "OMR",
- "PAB",
- "PEN",
- "PGK",
- "PHP",
- "PKR",
- "PLN",
- "PYG",
- "QAR",
- "RON",
- "RSD",
- "RUB",
- "RWF",
- "SAR",
- "SBD",
- "SCR",
- "SDG",
- "SEK",
- "SGD",
- "SHP",
- "SLL",
- "SOS",
- "SRD",
- "SSP",
- "STN",
- "SVC",
- "SYP",
- "SZL",
- "THB",
- "TJS",
- "TMT",
- "TND",
- "TOP",
- "TRY",
- "TTD",
- "TWD",
- "TZS",
- "UAH",
- "UGX",
- "USD",
- "USN",
- "UYI",
- "UYU",
- "UZS",
- "VEF",
- "VND",
- "VUV",
- "WST",
- "XAF",
- "XAG",
- "XAU",
- "XBA",
- "XBB",
- "XBC",
- "XBD",
- "XCD",
- "XDR",
- "XOF",
- "XPD",
- "XPF",
- "XPT",
- "XSU",
- "XTS",
- "XUA",
- "XXX",
- "YER",
- "ZAR",
- "ZMW",
- "ZWL",
- ],
- "name": "currency",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.ConditionalDefinition",
- "name": "forceMajeure",
- "whenFalse": [],
- "whenTrue": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ", even in the presence of force majeure",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ".",
- },
- ],
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`templatemark <-> slate converts test1_slate.json to and from TemplateMark 2`] = `
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "nodes": [
- {
- "$class": "org.accordproject.templatemark@0.5.0.ClauseDefinition",
- "elementType": "org.test.MyClause",
- "name": "top",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "This is a contract between ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "String",
- "name": "seller",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " and ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "String",
- "name": "buyer",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " for the amount of ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "elementType": "Double",
- "name": "amount",
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " ",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.EnumVariableDefinition",
- "elementType": "org.accordproject.money.CurrencyCode",
- "enumValues": [
- "AED",
- "AFN",
- "ALL",
- "AMD",
- "ANG",
- "AOA",
- "ARS",
- "AUD",
- "AWG",
- "AZN",
- "BAM",
- "BBD",
- "BDT",
- "BGN",
- "BHD",
- "BIF",
- "BMD",
- "BND",
- "BOB",
- "BOV",
- "BRL",
- "BSD",
- "BTN",
- "BWP",
- "BYN",
- "BZD",
- "CAD",
- "CDF",
- "CHE",
- "CHF",
- "CHW",
- "CLF",
- "CLP",
- "CNY",
- "COP",
- "COU",
- "CRC",
- "CUC",
- "CUP",
- "CVE",
- "CZK",
- "DJF",
- "DKK",
- "DOP",
- "DZD",
- "EGP",
- "ERN",
- "ETB",
- "EUR",
- "FJD",
- "FKP",
- "GBP",
- "GEL",
- "GHS",
- "GIP",
- "GMD",
- "GNF",
- "GTQ",
- "GYD",
- "HKD",
- "HNL",
- "HRK",
- "HTG",
- "HUF",
- "IDR",
- "ILS",
- "INR",
- "IQD",
- "IRR",
- "ISK",
- "JMD",
- "JOD",
- "JPY",
- "KES",
- "KGS",
- "KHR",
- "KMF",
- "KPW",
- "KRW",
- "KWD",
- "KYD",
- "KZT",
- "LAK",
- "LBP",
- "LKR",
- "LRD",
- "LSL",
- "LYD",
- "MAD",
- "MDL",
- "MGA",
- "MKD",
- "MMK",
- "MNT",
- "MOP",
- "MRU",
- "MUR",
- "MVR",
- "MWK",
- "MXN",
- "MXV",
- "MYR",
- "MZN",
- "NAD",
- "NGN",
- "NIO",
- "NOK",
- "NPR",
- "NZD",
- "OMR",
- "PAB",
- "PEN",
- "PGK",
- "PHP",
- "PKR",
- "PLN",
- "PYG",
- "QAR",
- "RON",
- "RSD",
- "RUB",
- "RWF",
- "SAR",
- "SBD",
- "SCR",
- "SDG",
- "SEK",
- "SGD",
- "SHP",
- "SLL",
- "SOS",
- "SRD",
- "SSP",
- "STN",
- "SVC",
- "SYP",
- "SZL",
- "THB",
- "TJS",
- "TMT",
- "TND",
- "TOP",
- "TRY",
- "TTD",
- "TWD",
- "TZS",
- "UAH",
- "UGX",
- "USD",
- "USN",
- "UYI",
- "UYU",
- "UZS",
- "VEF",
- "VND",
- "VUV",
- "WST",
- "XAF",
- "XAG",
- "XAU",
- "XBA",
- "XBB",
- "XBC",
- "XBD",
- "XCD",
- "XDR",
- "XOF",
- "XPD",
- "XPF",
- "XPT",
- "XSU",
- "XTS",
- "XUA",
- "XXX",
- "YER",
- "ZAR",
- "ZMW",
- "ZWL",
- ],
- "name": "currency",
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.ConditionalDefinition",
- "name": "forceMajeure",
- "whenFalse": [],
- "whenTrue": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ", even in the presence of force majeure",
- },
- ],
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ".",
- },
- ],
- },
- ],
- },
- ],
- "xmlns": "http://commonmark.org/xml/1.0",
-}
-`;
-
-exports[`templatemark <-> slate converts test1_slate.json to and from TemplateMark 3`] = `
-{
- "document": {
- "children": [
- {
- "children": [
- {
- "children": [
- {
- "object": "text",
- "text": "This is a contract between ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "seller",
- },
- ],
- "data": {
- "elementType": "String",
- "name": "seller",
- },
- "object": "inline",
- "type": "variable_definition",
- },
- {
- "object": "text",
- "text": " and ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "buyer",
- },
- ],
- "data": {
- "elementType": "String",
- "name": "buyer",
- },
- "object": "inline",
- "type": "variable_definition",
- },
- {
- "object": "text",
- "text": " for the amount of ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "amount",
- },
- ],
- "data": {
- "elementType": "Double",
- "name": "amount",
- },
- "object": "inline",
- "type": "variable_definition",
- },
- {
- "object": "text",
- "text": " ",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "currency",
- },
- ],
- "data": {
- "elementType": "org.accordproject.money.CurrencyCode",
- "enumValues": [
- "AED",
- "AFN",
- "ALL",
- "AMD",
- "ANG",
- "AOA",
- "ARS",
- "AUD",
- "AWG",
- "AZN",
- "BAM",
- "BBD",
- "BDT",
- "BGN",
- "BHD",
- "BIF",
- "BMD",
- "BND",
- "BOB",
- "BOV",
- "BRL",
- "BSD",
- "BTN",
- "BWP",
- "BYN",
- "BZD",
- "CAD",
- "CDF",
- "CHE",
- "CHF",
- "CHW",
- "CLF",
- "CLP",
- "CNY",
- "COP",
- "COU",
- "CRC",
- "CUC",
- "CUP",
- "CVE",
- "CZK",
- "DJF",
- "DKK",
- "DOP",
- "DZD",
- "EGP",
- "ERN",
- "ETB",
- "EUR",
- "FJD",
- "FKP",
- "GBP",
- "GEL",
- "GHS",
- "GIP",
- "GMD",
- "GNF",
- "GTQ",
- "GYD",
- "HKD",
- "HNL",
- "HRK",
- "HTG",
- "HUF",
- "IDR",
- "ILS",
- "INR",
- "IQD",
- "IRR",
- "ISK",
- "JMD",
- "JOD",
- "JPY",
- "KES",
- "KGS",
- "KHR",
- "KMF",
- "KPW",
- "KRW",
- "KWD",
- "KYD",
- "KZT",
- "LAK",
- "LBP",
- "LKR",
- "LRD",
- "LSL",
- "LYD",
- "MAD",
- "MDL",
- "MGA",
- "MKD",
- "MMK",
- "MNT",
- "MOP",
- "MRU",
- "MUR",
- "MVR",
- "MWK",
- "MXN",
- "MXV",
- "MYR",
- "MZN",
- "NAD",
- "NGN",
- "NIO",
- "NOK",
- "NPR",
- "NZD",
- "OMR",
- "PAB",
- "PEN",
- "PGK",
- "PHP",
- "PKR",
- "PLN",
- "PYG",
- "QAR",
- "RON",
- "RSD",
- "RUB",
- "RWF",
- "SAR",
- "SBD",
- "SCR",
- "SDG",
- "SEK",
- "SGD",
- "SHP",
- "SLL",
- "SOS",
- "SRD",
- "SSP",
- "STN",
- "SVC",
- "SYP",
- "SZL",
- "THB",
- "TJS",
- "TMT",
- "TND",
- "TOP",
- "TRY",
- "TTD",
- "TWD",
- "TZS",
- "UAH",
- "UGX",
- "USD",
- "USN",
- "UYI",
- "UYU",
- "UZS",
- "VEF",
- "VND",
- "VUV",
- "WST",
- "XAF",
- "XAG",
- "XAU",
- "XBA",
- "XBB",
- "XBC",
- "XBD",
- "XCD",
- "XDR",
- "XOF",
- "XPD",
- "XPF",
- "XPT",
- "XSU",
- "XTS",
- "XUA",
- "XXX",
- "YER",
- "ZAR",
- "ZMW",
- "ZWL",
- ],
- "name": "currency",
- },
- "object": "inline",
- "type": "variable_definition",
- },
- {
- "object": "text",
- "text": "",
- },
- {
- "children": [
- {
- "object": "text",
- "text": "",
- },
- ],
- "data": {
- "isTrue": undefined,
- "name": "forceMajeure",
- "whenFalse": [],
- "whenTrue": [
- {
- "object": "text",
- "text": ", even in the presence of force majeure",
- },
- ],
- },
- "object": "inline",
- "type": "conditional_definition",
- },
- {
- "object": "text",
- "text": ".",
- },
- ],
- "data": {},
- "object": "block",
- "type": "paragraph",
- },
- ],
- "data": {
- "elementType": "org.test.MyClause",
- "name": "top",
- },
- "object": "block",
- "type": "clause_definition",
- },
- ],
- "data": {},
- "object": "document",
- },
-}
-`;
diff --git a/packages/markdown-slate/lib/ciceromarkfromslaterules.js b/packages/markdown-slate/lib/ciceromarkfromslaterules.js
deleted file mode 100644
index 44ec5f5d..00000000
--- a/packages/markdown-slate/lib/ciceromarkfromslaterules.js
+++ /dev/null
@@ -1,84 +0,0 @@
-/*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-'use strict';
-
-const { CiceroMarkModel } = require('@accordproject/markdown-common');
-
-const fromslateutil = require('./fromslateutil');
-
-const rules = {};
-
-// CiceroMark rules
-rules.ol_list_block = (node,processNodes) => {
- let result;
- result = {$class : `${CiceroMarkModel.NAMESPACE}.ListBlock`, name: node.data.name, type: 'ordered', delimiter: node.data.delimiter, start: node.data.start, tight: node.data.tight, nodes: []};
- if (node.data.elementType) {
- result.elementType = node.data.elementType;
- }
- if (node.data.decorators) {
- result.decorators = node.data.decorators;
- }
- return result;
-};
-rules.ul_list_block = (node,processNodes) => {
- let result;
- result = {$class : `${CiceroMarkModel.NAMESPACE}.ListBlock`, name: node.data.name, type: 'bullet', delimiter: node.data.delimiter, start: node.data.start, tight: node.data.tight, nodes: []};
- if (node.data.elementType) {
- result.elementType = node.data.elementType;
- }
- if (node.data.decorators) {
- result.decorators = node.data.decorators;
- }
- return result;
-};
-
-rules.clause = (node,processNodes) => {
- // console.log(JSON.stringify(node, null, 4));
- const result = {$class : `${CiceroMarkModel.NAMESPACE}.Clause`, name: node.data.name, nodes: []};
- if (node.data.elementType) {
- result.elementType = node.data.elementType;
- }
- if (node.data.decorators) {
- result.decorators = node.data.decorators;
- }
- if (node.data.src) {
- result.src = node.data.src;
- }
- return result;
-};
-rules.conditional = (node,processNodes) => {
- const isTrue = node.data.isTrue;
- let whenTrueNodes = [];
- processNodes(whenTrueNodes, node.data.whenTrue);
- let whenFalseNodes = [];
- processNodes(whenFalseNodes, node.data.whenFalse);
- return fromslateutil.handleConditional(node,isTrue,whenTrueNodes,whenFalseNodes);
-};
-rules.optional = (node,processNodes) => {
- const hasSome = node.data.hasSome;
- let whenSomeNodes = [];
- processNodes(whenSomeNodes, node.data.whenSome);
- let whenNoneNodes = [];
- processNodes(whenNoneNodes, node.data.whenNone);
- return fromslateutil.handleOptional(node,hasSome,whenSomeNodes,whenNoneNodes);
-};
-rules.variable = (node,processNodes) => {
- return fromslateutil.handleVariable(node);
-};
-rules.formula = (node,processNodes) => {
- return fromslateutil.handleFormula(node);
-};
-
-module.exports = rules;
\ No newline at end of file
diff --git a/packages/markdown-slate/lib/ciceromarktoslaterules.js b/packages/markdown-slate/lib/ciceromarktoslaterules.js
deleted file mode 100644
index 8c824560..00000000
--- a/packages/markdown-slate/lib/ciceromarktoslaterules.js
+++ /dev/null
@@ -1,134 +0,0 @@
-/*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-'use strict';
-
-const toslateutil = require('./toslateutil');
-
-const rules = {};
-
-rules.Clause = (thing,processChildren,parameters) => {
- const data = {};
- data.name = thing.name;
- if (thing.src) {
- data.src = thing.src;
- }
- if (thing.elementType) {
- data.elementType = thing.elementType;
- }
- if (thing.decorators) {
- data.decorators = thing.decorators.map(x => parameters.serializer.toJSON(x));
- }
- return {
- object: 'block',
- type: 'clause',
- data: data,
- children: processChildren(thing,'nodes',parameters),
- };
-};
-rules.Variable = (thing,processChildren,parameters) => {
- const data = { name: thing.name };
- if (thing.elementType) {
- data.elementType = thing.elementType;
- }
- if (thing.decorators) {
- data.decorators = thing.decorators.map(x => parameters.serializer.toJSON(x));
- }
- if (thing.identifiedBy) {
- data.identifiedBy = thing.identifiedBy;
- }
- return toslateutil.handleVariable('variable', data, thing.value, parameters);
-};
-rules.FormattedVariable = (thing,processChildren,parameters) => {
- const data = { name: thing.name, format: thing.format };
- if (thing.elementType) {
- data.elementType = thing.elementType;
- }
- if (thing.decorators) {
- data.decorators = thing.decorators.map(x => parameters.serializer.toJSON(x));
- }
- return toslateutil.handleVariable('variable', data, thing.value, parameters);
-};
-rules.EnumVariable = (thing,processChildren,parameters) => {
- const data = { name: thing.name, enumValues: thing.enumValues };
- if (thing.elementType) {
- data.elementType = thing.elementType;
- }
- if (thing.decorators) {
- data.decorators = thing.decorators.map(x => parameters.serializer.toJSON(x));
- }
- return toslateutil.handleVariable('variable', data, thing.value, parameters);
-};
-rules.Conditional = (thing,processChildren,parameters) => {
- const localParameters = Object.assign({},parameters);
- parameters.strong = false;
- parameters.italic = false;
- const nodes = processChildren(thing,'nodes',parameters);
- const whenTrue = processChildren(thing,'whenTrue',parameters);
- const whenFalse = processChildren(thing,'whenFalse',parameters);
- const data = { name: thing.name, isTrue: thing.isTrue, whenTrue: whenTrue, whenFalse: whenFalse };
- if (thing.elementType) {
- data.elementType = thing.elementType;
- }
- if (thing.decorators) {
- data.decorators = thing.decorators.map(x => parameters.serializer.toJSON(x));
- }
- return toslateutil.handleBlockDefinition('conditional', data, nodes, localParameters);
-};
-rules.Optional = (thing,processChildren,parameters) => {
- const localParameters = Object.assign({},parameters);
- parameters.strong = false;
- parameters.italic = false;
- const nodes = processChildren(thing,'nodes',parameters);
- const whenSome = processChildren(thing,'whenSome',parameters);
- const whenNone = processChildren(thing,'whenNone',parameters);
- const data = { name: thing.name, hasSome: thing.hasSome, whenSome: whenSome, whenNone: whenNone };
- if (thing.elementType) {
- data.elementType = thing.elementType;
- }
- if (thing.decorators) {
- data.decorators = thing.decorators.map(x => parameters.serializer.toJSON(x));
- }
- return toslateutil.handleBlockDefinition('optional', data, nodes, localParameters);
-};
-rules.ListBlock = (thing,processChildren,parameters) => {
- const data = { name: thing.name, tight: thing.tight, start: thing.start, delimiter: thing.delimiter, type: 'variable' };
- if (thing.elementType) {
- data.elementType = thing.elementType;
- }
- if (thing.decorators) {
- data.decorators = thing.decorators.map(x => parameters.serializer.toJSON(x));
- }
- return {
- object: 'block',
- data: data,
- type: thing.type === 'ordered' ? 'ol_list_block' : 'ul_list_block',
- children: processChildren(thing,'nodes',parameters)
- };
-};
-rules.Formula = (thing,processChildren,parameters) => {
- const data = { name: thing.name };
- if (thing.elementType) {
- data.elementType = thing.elementType;
- }
- if (thing.dependencies) {
- data.dependencies = thing.dependencies;
- }
- if (thing.code) {
- data.code = thing.code;
- }
- return toslateutil.handleFormula(data, thing.value, parameters);
-};
-
-module.exports = rules;
\ No newline at end of file
diff --git a/packages/markdown-slate/lib/commonmarkfromslaterules.js b/packages/markdown-slate/lib/commonmarkfromslaterules.js
deleted file mode 100644
index 50ddada5..00000000
--- a/packages/markdown-slate/lib/commonmarkfromslaterules.js
+++ /dev/null
@@ -1,100 +0,0 @@
-/*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-'use strict';
-
-const { CommonMarkModel } = require('@accordproject/markdown-common');
-
-const fromslateutil = require('./fromslateutil');
-
-const rules = {};
-
-// CommonMark rules
-rules.paragraph = (node,processNodes) => {
- return {$class : `${CommonMarkModel.NAMESPACE}.Paragraph`, nodes: []};
-};
-rules.softbreak = (node,processNodes) => {
- return {$class : `${CommonMarkModel.NAMESPACE}.Softbreak`};
-};
-rules.linebreak = (node,processNodes) => {
- return {$class : `${CommonMarkModel.NAMESPACE}.Linebreak`};
-};
-rules.horizontal_rule = (node,processNodes) => {
- return {$class : `${CommonMarkModel.NAMESPACE}.ThematicBreak`};
-};
-rules.heading_one = (node,processNodes) => {
- return {$class : `${CommonMarkModel.NAMESPACE}.Heading`, level : '1', nodes: []};
-};
-rules.heading_two = (node,processNodes) => {
- return {$class : `${CommonMarkModel.NAMESPACE}.Heading`, level : '2', nodes: []};
-};
-rules.heading_three = (node,processNodes) => {
- return {$class : `${CommonMarkModel.NAMESPACE}.Heading`, level : '3', nodes: []};
-};
-rules.heading_four = (node,processNodes) => {
- return {$class : `${CommonMarkModel.NAMESPACE}.Heading`, level : '4', nodes: []};
-};
-rules.heading_five = (node,processNodes) => {
- return {$class : `${CommonMarkModel.NAMESPACE}.Heading`, level : '5', nodes: []};
-};
-rules.heading_six = (node,processNodes) => {
- return {$class : `${CommonMarkModel.NAMESPACE}.Heading`, level : '6', nodes: []};
-};
-rules.block_quote = (node,processNodes) => {
- return {$class : `${CommonMarkModel.NAMESPACE}.BlockQuote`, nodes: []};
-};
-rules.code_block = (node,processNodes) => {
- return {$class : `${CommonMarkModel.NAMESPACE}.CodeBlock`, text: fromslateutil.getText(node)};
-};
-rules.html_block = (node,processNodes) => {
- return {$class : `${CommonMarkModel.NAMESPACE}.HtmlBlock`, text: fromslateutil.getText(node)};
-};
-rules.html_inline = (node,processNodes) => {
- return {$class : `${CommonMarkModel.NAMESPACE}.HtmlInline`, text: node.data.content};
-};
-rules.link = (node,processNodes) => {
- return {$class : `${CommonMarkModel.NAMESPACE}.Link`, destination: node.data.href, title: node.data.title ? node.data.title : '', nodes: []};
-};
-rules.image = (node,processNodes) => {
- return {$class : `${CommonMarkModel.NAMESPACE}.Image`, destination: node.data.href, title: node.data.title ? node.data.title : '', nodes: []};
-};
-rules.list_item = (node,processNodes) => {
- return {$class : `${CommonMarkModel.NAMESPACE}.Item`, nodes: []};
-};
-rules.ol_list = (node,processNodes) => {
- return {$class : `${CommonMarkModel.NAMESPACE}.List`, type: 'ordered', delimiter: node.data.delimiter, start: node.data.start, tight: node.data.tight, nodes: []};
-};
-rules.ul_list = (node,processNodes) => {
- return {$class : `${CommonMarkModel.NAMESPACE}.List`, type: 'bullet', delimiter: node.data.delimiter, start: node.data.start, tight: node.data.tight, nodes: []};
-};
-rules.table = (node, processNodes) => {
- return { $class: `${CommonMarkModel.NAMESPACE}.Table`, nodes: [] };
-};
-rules.table_head = (node, processNodes) => {
- return { $class: `${CommonMarkModel.NAMESPACE}.TableHead`, nodes: [] };
-};
-rules.table_body = (node, processNodes) => {
- return { $class: `${CommonMarkModel.NAMESPACE}.TableBody`, nodes: [] };
-};
-rules.table_row = (node, processNodes) => {
- return { $class: `${CommonMarkModel.NAMESPACE}.TableRow`, nodes: [] };
-};
-rules.table_cell = (node, processNodes) => {
- return { $class: `${CommonMarkModel.NAMESPACE}.TableCell`, nodes: [] };
-};
-rules.header_cell = (node, processNodes) => {
- return { $class: `${CommonMarkModel.NAMESPACE}.HeaderCell`, nodes: [] };
-};
-
-module.exports = rules;
\ No newline at end of file
diff --git a/packages/markdown-slate/lib/commonmarktoslaterules.js b/packages/markdown-slate/lib/commonmarktoslaterules.js
deleted file mode 100644
index 64bf6070..00000000
--- a/packages/markdown-slate/lib/commonmarktoslaterules.js
+++ /dev/null
@@ -1,231 +0,0 @@
-/*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-'use strict';
-
-const toslateutil = require('./toslateutil');
-
-const rules = {};
-
-rules.CodeBlock = (thing,processChildren,parameters) => {
- return {
- object: 'block',
- type: 'code_block',
- data: {},
- children: [{
- object: 'block',
- type: 'paragraph',
- children: [{
- object: 'text',
- text: thing.text
- }],
- data: {}
- }]
- };
-};
-rules.Code = (thing,processChildren,parameters) => {
- return {
- object: 'text',
- text: thing.text,
- code: true
- };
-};
-rules.Emph = (thing,processChildren,parameters) => {
- parameters.emph = true;
- return processChildren(thing,'nodes',parameters);
-};
-rules.Strong = (thing,processChildren,parameters) => {
- parameters.strong = true;
- return processChildren(thing,'nodes',parameters);
-};
-rules.Text = (thing,processChildren,parameters) => {
- return toslateutil.handleFormattedText(thing, parameters);
-};
-rules.BlockQuote = (thing,processChildren,parameters) => {
- return {
- object: 'block',
- type: 'block_quote',
- block_quote: true,
- children: processChildren(thing,'nodes',parameters),
- data: {}
- };
-};
-rules.Heading = (thing,processChildren,parameters) => {
- return {
- object: 'block',
- data: {},
- type: toslateutil.getHeadingType(thing),
- children: processChildren(thing,'nodes',parameters)
- };
-};
-rules.ThematicBreak = (thing,processChildren,parameters) => {
- return {
- object: 'block',
- type: 'horizontal_rule',
- hr: true,
- children: []
- };
-};
-rules.Linebreak = (thing,processChildren,parameters) => {
- return {
- object: 'inline',
- type: 'linebreak'
- };
-};
-rules.Softbreak = (thing,processChildren,parameters) => {
- return {
- object: 'inline',
- type: 'softbreak'
- };
-};
-rules.Link = (thing,processChildren,parameters) => {
- return {
- object: 'inline',
- type: 'link',
- data: {
- href: thing.destination,
- title: thing.title ? thing.title : ''
- },
- children: processChildren(thing,'nodes',parameters)
- };
-};
-rules.Image = (thing,processChildren,parameters) => {
- return {
- object: 'inline',
- type: 'image',
- data: {
- 'href': thing.destination,
- 'title': thing.title ? thing.title : ''
- },
- children: [
- {
- 'object': 'text',
- 'text': thing.text ? thing.text : ''
- }
- ]
- };
-};
-rules.Paragraph = (thing,processChildren,parameters) => {
- return {
- object: 'block',
- type: 'paragraph',
- children: processChildren(thing,'nodes',parameters),
- data: {}
- };
-};
-rules.HtmlBlock = (thing,processChildren,parameters) => {
- return {
- object: 'block',
- type: 'html_block',
- data: {},
- children: [{
- object: 'block',
- type: 'paragraph',
- children: [{
- object: 'text',
- text: thing.text,
- html: true
- }],
- data: {}
- }]
- };
-};
-rules.HtmlInline = (thing,processChildren,parameters) => {
- return {
- object: 'inline',
- type: 'html_inline',
- data: {
- content: thing.text,
- },
- children: [] // XXX
- };
-};
-rules.List = (thing,processChildren,parameters) => {
- return {
- object: 'block',
- data: { tight: thing.tight, start: thing.start, delimiter: thing.delimiter},
- type: thing.type === 'ordered' ? 'ol_list' : 'ul_list',
- children: processChildren(thing,'nodes',parameters)
- };
-};
-rules.Item = (thing,processChildren,parameters) => {
- return {
- object: 'block',
- type: 'list_item',
- data: {},
- children: processChildren(thing,'nodes',parameters)
- };
-};
-rules.Document = (thing,processChildren,parameters) => {
- return {
- object: 'document',
- children: processChildren(thing,'nodes',parameters),
- data : {}
- };
-};
-rules.Table = (thing, processChildren, parameters) => {
- return {
- object: 'block',
- type: 'table',
- data: {},
- children: processChildren(thing, 'nodes', parameters),
- };
-};
-
-rules.TableHead = (thing, processChildren, parameters) => {
- return {
- object: 'block',
- type: 'table_head',
- data: {},
- children: processChildren(thing, 'nodes', parameters),
- };
-};
-
-rules.TableBody = (thing, processChildren, parameters) => {
- return {
- object: 'block',
- type: 'table_body',
- data: {},
- children: processChildren(thing, 'nodes', parameters),
- };
-};
-
-rules.TableRow = (thing, processChildren, parameters) => {
- return {
- object: 'block',
- type: 'table_row',
- data: {},
- children: processChildren(thing, 'nodes', parameters),
- };
-};
-
-rules.TableCell = (thing, processChildren, parameters) => {
- return {
- object: 'block',
- type: 'table_cell',
- data: {},
- children: processChildren(thing, 'nodes', parameters),
- };
-};
-
-rules.HeaderCell = (thing, processChildren, parameters) => {
- return {
- object: 'block',
- type: 'header_cell',
- data: {},
- children: processChildren(thing, 'nodes', parameters),
- };
-};
-
-module.exports = rules;
\ No newline at end of file
diff --git a/packages/markdown-slate/lib/fromslateutil.js b/packages/markdown-slate/lib/fromslateutil.js
deleted file mode 100644
index a02f35a3..00000000
--- a/packages/markdown-slate/lib/fromslateutil.js
+++ /dev/null
@@ -1,413 +0,0 @@
-/*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-'use strict';
-
-const { TemplateMarkModel, CiceroMarkModel, CommonMarkModel } = require('@accordproject/markdown-common');
-
-/**
- * Removes nodes if they are an empty paragraph
- * @param {*} input - the current result of slateToCiceroMarkDom
- * @returns {*} the final result of slateToCiceroMarkDom
- */
-function removeEmptyParagraphs(input) {
- let nodesWithoutBlankParagraphs = [];
- input.nodes.forEach(node => {
- if (node.$class === `${CommonMarkModel.NAMESPACE}.Paragraph` &&
- node.nodes.length === 1 &&
- node.nodes[0].$class === `${CommonMarkModel.NAMESPACE}.Text` &&
- node.nodes[0].text === '') {
- return;
- }
- nodesWithoutBlankParagraphs.push(node);
- });
- input.nodes = nodesWithoutBlankParagraphs;
- return input;
-}
-
-/**
- * Gather the text for the node
- * @param {*} input - the current slate node
- * @returns {string} the text contained in the slate node
- */
-function getText (input) {
- let result = '';
-
- if (input.type === 'paragraph') {
- result += '\n';
- }
-
- if (input.text) {
- result += input.text;
- }
- if (input.children) {
- input.children.forEach(node => {
- result += getText(node);
- });
- }
- return result;
-}
-
-/**
- * Quote strings
- * @param {string} value - the string
- * @return {string} the quoted string
- */
-function quoteString(value) {
- return '"' + value + '"';
-}
-
-/**
- * Handles marks
- * @param {*} slateNode the slate node
- * @param {*} newNode the new node
- * @returns {*} the final ast node
- */
-function handleMarks(slateNode,newNode) {
- let strong = null;
- let emph = null;
- let result = newNode;
-
- const isBold = slateNode.bold;
- const isItalic = slateNode.italic;
-
- if (isBold) {
- strong = {$class : `${CommonMarkModel.NAMESPACE}.Strong`, nodes: []};
- }
-
- if (isItalic) {
- emph = {$class : `${CommonMarkModel.NAMESPACE}.Emph`, nodes: []};
- }
-
- if(strong) {
- strong.nodes.push(result);
- result = strong;
- }
- if(emph) {
- emph.nodes.push(result);
- result = emph;
- }
-
- return result;
-}
-
-/**
- * Handles a text node
- * @param {*} node the slate text node
- * @returns {*} the ast node
- */
-function handleText(node) {
- let result = null;
- const isCode = node.code;
- if (node.object === 'text' && node.text === '') { return null; }
- if (isCode) {
- result = {$class : `${CommonMarkModel.NAMESPACE}.Code`, text: node.text};
- } else {
- result = {$class : `${CommonMarkModel.NAMESPACE}.Text`, text : node.text};
- }
-
- return handleMarks(node,result);
-}
-
-/**
- * Handles a variable node
- * @param {*} node the slate variable node
- * @returns {*} the ast node
- */
-function handleVariable(node) {
- let result = null;
-
- const textNode = node.children[0]; // inlines always contain a single text node
- node.children = []; // Reset the children for the inline to avoid recursion
-
- const data = node.data;
-
- const baseName = Object.prototype.hasOwnProperty.call(data,'format') ? 'FormattedVariable' : (Object.prototype.hasOwnProperty.call(data,'enumValues') ? 'EnumVariable' : 'Variable');
- const className = `${CiceroMarkModel.NAMESPACE}.${baseName}`;
-
- result = {
- $class : className,
- name : data.name,
- value : textNode.text
- };
-
- if (Object.prototype.hasOwnProperty.call(data,'format')) {
- result.format = data.format;
- }
- if (node.data.identifiedBy) {
- result.identifiedBy = node.data.identifiedBy;
- result.value = quoteString(result.value); // XXX Is this safe?
- }
- if (Object.prototype.hasOwnProperty.call(data,'enumValues')) {
- result.enumValues = data.enumValues;
- }
- if (Object.prototype.hasOwnProperty.call(data,'elementType')) {
- result.elementType = data.elementType;
- if (result.elementType === 'String') {
- result.value = quoteString(result.value);
- }
- }
- if (Object.prototype.hasOwnProperty.call(data,'decorators')) {
- result.decorators = data.decorators;
- }
-
- return handleMarks(node,result);
-}
-
-/**
- * Handles a variable definition node
- * @param {*} node the slate variable node
- * @returns {*} the ast node
- */
-function handleVariableDefinition(node) {
- let result = null;
-
- node.children = []; // Reset the children for the inline to avoid recursion
-
- const data = node.data;
-
- const baseName = Object.prototype.hasOwnProperty.call(data,'format') ? 'FormattedVariableDefinition' : (Object.prototype.hasOwnProperty.call(data,'enumValues') ? 'EnumVariableDefinition' : 'VariableDefinition');
- const className = `${TemplateMarkModel.NAMESPACE}.${baseName}`;
-
- result = {
- $class : className,
- name : data.name,
- };
-
- if (Object.prototype.hasOwnProperty.call(data,'format')) {
- result.format = data.format;
- }
- if (node.data.identifiedBy) {
- result.identifiedBy = node.data.identifiedBy;
- }
- if (Object.prototype.hasOwnProperty.call(data,'enumValues')) {
- result.enumValues = data.enumValues;
- }
- if (Object.prototype.hasOwnProperty.call(data,'elementType')) {
- result.elementType = data.elementType;
- }
- if (Object.prototype.hasOwnProperty.call(data,'decorators')) {
- result.decorators = data.decorators;
- }
-
- return handleMarks(node,result);
-}
-
-/**
- * Handles a conditional node
- * @param {*} node the slate variable node
- * @param {*} isTrue is this conditional true
- * @param {*} whenTrue the nodes when true
- * @param {*} whenFalse the nodes when false
- * @returns {*} the ast node
- */
-function handleConditional(node, isTrue, whenTrue, whenFalse) {
- const data = node.data;
-
- let result = {
- $class : `${CiceroMarkModel.NAMESPACE}.Conditional`,
- name : data.name,
- nodes: [],
- };
-
- result.isTrue = isTrue;
- result.whenTrue = whenTrue;
- result.whenFalse = whenFalse;
-
- if (Object.prototype.hasOwnProperty.call(data,'elementType')) {
- result.elementType = data.elementType;
- }
- if (Object.prototype.hasOwnProperty.call(data,'decorators')) {
- result.decorators = data.decorators;
- }
-
- return handleMarks(node,result);
-}
-
-/**
- * Handles a conditional definition node
- * @param {*} node the slate variable node
- * @param {*} whenTrue the nodes when true
- * @param {*} whenFalse the nodes when false
- * @returns {*} the ast node
- */
-function handleConditionalDefinition(node, whenTrue, whenFalse) {
- const data = node.data;
-
- let result = {
- $class : `${TemplateMarkModel.NAMESPACE}.ConditionalDefinition`,
- name : data.name,
- };
-
- result.whenTrue = whenTrue;
- result.whenFalse = whenFalse;
-
- if (Object.prototype.hasOwnProperty.call(data,'elementType')) {
- result.elementType = data.elementType;
- }
- if (Object.prototype.hasOwnProperty.call(data,'decorators')) {
- result.decorators = data.decorators;
- }
-
- return handleMarks(node,result);
-}
-
-/**
- * Handles a optional node
- * @param {*} node the slate variable node
- * @param {*} hasSome is this optional is present
- * @param {*} whenSome the nodes when present
- * @param {*} whenNone the nodes when absent
- * @returns {*} the ast node
- */
-function handleOptional(node, hasSome, whenSome, whenNone) {
- const data = node.data;
-
- let result = {
- $class : `${CiceroMarkModel.NAMESPACE}.Optional`,
- name : data.name,
- nodes: [],
- };
-
- result.hasSome = hasSome;
- result.whenSome = whenSome;
- result.whenNone = whenNone;
-
- if (Object.prototype.hasOwnProperty.call(data,'elementType')) {
- result.elementType = data.elementType;
- }
- if (Object.prototype.hasOwnProperty.call(data,'decorators')) {
- result.decorators = data.decorators;
- }
-
- return handleMarks(node,result);
-}
-
-/**
- * Handles a optional definition node
- * @param {*} node the slate variable node
- * @param {*} whenSome the nodes when true
- * @param {*} whenNone the nodes when false
- * @returns {*} the ast node
- */
-function handleOptionalDefinition(node, whenSome, whenNone) {
- const data = node.data;
-
- let result = {
- $class : `${TemplateMarkModel.NAMESPACE}.OptionalDefinition`,
- name : data.name,
- };
-
- result.whenSome = whenSome;
- result.whenNone = whenNone;
-
- if (Object.prototype.hasOwnProperty.call(data,'elementType')) {
- result.elementType = data.elementType;
- }
- if (Object.prototype.hasOwnProperty.call(data,'decorators')) {
- result.decorators = data.decorators;
- }
-
- return handleMarks(node,result);
-}
-
-/**
- * Handles a formula
- * @param {*} node the slate formula node
- * @returns {*} the ast node
- */
-function handleFormula(node) {
- let result = null;
-
- const textNode = node.children[0]; // inlines always contain a single text node
- node.children = []; // Reset the children for the inline to avoid recursion
-
- const className = `${CiceroMarkModel.NAMESPACE}.Formula`;
-
- result = {
- $class : className,
- value : textNode.text
- };
-
- const data = node.data;
- if (Object.prototype.hasOwnProperty.call(data,'elementType')) {
- result.elementType = data.elementType;
- }
- if (Object.prototype.hasOwnProperty.call(data,'decorators')) {
- result.decorators = data.decorators;
- }
- if (Object.prototype.hasOwnProperty.call(data,'dependencies')) {
- result.dependencies = data.dependencies;
- }
- if (Object.prototype.hasOwnProperty.call(data,'code')) {
- result.code = data.code;
- }
- if (Object.prototype.hasOwnProperty.call(data,'name')) {
- result.name = data.name;
- }
-
- return handleMarks(node,result);
-}
-
-/**
- * Handles a formula definition
- * @param {*} node the slate formula node
- * @returns {*} the ast node
- */
-function handleFormulaDefinition(node) {
- let result = null;
-
- node.children = []; // Reset the children for the inline to avoid recursion
-
- const className = `${CiceroMarkModel.NAMESPACE}.Formula`;
-
- result = {
- $class : className,
- };
-
- const data = node.data;
- if (Object.prototype.hasOwnProperty.call(data,'elementType')) {
- result.elementType = data.elementType;
- }
- if (Object.prototype.hasOwnProperty.call(data,'decorators')) {
- result.decorators = data.decorators;
- }
- if (Object.prototype.hasOwnProperty.call(data,'dependencies')) {
- result.dependencies = data.dependencies;
- }
- if (Object.prototype.hasOwnProperty.call(data,'code')) {
- result.code = data.code;
- }
- if (Object.prototype.hasOwnProperty.call(data,'name')) {
- result.name = data.name;
- }
-
- return handleMarks(node,result);
-}
-
-module.exports = {
- removeEmptyParagraphs,
- getText,
- quoteString,
- handleMarks,
- handleText,
- handleVariable,
- handleVariableDefinition,
- handleConditional,
- handleConditionalDefinition,
- handleOptional,
- handleOptionalDefinition,
- handleFormula,
- handleFormulaDefinition,
-};
\ No newline at end of file
diff --git a/packages/markdown-slate/lib/templatemarkfromslaterules.js b/packages/markdown-slate/lib/templatemarkfromslaterules.js
deleted file mode 100644
index 7301dea4..00000000
--- a/packages/markdown-slate/lib/templatemarkfromslaterules.js
+++ /dev/null
@@ -1,95 +0,0 @@
-/*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-'use strict';
-
-const { TemplateMarkModel } = require('@accordproject/markdown-common');
-
-const fromslateutil = require('./fromslateutil');
-
-const rules = {};
-
-// CiceroMark rules
-rules.contract_definition = (node,processNodes) => {
- // console.log(JSON.stringify(node, null, 4));
- const result = {$class : `${TemplateMarkModel.NAMESPACE}.ContractDefinition`, name: node.data.name, nodes: []};
- if (node.data.elementType) {
- result.elementType = node.data.elementType;
- }
- if (node.data.decorators) {
- result.decorators = node.data.decorators;
- }
- if (node.data.src) {
- result.src = node.data.src;
- }
- return result;
-};
-rules.clause_definition = (node,processNodes) => {
- // console.log(JSON.stringify(node, null, 4));
- const result = {$class : `${TemplateMarkModel.NAMESPACE}.ClauseDefinition`, name: node.data.name, nodes: []};
- if (node.data.elementType) {
- result.elementType = node.data.elementType;
- }
- if (node.data.decorators) {
- result.decorators = node.data.decorators;
- }
- if (node.data.src) {
- result.src = node.data.src;
- }
- return result;
-};
-rules.variable_definition = (node,processNodes) => {
- return fromslateutil.handleVariableDefinition(node);
-};
-rules.conditional_definition = (node,processNodes) => {
- let whenTrueNodes = [];
- processNodes(whenTrueNodes, node.data.whenTrue);
- let whenFalseNodes = [];
- processNodes(whenFalseNodes, node.data.whenFalse);
- return fromslateutil.handleConditionalDefinition(node,whenTrueNodes,whenFalseNodes);
-};
-rules.optional_definition = (node,processNodes) => {
- let whenSomeNodes = [];
- processNodes(whenSomeNodes, node.data.whenSome);
- let whenNoneNodes = [];
- processNodes(whenNoneNodes, node.data.whenNone);
- return fromslateutil.handleOptionalDefinition(node,whenSomeNodes,whenNoneNodes);
-};
-rules.ol_list_block_definition = (node,processNodes) => {
- let result;
- result = {$class : `${TemplateMarkModel.NAMESPACE}.ListBlockDefinition`, name: node.data.name, type: 'ordered', delimiter: node.data.delimiter, start: node.data.start, tight: node.data.tight, nodes: []};
- if (node.data.elementType) {
- result.elementType = node.data.elementType;
- }
- if (node.data.decorators) {
- result.decorators = node.data.decorators;
- }
- return result;
-};
-rules.ul_list_block_definition = (node,processNodes) => {
- let result;
- result = {$class : `${TemplateMarkModel.NAMESPACE}.ListBlockDefinition`, name: node.data.name, type: 'bullet', delimiter: node.data.delimiter, start: node.data.start, tight: node.data.tight, nodes: []};
- if (node.data.elementType) {
- result.elementType = node.data.elementType;
- }
- if (node.data.decorators) {
- result.decorators = node.data.decorators;
- }
- return result;
-};
-rules.formula_definition = (node,processNodes) => {
- return fromslateutil.handleFormulaDefinition(node);
-};
-
-module.exports = rules;
\ No newline at end of file
diff --git a/packages/markdown-slate/lib/templatemarktoslaterules.js b/packages/markdown-slate/lib/templatemarktoslaterules.js
deleted file mode 100644
index dfd57df9..00000000
--- a/packages/markdown-slate/lib/templatemarktoslaterules.js
+++ /dev/null
@@ -1,153 +0,0 @@
-/*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-'use strict';
-
-const toslateutil = require('./toslateutil');
-
-const rules = {};
-
-rules.ContractDefinition = (thing,processChildren,parameters) => {
- const data = {};
- data.name = thing.name;
- if (thing.src) {
- data.src = thing.src;
- }
- if (thing.elementType) {
- data.elementType = thing.elementType;
- }
- if (thing.decorators) {
- data.decorators = thing.decorators.map(x => parameters.serializer.toJSON(x));
- }
- return {
- object: 'block',
- type: 'contract_definition',
- data: data,
- children: processChildren(thing,'nodes',parameters),
- };
-};
-rules.ClauseDefinition = (thing,processChildren,parameters) => {
- const data = {};
- data.name = thing.name;
- if (thing.src) {
- data.src = thing.src;
- }
- if (thing.elementType) {
- data.elementType = thing.elementType;
- }
- if (thing.decorators) {
- data.decorators = thing.decorators.map(x => parameters.serializer.toJSON(x));
- }
- return {
- object: 'block',
- type: 'clause_definition',
- data: data,
- children: processChildren(thing,'nodes',parameters),
- };
-};
-rules.VariableDefinition = (thing,processChildren,parameters) => {
- const data = { name: thing.name };
- if (thing.elementType) {
- data.elementType = thing.elementType;
- }
- if (thing.decorators) {
- data.decorators = thing.decorators.map(x => parameters.serializer.toJSON(x));
- }
- if (thing.identifiedBy) {
- data.identifiedBy = thing.identifiedBy;
- }
- return toslateutil.handleVariableDefinition('variable_definition', data, thing.name, parameters);
-};
-rules.FormattedVariableDefinition = (thing,processChildren,parameters) => {
- const data = { name: thing.name, format: thing.format };
- if (thing.elementType) {
- data.elementType = thing.elementType;
- }
- if (thing.decorators) {
- data.decorators = thing.decorators.map(x => parameters.serializer.toJSON(x));
- }
- return toslateutil.handleVariableDefinition('variable_definition', data, thing.name, parameters);
-};
-rules.EnumVariableDefinition = (thing,processChildren,parameters) => {
- const data = { name: thing.name, enumValues: thing.enumValues };
- if (thing.elementType) {
- data.elementType = thing.elementType;
- }
- if (thing.decorators) {
- data.decorators = thing.decorators.map(x => parameters.serializer.toJSON(x));
- }
- return toslateutil.handleVariableDefinition('variable_definition', data, thing.name, parameters);
-};
-rules.ConditionalDefinition = (thing,processChildren,parameters) => {
- const localParameters = Object.assign({},parameters);
- parameters.strong = false;
- parameters.italic = false;
- const nodes = [];
- const whenTrue = processChildren(thing,'whenTrue',parameters);
- const whenFalse = processChildren(thing,'whenFalse',parameters);
- const data = { name: thing.name, isTrue: thing.isTrue, whenTrue: whenTrue, whenFalse: whenFalse };
- if (thing.elementType) {
- data.elementType = thing.elementType;
- }
- if (thing.decorators) {
- data.decorators = thing.decorators.map(x => parameters.serializer.toJSON(x));
- }
- return toslateutil.handleBlockDefinition('conditional_definition', data, nodes, localParameters);
-};
-rules.OptionalDefinition = (thing,processChildren,parameters) => {
- const localParameters = Object.assign({},parameters);
- parameters.strong = false;
- parameters.italic = false;
- const nodes = [];
- const whenSome = processChildren(thing,'whenSome',parameters);
- const whenNone = processChildren(thing,'whenNone',parameters);
- const data = { name: thing.name, hasSome: thing.hasSome, whenSome: whenSome, whenNone: whenNone };
- if (thing.elementType) {
- data.elementType = thing.elementType;
- }
- if (thing.decorators) {
- data.decorators = thing.decorators.map(x => parameters.serializer.toJSON(x));
- }
- return toslateutil.handleBlockDefinition('optional_definition', data, nodes, localParameters);
-};
-rules.ListBlockDefinition = (thing,processChildren,parameters) => {
- const data = { name: thing.name, tight: thing.tight, start: thing.start, delimiter: thing.delimiter, type: 'variable' };
- if (thing.elementType) {
- data.elementType = thing.elementType;
- }
- if (thing.decorators) {
- data.decorators = thing.decorators.map(x => parameters.serializer.toJSON(x));
- }
- return {
- object: 'block',
- data: data,
- type: thing.type === 'ordered' ? 'ol_list_block_definition' : 'ul_list_block_definition',
- children: processChildren(thing,'nodes',parameters)
- };
-};
-rules.FormulaDefinition = (thing,processChildren,parameters) => {
- const data = { name: thing.name };
- if (thing.elementType) {
- data.elementType = thing.elementType;
- }
- if (thing.dependencies) {
- data.dependencies = thing.dependencies;
- }
- if (thing.code) {
- data.code = thing.code;
- }
- return toslateutil.handleFormula(data, thing.code, parameters);
-};
-
-module.exports = rules;
\ No newline at end of file
diff --git a/packages/markdown-slate/lib/toslateutil.js b/packages/markdown-slate/lib/toslateutil.js
deleted file mode 100644
index bef65601..00000000
--- a/packages/markdown-slate/lib/toslateutil.js
+++ /dev/null
@@ -1,219 +0,0 @@
-/*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-'use strict';
-
-/**
- * Unquote strings
- * @param {string} value - the string
- * @return {string} the unquoted string
- */
-function unquoteString(value) {
- try {
- return value.substring(1,value.length-1);
- } catch(err) {
- return value;
- }
-}
-
-/**
- * Apply marks to a leaf node
- * @param {*} leafNode the leaf node
- * @param {*} parameters the parameters
- */
-function applyMarks(leafNode, parameters) {
- if (parameters.emph) {
- leafNode.italic = true;
- }
- if (parameters.strong) {
- leafNode.bold = true;
- }
-}
-
-/**
- * Gets the text value from a formatted sub-tree
- * @param {*} thing a concerto Strong, Emph or Text node
- * @returns {string} the 'text' property of the formatted sub-tree
- */
-function getText(thing) {
- if(thing.getType() === 'Text') {
- return thing.text;
- }
- else {
- if(thing.nodes && thing.nodes.length > 0) {
- return getText(thing.nodes[0]);
- }
- else {
- return '';
- }
- }
-}
-
-/**
- * Converts a heading level to a slate heading type name
- * @param {*} thing concert heading node
- * @returns {string} the slate heading type
- */
-function getHeadingType(thing) {
- switch(thing.level) {
- case '1': return 'heading_one';
- case '2': return 'heading_two';
- case '3': return 'heading_three';
- case '4': return 'heading_four';
- case '5': return 'heading_five';
- case '6': return 'heading_six';
- default: return 'heading_one';
- }
-}
-
-/**
- * Converts a formatted text node to a slate text node with marks
- * @param {*} thing a concerto Strong, Emph or Text node
- * @param {*} parameters the parameters
- * @returns {*} the slate text node with marks
- */
-function handleFormattedText(thing, parameters) {
- const textNode = {
- object: 'text',
- text: getText(thing)};
-
- applyMarks(textNode, parameters);
- return textNode;
-}
-
-/**
- * Converts a conditional variable node to a slate node with marks
- * @param {string} name - the name of the block
- * @param {*} data - the data for the conditional variable
- * @param {*} nodes - the conditional nodes
- * @param {*} parameters the parameters
- * @returns {*} the slate text node with marks
- */
-function handleBlockDefinition(name, data, nodes, parameters) {
- const inlineNode = {
- object: 'inline',
- type: name,
- data: data,
- children: nodes
- };
- applyMarks(inlineNode,parameters);
-
- return inlineNode;
-}
-
-/**
- * Converts a variable node to a text node with marks
- * @param {*} type - the type of variable
- * @param {*} data - the data for the variable
- * @param {*} text - the text for the variable
- * @param {*} parameters the parameters
- * @returns {*} the slate text node with marks
- */
-function handleVariable(type, data, text, parameters) {
- const fixedText = data.elementType === 'String' || data.identifiedBy ? unquoteString(text) : text;
- const textNode = {
- object: 'text',
- text: fixedText
- };
-
- return handleBlockDefinition(type, data, [textNode], parameters);
-}
-
-/**
- * Converts a variable definition node to a text node with marks
- * @param {*} type - the type of variable
- * @param {*} data - the data for the variable
- * @param {*} text - the text for the variable
- * @param {*} parameters the parameters
- * @returns {*} the slate text node with marks
- */
-function handleVariableDefinition(type, data, text, parameters) {
- const textNode = {
- object: 'text',
- text: text
- };
-
- return handleBlockDefinition(type, data, [textNode], parameters);
-}
-
-/**
- * Converts a formula node to a slate text node with marks
- * @param {*} data - the data for the formula
- * @param {*} text - the text for the formula
- * @param {*} parameters the parameters
- * @returns {*} the slate text node with marks
- */
-function handleFormula(data, text, parameters) {
- const textNode = {
- object: 'text',
- text: text
- };
- return handleBlockDefinition('formula', data, [textNode], parameters);
-}
-
-/**
- * Cleanup Slate node (post processing)
- * @param {object} node - the slate node
- * @returns {object} the cleaned up slate node
- */
-function cleanup(node) {
- const result = node;
- // Cleanup block node for Slate
- if (result.object === 'block' || result.object === 'inline') {
- const emptyText = () => { return { object: 'text', text: '' }; };
- if (!result.data) {
- result.data = {};
- }
- if (!result.children || result.children.length === 0) {
- result.children = [ emptyText() ];
- }
- if (result.children && result.children.length > 0) {
- const normalizedChildren = [];
- for (let i = 0; i < result.children.length; i++) {
- const child = result.children[i];
- const isLast = i === result.children.length - 1;
-
- if (child.object === 'inline') {
- if (
- normalizedChildren.length === 0 ||
- normalizedChildren[normalizedChildren.length - 1].object === 'inline'
- ) {
- normalizedChildren.push(emptyText(), child);
- } else if (isLast) {
- normalizedChildren.push(child, emptyText());
- } else {
- normalizedChildren.push(child);
- }
- } else {
- normalizedChildren.push(child);
- }
- }
- result.children = normalizedChildren;
- }
- }
- return result;
-}
-
-module.exports = {
- unquoteString,
- applyMarks,
- getText,
- getHeadingType,
- handleFormattedText,
- handleBlockDefinition,
- handleVariable,
- handleVariableDefinition,
- handleFormula,
- cleanup,
-};
\ No newline at end of file
diff --git a/packages/markdown-slate/package.json b/packages/markdown-slate/package.json
deleted file mode 100644
index ab9e96fc..00000000
--- a/packages/markdown-slate/package.json
+++ /dev/null
@@ -1,118 +0,0 @@
-{
- "name": "@accordproject/markdown-slate",
- "version": "0.16.25",
- "description": "Transform markdown to/from CommonMark AST",
- "engines": {
- "node": ">=18",
- "npm": ">=9"
- },
- "publishConfig": {
- "access": "public"
- },
- "files": [
- "lib"
- ],
- "main": "index.js",
- "scripts": {
- "pretest": "npm run lint",
- "lint": "eslint .",
- "postlint": "npm run licchk",
- "licchk": "license-check-and-add",
- "test": "jest --timeOut=10000 --silent",
- "test:updateSnapshot": "jest --updateSnapshot --silent",
- "test:cov": "npm run lint && jest --timeOut=10000 --coverage --silent",
- "jsdoc": "jsdoc -c jsdoc.json package.json"
- },
- "repository": {
- "type": "git",
- "url": "git+https://github.com/accordproject/markdown-transform.git",
- "directory": "packages/markdown-slate"
- },
- "keywords": [
- "accord-project",
- "markdown",
- "markdown-it",
- "commonmark"
- ],
- "author": "accordproject.org",
- "license": "Apache-2.0",
- "bugs": {
- "url": "https://github.com/accordproject/slate-markdown-transform/issues"
- },
- "homepage": "https://github.com/accordproject/slate-markdown-transform#readme",
- "devDependencies": {
- "eslint": "8.57.1",
- "jest": "^29.7.0",
- "jsdoc": "^4.0.4",
- "license-check-and-add": "2.3.6"
- },
- "dependencies": {
- "@accordproject/markdown-cicero": "*",
- "@accordproject/markdown-common": "*",
- "@accordproject/markdown-template": "*"
- },
- "license-check-and-add-config": {
- "folder": "./lib",
- "license": "header.txt",
- "exact_paths_method": "EXCLUDE",
- "exact_paths": [
- "coverage",
- "index.d.ts",
- "./system",
- "LICENSE",
- "node_modules",
- ".nyc-output",
- "out",
- ".tern-project"
- ],
- "file_type_method": "EXCLUDE",
- "file_types": [
- ".yml",
- ".yaml",
- ".zip",
- ".tgz",
- ".snap"
- ],
- "insert_license": false,
- "license_formats": {
- "js|njk|pegjs|cto|acl|qry": {
- "prepend": "/*",
- "append": " */",
- "eachLine": {
- "prepend": " * "
- }
- },
- "npmrc|editorconfig|txt": {
- "eachLine": {
- "prepend": "# "
- }
- },
- "md": {
- "file": "header.md"
- }
- }
- },
- "nyc": {
- "produce-source-map": "true",
- "sourceMap": "inline",
- "reporter": [
- "lcov",
- "text",
- "text-summary",
- "html",
- "json"
- ],
- "include": [
- "src/**/*.js"
- ],
- "exclude": [
- "scripts/**/*.js"
- ],
- "all": true,
- "check-coverage": true,
- "statements": 88,
- "branches": 76,
- "functions": 84,
- "lines": 88
- }
-}
diff --git a/packages/markdown-slate/test/data/ciceromark/acceptance.md b/packages/markdown-slate/test/data/ciceromark/acceptance.md
deleted file mode 100644
index d125f237..00000000
--- a/packages/markdown-slate/test/data/ciceromark/acceptance.md
+++ /dev/null
@@ -1,32 +0,0 @@
-Heading
-====
-
-And below is a **clause**.
-
-{{#clause deliveryClause}}
-Acceptance of Delivery.
-----
-
-"Party A" will be deemed to have completed its delivery obligations
-if in "Party B"'s opinion, the "Widgets" satisfies the
-Acceptance Criteria, and "Party B" notifies "Party A" in writing
-that it is accepting the "Widgets".
-
-Inspection and Notice.
-----
-
-"Party B" will have 10 Business Days to inspect and
-evaluate the "Widgets" on the delivery date before notifying
-"Party A" that it is either accepting or rejecting the
-"Widgets".
-
-Acceptance Criteria.
-----
-
-The "Acceptance Criteria" are the specifications the "Widgets"
-must meet for the "Party A" to comply with its requirements and
-obligations under this agreement, detailed in "Attachment X", attached
-to this agreement.
-{{/clause}}
-
-More text
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/ciceromark/acceptance_ciceromark.json b/packages/markdown-slate/test/data/ciceromark/acceptance_ciceromark.json
deleted file mode 100644
index 6e13e5a6..00000000
--- a/packages/markdown-slate/test/data/ciceromark/acceptance_ciceromark.json
+++ /dev/null
@@ -1,301 +0,0 @@
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "xmlns": "http://commonmark.org/xml/1.0",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "1",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Heading"
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "And below is a "
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Strong",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "clause"
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "."
- }
- ]
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Clause",
- "name": "deliveryClause",
- "elementType": "org.accordproject.acceptanceofdelivery@1.0.0.AcceptanceOfDeliveryClause",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Acceptance of Delivery."
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "\"Party A\"",
- "identifiedBy": "identifier",
- "name": "shipper",
- "elementType": "org.accordproject.organization@0.2.0.Organization"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " will be deemed to have completed its delivery obligations"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "if in "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "\"Party B\"",
- "identifiedBy": "identifier",
- "name": "receiver",
- "elementType": "org.accordproject.organization@0.2.0.Organization"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "'s opinion, the "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "\"Widgets\"",
- "name": "deliverable",
- "elementType": "String"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " satisfies the"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Acceptance Criteria, and "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "\"Party B\"",
- "identifiedBy": "identifier",
- "name": "receiver",
- "elementType": "org.accordproject.organization@0.2.0.Organization"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " notifies "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "\"Party A\"",
- "identifiedBy": "identifier",
- "name": "shipper",
- "elementType": "org.accordproject.organization@0.2.0.Organization"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " in writing"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "that it is accepting the "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "\"Widgets\"",
- "name": "deliverable",
- "elementType": "String"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "."
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Inspection and Notice."
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "\"Party B\"",
- "identifiedBy": "identifier",
- "name": "receiver",
- "elementType": "org.accordproject.organization@0.2.0.Organization"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " will have "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "10",
- "name": "businessDays",
- "elementType": "Long"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " Business Days to inspect and"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "evaluate the "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "\"Widgets\"",
- "name": "deliverable",
- "elementType": "String"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " on the delivery date before notifying"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "\"Party A\"",
- "identifiedBy": "identifier",
- "name": "shipper",
- "elementType": "org.accordproject.organization@0.2.0.Organization"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " that it is either accepting or rejecting the"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "\"Widgets\"",
- "name": "deliverable",
- "elementType": "String"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "."
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Acceptance Criteria."
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "The \"Acceptance Criteria\" are the specifications the "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "\"Widgets\"",
- "name": "deliverable",
- "elementType": "String"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "must meet for the "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "\"Party A\"",
- "identifiedBy": "identifier",
- "name": "shipper",
- "elementType": "org.accordproject.organization@0.2.0.Organization"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " to comply with its requirements and"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "obligations under this agreement, detailed in "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "\"Attachment X\"",
- "name": "attachment",
- "elementType": "String"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ", attached"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "to this agreement."
- }
- ]
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "More text"
- }
- ]
- }
- ]
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/ciceromark/acceptance_slate.json b/packages/markdown-slate/test/data/ciceromark/acceptance_slate.json
deleted file mode 100644
index 433f62c3..00000000
--- a/packages/markdown-slate/test/data/ciceromark/acceptance_slate.json
+++ /dev/null
@@ -1,520 +0,0 @@
-{
- "document": {
- "object": "document",
- "children": [
- {
- "object": "block",
- "data": {},
- "type": "heading_one",
- "children": [
- {
- "object": "text",
- "text": "Heading"
- }
- ]
- },
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "And below is a "
- },
- {
- "object": "text",
- "text": "clause",
- "bold": true
- },
- {
- "object": "text",
- "text": "."
- }
- ],
- "data": {}
- },
- {
- "object": "block",
- "type": "clause",
- "data": {
- "name": "deliveryClause",
- "elementType": "org.accordproject.acceptanceofdelivery@1.0.0.AcceptanceOfDeliveryClause"
- },
- "children": [
- {
- "object": "block",
- "data": {},
- "type": "heading_two",
- "children": [
- {
- "object": "text",
- "text": "Acceptance of Delivery."
- }
- ]
- },
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "shipper",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier"
- },
- "children": [
- {
- "object": "text",
- "text": "Party A"
- }
- ]
- },
- {
- "object": "text",
- "text": " will be deemed to have completed its delivery obligations"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "if in "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "receiver",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier"
- },
- "children": [
- {
- "object": "text",
- "text": "Party B"
- }
- ]
- },
- {
- "object": "text",
- "text": "'s opinion, the "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "deliverable",
- "elementType": "String"
- },
- "children": [
- {
- "object": "text",
- "text": "Widgets"
- }
- ]
- },
- {
- "object": "text",
- "text": " satisfies the"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "Acceptance Criteria, and "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "receiver",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier"
- },
- "children": [
- {
- "object": "text",
- "text": "Party B"
- }
- ]
- },
- {
- "object": "text",
- "text": " notifies "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "shipper",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier"
- },
- "children": [
- {
- "object": "text",
- "text": "Party A"
- }
- ]
- },
- {
- "object": "text",
- "text": " in writing"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "that it is accepting the "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "deliverable",
- "elementType": "String"
- },
- "children": [
- {
- "object": "text",
- "text": "Widgets"
- }
- ]
- },
- {
- "object": "text",
- "text": "."
- }
- ],
- "data": {}
- },
- {
- "object": "block",
- "data": {},
- "type": "heading_two",
- "children": [
- {
- "object": "text",
- "text": "Inspection and Notice."
- }
- ]
- },
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "receiver",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier"
- },
- "children": [
- {
- "object": "text",
- "text": "Party B"
- }
- ]
- },
- {
- "object": "text",
- "text": " will have "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "businessDays",
- "elementType": "Long"
- },
- "children": [
- {
- "object": "text",
- "text": "10"
- }
- ]
- },
- {
- "object": "text",
- "text": " Business Days to inspect and"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "evaluate the "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "deliverable",
- "elementType": "String"
- },
- "children": [
- {
- "object": "text",
- "text": "Widgets"
- }
- ]
- },
- {
- "object": "text",
- "text": " on the delivery date before notifying"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "shipper",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier"
- },
- "children": [
- {
- "object": "text",
- "text": "Party A"
- }
- ]
- },
- {
- "object": "text",
- "text": " that it is either accepting or rejecting the"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "deliverable",
- "elementType": "String"
- },
- "children": [
- {
- "object": "text",
- "text": "Widgets"
- }
- ]
- },
- {
- "object": "text",
- "text": "."
- }
- ],
- "data": {}
- },
- {
- "object": "block",
- "data": {},
- "type": "heading_two",
- "children": [
- {
- "object": "text",
- "text": "Acceptance Criteria."
- }
- ]
- },
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "The \"Acceptance Criteria\" are the specifications the "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "deliverable",
- "elementType": "String"
- },
- "children": [
- {
- "object": "text",
- "text": "Widgets"
- }
- ]
- },
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "must meet for the "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "shipper",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier"
- },
- "children": [
- {
- "object": "text",
- "text": "Party A"
- }
- ]
- },
- {
- "object": "text",
- "text": " to comply with its requirements and"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "obligations under this agreement, detailed in "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "attachment",
- "elementType": "String"
- },
- "children": [
- {
- "object": "text",
- "text": "Attachment X"
- }
- ]
- },
- {
- "object": "text",
- "text": ", attached"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "to this agreement."
- }
- ],
- "data": {}
- }
- ]
- },
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "More text"
- }
- ],
- "data": {}
- }
- ],
- "data": {}
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/ciceromark/fixedinterest_ciceromark.json b/packages/markdown-slate/test/data/ciceromark/fixedinterest_ciceromark.json
deleted file mode 100644
index 93fab355..00000000
--- a/packages/markdown-slate/test/data/ciceromark/fixedinterest_ciceromark.json
+++ /dev/null
@@ -1,93 +0,0 @@
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "xmlns": "http://commonmark.org/xml/1.0",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Fixed rate loan"
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "This is a "
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Emph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "fixed interest"
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " loan to the amount of "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.FormattedVariable",
- "format": "K0,0.00",
- "value": "£100,000.00",
- "name": "loanAmount",
- "elementType": "org.accordproject.money.MonetaryAmount"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "at the yearly interest rate of "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "2.5",
- "name": "rate",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "with a loan term of "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "15",
- "name": "loanDuration",
- "elementType": "Integer"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ","
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "and monthly payments of "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Formula",
- "value": " eval( monthlyPaymentFormula(loanAmount,rate,loanDuration) as \"K0,0.00\" ) ",
- "dependencies": [],
- "code": " monthlyPaymentFormula(loanAmount,rate,loanDuration) as \"K0,0.00\" ",
- "name": "formula"
- }
- ]
- }
- ]
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/ciceromark/fixedinterest_slate.json b/packages/markdown-slate/test/data/ciceromark/fixedinterest_slate.json
deleted file mode 100644
index 3d4281ec..00000000
--- a/packages/markdown-slate/test/data/ciceromark/fixedinterest_slate.json
+++ /dev/null
@@ -1,158 +0,0 @@
-{
- "document": {
- "object": "document",
- "children": [
- {
- "object": "block",
- "data": {},
- "type": "heading_two",
- "children": [
- {
- "object": "text",
- "text": "Fixed rate loan"
- }
- ]
- },
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "This is a "
- },
- {
- "object": "text",
- "text": "fixed interest",
- "italic": true
- },
- {
- "object": "text",
- "text": " loan to the amount of "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "loanAmount",
- "format": "K0,0.00",
- "elementType": "org.accordproject.money.MonetaryAmount"
- },
- "children": [
- {
- "object": "text",
- "text": "£100,000.00"
- }
- ]
- },
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "at the yearly interest rate of "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "rate",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "2.5"
- }
- ]
- },
- {
- "object": "text",
- "text": "%"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "with a loan term of "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "loanDuration",
- "elementType": "Integer"
- },
- "children": [
- {
- "object": "text",
- "text": "15"
- }
- ]
- },
- {
- "object": "text",
- "text": ","
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "and monthly payments of "
- },
- {
- "object": "inline",
- "type": "formula",
- "data": {
- "name": "formula",
- "code": " monthlyPaymentFormula(loanAmount,rate,loanDuration) as \"K0,0.00\" ",
- "dependencies": []
- },
- "children": [
- {
- "object": "text",
- "text": " eval( monthlyPaymentFormula(loanAmount,rate,loanDuration) as \"K0,0.00\" ) "
- }
- ]
- },
- {
- "object": "text",
- "text": ""
- }
- ],
- "data": {}
- }
- ],
- "data": {}
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/ciceromark/latedelivery_ciceromark.json b/packages/markdown-slate/test/data/ciceromark/latedelivery_ciceromark.json
deleted file mode 100644
index 3deae649..00000000
--- a/packages/markdown-slate/test/data/ciceromark/latedelivery_ciceromark.json
+++ /dev/null
@@ -1,205 +0,0 @@
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "xmlns": "http://commonmark.org/xml/1.0",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Late Delivery and Penalty."
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "In case of delayed delivery"
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Conditional",
- "isTrue": true,
- "whenTrue": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " except for Force Majeure cases,"
- }
- ],
- "whenFalse": [],
- "name": "forceMajeure",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " except for Force Majeure cases,"
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "\"Dan\"",
- "name": "partyId",
- "elementType": "String"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " (the Seller) shall pay to "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "\"Steve\"",
- "name": "partyId",
- "elementType": "String"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " (the Buyer) for every "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "2",
- "name": "amount",
- "elementType": "Long"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.EnumVariable",
- "elementType": "org.accordproject.time.TemporalUnit",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks"
- ],
- "value": "days",
- "name": "unit"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "of delay penalty amounting to "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "10.5",
- "name": "penaltyPercentage",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "% of the total value of the Equipment"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "whose delivery has been delayed. Any fractional part of a "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.EnumVariable",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks"
- ],
- "value": "days",
- "name": "fractionalPart",
- "elementType": "org.accordproject.time.TemporalUnit"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " is to be"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "considered a full "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.EnumVariable",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks"
- ],
- "value": "days",
- "name": "fractionalPart",
- "elementType": "org.accordproject.time.TemporalUnit"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ". The total amount of penalty shall not however,"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "exceed "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "55.0",
- "name": "capPercentage",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "% of the total value of the Equipment involved in late delivery."
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "If the delay is more than "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "15",
- "name": "amount",
- "elementType": "Long"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.EnumVariable",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks"
- ],
- "value": "days",
- "name": "unit",
- "elementType": "org.accordproject.time.TemporalUnit"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ", the Buyer is entitled to terminate this Contract."
- }
- ]
- }
- ]
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/ciceromark/latedelivery_slate.json b/packages/markdown-slate/test/data/ciceromark/latedelivery_slate.json
deleted file mode 100644
index 7a9a3186..00000000
--- a/packages/markdown-slate/test/data/ciceromark/latedelivery_slate.json
+++ /dev/null
@@ -1,353 +0,0 @@
-{
- "document": {
- "object": "document",
- "children": [
- {
- "object": "block",
- "data": {},
- "type": "heading_two",
- "children": [
- {
- "object": "text",
- "text": "Late Delivery and Penalty."
- }
- ]
- },
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "In case of delayed delivery"
- },
- {
- "object": "inline",
- "type": "conditional",
- "data": {
- "name": "forceMajeure",
- "isTrue": true,
- "whenTrue": [
- {
- "object": "text",
- "text": " except for Force Majeure cases,"
- }
- ],
- "whenFalse": []
- },
- "children": [
- {
- "object": "text",
- "text": " except for Force Majeure cases,"
- }
- ]
- },
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "partyId",
- "elementType": "String"
- },
- "children": [
- {
- "object": "text",
- "text": "Dan"
- }
- ]
- },
- {
- "object": "text",
- "text": " (the Seller) shall pay to "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "partyId",
- "elementType": "String"
- },
- "children": [
- {
- "object": "text",
- "text": "Steve"
- }
- ]
- },
- {
- "object": "text",
- "text": " (the Buyer) for every "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "amount",
- "elementType": "Long"
- },
- "children": [
- {
- "object": "text",
- "text": "2"
- }
- ]
- },
- {
- "object": "text",
- "text": " "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "unit",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks"
- ],
- "elementType": "org.accordproject.time.TemporalUnit"
- },
- "children": [
- {
- "object": "text",
- "text": "days"
- }
- ]
- },
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "of delay penalty amounting to "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "penaltyPercentage",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "10.5"
- }
- ]
- },
- {
- "object": "text",
- "text": "% of the total value of the Equipment"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "whose delivery has been delayed. Any fractional part of a "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "fractionalPart",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks"
- ],
- "elementType": "org.accordproject.time.TemporalUnit"
- },
- "children": [
- {
- "object": "text",
- "text": "days"
- }
- ]
- },
- {
- "object": "text",
- "text": " is to be"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "considered a full "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "fractionalPart",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks"
- ],
- "elementType": "org.accordproject.time.TemporalUnit"
- },
- "children": [
- {
- "object": "text",
- "text": "days"
- }
- ]
- },
- {
- "object": "text",
- "text": ". The total amount of penalty shall not however,"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "exceed "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "capPercentage",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "55.0"
- }
- ]
- },
- {
- "object": "text",
- "text": "% of the total value of the Equipment involved in late delivery."
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "If the delay is more than "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "amount",
- "elementType": "Long"
- },
- "children": [
- {
- "object": "text",
- "text": "15"
- }
- ]
- },
- {
- "object": "text",
- "text": " "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "unit",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks"
- ],
- "elementType": "org.accordproject.time.TemporalUnit"
- },
- "children": [
- {
- "object": "text",
- "text": "days"
- }
- ]
- },
- {
- "object": "text",
- "text": ", the Buyer is entitled to terminate this Contract."
- }
- ],
- "data": {}
- }
- ],
- "data": {}
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/ciceromark/signature_ciceromark.json b/packages/markdown-slate/test/data/ciceromark/signature_ciceromark.json
deleted file mode 100644
index d0aa7248..00000000
--- a/packages/markdown-slate/test/data/ciceromark/signature_ciceromark.json
+++ /dev/null
@@ -1,337 +0,0 @@
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "xmlns": "http://commonmark.org/xml/1.0",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Signature: "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "name": "signature",
- "value": "\"{{sn}}|alice@example.com\"",
- "elementType": "String",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "DocuSignTab",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "SignHere"
- }
- ]
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "SignatureVariable",
- "arguments": []
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "name": "party",
- "value": "\"{{partyId}}|alice@example.com\"",
- "identifiedBy": "partyId",
- "elementType": "org.accordproject.cicero.contract.AccordParty",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "SignatureVariable",
- "arguments": []
- }
- ]
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Title: "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "name": "title",
- "value": "\"{{title}}|alice@example.com\"",
- "elementType": "String",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "DocuSignTab",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "Title"
- },
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "optional"
- }
- ]
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "SignatureVariable",
- "arguments": []
- }
- ]
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Full name: "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "name": "name",
- "value": "\"{{fullName}}|alice@example.com\"",
- "elementType": "String",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "DocuSignTab",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "FullName"
- }
- ]
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "SignatureVariable",
- "arguments": []
- }
- ]
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Date signed: "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "name": "date",
- "value": "\"{{dateSigned}}|alice@example.com\"",
- "elementType": "String",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "DocuSignTab",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "DateSigned"
- }
- ]
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "SignatureVariable",
- "arguments": []
- }
- ]
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Favorite Color: "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "name": "favoriteColor",
- "value": "\"{{favoriteColor}}|alice@example.com\"",
- "elementType": "String",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "DocuSignTab",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "Text"
- }
- ]
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "SignatureVariable",
- "arguments": []
- }
- ]
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Test: "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "name": "bool",
- "value": "true",
- "elementType": "Boolean",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "BoolAnnot",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorBoolean",
- "value": true
- }
- ]
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "StringAnnot",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "foo"
- }
- ]
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "NumberAnnot",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorNumber",
- "value": 3.14
- }
- ]
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "IdentAnnot",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorTypeReference",
- "type": {
- "$class": "concerto.metamodel@1.0.0.TypeIdentifier",
- "name": "identifier"
- },
- "isArray": false
- }
- ]
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " Numbers: "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "name": "this",
- "value": "1.1",
- "elementType": "Double",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "ArrayAnnot",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorNumber",
- "value": 3
- }
- ]
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ","
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "name": "this",
- "value": "2.2",
- "elementType": "Double",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "ArrayAnnot",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorNumber",
- "value": 3
- }
- ]
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ","
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "name": "this",
- "value": "3.3",
- "elementType": "Double",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "ArrayAnnot",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorNumber",
- "value": 3
- }
- ]
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ","
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "name": "this",
- "value": "4.4",
- "elementType": "Double",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "ArrayAnnot",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorNumber",
- "value": 3
- }
- ]
- }
- ]
- }
- ]
- }
- ]
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/ciceromark/signature_slate.json b/packages/markdown-slate/test/data/ciceromark/signature_slate.json
deleted file mode 100644
index 48ecf64e..00000000
--- a/packages/markdown-slate/test/data/ciceromark/signature_slate.json
+++ /dev/null
@@ -1,463 +0,0 @@
-{
- "document": {
- "object": "document",
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "Signature: "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "signature",
- "elementType": "String",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "DocuSignTab",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "SignHere"
- }
- ]
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "SignatureVariable",
- "arguments": []
- }
- ]
- },
- "children": [
- {
- "object": "text",
- "text": "{{sn}}|alice@example.com"
- }
- ]
- },
- {
- "object": "text",
- "text": " "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "party",
- "elementType": "org.accordproject.cicero.contract.AccordParty",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "SignatureVariable",
- "arguments": []
- }
- ],
- "identifiedBy": "partyId"
- },
- "children": [
- {
- "object": "text",
- "text": "{{partyId}}|alice@example.com"
- }
- ]
- },
- {
- "object": "text",
- "text": ""
- }
- ],
- "data": {}
- },
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "Title: "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "title",
- "elementType": "String",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "DocuSignTab",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "Title"
- },
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "optional"
- }
- ]
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "SignatureVariable",
- "arguments": []
- }
- ]
- },
- "children": [
- {
- "object": "text",
- "text": "{{title}}|alice@example.com"
- }
- ]
- },
- {
- "object": "text",
- "text": ""
- }
- ],
- "data": {}
- },
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "Full name: "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "name",
- "elementType": "String",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "DocuSignTab",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "FullName"
- }
- ]
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "SignatureVariable",
- "arguments": []
- }
- ]
- },
- "children": [
- {
- "object": "text",
- "text": "{{fullName}}|alice@example.com"
- }
- ]
- },
- {
- "object": "text",
- "text": ""
- }
- ],
- "data": {}
- },
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "Date signed: "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "date",
- "elementType": "String",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "DocuSignTab",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "DateSigned"
- }
- ]
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "SignatureVariable",
- "arguments": []
- }
- ]
- },
- "children": [
- {
- "object": "text",
- "text": "{{dateSigned}}|alice@example.com"
- }
- ]
- },
- {
- "object": "text",
- "text": ""
- }
- ],
- "data": {}
- },
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "Favorite Color: "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "favoriteColor",
- "elementType": "String",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "DocuSignTab",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "Text"
- }
- ]
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "SignatureVariable",
- "arguments": []
- }
- ]
- },
- "children": [
- {
- "object": "text",
- "text": "{{favoriteColor}}|alice@example.com"
- }
- ]
- },
- {
- "object": "text",
- "text": ""
- }
- ],
- "data": {}
- },
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "Test: "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "bool",
- "elementType": "Boolean",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "BoolAnnot",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorBoolean",
- "value": true
- }
- ]
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "StringAnnot",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorString",
- "value": "foo"
- }
- ]
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "NumberAnnot",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorNumber",
- "value": 3.14
- }
- ]
- },
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "IdentAnnot",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorTypeReference",
- "type": {
- "$class": "concerto.metamodel@1.0.0.TypeIdentifier",
- "name": "identifier"
- },
- "isArray": false
- }
- ]
- }
- ]
- },
- "children": [
- {
- "object": "text",
- "text": "true"
- }
- ]
- },
- {
- "object": "text",
- "text": " Numbers: "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "this",
- "elementType": "Double",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "ArrayAnnot",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorNumber",
- "value": 3
- }
- ]
- }
- ]
- },
- "children": [
- {
- "object": "text",
- "text": "1.1"
- }
- ]
- },
- {
- "object": "text",
- "text": ","
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "this",
- "elementType": "Double",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "ArrayAnnot",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorNumber",
- "value": 3
- }
- ]
- }
- ]
- },
- "children": [
- {
- "object": "text",
- "text": "2.2"
- }
- ]
- },
- {
- "object": "text",
- "text": ","
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "this",
- "elementType": "Double",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "ArrayAnnot",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorNumber",
- "value": 3
- }
- ]
- }
- ]
- },
- "children": [
- {
- "object": "text",
- "text": "3.3"
- }
- ]
- },
- {
- "object": "text",
- "text": ","
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "this",
- "elementType": "Double",
- "decorators": [
- {
- "$class": "concerto.metamodel@1.0.0.Decorator",
- "name": "ArrayAnnot",
- "arguments": [
- {
- "$class": "concerto.metamodel@1.0.0.DecoratorNumber",
- "value": 3
- }
- ]
- }
- ]
- },
- "children": [
- {
- "object": "text",
- "text": "4.4"
- }
- ]
- },
- {
- "object": "text",
- "text": ""
- }
- ],
- "data": {}
- }
- ],
- "data": {}
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/ciceromark/volumediscountolist_ciceromark.json b/packages/markdown-slate/test/data/ciceromark/volumediscountolist_ciceromark.json
deleted file mode 100644
index 6bcd9fb5..00000000
--- a/packages/markdown-slate/test/data/ciceromark/volumediscountolist_ciceromark.json
+++ /dev/null
@@ -1,390 +0,0 @@
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "xmlns": "http://commonmark.org/xml/1.0",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Volume-Based Card Acceptance Agreement [Abbreviated]"
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "This Agreement is by and between Card, Inc., a New York corporation, and you, the Merchant. By accepting the Card, you agree to be bound by the Agreement."
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Discount means an amount that we charge you for accepting the Card, which amount is:"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "(i) a percentage (Discount Rate) of the face amount of the Charge that you submit, or a flat per-"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Transaction fee, or a combination of both; and/or"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "(ii) a Monthly Flat Fee (if you meet our requirements)."
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Transaction Processing and Payments. Our Card acceptance, processing, and payment requirements are set forth in the Merchant Regulations. Some requirements are summarized here for ease of reference, but do not supersede the provisions in the Merchant Regulations."
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Payment for Charges. We will pay you, through our agent, according to your payment plan in US dollars for the face amount of Charges submitted from your Establishments less all applicable deductions, rejections, and withholdings, which include:"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "(i) the Discount,"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "(ii) any amounts you owe us or our Affiliates,"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "(iii) any amounts for which we have Chargebacks and"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "(iv) any Credits you submit. Your initial Discount is indicated in the Agreement or otherwise provided to you in writing by us. In addition to your Discount we may charge you additional fees and assessments, as listed in the Merchant Regulations or as otherwise provided to you in writing by us. We may adjust any of these amounts and may change any other amount we charge you for accepting the Card."
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "SETTLEMENT"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "a) Settlement Amount. Our agent will pay you according to your payment plan, as described below, in US dollars for the face amount of Charges submitted from your Establishments less all applicable deductions, rejections, and withholdings, which include:"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "(i) the Discount,"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "(ii) any amounts you owe us or our Affiliates,"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "(iii) any amounts for which we have Chargebacks, and (iv) any Credits you submit. Our agent will subtract the full amount of all applicable deductions, rejections, and withholdings, from this payment to you (or debit your Bank Account), but if it cannot, then you must pay it promptly upon demand."
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "b) Discount. The Discount is determined according to the following table:"
- }
- ]
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.ListBlock",
- "type": "ordered",
- "tight": "true",
- "start": "1",
- "delimiter": "period",
- "name": "rates",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "0.0",
- "name": "volumeAbove",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "1.0",
- "name": "volumeUpTo",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "3.1",
- "name": "rate",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%"
- }
- ]
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "1.0",
- "name": "volumeAbove",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "10.0",
- "name": "volumeUpTo",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "3.1",
- "name": "rate",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%"
- }
- ]
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "10.0",
- "name": "volumeAbove",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "50.0",
- "name": "volumeUpTo",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "2.9",
- "name": "rate",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%"
- }
- ]
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "50.0",
- "name": "volumeAbove",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "500.0",
- "name": "volumeUpTo",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "2.5",
- "name": "rate",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%"
- }
- ]
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "500.0",
- "name": "volumeAbove",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "1000.0",
- "name": "volumeUpTo",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "1.2",
- "name": "rate",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%"
- }
- ]
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "1000.0",
- "name": "volumeAbove",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "1000000.0",
- "name": "volumeUpTo",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "0.1",
- "name": "rate",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%"
- }
- ]
- }
- ]
- }
- ]
- }
- ]
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/ciceromark/volumediscountolist_slate.json b/packages/markdown-slate/test/data/ciceromark/volumediscountolist_slate.json
deleted file mode 100644
index c1b6ed85..00000000
--- a/packages/markdown-slate/test/data/ciceromark/volumediscountolist_slate.json
+++ /dev/null
@@ -1,707 +0,0 @@
-{
- "document": {
- "object": "document",
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "Volume-Based Card Acceptance Agreement [Abbreviated]"
- }
- ],
- "data": {}
- },
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "This Agreement is by and between Card, Inc., a New York corporation, and you, the Merchant. By accepting the Card, you agree to be bound by the Agreement."
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "Discount means an amount that we charge you for accepting the Card, which amount is:"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "(i) a percentage (Discount Rate) of the face amount of the Charge that you submit, or a flat per-"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "Transaction fee, or a combination of both; and/or"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "(ii) a Monthly Flat Fee (if you meet our requirements)."
- }
- ],
- "data": {}
- },
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "Transaction Processing and Payments. Our Card acceptance, processing, and payment requirements are set forth in the Merchant Regulations. Some requirements are summarized here for ease of reference, but do not supersede the provisions in the Merchant Regulations."
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "Payment for Charges. We will pay you, through our agent, according to your payment plan in US dollars for the face amount of Charges submitted from your Establishments less all applicable deductions, rejections, and withholdings, which include:"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "(i) the Discount,"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "(ii) any amounts you owe us or our Affiliates,"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "(iii) any amounts for which we have Chargebacks and"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "(iv) any Credits you submit. Your initial Discount is indicated in the Agreement or otherwise provided to you in writing by us. In addition to your Discount we may charge you additional fees and assessments, as listed in the Merchant Regulations or as otherwise provided to you in writing by us. We may adjust any of these amounts and may change any other amount we charge you for accepting the Card."
- }
- ],
- "data": {}
- },
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "SETTLEMENT"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "a) Settlement Amount. Our agent will pay you according to your payment plan, as described below, in US dollars for the face amount of Charges submitted from your Establishments less all applicable deductions, rejections, and withholdings, which include:"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "(i) the Discount,"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "(ii) any amounts you owe us or our Affiliates,"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "(iii) any amounts for which we have Chargebacks, and (iv) any Credits you submit. Our agent will subtract the full amount of all applicable deductions, rejections, and withholdings, from this payment to you (or debit your Bank Account), but if it cannot, then you must pay it promptly upon demand."
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "b) Discount. The Discount is determined according to the following table:"
- }
- ],
- "data": {}
- },
- {
- "object": "block",
- "data": {
- "name": "rates",
- "tight": "true",
- "start": "1",
- "delimiter": "period",
- "type": "variable"
- },
- "type": "ol_list_block",
- "children": [
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "volumeAbove",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "0.0"
- }
- ]
- },
- {
- "object": "text",
- "text": "$ million <= Volume < "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "volumeUpTo",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "1.0"
- }
- ]
- },
- {
- "object": "text",
- "text": "$ million : "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "rate",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "3.1"
- }
- ]
- },
- {
- "object": "text",
- "text": "%"
- }
- ],
- "data": {}
- }
- ]
- },
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "volumeAbove",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "1.0"
- }
- ]
- },
- {
- "object": "text",
- "text": "$ million <= Volume < "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "volumeUpTo",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "10.0"
- }
- ]
- },
- {
- "object": "text",
- "text": "$ million : "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "rate",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "3.1"
- }
- ]
- },
- {
- "object": "text",
- "text": "%"
- }
- ],
- "data": {}
- }
- ]
- },
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "volumeAbove",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "10.0"
- }
- ]
- },
- {
- "object": "text",
- "text": "$ million <= Volume < "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "volumeUpTo",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "50.0"
- }
- ]
- },
- {
- "object": "text",
- "text": "$ million : "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "rate",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "2.9"
- }
- ]
- },
- {
- "object": "text",
- "text": "%"
- }
- ],
- "data": {}
- }
- ]
- },
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "volumeAbove",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "50.0"
- }
- ]
- },
- {
- "object": "text",
- "text": "$ million <= Volume < "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "volumeUpTo",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "500.0"
- }
- ]
- },
- {
- "object": "text",
- "text": "$ million : "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "rate",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "2.5"
- }
- ]
- },
- {
- "object": "text",
- "text": "%"
- }
- ],
- "data": {}
- }
- ]
- },
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "volumeAbove",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "500.0"
- }
- ]
- },
- {
- "object": "text",
- "text": "$ million <= Volume < "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "volumeUpTo",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "1000.0"
- }
- ]
- },
- {
- "object": "text",
- "text": "$ million : "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "rate",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "1.2"
- }
- ]
- },
- {
- "object": "text",
- "text": "%"
- }
- ],
- "data": {}
- }
- ]
- },
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "volumeAbove",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "1000.0"
- }
- ]
- },
- {
- "object": "text",
- "text": "$ million <= Volume < "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "volumeUpTo",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "1000000.0"
- }
- ]
- },
- {
- "object": "text",
- "text": "$ million : "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "rate",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "0.1"
- }
- ]
- },
- {
- "object": "text",
- "text": "%"
- }
- ],
- "data": {}
- }
- ]
- }
- ]
- }
- ],
- "data": {}
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/ciceromark/volumediscountulist_ciceromark.json b/packages/markdown-slate/test/data/ciceromark/volumediscountulist_ciceromark.json
deleted file mode 100644
index e6c56474..00000000
--- a/packages/markdown-slate/test/data/ciceromark/volumediscountulist_ciceromark.json
+++ /dev/null
@@ -1,536 +0,0 @@
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "xmlns": "http://commonmark.org/xml/1.0",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Volume-Based Card Acceptance Agreement [Abbreviated]"
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "This Agreement is by and between Card, Inc., a New York corporation, and you, the Merchant. By accepting the Card, you agree to be bound by the Agreement."
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Discount means an amount that we charge you for accepting the Card, which amount is:"
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.List",
- "type": "ordered",
- "start": "1",
- "tight": "true",
- "delimiter": "period",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "a percentage (Discount Rate) of the face amount of the Charge that you submit, or a flat per-"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Transaction fee, or a combination of both; and/or"
- }
- ]
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "a Monthly Flat Fee (if you meet our requirements)."
- }
- ]
- }
- ]
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Transaction Processing and Payments. Our Card acceptance, processing, and payment requirements are set forth in the Merchant Regulations. Some requirements are summarized here for ease of reference, but do not supersede the provisions in the Merchant Regulations."
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Payment for Charges. We will pay you, through our agent, according to your payment plan in US dollars for the face amount of Charges submitted from your Establishments less all applicable deductions, rejections, and withholdings, which include:"
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.List",
- "type": "ordered",
- "start": "1",
- "tight": "true",
- "delimiter": "period",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "the Discount,"
- }
- ]
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "any amounts you owe us or our Affiliates,"
- }
- ]
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "any amounts for which we have Chargebacks and"
- }
- ]
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "any Credits you submit."
- }
- ]
- }
- ]
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Your initial Discount is indicated in the Agreement or otherwise provided to you in writing by us. In addition to your Discount we may charge you additional fees and assessments, as listed in the Merchant Regulations or as otherwise provided to you in writing by us. We may adjust any of these amounts and may change any other amount we charge you for accepting the Card."
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "3",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "SETTLEMENT"
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "4",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Settlement Amount."
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Our agent will pay you according to your payment plan, as described below, in US dollars for the face amount of Charges submitted from your Establishments less all applicable deductions, rejections, and withholdings, which include:"
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.List",
- "type": "ordered",
- "start": "1",
- "tight": "true",
- "delimiter": "period",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "the Discount,"
- }
- ]
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "any amounts you owe us or our Affiliates,"
- }
- ]
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "any amounts for which we have Chargebacks, and"
- }
- ]
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "any Credits you submit."
- }
- ]
- }
- ]
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Our agent will subtract the full amount of all applicable deductions, rejections, and withholdings, from this payment to you (or debit your Bank Account), but if it cannot, then you must pay it promptly upon demand."
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "4",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Discount."
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "The Discount is determined according to the following table:"
- }
- ]
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.ListBlock",
- "type": "bullet",
- "tight": "true",
- "name": "rates",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "0.0",
- "name": "volumeAbove",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "1.0",
- "name": "volumeUpTo",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "3.1",
- "name": "rate",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%"
- }
- ]
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "1.0",
- "name": "volumeAbove",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "10.0",
- "name": "volumeUpTo",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "3.1",
- "name": "rate",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%"
- }
- ]
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "10.0",
- "name": "volumeAbove",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "50.0",
- "name": "volumeUpTo",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "2.9",
- "name": "rate",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%"
- }
- ]
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "50.0",
- "name": "volumeAbove",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "500.0",
- "name": "volumeUpTo",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "2.5",
- "name": "rate",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%"
- }
- ]
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "500.0",
- "name": "volumeAbove",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "1000.0",
- "name": "volumeUpTo",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "1.2",
- "name": "rate",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%"
- }
- ]
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Item",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "1000.0",
- "name": "volumeAbove",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million <= Volume < "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "1000000.0",
- "name": "volumeUpTo",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "$ million : "
- },
- {
- "$class": "org.accordproject.ciceromark@0.6.0.Variable",
- "value": "0.1",
- "name": "rate",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "%"
- }
- ]
- }
- ]
- }
- ]
- }
- ]
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/ciceromark/volumediscountulist_slate.json b/packages/markdown-slate/test/data/ciceromark/volumediscountulist_slate.json
deleted file mode 100644
index cff00208..00000000
--- a/packages/markdown-slate/test/data/ciceromark/volumediscountulist_slate.json
+++ /dev/null
@@ -1,819 +0,0 @@
-{
- "document": {
- "object": "document",
- "children": [
- {
- "object": "block",
- "data": {},
- "type": "heading_two",
- "children": [
- {
- "object": "text",
- "text": "Volume-Based Card Acceptance Agreement [Abbreviated]"
- }
- ]
- },
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "This Agreement is by and between Card, Inc., a New York corporation, and you, the Merchant. By accepting the Card, you agree to be bound by the Agreement."
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "Discount means an amount that we charge you for accepting the Card, which amount is:"
- }
- ],
- "data": {}
- },
- {
- "object": "block",
- "data": {
- "tight": "true",
- "start": "1",
- "delimiter": "period"
- },
- "type": "ol_list",
- "children": [
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "a percentage (Discount Rate) of the face amount of the Charge that you submit, or a flat per-"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "Transaction fee, or a combination of both; and/or"
- }
- ],
- "data": {}
- }
- ]
- },
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "a Monthly Flat Fee (if you meet our requirements)."
- }
- ],
- "data": {}
- }
- ]
- }
- ]
- },
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "Transaction Processing and Payments. Our Card acceptance, processing, and payment requirements are set forth in the Merchant Regulations. Some requirements are summarized here for ease of reference, but do not supersede the provisions in the Merchant Regulations."
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "Payment for Charges. We will pay you, through our agent, according to your payment plan in US dollars for the face amount of Charges submitted from your Establishments less all applicable deductions, rejections, and withholdings, which include:"
- }
- ],
- "data": {}
- },
- {
- "object": "block",
- "data": {
- "tight": "true",
- "start": "1",
- "delimiter": "period"
- },
- "type": "ol_list",
- "children": [
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "the Discount,"
- }
- ],
- "data": {}
- }
- ]
- },
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "any amounts you owe us or our Affiliates,"
- }
- ],
- "data": {}
- }
- ]
- },
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "any amounts for which we have Chargebacks and"
- }
- ],
- "data": {}
- }
- ]
- },
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "any Credits you submit."
- }
- ],
- "data": {}
- }
- ]
- }
- ]
- },
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "Your initial Discount is indicated in the Agreement or otherwise provided to you in writing by us. In addition to your Discount we may charge you additional fees and assessments, as listed in the Merchant Regulations or as otherwise provided to you in writing by us. We may adjust any of these amounts and may change any other amount we charge you for accepting the Card."
- }
- ],
- "data": {}
- },
- {
- "object": "block",
- "data": {},
- "type": "heading_three",
- "children": [
- {
- "object": "text",
- "text": "SETTLEMENT"
- }
- ]
- },
- {
- "object": "block",
- "data": {},
- "type": "heading_four",
- "children": [
- {
- "object": "text",
- "text": "Settlement Amount."
- }
- ]
- },
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "Our agent will pay you according to your payment plan, as described below, in US dollars for the face amount of Charges submitted from your Establishments less all applicable deductions, rejections, and withholdings, which include:"
- }
- ],
- "data": {}
- },
- {
- "object": "block",
- "data": {
- "tight": "true",
- "start": "1",
- "delimiter": "period"
- },
- "type": "ol_list",
- "children": [
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "the Discount,"
- }
- ],
- "data": {}
- }
- ]
- },
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "any amounts you owe us or our Affiliates,"
- }
- ],
- "data": {}
- }
- ]
- },
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "any amounts for which we have Chargebacks, and"
- }
- ],
- "data": {}
- }
- ]
- },
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "any Credits you submit."
- }
- ],
- "data": {}
- }
- ]
- }
- ]
- },
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "Our agent will subtract the full amount of all applicable deductions, rejections, and withholdings, from this payment to you (or debit your Bank Account), but if it cannot, then you must pay it promptly upon demand."
- }
- ],
- "data": {}
- },
- {
- "object": "block",
- "data": {},
- "type": "heading_four",
- "children": [
- {
- "object": "text",
- "text": "Discount."
- }
- ]
- },
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "The Discount is determined according to the following table:"
- }
- ],
- "data": {}
- },
- {
- "object": "block",
- "data": {
- "name": "rates",
- "tight": "true",
- "type": "variable"
- },
- "type": "ul_list_block",
- "children": [
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "volumeAbove",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "0.0"
- }
- ]
- },
- {
- "object": "text",
- "text": "$ million <= Volume < "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "volumeUpTo",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "1.0"
- }
- ]
- },
- {
- "object": "text",
- "text": "$ million : "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "rate",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "3.1"
- }
- ]
- },
- {
- "object": "text",
- "text": "%"
- }
- ],
- "data": {}
- }
- ]
- },
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "volumeAbove",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "1.0"
- }
- ]
- },
- {
- "object": "text",
- "text": "$ million <= Volume < "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "volumeUpTo",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "10.0"
- }
- ]
- },
- {
- "object": "text",
- "text": "$ million : "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "rate",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "3.1"
- }
- ]
- },
- {
- "object": "text",
- "text": "%"
- }
- ],
- "data": {}
- }
- ]
- },
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "volumeAbove",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "10.0"
- }
- ]
- },
- {
- "object": "text",
- "text": "$ million <= Volume < "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "volumeUpTo",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "50.0"
- }
- ]
- },
- {
- "object": "text",
- "text": "$ million : "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "rate",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "2.9"
- }
- ]
- },
- {
- "object": "text",
- "text": "%"
- }
- ],
- "data": {}
- }
- ]
- },
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "volumeAbove",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "50.0"
- }
- ]
- },
- {
- "object": "text",
- "text": "$ million <= Volume < "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "volumeUpTo",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "500.0"
- }
- ]
- },
- {
- "object": "text",
- "text": "$ million : "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "rate",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "2.5"
- }
- ]
- },
- {
- "object": "text",
- "text": "%"
- }
- ],
- "data": {}
- }
- ]
- },
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "volumeAbove",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "500.0"
- }
- ]
- },
- {
- "object": "text",
- "text": "$ million <= Volume < "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "volumeUpTo",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "1000.0"
- }
- ]
- },
- {
- "object": "text",
- "text": "$ million : "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "rate",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "1.2"
- }
- ]
- },
- {
- "object": "text",
- "text": "%"
- }
- ],
- "data": {}
- }
- ]
- },
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "volumeAbove",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "1000.0"
- }
- ]
- },
- {
- "object": "text",
- "text": "$ million <= Volume < "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "volumeUpTo",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "1000000.0"
- }
- ]
- },
- {
- "object": "text",
- "text": "$ million : "
- },
- {
- "object": "inline",
- "type": "variable",
- "data": {
- "name": "rate",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "0.1"
- }
- ]
- },
- {
- "object": "text",
- "text": "%"
- }
- ],
- "data": {}
- }
- ]
- }
- ]
- }
- ],
- "data": {}
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/bold.json b/packages/markdown-slate/test/data/markdown/bold.json
deleted file mode 100644
index aaa787ce..00000000
--- a/packages/markdown-slate/test/data/markdown/bold.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "document": {
- "object": "document",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "bold",
- "bold": true
- }
- ]
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/bold.md b/packages/markdown-slate/test/data/markdown/bold.md
deleted file mode 100644
index 1bd3dfc0..00000000
--- a/packages/markdown-slate/test/data/markdown/bold.md
+++ /dev/null
@@ -1 +0,0 @@
-**bold**
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/boldem.json b/packages/markdown-slate/test/data/markdown/boldem.json
deleted file mode 100644
index eb210de1..00000000
--- a/packages/markdown-slate/test/data/markdown/boldem.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "document": {
- "object": "document",
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "bold",
- "italic": true,
- "bold": true
- }
- ],
- "data": {}
- }
- ],
- "data": {}
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/boldem.md b/packages/markdown-slate/test/data/markdown/boldem.md
deleted file mode 100644
index 8e3e4ae5..00000000
--- a/packages/markdown-slate/test/data/markdown/boldem.md
+++ /dev/null
@@ -1 +0,0 @@
-_**bold**_
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/code.json b/packages/markdown-slate/test/data/markdown/code.json
deleted file mode 100644
index e808d813..00000000
--- a/packages/markdown-slate/test/data/markdown/code.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "document": {
- "object": "document",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "some code",
- "code": true
- }
- ]
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/code.md b/packages/markdown-slate/test/data/markdown/code.md
deleted file mode 100644
index b85e7b4d..00000000
--- a/packages/markdown-slate/test/data/markdown/code.md
+++ /dev/null
@@ -1 +0,0 @@
-`some code`
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/codeblock.json b/packages/markdown-slate/test/data/markdown/codeblock.json
deleted file mode 100644
index 8ae5f92e..00000000
--- a/packages/markdown-slate/test/data/markdown/codeblock.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "document": {
- "object": "document",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "code_block",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "this\nis a\ncode block.\n"
- }
- ]
- }
- ]
- },
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "end."
- }
- ]
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/codeblock.md b/packages/markdown-slate/test/data/markdown/codeblock.md
deleted file mode 100644
index bc807eb7..00000000
--- a/packages/markdown-slate/test/data/markdown/codeblock.md
+++ /dev/null
@@ -1,9 +0,0 @@
-```
-this
-is a
-code block.
-```
-
-
-
-end.
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/commonmark.json b/packages/markdown-slate/test/data/markdown/commonmark.json
deleted file mode 100644
index 640d2802..00000000
--- a/packages/markdown-slate/test/data/markdown/commonmark.json
+++ /dev/null
@@ -1,95 +0,0 @@
-{
- "document": {
- "object": "document",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "heading_two",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "Try CommonMark"
- }
- ]
- },
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "You can try CommonMark here. This dingus is powered by"
- },
- {
- "object": "inline",
- "type": "link",
- "data": {
- "href": "https://github.com/jgm/commonmark.js",
- "title": ""
- },
- "children": [
- {
- "object": "text",
- "text": " commonmark.js"
- }
- ]
- },
- {
- "object": "text",
- "text": ", the JavaScript reference implementation."
- }
- ]
- },
- {
- "object": "block",
- "type": "ol_list",
- "data": {
- "tight": "true",
- "start": "1",
- "delimiter": "period"
- },
- "children": [
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "item one"
- }
- ]
- }
- ]
- },
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "item two"
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/commonmark.md b/packages/markdown-slate/test/data/markdown/commonmark.md
deleted file mode 100644
index 387d60a4..00000000
--- a/packages/markdown-slate/test/data/markdown/commonmark.md
+++ /dev/null
@@ -1,6 +0,0 @@
-Try CommonMark
-----
-
-You can try CommonMark here. This dingus is powered by[ commonmark.js](https://github.com/jgm/commonmark.js), the JavaScript reference implementation.
-1. item one
-2. item two
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/empty.json b/packages/markdown-slate/test/data/markdown/empty.json
deleted file mode 100644
index 9c1ffe17..00000000
--- a/packages/markdown-slate/test/data/markdown/empty.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "document": {
- "object": "document",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/empty.md b/packages/markdown-slate/test/data/markdown/empty.md
deleted file mode 100644
index e69de29b..00000000
diff --git a/packages/markdown-slate/test/data/markdown/headings.json b/packages/markdown-slate/test/data/markdown/headings.json
deleted file mode 100644
index 41b0f6a8..00000000
--- a/packages/markdown-slate/test/data/markdown/headings.json
+++ /dev/null
@@ -1,96 +0,0 @@
-{
- "document": {
- "object": "document",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "heading_two",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "H1"
- }
- ]
- },
- {
- "object": "block",
- "type": "heading_two",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "H2"
- }
- ]
- },
- {
- "object": "block",
- "type": "heading_three",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "H3"
- }
- ]
- },
- {
- "object": "block",
- "type": "heading_four",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "H4"
- }
- ]
- },
- {
- "object": "block",
- "type": "heading_five",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "H5"
- }
- ]
- },
- {
- "object": "block",
- "type": "heading_six",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "H6"
- }
- ]
- },
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "####### Text!!"
- }
- ]
- },
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "end."
- }
- ]
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/headings.md b/packages/markdown-slate/test/data/markdown/headings.md
deleted file mode 100644
index 5d2dd833..00000000
--- a/packages/markdown-slate/test/data/markdown/headings.md
+++ /dev/null
@@ -1,22 +0,0 @@
-## H1
-
-
-## H2
-
-
-### H3
-
-
-#### H4
-
-
-##### H5
-
-
-###### H6
-
-
-\####### Text!!
-
-
-end.
diff --git a/packages/markdown-slate/test/data/markdown/html-block.json b/packages/markdown-slate/test/data/markdown/html-block.json
deleted file mode 100644
index 72dfca14..00000000
--- a/packages/markdown-slate/test/data/markdown/html-block.json
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- "document": {
- "object": "document",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "html_block",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "\nthis\nis an\nhtml block.\n\nend.",
- "html": true
- }
- ]
- }
- ]
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/html-block.md b/packages/markdown-slate/test/data/markdown/html-block.md
deleted file mode 100644
index 2e263c8d..00000000
--- a/packages/markdown-slate/test/data/markdown/html-block.md
+++ /dev/null
@@ -1,6 +0,0 @@
-
-this
-is an
-html block.
-
-end.
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/html.json b/packages/markdown-slate/test/data/markdown/html.json
deleted file mode 100644
index c48f4fdf..00000000
--- a/packages/markdown-slate/test/data/markdown/html.json
+++ /dev/null
@@ -1,66 +0,0 @@
-{
- "document": {
- "object": "document",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "This is text with "
- },
- {
- "object": "inline",
- "type": "html_inline",
- "data": {
- "content": ""
- },
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": " inside it"
- }
- ]
- },
- {
- "object": "block",
- "type": "html_block",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "",
- "html": true
- }
- ]
- }
- ]
- },
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "This is more text"
- }
- ]
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/html.md b/packages/markdown-slate/test/data/markdown/html.md
deleted file mode 100644
index 5f527743..00000000
--- a/packages/markdown-slate/test/data/markdown/html.md
+++ /dev/null
@@ -1,5 +0,0 @@
-This is text with inside it
-
-
-
-This is more text
diff --git a/packages/markdown-slate/test/data/markdown/image-notitle.json b/packages/markdown-slate/test/data/markdown/image-notitle.json
deleted file mode 100644
index 47e89c34..00000000
--- a/packages/markdown-slate/test/data/markdown/image-notitle.json
+++ /dev/null
@@ -1,44 +0,0 @@
-{
- "document": {
- "object": "document",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "This is an image"
- }
- ]
- },
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "image",
- "data": {
- "href": "https://studio.accordproject.org/static/img/logo.png",
- "title": ""
- },
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- }
- ]
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/image-notitle.md b/packages/markdown-slate/test/data/markdown/image-notitle.md
deleted file mode 100644
index b452ef86..00000000
--- a/packages/markdown-slate/test/data/markdown/image-notitle.md
+++ /dev/null
@@ -1,3 +0,0 @@
-This is an image
-
-
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/image.json b/packages/markdown-slate/test/data/markdown/image.json
deleted file mode 100644
index 488a20e9..00000000
--- a/packages/markdown-slate/test/data/markdown/image.json
+++ /dev/null
@@ -1,44 +0,0 @@
-{
- "document": {
- "object": "document",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "This is an image"
- }
- ]
- },
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "image",
- "data": {
- "href": "https://studio.accordproject.org/static/img/logo.png",
- "title": "title"
- },
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- }
- ]
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/image.md b/packages/markdown-slate/test/data/markdown/image.md
deleted file mode 100644
index 6a1d2647..00000000
--- a/packages/markdown-slate/test/data/markdown/image.md
+++ /dev/null
@@ -1,3 +0,0 @@
-This is an image
-
-
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/italic.json b/packages/markdown-slate/test/data/markdown/italic.json
deleted file mode 100644
index 0f7a6039..00000000
--- a/packages/markdown-slate/test/data/markdown/italic.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "document": {
- "object": "document",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "italic",
- "italic": true
- }
- ]
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/italic.md b/packages/markdown-slate/test/data/markdown/italic.md
deleted file mode 100644
index 5a240258..00000000
--- a/packages/markdown-slate/test/data/markdown/italic.md
+++ /dev/null
@@ -1 +0,0 @@
-*italic*
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/linebreak.json b/packages/markdown-slate/test/data/markdown/linebreak.json
deleted file mode 100644
index 17370446..00000000
--- a/packages/markdown-slate/test/data/markdown/linebreak.json
+++ /dev/null
@@ -1,45 +0,0 @@
-{
- "document": {
- "object": "document",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "This is a"
- },
- {
- "object": "inline",
- "type": "linebreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "linebreak in para 1."
- }
- ]
- },
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "And this is para 2."
- }
- ]
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/linebreak.md b/packages/markdown-slate/test/data/markdown/linebreak.md
deleted file mode 100644
index 84c149c0..00000000
--- a/packages/markdown-slate/test/data/markdown/linebreak.md
+++ /dev/null
@@ -1,4 +0,0 @@
-This is a
-linebreak in para 1.
-
-And this is para 2.
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/link-notitle.json b/packages/markdown-slate/test/data/markdown/link-notitle.json
deleted file mode 100644
index 8882b2d7..00000000
--- a/packages/markdown-slate/test/data/markdown/link-notitle.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "document": {
- "object": "document",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "a "
- },
- {
- "object": "inline",
- "type": "link",
- "data": {
- "href": "http://clause.io",
- "title": ""
- },
- "children": [
- {
- "object": "text",
- "text": "link"
- }
- ]
- },
- {
- "object": "text",
- "text": ""
- }
- ]
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/link-notitle.md b/packages/markdown-slate/test/data/markdown/link-notitle.md
deleted file mode 100644
index d84c7737..00000000
--- a/packages/markdown-slate/test/data/markdown/link-notitle.md
+++ /dev/null
@@ -1 +0,0 @@
-a [link](http://clause.io)
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/link.json b/packages/markdown-slate/test/data/markdown/link.json
deleted file mode 100644
index d4bae4a3..00000000
--- a/packages/markdown-slate/test/data/markdown/link.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "document": {
- "object": "document",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "a "
- },
- {
- "object": "inline",
- "type": "link",
- "data": {
- "href": "http://clause.io",
- "title": "title"
- },
- "children": [
- {
- "object": "text",
- "text": "link"
- }
- ]
- },
- {
- "object": "text",
- "text": ""
- }
- ]
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/link.md b/packages/markdown-slate/test/data/markdown/link.md
deleted file mode 100644
index 105275c9..00000000
--- a/packages/markdown-slate/test/data/markdown/link.md
+++ /dev/null
@@ -1 +0,0 @@
-a [link](http://clause.io "title")
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/linkcode.json b/packages/markdown-slate/test/data/markdown/linkcode.json
deleted file mode 100644
index 4d254864..00000000
--- a/packages/markdown-slate/test/data/markdown/linkcode.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "document": {
- "object": "document",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "this is a "
- },
- {
- "object": "inline",
- "type": "link",
- "data": {
- "href": "https://google.com",
- "title": ""
- },
- "children": [
- {
- "object": "text",
- "text": "code link",
- "code": true
- }
- ]
- },
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "this is a "
- },
- {
- "object": "text",
- "text": "code snippet",
- "code": true
- }
- ]
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/linkcode.md b/packages/markdown-slate/test/data/markdown/linkcode.md
deleted file mode 100644
index d68847e9..00000000
--- a/packages/markdown-slate/test/data/markdown/linkcode.md
+++ /dev/null
@@ -1,3 +0,0 @@
-this is a [`code link`](https://google.com)
-
-this is a `code snippet`
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/linkem.json b/packages/markdown-slate/test/data/markdown/linkem.json
deleted file mode 100644
index 19e7b76d..00000000
--- a/packages/markdown-slate/test/data/markdown/linkem.json
+++ /dev/null
@@ -1,38 +0,0 @@
-{
- "document": {
- "object": "document",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "this is a "
- },
- {
- "object": "inline",
- "type": "link",
- "data": {
- "href": "https://google.com",
- "title": ""
- },
- "children": [
- {
- "object": "text",
- "text": "code link",
- "italic": true
- }
- ]
- },
- {
- "object": "text",
- "text": ""
- }
- ]
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/linkem.md b/packages/markdown-slate/test/data/markdown/linkem.md
deleted file mode 100644
index 48adfa93..00000000
--- a/packages/markdown-slate/test/data/markdown/linkem.md
+++ /dev/null
@@ -1 +0,0 @@
-this is a [*code link*](https://google.com)
diff --git a/packages/markdown-slate/test/data/markdown/linkmixed.json b/packages/markdown-slate/test/data/markdown/linkmixed.json
deleted file mode 100644
index 3925e142..00000000
--- a/packages/markdown-slate/test/data/markdown/linkmixed.json
+++ /dev/null
@@ -1,56 +0,0 @@
-{
- "document": {
- "object": "document",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "link",
- "data": {
- "href": "http://google.com",
- "title": ""
- },
- "children": [
- {
- "object": "text",
- "text": "This is a "
- },
- {
- "object": "text",
- "text": "link",
- "italic": true
- },
- {
- "object": "text",
- "text": " with "
- },
- {
- "object": "text",
- "text": "code",
- "code": true
- },
- {
- "object": "text",
- "text": " and "
- },
- {
- "object": "text",
- "text": "bold",
- "bold": true
- }
- ]
- }
- ]
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/linkmixed.md b/packages/markdown-slate/test/data/markdown/linkmixed.md
deleted file mode 100644
index 09d748bf..00000000
--- a/packages/markdown-slate/test/data/markdown/linkmixed.md
+++ /dev/null
@@ -1 +0,0 @@
-[This is a *link* with `code` and **bold**](http://google.com)
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/linktext.json b/packages/markdown-slate/test/data/markdown/linktext.json
deleted file mode 100644
index cc665025..00000000
--- a/packages/markdown-slate/test/data/markdown/linktext.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "document": {
- "object": "document",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "this is a "
- },
- {
- "object": "inline",
- "type": "link",
- "data": {
- "href": "https://google.com",
- "title": ""
- },
- "children": [
- {
- "object": "text",
- "text": "code link"
- }
- ]
- },
- {
- "object": "text",
- "text": ""
- }
- ]
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/linktext.md b/packages/markdown-slate/test/data/markdown/linktext.md
deleted file mode 100644
index 224fbf53..00000000
--- a/packages/markdown-slate/test/data/markdown/linktext.md
+++ /dev/null
@@ -1 +0,0 @@
-this is a [code link](https://google.com)
diff --git a/packages/markdown-slate/test/data/markdown/nested-list.json b/packages/markdown-slate/test/data/markdown/nested-list.json
deleted file mode 100644
index e9b77d75..00000000
--- a/packages/markdown-slate/test/data/markdown/nested-list.json
+++ /dev/null
@@ -1,148 +0,0 @@
-{
- "document": {
- "object": "document",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "Prolog"
- }
- ]
- },
- {
- "object": "block",
- "type": "ol_list",
- "data": {
- "tight": "true",
- "start": "1",
- "delimiter": "period"
- },
- "children": [
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "item one"
- }
- ]
- }
- ]
- },
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "item two"
- }
- ]
- },
- {
- "object": "block",
- "type": "ul_list",
- "data": {
- "tight": "true"
- },
- "children": [
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "sublist"
- }
- ]
- }
- ]
- },
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "sublist"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "with some text in the same paragraph"
- }
- ]
- }
- ]
- },
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- },
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "Epilog"
- }
- ]
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/nested-list.md b/packages/markdown-slate/test/data/markdown/nested-list.md
deleted file mode 100644
index d9f9e1a3..00000000
--- a/packages/markdown-slate/test/data/markdown/nested-list.md
+++ /dev/null
@@ -1,9 +0,0 @@
-Prolog
-1. item one
-2. item two
- - sublist
- - sublist
-with some text in the same paragraph
- -
-
-Epilog
diff --git a/packages/markdown-slate/test/data/markdown/ordered.json b/packages/markdown-slate/test/data/markdown/ordered.json
deleted file mode 100644
index 46fa6552..00000000
--- a/packages/markdown-slate/test/data/markdown/ordered.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "document": {
- "object": "document",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "ol_list",
- "data": {
- "tight": "true",
- "start": "1",
- "delimiter": "period"
- },
- "children": [
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "one"
- }
- ]
- }
- ]
- },
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "two"
- }
- ]
- }
- ]
- },
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "three"
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/ordered.md b/packages/markdown-slate/test/data/markdown/ordered.md
deleted file mode 100644
index 9eb56451..00000000
--- a/packages/markdown-slate/test/data/markdown/ordered.md
+++ /dev/null
@@ -1,3 +0,0 @@
-1. one
-2. two
-3. three
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/paragraphs.json b/packages/markdown-slate/test/data/markdown/paragraphs.json
deleted file mode 100644
index eebe1415..00000000
--- a/packages/markdown-slate/test/data/markdown/paragraphs.json
+++ /dev/null
@@ -1,41 +0,0 @@
-{
- "document": {
- "object": "document",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "one"
- }
- ]
- },
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "two"
- }
- ]
- },
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "three"
- }
- ]
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/paragraphs.md b/packages/markdown-slate/test/data/markdown/paragraphs.md
deleted file mode 100644
index 9476ca25..00000000
--- a/packages/markdown-slate/test/data/markdown/paragraphs.md
+++ /dev/null
@@ -1,5 +0,0 @@
-one
-
-two
-
-three
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/plain.json b/packages/markdown-slate/test/data/markdown/plain.json
deleted file mode 100644
index 7b6a0853..00000000
--- a/packages/markdown-slate/test/data/markdown/plain.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "document": {
- "object": "document",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "plain"
- }
- ]
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/plain.md b/packages/markdown-slate/test/data/markdown/plain.md
deleted file mode 100644
index f8dc9f27..00000000
--- a/packages/markdown-slate/test/data/markdown/plain.md
+++ /dev/null
@@ -1 +0,0 @@
-plain
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/quote.json b/packages/markdown-slate/test/data/markdown/quote.json
deleted file mode 100644
index 3eb8a015..00000000
--- a/packages/markdown-slate/test/data/markdown/quote.json
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- "document": {
- "object": "document",
- "data": {},
- "children": [
- {
- "block_quote": true,
- "object": "block",
- "data": {},
- "type": "block_quote",
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "this is a quote"
- }
- ]
- }
- ]
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/quote.md b/packages/markdown-slate/test/data/markdown/quote.md
deleted file mode 100644
index 7e800fb9..00000000
--- a/packages/markdown-slate/test/data/markdown/quote.md
+++ /dev/null
@@ -1 +0,0 @@
-> this is a quote
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/softbreak.json b/packages/markdown-slate/test/data/markdown/softbreak.json
deleted file mode 100644
index 5808cabe..00000000
--- a/packages/markdown-slate/test/data/markdown/softbreak.json
+++ /dev/null
@@ -1,45 +0,0 @@
-{
- "document": {
- "object": "document",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "This is a"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "softbreak in para 1."
- }
- ]
- },
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "And this is para 2."
- }
- ]
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/softbreak.md b/packages/markdown-slate/test/data/markdown/softbreak.md
deleted file mode 100644
index d827b1ee..00000000
--- a/packages/markdown-slate/test/data/markdown/softbreak.md
+++ /dev/null
@@ -1,4 +0,0 @@
-This is a
-softbreak in para 1.
-
-And this is para 2.
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/table.json b/packages/markdown-slate/test/data/markdown/table.json
deleted file mode 100644
index ff5eba62..00000000
--- a/packages/markdown-slate/test/data/markdown/table.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "document": {
- "object": "document",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "table",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "table_head",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "table_row",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "header_cell",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "Column 1"
- }
- ]
- },
- {
- "object": "block",
- "type": "header_cell",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "Column 2"
- }
- ]
- }
- ]
- }
- ]
- },
- {
- "object": "block",
- "type": "table_body",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "table_row",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "table_cell",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "Simple"
- }
- ]
- },
- {
- "object": "block",
- "type": "table_cell",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "Table"
- }
- ]
- }
- ]
- },
- {
- "object": "block",
- "type": "table_row",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "table_cell",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "Paragraph"
- }
- ]
- },
- {
- "object": "block",
- "type": "table_cell",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "Text"
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/table.md b/packages/markdown-slate/test/data/markdown/table.md
deleted file mode 100644
index 5512ab5a..00000000
--- a/packages/markdown-slate/test/data/markdown/table.md
+++ /dev/null
@@ -1,4 +0,0 @@
-| Column 1 | Column 2 |
-| ----------- | ----------- |
-| Simple | Table |
-| Paragraph | Text |
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/table_complex.json b/packages/markdown-slate/test/data/markdown/table_complex.json
deleted file mode 100644
index 765d23ba..00000000
--- a/packages/markdown-slate/test/data/markdown/table_complex.json
+++ /dev/null
@@ -1,176 +0,0 @@
-{
- "document": {
- "object": "document",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "table",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "table_head",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "table_row",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "header_cell",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "Column 1"
- }
- ]
- },
- {
- "object": "block",
- "type": "header_cell",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "Column 2"
- }
- ]
- }
- ]
- }
- ]
- },
- {
- "object": "block",
- "type": "table_body",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "table_row",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "table_cell",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "code block",
- "code": true
- }
- ]
- },
- {
- "object": "block",
- "type": "table_cell",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "image",
- "data": {
- "href": "https://docs.accordproject.org/docs/assets/020/template.png",
- "title": "AP triangle"
- },
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- }
- ]
- }
- ]
- },
- {
- "object": "block",
- "type": "table_row",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "table_cell",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "Paragraph"
- }
- ]
- },
- {
- "object": "block",
- "type": "table_cell",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "Bold content",
- "bold": true
- }
- ]
- }
- ]
- },
- {
- "object": "block",
- "type": "table_row",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "table_cell",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "link",
- "data": {
- "href": "http://clause.io",
- "title": ""
- },
- "children": [
- {
- "object": "text",
- "text": "link"
- }
- ]
- }
- ]
- },
- {
- "object": "block",
- "type": "table_cell",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "Italics",
- "italic": true
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/table_complex.md b/packages/markdown-slate/test/data/markdown/table_complex.md
deleted file mode 100644
index b2518947..00000000
--- a/packages/markdown-slate/test/data/markdown/table_complex.md
+++ /dev/null
@@ -1,5 +0,0 @@
-| Column 1 | Column 2 |
-| ----------- | ----------- |
-| `code block` |  |
-| Paragraph | **Bold content** |
-| [link](http://clause.io) | *Italics* |
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/text.json b/packages/markdown-slate/test/data/markdown/text.json
deleted file mode 100644
index 99ad5b85..00000000
--- a/packages/markdown-slate/test/data/markdown/text.json
+++ /dev/null
@@ -1,52 +0,0 @@
-{
- "document": {
- "object": "document",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "plain "
- },
- {
- "object": "text",
- "text": "italic",
- "italic": true
- },
- {
- "object": "text",
- "text": " "
- },
- {
- "object": "text",
- "text": "bold",
- "bold": true
- },
- {
- "object": "text",
- "text": " "
- },
- {
- "object": "text",
- "text": "bold-italic",
- "italic": true,
- "bold": true
- },
- {
- "object": "text",
- "text": " "
- },
- {
- "object": "text",
- "text": "code",
- "code": true
- }
- ]
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/text.md b/packages/markdown-slate/test/data/markdown/text.md
deleted file mode 100644
index 2f76b225..00000000
--- a/packages/markdown-slate/test/data/markdown/text.md
+++ /dev/null
@@ -1 +0,0 @@
-plain *italic* **bold** ***bold-italic*** `code`
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/thematicbreak.json b/packages/markdown-slate/test/data/markdown/thematicbreak.json
deleted file mode 100644
index 2587a0fc..00000000
--- a/packages/markdown-slate/test/data/markdown/thematicbreak.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "document": {
- "object": "document",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "This is a"
- }
- ]
- },
- {
- "object": "block",
- "type": "horizontal_rule",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ],
- "hr": true
- },
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "thematic break"
- }
- ]
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/thematicbreak.md b/packages/markdown-slate/test/data/markdown/thematicbreak.md
deleted file mode 100644
index 10322132..00000000
--- a/packages/markdown-slate/test/data/markdown/thematicbreak.md
+++ /dev/null
@@ -1,5 +0,0 @@
-This is a
-
-----
-
-thematic break
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/unordered.json b/packages/markdown-slate/test/data/markdown/unordered.json
deleted file mode 100644
index 56544249..00000000
--- a/packages/markdown-slate/test/data/markdown/unordered.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "document": {
- "object": "document",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "ul_list",
- "data": {
- "tight": "true"
- },
- "children": [
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "one"
- }
- ]
- }
- ]
- },
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "two"
- }
- ]
- }
- ]
- },
- {
- "object": "block",
- "type": "list_item",
- "data": {},
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": "three"
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/markdown/unordered.md b/packages/markdown-slate/test/data/markdown/unordered.md
deleted file mode 100644
index 8c777511..00000000
--- a/packages/markdown-slate/test/data/markdown/unordered.md
+++ /dev/null
@@ -1,3 +0,0 @@
-* one
-* two
-* three
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/templatemark/acceptance_slate.json b/packages/markdown-slate/test/data/templatemark/acceptance_slate.json
deleted file mode 100644
index d1f07fb9..00000000
--- a/packages/markdown-slate/test/data/templatemark/acceptance_slate.json
+++ /dev/null
@@ -1,478 +0,0 @@
-{
- "document": {
- "object": "document",
- "children": [
- {
- "object": "block",
- "type": "clause_definition",
- "data": {
- "name": "top",
- "elementType": "org.accordproject.acceptanceofdelivery@1.0.0.AcceptanceOfDeliveryClause"
- },
- "children": [
- {
- "object": "block",
- "data": {},
- "type": "heading_two",
- "children": [
- {
- "object": "text",
- "text": "Acceptance of Delivery."
- }
- ]
- },
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "variable_definition",
- "data": {
- "name": "shipper",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier"
- },
- "children": [
- {
- "object": "text",
- "text": "shipper"
- }
- ]
- },
- {
- "object": "text",
- "text": " will be deemed to have completed its delivery obligations"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "if in "
- },
- {
- "object": "inline",
- "type": "variable_definition",
- "data": {
- "name": "receiver",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier"
- },
- "children": [
- {
- "object": "text",
- "text": "receiver"
- }
- ]
- },
- {
- "object": "text",
- "text": "'s opinion, the "
- },
- {
- "object": "inline",
- "type": "variable_definition",
- "data": {
- "name": "deliverable",
- "elementType": "String"
- },
- "children": [
- {
- "object": "text",
- "text": "deliverable"
- }
- ]
- },
- {
- "object": "text",
- "text": " satisfies the"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "Acceptance Criteria, and "
- },
- {
- "object": "inline",
- "type": "variable_definition",
- "data": {
- "name": "receiver",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier"
- },
- "children": [
- {
- "object": "text",
- "text": "receiver"
- }
- ]
- },
- {
- "object": "text",
- "text": " notifies "
- },
- {
- "object": "inline",
- "type": "variable_definition",
- "data": {
- "name": "shipper",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier"
- },
- "children": [
- {
- "object": "text",
- "text": "shipper"
- }
- ]
- },
- {
- "object": "text",
- "text": " in writing"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "that it is accepting the "
- },
- {
- "object": "inline",
- "type": "variable_definition",
- "data": {
- "name": "deliverable",
- "elementType": "String"
- },
- "children": [
- {
- "object": "text",
- "text": "deliverable"
- }
- ]
- },
- {
- "object": "text",
- "text": "."
- }
- ],
- "data": {}
- },
- {
- "object": "block",
- "data": {},
- "type": "heading_two",
- "children": [
- {
- "object": "text",
- "text": "Inspection and Notice."
- }
- ]
- },
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "variable_definition",
- "data": {
- "name": "receiver",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier"
- },
- "children": [
- {
- "object": "text",
- "text": "receiver"
- }
- ]
- },
- {
- "object": "text",
- "text": " will have "
- },
- {
- "object": "inline",
- "type": "variable_definition",
- "data": {
- "name": "businessDays",
- "elementType": "Long"
- },
- "children": [
- {
- "object": "text",
- "text": "businessDays"
- }
- ]
- },
- {
- "object": "text",
- "text": " Business Days to inspect and"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "evaluate the "
- },
- {
- "object": "inline",
- "type": "variable_definition",
- "data": {
- "name": "deliverable",
- "elementType": "String"
- },
- "children": [
- {
- "object": "text",
- "text": "deliverable"
- }
- ]
- },
- {
- "object": "text",
- "text": " on the delivery date before notifying"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "variable_definition",
- "data": {
- "name": "shipper",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier"
- },
- "children": [
- {
- "object": "text",
- "text": "shipper"
- }
- ]
- },
- {
- "object": "text",
- "text": " that it is either accepting or rejecting the"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "variable_definition",
- "data": {
- "name": "deliverable",
- "elementType": "String"
- },
- "children": [
- {
- "object": "text",
- "text": "deliverable"
- }
- ]
- },
- {
- "object": "text",
- "text": "."
- }
- ],
- "data": {}
- },
- {
- "object": "block",
- "data": {},
- "type": "heading_two",
- "children": [
- {
- "object": "text",
- "text": "Acceptance Criteria."
- }
- ]
- },
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "The \"Acceptance Criteria\" are the specifications the "
- },
- {
- "object": "inline",
- "type": "variable_definition",
- "data": {
- "name": "deliverable",
- "elementType": "String"
- },
- "children": [
- {
- "object": "text",
- "text": "deliverable"
- }
- ]
- },
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "must meet for the "
- },
- {
- "object": "inline",
- "type": "variable_definition",
- "data": {
- "name": "shipper",
- "elementType": "org.accordproject.organization@0.2.0.Organization",
- "identifiedBy": "identifier"
- },
- "children": [
- {
- "object": "text",
- "text": "shipper"
- }
- ]
- },
- {
- "object": "text",
- "text": " to comply with its requirements and"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "obligations under this agreement, detailed in "
- },
- {
- "object": "inline",
- "type": "variable_definition",
- "data": {
- "name": "attachment",
- "elementType": "String"
- },
- "children": [
- {
- "object": "text",
- "text": "attachment"
- }
- ]
- },
- {
- "object": "text",
- "text": ", attached"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "to this agreement."
- }
- ],
- "data": {}
- }
- ]
- }
- ],
- "data": {}
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/templatemark/acceptance_templatemark.json b/packages/markdown-slate/test/data/templatemark/acceptance_templatemark.json
deleted file mode 100644
index 2c8e46f5..00000000
--- a/packages/markdown-slate/test/data/templatemark/acceptance_templatemark.json
+++ /dev/null
@@ -1,246 +0,0 @@
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "xmlns": "http://commonmark.org/xml/1.0",
- "nodes": [
- {
- "$class": "org.accordproject.templatemark@0.5.0.ClauseDefinition",
- "name": "top",
- "elementType": "org.accordproject.acceptanceofdelivery@1.0.0.AcceptanceOfDeliveryClause",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Acceptance of Delivery."
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "identifiedBy": "identifier",
- "name": "shipper",
- "elementType": "org.accordproject.organization@0.2.0.Organization"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " will be deemed to have completed its delivery obligations"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "if in "
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "identifiedBy": "identifier",
- "name": "receiver",
- "elementType": "org.accordproject.organization@0.2.0.Organization"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "'s opinion, the "
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "name": "deliverable",
- "elementType": "String"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " satisfies the"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Acceptance Criteria, and "
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "identifiedBy": "identifier",
- "name": "receiver",
- "elementType": "org.accordproject.organization@0.2.0.Organization"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " notifies "
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "identifiedBy": "identifier",
- "name": "shipper",
- "elementType": "org.accordproject.organization@0.2.0.Organization"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " in writing"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "that it is accepting the "
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "name": "deliverable",
- "elementType": "String"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "."
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Inspection and Notice."
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "identifiedBy": "identifier",
- "name": "receiver",
- "elementType": "org.accordproject.organization@0.2.0.Organization"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " will have "
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "name": "businessDays",
- "elementType": "Long"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " Business Days to inspect and"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "evaluate the "
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "name": "deliverable",
- "elementType": "String"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " on the delivery date before notifying"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "identifiedBy": "identifier",
- "name": "shipper",
- "elementType": "org.accordproject.organization@0.2.0.Organization"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " that it is either accepting or rejecting the"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "name": "deliverable",
- "elementType": "String"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "."
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Acceptance Criteria."
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "The \"Acceptance Criteria\" are the specifications the "
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "name": "deliverable",
- "elementType": "String"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "must meet for the "
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "identifiedBy": "identifier",
- "name": "shipper",
- "elementType": "org.accordproject.organization@0.2.0.Organization"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " to comply with its requirements and"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "obligations under this agreement, detailed in "
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "name": "attachment",
- "elementType": "String"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ", attached"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "to this agreement."
- }
- ]
- }
- ]
- }
- ]
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/templatemark/latedelivery_slate.json b/packages/markdown-slate/test/data/templatemark/latedelivery_slate.json
deleted file mode 100644
index 8bbecaf6..00000000
--- a/packages/markdown-slate/test/data/templatemark/latedelivery_slate.json
+++ /dev/null
@@ -1,312 +0,0 @@
-{
- "document": {
- "object": "document",
- "children": [
- {
- "object": "block",
- "type": "contract_definition",
- "data": {
- "name": "top",
- "elementType": "org.accordproject.latedeliveryandpenalty.LateDeliveryAndPenaltyContract"
- },
- "children": [
- {
- "object": "block",
- "data": {},
- "type": "heading_two",
- "children": [
- {
- "object": "text",
- "text": "Late Delivery and Penalty."
- }
- ]
- },
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "In case of delayed delivery"
- },
- {
- "object": "inline",
- "type": "conditional_definition",
- "data": {
- "name": "forceMajeure",
- "whenTrue": [
- {
- "object": "text",
- "text": " except for Force Majeure cases,"
- }
- ],
- "whenFalse": []
- },
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "variable_definition",
- "data": {
- "name": "seller",
- "elementType": "org.accordproject.cicero.contract.AccordParty"
- },
- "children": [
- {
- "object": "text",
- "text": "seller"
- }
- ]
- },
- {
- "object": "text",
- "text": " (the Seller) shall pay to "
- },
- {
- "object": "inline",
- "type": "variable_definition",
- "data": {
- "name": "buyer",
- "elementType": "org.accordproject.cicero.contract.AccordParty"
- },
- "children": [
- {
- "object": "text",
- "text": "buyer"
- }
- ]
- },
- {
- "object": "text",
- "text": " (the Buyer) for every "
- },
- {
- "object": "inline",
- "type": "variable_definition",
- "data": {
- "name": "penaltyDuration",
- "elementType": "org.accordproject.time.Duration"
- },
- "children": [
- {
- "object": "text",
- "text": "penaltyDuration"
- }
- ]
- },
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "of delay penalty amounting to "
- },
- {
- "object": "inline",
- "type": "variable_definition",
- "data": {
- "name": "penaltyPercentage",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "penaltyPercentage"
- }
- ]
- },
- {
- "object": "text",
- "text": "% of the total value of the Equipment"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "whose delivery has been delayed. Any fractional part of a "
- },
- {
- "object": "inline",
- "type": "variable_definition",
- "data": {
- "name": "fractionalPart",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks"
- ],
- "elementType": "org.accordproject.time.TemporalUnit"
- },
- "children": [
- {
- "object": "text",
- "text": "fractionalPart"
- }
- ]
- },
- {
- "object": "text",
- "text": " is to be"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "considered a full "
- },
- {
- "object": "inline",
- "type": "variable_definition",
- "data": {
- "name": "fractionalPart",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks"
- ],
- "elementType": "org.accordproject.time.TemporalUnit"
- },
- "children": [
- {
- "object": "text",
- "text": "fractionalPart"
- }
- ]
- },
- {
- "object": "text",
- "text": ". The total amount of penalty shall not however,"
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "exceed "
- },
- {
- "object": "inline",
- "type": "variable_definition",
- "data": {
- "name": "capPercentage",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "capPercentage"
- }
- ]
- },
- {
- "object": "text",
- "text": "% of the total value of the Equipment involved in late delivery."
- },
- {
- "object": "inline",
- "type": "softbreak",
- "data": {},
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "If the delay is more than "
- },
- {
- "object": "inline",
- "type": "variable_definition",
- "data": {
- "name": "termination",
- "elementType": "org.accordproject.time.Duration"
- },
- "children": [
- {
- "object": "text",
- "text": "termination"
- }
- ]
- },
- {
- "object": "text",
- "text": ", the Buyer is entitled to terminate this Contract."
- }
- ],
- "data": {}
- }
- ]
- }
- ],
- "data": {}
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/templatemark/latedelivery_templatemark.json b/packages/markdown-slate/test/data/templatemark/latedelivery_templatemark.json
deleted file mode 100644
index 1961cd55..00000000
--- a/packages/markdown-slate/test/data/templatemark/latedelivery_templatemark.json
+++ /dev/null
@@ -1,163 +0,0 @@
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "xmlns": "http://commonmark.org/xml/1.0",
- "nodes": [
- {
- "$class": "org.accordproject.templatemark@0.5.0.ContractDefinition",
- "name": "top",
- "elementType": "org.accordproject.latedeliveryandpenalty.LateDeliveryAndPenaltyContract",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Heading",
- "level": "2",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "Late Delivery and Penalty."
- }
- ]
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "In case of delayed delivery"
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.ConditionalDefinition",
- "whenTrue": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " except for Force Majeure cases,"
- }
- ],
- "whenFalse": [],
- "name": "forceMajeure"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "name": "seller",
- "elementType": "org.accordproject.cicero.contract.AccordParty"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " (the Seller) shall pay to "
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "name": "buyer",
- "elementType": "org.accordproject.cicero.contract.AccordParty"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " (the Buyer) for every "
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "name": "penaltyDuration",
- "elementType": "org.accordproject.time.Duration"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "of delay penalty amounting to "
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "name": "penaltyPercentage",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "% of the total value of the Equipment"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "whose delivery has been delayed. Any fractional part of a "
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.EnumVariableDefinition",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks"
- ],
- "name": "fractionalPart",
- "elementType": "org.accordproject.time.TemporalUnit"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " is to be"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "considered a full "
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.EnumVariableDefinition",
- "enumValues": [
- "seconds",
- "minutes",
- "hours",
- "days",
- "weeks"
- ],
- "name": "fractionalPart",
- "elementType": "org.accordproject.time.TemporalUnit"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ". The total amount of penalty shall not however,"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "exceed "
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "name": "capPercentage",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "% of the total value of the Equipment involved in late delivery."
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Softbreak"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "If the delay is more than "
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "name": "termination",
- "elementType": "org.accordproject.time.Duration"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ", the Buyer is entitled to terminate this Contract."
- }
- ]
- }
- ]
- }
- ]
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/templatemark/test1_slate.json b/packages/markdown-slate/test/data/templatemark/test1_slate.json
deleted file mode 100644
index d8762268..00000000
--- a/packages/markdown-slate/test/data/templatemark/test1_slate.json
+++ /dev/null
@@ -1,305 +0,0 @@
-{
- "document": {
- "object": "document",
- "children": [
- {
- "object": "block",
- "type": "clause_definition",
- "data": {
- "name": "top",
- "elementType": "org.test.MyClause"
- },
- "children": [
- {
- "object": "block",
- "type": "paragraph",
- "children": [
- {
- "object": "text",
- "text": "This is a contract between "
- },
- {
- "object": "inline",
- "type": "variable_definition",
- "data": {
- "name": "seller",
- "elementType": "String"
- },
- "children": [
- {
- "object": "text",
- "text": "seller"
- }
- ]
- },
- {
- "object": "text",
- "text": " and "
- },
- {
- "object": "inline",
- "type": "variable_definition",
- "data": {
- "name": "buyer",
- "elementType": "String"
- },
- "children": [
- {
- "object": "text",
- "text": "buyer"
- }
- ]
- },
- {
- "object": "text",
- "text": " for the amount of "
- },
- {
- "object": "inline",
- "type": "variable_definition",
- "data": {
- "name": "amount",
- "elementType": "Double"
- },
- "children": [
- {
- "object": "text",
- "text": "amount"
- }
- ]
- },
- {
- "object": "text",
- "text": " "
- },
- {
- "object": "inline",
- "type": "variable_definition",
- "data": {
- "name": "currency",
- "enumValues": [
- "AED",
- "AFN",
- "ALL",
- "AMD",
- "ANG",
- "AOA",
- "ARS",
- "AUD",
- "AWG",
- "AZN",
- "BAM",
- "BBD",
- "BDT",
- "BGN",
- "BHD",
- "BIF",
- "BMD",
- "BND",
- "BOB",
- "BOV",
- "BRL",
- "BSD",
- "BTN",
- "BWP",
- "BYN",
- "BZD",
- "CAD",
- "CDF",
- "CHE",
- "CHF",
- "CHW",
- "CLF",
- "CLP",
- "CNY",
- "COP",
- "COU",
- "CRC",
- "CUC",
- "CUP",
- "CVE",
- "CZK",
- "DJF",
- "DKK",
- "DOP",
- "DZD",
- "EGP",
- "ERN",
- "ETB",
- "EUR",
- "FJD",
- "FKP",
- "GBP",
- "GEL",
- "GHS",
- "GIP",
- "GMD",
- "GNF",
- "GTQ",
- "GYD",
- "HKD",
- "HNL",
- "HRK",
- "HTG",
- "HUF",
- "IDR",
- "ILS",
- "INR",
- "IQD",
- "IRR",
- "ISK",
- "JMD",
- "JOD",
- "JPY",
- "KES",
- "KGS",
- "KHR",
- "KMF",
- "KPW",
- "KRW",
- "KWD",
- "KYD",
- "KZT",
- "LAK",
- "LBP",
- "LKR",
- "LRD",
- "LSL",
- "LYD",
- "MAD",
- "MDL",
- "MGA",
- "MKD",
- "MMK",
- "MNT",
- "MOP",
- "MRU",
- "MUR",
- "MVR",
- "MWK",
- "MXN",
- "MXV",
- "MYR",
- "MZN",
- "NAD",
- "NGN",
- "NIO",
- "NOK",
- "NPR",
- "NZD",
- "OMR",
- "PAB",
- "PEN",
- "PGK",
- "PHP",
- "PKR",
- "PLN",
- "PYG",
- "QAR",
- "RON",
- "RSD",
- "RUB",
- "RWF",
- "SAR",
- "SBD",
- "SCR",
- "SDG",
- "SEK",
- "SGD",
- "SHP",
- "SLL",
- "SOS",
- "SRD",
- "SSP",
- "STN",
- "SVC",
- "SYP",
- "SZL",
- "THB",
- "TJS",
- "TMT",
- "TND",
- "TOP",
- "TRY",
- "TTD",
- "TWD",
- "TZS",
- "UAH",
- "UGX",
- "USD",
- "USN",
- "UYI",
- "UYU",
- "UZS",
- "VEF",
- "VND",
- "VUV",
- "WST",
- "XAF",
- "XAG",
- "XAU",
- "XBA",
- "XBB",
- "XBC",
- "XBD",
- "XCD",
- "XDR",
- "XOF",
- "XPD",
- "XPF",
- "XPT",
- "XSU",
- "XTS",
- "XUA",
- "XXX",
- "YER",
- "ZAR",
- "ZMW",
- "ZWL"
- ],
- "elementType": "org.accordproject.money.CurrencyCode"
- },
- "children": [
- {
- "object": "text",
- "text": "currency"
- }
- ]
- },
- {
- "object": "text",
- "text": ""
- },
- {
- "object": "inline",
- "type": "conditional_definition",
- "data": {
- "name": "forceMajeure",
- "whenTrue": [
- {
- "object": "text",
- "text": ", even in the presence of force majeure"
- }
- ],
- "whenFalse": []
- },
- "children": [
- {
- "object": "text",
- "text": ""
- }
- ]
- },
- {
- "object": "text",
- "text": "."
- }
- ],
- "data": {}
- }
- ]
- }
- ],
- "data": {}
- }
-}
\ No newline at end of file
diff --git a/packages/markdown-slate/test/data/templatemark/test1_templatemark.json b/packages/markdown-slate/test/data/templatemark/test1_templatemark.json
deleted file mode 100644
index ba62f469..00000000
--- a/packages/markdown-slate/test/data/templatemark/test1_templatemark.json
+++ /dev/null
@@ -1,249 +0,0 @@
-{
- "$class": "org.accordproject.commonmark@0.5.0.Document",
- "xmlns": "http://commonmark.org/xml/1.0",
- "nodes": [
- {
- "$class": "org.accordproject.templatemark@0.5.0.ClauseDefinition",
- "name": "top",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Paragraph",
- "nodes": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "This is a contract between "
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "name": "seller",
- "elementType": "String"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " and "
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "name": "buyer",
- "elementType": "String"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " for the amount of "
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.VariableDefinition",
- "name": "amount",
- "elementType": "Double"
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": " "
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.EnumVariableDefinition",
- "name": "currency",
- "enumValues": [
- "AED",
- "AFN",
- "ALL",
- "AMD",
- "ANG",
- "AOA",
- "ARS",
- "AUD",
- "AWG",
- "AZN",
- "BAM",
- "BBD",
- "BDT",
- "BGN",
- "BHD",
- "BIF",
- "BMD",
- "BND",
- "BOB",
- "BOV",
- "BRL",
- "BSD",
- "BTN",
- "BWP",
- "BYN",
- "BZD",
- "CAD",
- "CDF",
- "CHE",
- "CHF",
- "CHW",
- "CLF",
- "CLP",
- "CNY",
- "COP",
- "COU",
- "CRC",
- "CUC",
- "CUP",
- "CVE",
- "CZK",
- "DJF",
- "DKK",
- "DOP",
- "DZD",
- "EGP",
- "ERN",
- "ETB",
- "EUR",
- "FJD",
- "FKP",
- "GBP",
- "GEL",
- "GHS",
- "GIP",
- "GMD",
- "GNF",
- "GTQ",
- "GYD",
- "HKD",
- "HNL",
- "HRK",
- "HTG",
- "HUF",
- "IDR",
- "ILS",
- "INR",
- "IQD",
- "IRR",
- "ISK",
- "JMD",
- "JOD",
- "JPY",
- "KES",
- "KGS",
- "KHR",
- "KMF",
- "KPW",
- "KRW",
- "KWD",
- "KYD",
- "KZT",
- "LAK",
- "LBP",
- "LKR",
- "LRD",
- "LSL",
- "LYD",
- "MAD",
- "MDL",
- "MGA",
- "MKD",
- "MMK",
- "MNT",
- "MOP",
- "MRU",
- "MUR",
- "MVR",
- "MWK",
- "MXN",
- "MXV",
- "MYR",
- "MZN",
- "NAD",
- "NGN",
- "NIO",
- "NOK",
- "NPR",
- "NZD",
- "OMR",
- "PAB",
- "PEN",
- "PGK",
- "PHP",
- "PKR",
- "PLN",
- "PYG",
- "QAR",
- "RON",
- "RSD",
- "RUB",
- "RWF",
- "SAR",
- "SBD",
- "SCR",
- "SDG",
- "SEK",
- "SGD",
- "SHP",
- "SLL",
- "SOS",
- "SRD",
- "SSP",
- "STN",
- "SVC",
- "SYP",
- "SZL",
- "THB",
- "TJS",
- "TMT",
- "TND",
- "TOP",
- "TRY",
- "TTD",
- "TWD",
- "TZS",
- "UAH",
- "UGX",
- "USD",
- "USN",
- "UYI",
- "UYU",
- "UZS",
- "VEF",
- "VND",
- "VUV",
- "WST",
- "XAF",
- "XAG",
- "XAU",
- "XBA",
- "XBB",
- "XBC",
- "XBD",
- "XCD",
- "XDR",
- "XOF",
- "XPD",
- "XPF",
- "XPT",
- "XSU",
- "XTS",
- "XUA",
- "XXX",
- "YER",
- "ZAR",
- "ZMW",
- "ZWL"
- ],
- "elementType": "org.accordproject.money.CurrencyCode"
- },
- {
- "$class": "org.accordproject.templatemark@0.5.0.ConditionalDefinition",
- "name": "forceMajeure",
- "whenTrue": [
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": ", even in the presence of force majeure"
- }
- ],
- "whenFalse": []
- },
- {
- "$class": "org.accordproject.commonmark@0.5.0.Text",
- "text": "."
- }
- ]
- }
- ],
- "elementType": "org.test.MyClause"
- }
- ]
-}
\ No newline at end of file
diff --git a/packages/markdown-template/package-lock.json b/packages/markdown-template/package-lock.json
new file mode 100644
index 00000000..21677729
--- /dev/null
+++ b/packages/markdown-template/package-lock.json
@@ -0,0 +1,1757 @@
+{
+ "name": "@accordproject/markdown-template",
+ "version": "0.16.19",
+ "lockfileVersion": 2,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "@accordproject/markdown-template",
+ "version": "0.16.5",
+ "license": "Apache-2.0",
+ "devDependencies": {
+ "mocha": "10.1.0"
+ },
+ "engines": {
+ "node": ">=14",
+ "npm": ">=6"
+ }
+ },
+ "../markdown-cicero": {
+ "name": "@accordproject/markdown-cicero",
+ "version": "0.16.5",
+ "extraneous": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@accordproject/concerto-core": "3.6.0",
+ "@accordproject/markdown-common": "0.16.5",
+ "@accordproject/markdown-it-cicero": "0.16.5",
+ "markdown-it": "^13.0.1",
+ "winston": "3.2.1"
+ },
+ "devDependencies": {
+ "chai": "4.3.6",
+ "chai-as-promised": "7.1.1",
+ "chai-things": "0.2.0",
+ "eslint": "8.2.0",
+ "jest": "^27.0.6",
+ "jest-diff": "^27.0.6",
+ "jsdoc": "^3.6.10",
+ "license-check-and-add": "2.3.6",
+ "nyc": "15.1.0"
+ },
+ "engines": {
+ "node": ">=14",
+ "npm": ">=6"
+ }
+ },
+ "../markdown-common": {
+ "name": "@accordproject/markdown-common",
+ "version": "0.16.5",
+ "extraneous": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@accordproject/concerto-core": "3.6.0",
+ "@xmldom/xmldom": "^0.8.1",
+ "markdown-it": "^13.0.1",
+ "winston": "3.2.1"
+ },
+ "devDependencies": {
+ "chai": "4.3.6",
+ "chai-as-promised": "7.1.1",
+ "chai-string": "^1.5.0",
+ "chai-things": "0.2.0",
+ "eslint": "8.2.0",
+ "jest": "^27.0.6",
+ "jest-diff": "^27.0.6",
+ "jsdoc": "^3.6.10",
+ "license-check-and-add": "2.3.6",
+ "nyc": "15.1.0"
+ },
+ "engines": {
+ "node": ">=15",
+ "npm": ">=6"
+ }
+ },
+ "../markdown-it-cicero": {
+ "name": "@accordproject/markdown-it-cicero",
+ "version": "0.16.5",
+ "extraneous": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "markdown-it": "^13.0.1"
+ },
+ "devDependencies": {
+ "chai": "4.3.6",
+ "chai-as-promised": "7.1.1",
+ "chai-string": "^1.5.0",
+ "chai-things": "0.2.0",
+ "eslint": "8.2.0",
+ "jsdoc": "^3.6.10",
+ "license-check-and-add": "2.3.6",
+ "mocha": "8.3.2",
+ "nyc": "15.1.0"
+ },
+ "engines": {
+ "node": ">=14",
+ "npm": ">=6"
+ }
+ },
+ "../markdown-it-template": {
+ "name": "@accordproject/markdown-it-template",
+ "version": "0.16.5",
+ "extraneous": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "markdown-it": "^13.0.1"
+ },
+ "devDependencies": {
+ "chai": "4.3.6",
+ "chai-as-promised": "7.1.1",
+ "chai-string": "^1.5.0",
+ "chai-things": "0.2.0",
+ "eslint": "8.2.0",
+ "jsdoc": "^3.6.10",
+ "license-check-and-add": "2.3.6",
+ "mocha": "8.3.2",
+ "nyc": "15.1.0"
+ },
+ "engines": {
+ "node": ">=14",
+ "npm": ">=6"
+ }
+ },
+ "node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/ansi-styles": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "dev": true,
+ "dependencies": {
+ "color-convert": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/anymatch": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz",
+ "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==",
+ "dev": true,
+ "dependencies": {
+ "normalize-path": "^3.0.0",
+ "picomatch": "^2.0.4"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/argparse": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
+ "dev": true
+ },
+ "node_modules/balanced-match": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
+ "dev": true
+ },
+ "node_modules/binary-extensions": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz",
+ "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/brace-expansion": {
+ "version": "1.1.11",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
+ "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
+ "dev": true,
+ "dependencies": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "node_modules/braces": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
+ "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
+ "dev": true,
+ "dependencies": {
+ "fill-range": "^7.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/browser-stdout": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz",
+ "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==",
+ "dev": true
+ },
+ "node_modules/chalk": {
+ "version": "4.1.2",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
+ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
+ "dev": true,
+ "dependencies": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/chalk?sponsor=1"
+ }
+ },
+ "node_modules/chokidar": {
+ "version": "3.5.3",
+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz",
+ "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "individual",
+ "url": "https://paulmillr.com/funding/"
+ }
+ ],
+ "dependencies": {
+ "anymatch": "~3.1.2",
+ "braces": "~3.0.2",
+ "glob-parent": "~5.1.2",
+ "is-binary-path": "~2.1.0",
+ "is-glob": "~4.0.1",
+ "normalize-path": "~3.0.0",
+ "readdirp": "~3.6.0"
+ },
+ "engines": {
+ "node": ">= 8.10.0"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.2"
+ }
+ },
+ "node_modules/chokidar/node_modules/glob-parent": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+ "dev": true,
+ "dependencies": {
+ "is-glob": "^4.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/cliui": {
+ "version": "7.0.4",
+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz",
+ "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==",
+ "dev": true,
+ "dependencies": {
+ "string-width": "^4.2.0",
+ "strip-ansi": "^6.0.0",
+ "wrap-ansi": "^7.0.0"
+ }
+ },
+ "node_modules/cliui/node_modules/is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/cliui/node_modules/string-width": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "dev": true,
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "dependencies": {
+ "color-name": "~1.1.4"
+ },
+ "engines": {
+ "node": ">=7.0.0"
+ }
+ },
+ "node_modules/color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true
+ },
+ "node_modules/concat-map": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
+ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
+ "dev": true
+ },
+ "node_modules/diff": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz",
+ "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==",
+ "dev": true,
+ "engines": {
+ "node": ">=0.3.1"
+ }
+ },
+ "node_modules/emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
+ "dev": true
+ },
+ "node_modules/escalade": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz",
+ "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==",
+ "dev": true,
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/escape-string-regexp": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
+ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
+ "dev": true,
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/fill-range": {
+ "version": "7.0.1",
+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
+ "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
+ "dev": true,
+ "dependencies": {
+ "to-regex-range": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/flat": {
+ "version": "5.0.2",
+ "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz",
+ "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==",
+ "dev": true,
+ "bin": {
+ "flat": "cli.js"
+ }
+ },
+ "node_modules/fs.realpath": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
+ "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",
+ "dev": true
+ },
+ "node_modules/fsevents": {
+ "version": "2.3.2",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
+ "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
+ "dev": true,
+ "hasInstallScript": true,
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+ }
+ },
+ "node_modules/get-caller-file": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
+ "dev": true,
+ "engines": {
+ "node": "6.* || 8.* || >= 10.*"
+ }
+ },
+ "node_modules/has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/he": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz",
+ "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==",
+ "dev": true,
+ "bin": {
+ "he": "bin/he"
+ }
+ },
+ "node_modules/inflight": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
+ "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
+ "dev": true,
+ "dependencies": {
+ "once": "^1.3.0",
+ "wrappy": "1"
+ }
+ },
+ "node_modules/inherits": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
+ "dev": true
+ },
+ "node_modules/is-binary-path": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
+ "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
+ "dev": true,
+ "dependencies": {
+ "binary-extensions": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/is-extglob": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
+ "dev": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-glob": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
+ "dev": true,
+ "dependencies": {
+ "is-extglob": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-number": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
+ "dev": true,
+ "engines": {
+ "node": ">=0.12.0"
+ }
+ },
+ "node_modules/is-plain-obj": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz",
+ "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/is-unicode-supported": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz",
+ "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==",
+ "dev": true,
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/js-yaml": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
+ "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
+ "dev": true,
+ "dependencies": {
+ "argparse": "^2.0.1"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
+ "node_modules/log-symbols": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz",
+ "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==",
+ "dev": true,
+ "dependencies": {
+ "chalk": "^4.1.0",
+ "is-unicode-supported": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/mocha": {
+ "version": "10.1.0",
+ "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.1.0.tgz",
+ "integrity": "sha512-vUF7IYxEoN7XhQpFLxQAEMtE4W91acW4B6En9l97MwE9stL1A9gusXfoHZCLVHDUJ/7V5+lbCM6yMqzo5vNymg==",
+ "dev": true,
+ "dependencies": {
+ "ansi-colors": "4.1.1",
+ "browser-stdout": "1.3.1",
+ "chokidar": "3.5.3",
+ "debug": "4.3.4",
+ "diff": "5.0.0",
+ "escape-string-regexp": "4.0.0",
+ "find-up": "5.0.0",
+ "glob": "7.2.0",
+ "he": "1.2.0",
+ "js-yaml": "4.1.0",
+ "log-symbols": "4.1.0",
+ "minimatch": "5.0.1",
+ "ms": "2.1.3",
+ "nanoid": "3.3.3",
+ "serialize-javascript": "6.0.0",
+ "strip-json-comments": "3.1.1",
+ "supports-color": "8.1.1",
+ "workerpool": "6.2.1",
+ "yargs": "16.2.0",
+ "yargs-parser": "20.2.4",
+ "yargs-unparser": "2.0.0"
+ },
+ "bin": {
+ "_mocha": "bin/_mocha",
+ "mocha": "bin/mocha.js"
+ },
+ "engines": {
+ "node": ">= 14.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/mochajs"
+ }
+ },
+ "node_modules/mocha/node_modules/ansi-colors": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz",
+ "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==",
+ "dev": true,
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/mocha/node_modules/debug": {
+ "version": "4.3.4",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
+ "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
+ "dev": true,
+ "dependencies": {
+ "ms": "2.1.2"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/mocha/node_modules/debug/node_modules/ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+ "dev": true
+ },
+ "node_modules/mocha/node_modules/find-up": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
+ "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
+ "dev": true,
+ "dependencies": {
+ "locate-path": "^6.0.0",
+ "path-exists": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/mocha/node_modules/glob": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz",
+ "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==",
+ "dev": true,
+ "dependencies": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.0.4",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ },
+ "engines": {
+ "node": "*"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/mocha/node_modules/glob/node_modules/minimatch": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
+ "dev": true,
+ "dependencies": {
+ "brace-expansion": "^1.1.7"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/mocha/node_modules/locate-path": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
+ "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
+ "dev": true,
+ "dependencies": {
+ "p-locate": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/mocha/node_modules/minimatch": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz",
+ "integrity": "sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g==",
+ "dev": true,
+ "dependencies": {
+ "brace-expansion": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/mocha/node_modules/minimatch/node_modules/brace-expansion": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
+ "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
+ "dev": true,
+ "dependencies": {
+ "balanced-match": "^1.0.0"
+ }
+ },
+ "node_modules/mocha/node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+ "dev": true
+ },
+ "node_modules/mocha/node_modules/p-limit": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
+ "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
+ "dev": true,
+ "dependencies": {
+ "yocto-queue": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/mocha/node_modules/p-locate": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
+ "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
+ "dev": true,
+ "dependencies": {
+ "p-limit": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/mocha/node_modules/supports-color": {
+ "version": "8.1.1",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz",
+ "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==",
+ "dev": true,
+ "dependencies": {
+ "has-flag": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/supports-color?sponsor=1"
+ }
+ },
+ "node_modules/nanoid": {
+ "version": "3.3.3",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz",
+ "integrity": "sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==",
+ "dev": true,
+ "bin": {
+ "nanoid": "bin/nanoid.cjs"
+ },
+ "engines": {
+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
+ }
+ },
+ "node_modules/normalize-path": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
+ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
+ "dev": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/once": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
+ "dev": true,
+ "dependencies": {
+ "wrappy": "1"
+ }
+ },
+ "node_modules/path-exists": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-is-absolute": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
+ "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
+ "dev": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/picomatch": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
+ "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
+ "dev": true,
+ "engines": {
+ "node": ">=8.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/randombytes": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz",
+ "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==",
+ "dev": true,
+ "dependencies": {
+ "safe-buffer": "^5.1.0"
+ }
+ },
+ "node_modules/readdirp": {
+ "version": "3.6.0",
+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
+ "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
+ "dev": true,
+ "dependencies": {
+ "picomatch": "^2.2.1"
+ },
+ "engines": {
+ "node": ">=8.10.0"
+ }
+ },
+ "node_modules/require-directory": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
+ "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",
+ "dev": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/safe-buffer": {
+ "version": "5.2.1",
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ]
+ },
+ "node_modules/serialize-javascript": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz",
+ "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==",
+ "dev": true,
+ "dependencies": {
+ "randombytes": "^2.1.0"
+ }
+ },
+ "node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dev": true,
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-json-comments": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
+ "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/supports-color": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
+ "dev": true,
+ "dependencies": {
+ "has-flag": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/to-regex-range": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
+ "dev": true,
+ "dependencies": {
+ "is-number": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=8.0"
+ }
+ },
+ "node_modules/workerpool": {
+ "version": "6.2.1",
+ "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz",
+ "integrity": "sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw==",
+ "dev": true
+ },
+ "node_modules/wrap-ansi": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
+ "dev": true,
+ "dependencies": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
+ }
+ },
+ "node_modules/wrap-ansi/node_modules/is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/wrap-ansi/node_modules/string-width": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "dev": true,
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/wrappy": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
+ "dev": true
+ },
+ "node_modules/y18n": {
+ "version": "5.0.8",
+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
+ "dev": true,
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/yargs": {
+ "version": "16.2.0",
+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz",
+ "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==",
+ "dev": true,
+ "dependencies": {
+ "cliui": "^7.0.2",
+ "escalade": "^3.1.1",
+ "get-caller-file": "^2.0.5",
+ "require-directory": "^2.1.1",
+ "string-width": "^4.2.0",
+ "y18n": "^5.0.5",
+ "yargs-parser": "^20.2.2"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/yargs-parser": {
+ "version": "20.2.4",
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz",
+ "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==",
+ "dev": true,
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/yargs-unparser": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz",
+ "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==",
+ "dev": true,
+ "dependencies": {
+ "camelcase": "^6.0.0",
+ "decamelize": "^4.0.0",
+ "flat": "^5.0.2",
+ "is-plain-obj": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/yargs-unparser/node_modules/camelcase": {
+ "version": "6.3.0",
+ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz",
+ "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==",
+ "dev": true,
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/yargs-unparser/node_modules/decamelize": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz",
+ "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==",
+ "dev": true,
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/yargs/node_modules/is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/yargs/node_modules/string-width": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "dev": true,
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/yocto-queue": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
+ "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
+ "dev": true,
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ }
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "dev": true
+ },
+ "ansi-styles": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "dev": true,
+ "requires": {
+ "color-convert": "^2.0.1"
+ }
+ },
+ "anymatch": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz",
+ "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==",
+ "dev": true,
+ "requires": {
+ "normalize-path": "^3.0.0",
+ "picomatch": "^2.0.4"
+ }
+ },
+ "argparse": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
+ "dev": true
+ },
+ "balanced-match": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
+ "dev": true
+ },
+ "binary-extensions": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz",
+ "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==",
+ "dev": true
+ },
+ "brace-expansion": {
+ "version": "1.1.11",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
+ "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
+ "dev": true,
+ "requires": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "braces": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
+ "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
+ "dev": true,
+ "requires": {
+ "fill-range": "^7.0.1"
+ }
+ },
+ "browser-stdout": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz",
+ "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==",
+ "dev": true
+ },
+ "chalk": {
+ "version": "4.1.2",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
+ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ }
+ },
+ "chokidar": {
+ "version": "3.5.3",
+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz",
+ "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==",
+ "dev": true,
+ "requires": {
+ "anymatch": "~3.1.2",
+ "braces": "~3.0.2",
+ "fsevents": "~2.3.2",
+ "glob-parent": "~5.1.2",
+ "is-binary-path": "~2.1.0",
+ "is-glob": "~4.0.1",
+ "normalize-path": "~3.0.0",
+ "readdirp": "~3.6.0"
+ },
+ "dependencies": {
+ "glob-parent": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+ "dev": true,
+ "requires": {
+ "is-glob": "^4.0.1"
+ }
+ }
+ }
+ },
+ "cliui": {
+ "version": "7.0.4",
+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz",
+ "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==",
+ "dev": true,
+ "requires": {
+ "string-width": "^4.2.0",
+ "strip-ansi": "^6.0.0",
+ "wrap-ansi": "^7.0.0"
+ },
+ "dependencies": {
+ "is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
+ "dev": true
+ },
+ "string-width": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "dev": true,
+ "requires": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ }
+ }
+ }
+ },
+ "color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "requires": {
+ "color-name": "~1.1.4"
+ }
+ },
+ "color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true
+ },
+ "concat-map": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
+ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
+ "dev": true
+ },
+ "diff": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz",
+ "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==",
+ "dev": true
+ },
+ "emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
+ "dev": true
+ },
+ "escalade": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz",
+ "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==",
+ "dev": true
+ },
+ "escape-string-regexp": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
+ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
+ "dev": true
+ },
+ "fill-range": {
+ "version": "7.0.1",
+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
+ "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
+ "dev": true,
+ "requires": {
+ "to-regex-range": "^5.0.1"
+ }
+ },
+ "flat": {
+ "version": "5.0.2",
+ "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz",
+ "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==",
+ "dev": true
+ },
+ "fs.realpath": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
+ "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",
+ "dev": true
+ },
+ "fsevents": {
+ "version": "2.3.2",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
+ "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
+ "dev": true,
+ "optional": true
+ },
+ "get-caller-file": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
+ "dev": true
+ },
+ "has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "dev": true
+ },
+ "he": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz",
+ "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==",
+ "dev": true
+ },
+ "inflight": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
+ "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
+ "dev": true,
+ "requires": {
+ "once": "^1.3.0",
+ "wrappy": "1"
+ }
+ },
+ "inherits": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
+ "dev": true
+ },
+ "is-binary-path": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
+ "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
+ "dev": true,
+ "requires": {
+ "binary-extensions": "^2.0.0"
+ }
+ },
+ "is-extglob": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
+ "dev": true
+ },
+ "is-glob": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
+ "dev": true,
+ "requires": {
+ "is-extglob": "^2.1.1"
+ }
+ },
+ "is-number": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
+ "dev": true
+ },
+ "is-plain-obj": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz",
+ "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==",
+ "dev": true
+ },
+ "is-unicode-supported": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz",
+ "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==",
+ "dev": true
+ },
+ "js-yaml": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
+ "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
+ "dev": true,
+ "requires": {
+ "argparse": "^2.0.1"
+ }
+ },
+ "log-symbols": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz",
+ "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==",
+ "dev": true,
+ "requires": {
+ "chalk": "^4.1.0",
+ "is-unicode-supported": "^0.1.0"
+ }
+ },
+ "mocha": {
+ "version": "10.1.0",
+ "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.1.0.tgz",
+ "integrity": "sha512-vUF7IYxEoN7XhQpFLxQAEMtE4W91acW4B6En9l97MwE9stL1A9gusXfoHZCLVHDUJ/7V5+lbCM6yMqzo5vNymg==",
+ "dev": true,
+ "requires": {
+ "ansi-colors": "4.1.1",
+ "browser-stdout": "1.3.1",
+ "chokidar": "3.5.3",
+ "debug": "4.3.4",
+ "diff": "5.0.0",
+ "escape-string-regexp": "4.0.0",
+ "find-up": "5.0.0",
+ "glob": "7.2.0",
+ "he": "1.2.0",
+ "js-yaml": "4.1.0",
+ "log-symbols": "4.1.0",
+ "minimatch": "5.0.1",
+ "ms": "2.1.3",
+ "nanoid": "3.3.3",
+ "serialize-javascript": "6.0.0",
+ "strip-json-comments": "3.1.1",
+ "supports-color": "8.1.1",
+ "workerpool": "6.2.1",
+ "yargs": "16.2.0",
+ "yargs-parser": "20.2.4",
+ "yargs-unparser": "2.0.0"
+ },
+ "dependencies": {
+ "ansi-colors": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz",
+ "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==",
+ "dev": true
+ },
+ "debug": {
+ "version": "4.3.4",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
+ "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
+ "dev": true,
+ "requires": {
+ "ms": "2.1.2"
+ },
+ "dependencies": {
+ "ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+ "dev": true
+ }
+ }
+ },
+ "find-up": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
+ "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
+ "dev": true,
+ "requires": {
+ "locate-path": "^6.0.0",
+ "path-exists": "^4.0.0"
+ }
+ },
+ "glob": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz",
+ "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==",
+ "dev": true,
+ "requires": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.0.4",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ },
+ "dependencies": {
+ "minimatch": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
+ "dev": true,
+ "requires": {
+ "brace-expansion": "^1.1.7"
+ }
+ }
+ }
+ },
+ "locate-path": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
+ "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
+ "dev": true,
+ "requires": {
+ "p-locate": "^5.0.0"
+ }
+ },
+ "minimatch": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz",
+ "integrity": "sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g==",
+ "dev": true,
+ "requires": {
+ "brace-expansion": "^2.0.1"
+ },
+ "dependencies": {
+ "brace-expansion": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
+ "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
+ "dev": true,
+ "requires": {
+ "balanced-match": "^1.0.0"
+ }
+ }
+ }
+ },
+ "ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+ "dev": true
+ },
+ "p-limit": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
+ "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
+ "dev": true,
+ "requires": {
+ "yocto-queue": "^0.1.0"
+ }
+ },
+ "p-locate": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
+ "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
+ "dev": true,
+ "requires": {
+ "p-limit": "^3.0.2"
+ }
+ },
+ "supports-color": {
+ "version": "8.1.1",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz",
+ "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==",
+ "dev": true,
+ "requires": {
+ "has-flag": "^4.0.0"
+ }
+ }
+ }
+ },
+ "nanoid": {
+ "version": "3.3.3",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz",
+ "integrity": "sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==",
+ "dev": true
+ },
+ "normalize-path": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
+ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
+ "dev": true
+ },
+ "once": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
+ "dev": true,
+ "requires": {
+ "wrappy": "1"
+ }
+ },
+ "path-exists": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
+ "dev": true
+ },
+ "path-is-absolute": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
+ "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
+ "dev": true
+ },
+ "picomatch": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
+ "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
+ "dev": true
+ },
+ "randombytes": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz",
+ "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "^5.1.0"
+ }
+ },
+ "readdirp": {
+ "version": "3.6.0",
+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
+ "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
+ "dev": true,
+ "requires": {
+ "picomatch": "^2.2.1"
+ }
+ },
+ "require-directory": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
+ "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",
+ "dev": true
+ },
+ "safe-buffer": {
+ "version": "5.2.1",
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
+ "dev": true
+ },
+ "serialize-javascript": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz",
+ "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==",
+ "dev": true,
+ "requires": {
+ "randombytes": "^2.1.0"
+ }
+ },
+ "strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^5.0.1"
+ }
+ },
+ "strip-json-comments": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
+ "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
+ "dev": true
+ },
+ "supports-color": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
+ "dev": true,
+ "requires": {
+ "has-flag": "^4.0.0"
+ }
+ },
+ "to-regex-range": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
+ "dev": true,
+ "requires": {
+ "is-number": "^7.0.0"
+ }
+ },
+ "workerpool": {
+ "version": "6.2.1",
+ "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz",
+ "integrity": "sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw==",
+ "dev": true
+ },
+ "wrap-ansi": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "dependencies": {
+ "is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
+ "dev": true
+ },
+ "string-width": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "dev": true,
+ "requires": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ }
+ }
+ }
+ },
+ "wrappy": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
+ "dev": true
+ },
+ "y18n": {
+ "version": "5.0.8",
+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
+ "dev": true
+ },
+ "yargs": {
+ "version": "16.2.0",
+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz",
+ "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==",
+ "dev": true,
+ "requires": {
+ "cliui": "^7.0.2",
+ "escalade": "^3.1.1",
+ "get-caller-file": "^2.0.5",
+ "require-directory": "^2.1.1",
+ "string-width": "^4.2.0",
+ "y18n": "^5.0.5",
+ "yargs-parser": "^20.2.2"
+ },
+ "dependencies": {
+ "is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
+ "dev": true
+ },
+ "string-width": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "dev": true,
+ "requires": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ }
+ }
+ }
+ },
+ "yargs-parser": {
+ "version": "20.2.4",
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz",
+ "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==",
+ "dev": true
+ },
+ "yargs-unparser": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz",
+ "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==",
+ "dev": true,
+ "requires": {
+ "camelcase": "^6.0.0",
+ "decamelize": "^4.0.0",
+ "flat": "^5.0.2",
+ "is-plain-obj": "^2.1.0"
+ },
+ "dependencies": {
+ "camelcase": {
+ "version": "6.3.0",
+ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz",
+ "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==",
+ "dev": true
+ },
+ "decamelize": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz",
+ "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==",
+ "dev": true
+ }
+ }
+ },
+ "yocto-queue": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
+ "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
+ "dev": true
+ }
+ }
+}
diff --git a/packages/markdown-transform/lib/builtinTransforms.js b/packages/markdown-transform/lib/builtinTransforms.js
index 68506c07..7c3aa732 100644
--- a/packages/markdown-transform/lib/builtinTransforms.js
+++ b/packages/markdown-transform/lib/builtinTransforms.js
@@ -14,16 +14,11 @@
'use strict';
-const HTMLtoDOCX = require('html-to-docx');
-const JsZip = require('jszip');
const ModelLoader = require('@accordproject/concerto-core').ModelLoader;
const CommonMarkTransformer = require('@accordproject/markdown-common').CommonMarkTransformer;
const CiceroMarkTransformer = require('@accordproject/markdown-cicero').CiceroMarkTransformer;
const TemplateMarkTransformer = require('@accordproject/markdown-template').TemplateMarkTransformer;
-const SlateTransformer = require('@accordproject/markdown-slate').SlateTransformer;
const HtmlTransformer = require('@accordproject/markdown-html').HtmlTransformer;
-const PdfTransformer = require('@accordproject/markdown-pdf').PdfTransformer;
-const DocxTransformer = require('@accordproject/markdown-docx').DocxTransformer;
const transformationGraph = {
markdown_template: {
docs: 'Template markdown (string)',
@@ -138,13 +133,6 @@ const transformationGraph = {
ciceromark_unquoted: (input, parameters, options) => {
const t = new CiceroMarkTransformer();
return t.unquote(input, options);
- },
- slate: (input, parameters, options) => {
- const t = new SlateTransformer();
- return t.fromCiceroMark(input);
- },
- pdfmake: (input, parameters, options) => {
- return PdfTransformer.ciceroMarkToPdfMake(input, options);
}
},
plaintext: {
@@ -169,62 +157,12 @@ const transformationGraph = {
return input;
}
},
- pdfmake: {
- docs: 'pdfmake DOM (JSON)',
- fileFormat: 'json',
- pdf: (input, parameters, options) => {
- return PdfTransformer.pdfMakeToPdfBuffer(input);
- }
- },
- pdf: {
- docs: 'PDF (buffer)',
- fileFormat: 'binary',
- ciceromark_parsed: (input, parameters, options) => {
- return PdfTransformer.toCiceroMark(input, options);
- }
- },
- docx: {
- docs: 'DOCX (buffer)',
- fileFormat: 'binary',
- ciceromark_parsed: async (input, parameters, options) => {
- const t = new DocxTransformer();
- return t.toCiceroMark(input, options);
- },
- wordml: async (input, parameters, options) => {
- const zip = await JsZip.loadAsync(input);
- return zip.file('word/document.xml').async('string');
- }
- },
- wordml: {},
html: {
docs: 'HTML (string)',
fileFormat: 'utf8',
ciceromark_parsed: (input, parameters, options) => {
const t = new HtmlTransformer();
return t.toCiceroMark(input, options);
- },
- docx: async (inputs, parameters, options) => {
- return HTMLtoDOCX(inputs, null, options ? options : {
- table: {
- row: {
- cantSplit: true
- }
- },
- footer: true,
- pageNumber: true
- });
- }
- },
- slate: {
- docs: 'Slate DOM (JSON)',
- fileFormat: 'json',
- ciceromark_parsed: (input, parameters, options) => {
- const t = new SlateTransformer();
- return t.toCiceroMark(input, options);
- },
- templatemark: (input, parameters, options) => {
- const t = new SlateTransformer();
- return t.toTemplateMark(input, options);
}
}
};
diff --git a/packages/markdown-transform/package.json b/packages/markdown-transform/package.json
index 8bd639d2..33cdec30 100644
--- a/packages/markdown-transform/package.json
+++ b/packages/markdown-transform/package.json
@@ -53,7 +53,7 @@
"@babel/core": "7.26.0",
"@babel/preset-env": "7.16.11",
"@babel/register": "7.25.9",
- "axios": "^1.7.8",
+ "axios": "^1.8.2",
"babel-loader": "9.2.1",
"babel-plugin-istanbul": "7.0.0",
"browserify-zlib": "^0.2.0",
@@ -80,13 +80,9 @@
"@accordproject/concerto-core": "3.19.8",
"@accordproject/markdown-cicero": "*",
"@accordproject/markdown-common": "*",
- "@accordproject/markdown-docx": "*",
"@accordproject/markdown-html": "*",
- "@accordproject/markdown-pdf": "*",
- "@accordproject/markdown-slate": "*",
"@accordproject/markdown-template": "*",
"dijkstrajs": "^1.0.3",
- "html-to-docx": "^1.8.0",
"jszip": "^3.10.1"
},
"license-check-and-add-config": {
diff --git a/packages/markdown-transform/src/builtinTransforms.js b/packages/markdown-transform/src/builtinTransforms.js
index bb525d39..7aabaa59 100644
--- a/packages/markdown-transform/src/builtinTransforms.js
+++ b/packages/markdown-transform/src/builtinTransforms.js
@@ -14,18 +14,12 @@
'use strict';
-const HTMLtoDOCX = require('html-to-docx');
-const JsZip = require('jszip');
-
const ModelLoader = require('@accordproject/concerto-core').ModelLoader;
const CommonMarkTransformer = require('@accordproject/markdown-common').CommonMarkTransformer;
const CiceroMarkTransformer = require('@accordproject/markdown-cicero').CiceroMarkTransformer;
const TemplateMarkTransformer = require('@accordproject/markdown-template').TemplateMarkTransformer;
-const SlateTransformer = require('@accordproject/markdown-slate').SlateTransformer;
const HtmlTransformer = require('@accordproject/markdown-html').HtmlTransformer;
-const PdfTransformer = require('@accordproject/markdown-pdf').PdfTransformer;
-const DocxTransformer = require('@accordproject/markdown-docx').DocxTransformer;
const transformationGraph = {
markdown_template: {
@@ -52,13 +46,6 @@ const transformationGraph = {
const t = new TemplateMarkTransformer();
return t.toMarkdownTemplate(input);
},
- pdfmake: (input, parameters, options) => {
- return PdfTransformer.templateMarkToPdfMake(input, options);
- },
- slate: (input,parameters,options) => {
- const t = new SlateTransformer();
- return t.fromTemplateMark(input);
- },
},
markdown: {
docs: 'Markdown (string)',
@@ -139,13 +126,6 @@ const transformationGraph = {
const t = new CiceroMarkTransformer();
return t.unquote(input, options);
},
- slate: (input, parameters, options) => {
- const t = new SlateTransformer();
- return t.fromCiceroMark(input);
- },
- pdfmake: (input, parameters, options) => {
- return PdfTransformer.ciceroMarkToPdfMake(input, options);
- }
},
plaintext: {
docs: 'Plain text (string)',
@@ -169,60 +149,14 @@ const transformationGraph = {
return input;
}
},
- pdfmake: {
- docs: 'pdfmake DOM (JSON)',
- fileFormat: 'json',
- pdf: (input, parameters, options) => {
- return PdfTransformer.pdfMakeToPdfBuffer(input);
- },
- },
- pdf: {
- docs: 'PDF (buffer)',
- fileFormat: 'binary',
- ciceromark_parsed: (input, parameters, options) => {
- return PdfTransformer.toCiceroMark(input, options);
- },
- },
- docx: {
- docs: 'DOCX (buffer)',
- fileFormat: 'binary',
- ciceromark_parsed: async (input, parameters, options) => {
- const t = new DocxTransformer();
- return t.toCiceroMark(input, options);
- },
- wordml: async (input, parameters, options) => {
- const zip = await JsZip.loadAsync(input);
- return zip.file('word/document.xml').async('string');
- }
- },
- wordml: {},
html: {
docs: 'HTML (string)',
fileFormat: 'utf8',
ciceromark_parsed: (input, parameters, options) => {
const t = new HtmlTransformer();
return t.toCiceroMark(input, options);
- },
- docx: async (inputs, parameters, options) => {
- return HTMLtoDOCX(inputs, null, options ? options : {
- table: { row: { cantSplit: true } },
- footer: true,
- pageNumber: true,
- });
}
- },
- slate: {
- docs: 'Slate DOM (JSON)',
- fileFormat: 'json',
- ciceromark_parsed: (input, parameters, options) => {
- const t = new SlateTransformer();
- return t.toCiceroMark(input, options);
- },
- templatemark: (input,parameters,options) => {
- const t = new SlateTransformer();
- return t.toTemplateMark(input, options);
- },
- },
+ }
};
module.exports = transformationGraph;
diff --git a/packages/markdown-transform/test/data/sample/sample.docx b/packages/markdown-transform/test/data/sample/sample.docx
deleted file mode 100644
index c1101afa..00000000
Binary files a/packages/markdown-transform/test/data/sample/sample.docx and /dev/null differ
diff --git a/packages/markdown-transform/test/data/sample/sample.pdf b/packages/markdown-transform/test/data/sample/sample.pdf
deleted file mode 100644
index d9b5c48f..00000000
Binary files a/packages/markdown-transform/test/data/sample/sample.pdf and /dev/null differ
diff --git a/packages/markdown-transform/test/transform.js b/packages/markdown-transform/test/transform.js
index 8ecdc45e..55bdd65c 100644
--- a/packages/markdown-transform/test/transform.js
+++ b/packages/markdown-transform/test/transform.js
@@ -66,14 +66,10 @@ const acceptanceCiceroMark = JSON.parse(fs.readFileSync(path.resolve(__dirname,
const acceptanceCiceroMarkParsed = JSON.parse(fs.readFileSync(path.resolve(__dirname, 'data/acceptance', 'ciceromark_parsed.json'), 'utf8'));
const acceptanceCiceroMarkUnwrapped = JSON.parse(fs.readFileSync(path.resolve(__dirname, 'data/acceptance', 'ciceromark_unwrapped.json'), 'utf8'));
const acceptanceCiceroMarkUnquoted = JSON.parse(fs.readFileSync(path.resolve(__dirname, 'data/acceptance', 'ciceromark_unquoted.json'), 'utf8'));
-const acceptanceSlate = JSON.parse(fs.readFileSync(path.resolve(__dirname, 'data/acceptance', 'slate.json'), 'utf8'));
const acceptancePlainText = normalizeNLs(fs.readFileSync(path.resolve(__dirname, 'data/acceptance', 'sample.txt'), 'utf8'));
const acceptanceHtml = normalizeNLs(fs.readFileSync(path.resolve(__dirname, 'data/acceptance', 'sample.html'), 'utf8'));
-const omittedAcceptanceCiceroMarkParsed = JSON.parse(fs.readFileSync(path.resolve(__dirname, 'data/acceptance', 'omitted-acceptance-of-delivery.json'), 'utf8'));
// Sample test
-const samplePdf = fs.readFileSync(path.resolve(__dirname, 'data/sample', 'sample.pdf'));
-const sampleDocx = fs.readFileSync(path.resolve(__dirname, 'data/sample', 'sample.docx'));
const sampleHtml = fs.readFileSync(path.resolve(__dirname, 'data/sample', 'sample.html'), 'utf8');
describe('#acceptance', () => {
@@ -168,11 +164,6 @@ describe('#acceptance', () => {
result.should.deep.equal(acceptanceCiceroMarkUnquoted);
});
- it('ciceromark_parsed -> slate', async () => {
- const result = await transform(acceptanceCiceroMarkParsed, 'ciceromark_parsed', ['slate'], {}, {});
- result.should.deep.equal(acceptanceSlate);
- });
-
it('ciceromark_parsed -> html', async () => {
const result = await transform(acceptanceCiceroMarkParsed, 'ciceromark_parsed', ['html'], {}, {});
result.should.equal(acceptanceHtml);
@@ -182,11 +173,6 @@ describe('#acceptance', () => {
const result = await transform(acceptanceCiceroMarkParsed, 'ciceromark_parsed', ['html'], {}, {verbose: true});
result.should.equal(acceptanceHtml);
});
-
- it('ciceromark_parsed -> wordml', async () => {
- const result = await transform(omittedAcceptanceCiceroMarkParsed, 'ciceromark_parsed', ['wordml'], {}, {});
- result.startsWith('').should.be.true;
- });
});
describe('#ciceroedit', () => {
@@ -196,19 +182,7 @@ describe('#acceptance', () => {
});
});
- describe('#slate', () => {
- it('slate -> ciceromark', async () => {
- const result = await transform(acceptanceSlate, 'slate', ['ciceromark_parsed'], {}, {});
- result.should.deep.equal(acceptanceCiceroMarkParsed);
- });
- });
-
describe('#multisteps', () => {
- it('ciceromark -> ciceromark_unquoted -> slate', async () => {
- const result = await transform(acceptanceCiceroMarkParsed, 'ciceromark', ['ciceromark_unquoted','slate'], {}, {});
- result.document.object.should.equal('document');
- });
-
it('ciceromark -> ciceromark_unquoted -> html', async () => {
const result = await transform(acceptanceCiceroMarkParsed, 'ciceromark', ['ciceromark_unquoted','html'], {}, {});
result.should.startWith('');
@@ -231,53 +205,12 @@ describe('#template1', () => {
});
describe('#sample', () => {
- describe('#pdf', () => {
- it('pdf -> ciceromark', async () => {
- const result = await transform(samplePdf, 'pdf', ['ciceromark'], {}, {});
- result.$class.should.equal(`${CommonMarkModel.NAMESPACE}.Document`);
- });
-
- it('pdf -> docx', async () => {
- const result = await transform(samplePdf, 'pdf', ['docx'], {}, {});
- result.should.not.be.null;
- });
-
- it('pdf -> ciceromark (verbose)', async () => {
- const result = await transform(samplePdf, 'pdf', ['ciceromark'], {}, {verbose: true});
- result.$class.should.equal(`${CommonMarkModel.NAMESPACE}.Document`);
- });
-
- it('ciceromark -> pdf', async () => {
- const ciceroMark = await transform(samplePdf, 'pdf', ['ciceromark'], {}, {});
- const result = await transform(ciceroMark, 'ciceromark', ['pdf'], {}, {});
- //console.log('RESULT ' + result);
- result.should.exist;
- });
- });
-
- describe('#docx', () => {
- it('docx -> ciceromark', async () => {
- const result = await transform(sampleDocx, 'docx', ['ciceromark'], {}, {});
- result.$class.should.equal(`${CommonMarkModel.NAMESPACE}.Document`);
- });
-
- it('docx -> wordml', async () => {
- const result = await transform(sampleDocx, 'docx', ['wordml'], {}, {});
- result.startsWith('').should.be.true;
- });
- });
-
describe('#html', () => {
it('html -> ciceromark', async () => {
const result = await transform(sampleHtml, 'html', ['ciceromark'], {}, {});
result.$class.should.equal(`${CommonMarkModel.NAMESPACE}.Document`);
});
- it('html -> docx', async () => {
- const result = await transform(sampleHtml, 'html', ['docx'], {}, {});
- result.should.not.be.null;
- });
});
-
});
describe('#generateTransformationDiagram', () => {
diff --git a/packages/markdown-transform/test/transformEngine.js b/packages/markdown-transform/test/transformEngine.js
index 4762e1e8..ac02dccb 100644
--- a/packages/markdown-transform/test/transformEngine.js
+++ b/packages/markdown-transform/test/transformEngine.js
@@ -60,14 +60,14 @@ describe('#transformationEngine', () => {
describe('#create', () => {
it('should create a new transformation engine', () => {
const engine = new TransformEngine(builtinTransformationGraph);
- engine.getAllFormats().length.should.equal(19);
+ engine.getAllFormats().length.should.equal(14);
});
});
describe('#introspect', () => {
it('should introspect the existing transforms', () => {
const engine = new TransformEngine(builtinTransformationGraph);
- engine.getAllFormats().length.should.equal(19);
+ engine.getAllFormats().length.should.equal(14);
const format = engine.formatDescriptor('commonmark');
format.fileFormat.should.equal('json');
const targets = engine.getAllTargetFormats('commonmark');
@@ -93,7 +93,7 @@ describe('#transformationEngine', () => {
it('should create new format and transform', async () => {
const engine = new TransformEngine(builtinTransformationGraph);
engine.registerExtension(wordcount);
- engine.getAllFormats().length.should.equal(20);
+ engine.getAllFormats().length.should.equal(15);
});
it('should transform between an existing and new format', async () => {
diff --git a/packages/markdown-transform/transformations.png b/packages/markdown-transform/transformations.png
index 289b276c..77a45e40 100644
Binary files a/packages/markdown-transform/transformations.png and b/packages/markdown-transform/transformations.png differ