A free and open-source block-based email template builder.
TypeScript amazonsesdeveloper-toolsemailemail-editoremail-marketingemail-templateemail-template-builderemailapiemailjshtml-email-editorno-codenocode-email-editoropen-source-email-buildersendgridtransactional-emailswysiwyg-email-editorwysiwyg-html-editor
@usewaypoint/block-columns-container (#33)
cohitre5cbb54173fbb
diff --git a/packages/block-columns-container/.npmignore b/packages/block-columns-container/.npmignorenew file mode 100644index 0000000..2433ea5--- /dev/null+++ b/packages/block-columns-container/.npmignore@@ -0,0 +1,8 @@+.editorconfig+.envrc+.eslintignore+.eslintrc.json+.prettierrc+jest.config.ts+src+tsconfig.json\ No newline at end of filediff --git a/packages/block-columns-container/LICENSE b/packages/block-columns-container/LICENSEnew file mode 100644index 0000000..5a09b83--- /dev/null+++ b/packages/block-columns-container/LICENSE@@ -0,0 +1,19 @@+Copyright (c) 2024 Carlos Rodriguez-Rosario++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.diff --git a/packages/block-columns-container/README.md b/packages/block-columns-container/README.mdnew file mode 100644index 0000000..6312609--- /dev/null+++ b/packages/block-columns-container/README.md@@ -0,0 +1,3 @@+# @usewaypoint/block-columns-container++ColumnsContainer component for use with the EmailBuilder package.diff --git a/packages/block-columns-container/package-lock.json b/packages/block-columns-container/package-lock.jsonnew file mode 100644index 0000000..a5c7143--- /dev/null+++ b/packages/block-columns-container/package-lock.json@@ -0,0 +1,1186 @@+{+ "name": "@usewaypoint/block-html",+ "version": "0.0.1",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {+ "": {+ "name": "@usewaypoint/block-html",+ "version": "0.0.1",+ "license": "MIT",+ "devDependencies": {+ "@testing-library/react": "^14.2.1"+ },+ "peerDependencies": {+ "react": "^16 || ^17 || ^18",+ "zod": "^1 || ^2 || ^3"+ }+ },+ "node_modules/@babel/code-frame": {+ "version": "7.23.5",+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.5.tgz",+ "integrity": "sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==",+ "dev": true,+ "dependencies": {+ "@babel/highlight": "^7.23.4",+ "chalk": "^2.4.2"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/code-frame/node_modules/ansi-styles": {+ "version": "3.2.1",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",+ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",+ "dev": true,+ "dependencies": {+ "color-convert": "^1.9.0"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/@babel/code-frame/node_modules/chalk": {+ "version": "2.4.2",+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",+ "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",+ "dev": true,+ "dependencies": {+ "ansi-styles": "^3.2.1",+ "escape-string-regexp": "^1.0.5",+ "supports-color": "^5.3.0"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/@babel/code-frame/node_modules/color-convert": {+ "version": "1.9.3",+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",+ "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",+ "dev": true,+ "dependencies": {+ "color-name": "1.1.3"+ }+ },+ "node_modules/@babel/code-frame/node_modules/color-name": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",+ "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==",+ "dev": true+ },+ "node_modules/@babel/code-frame/node_modules/has-flag": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",+ "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==",+ "dev": true,+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/@babel/code-frame/node_modules/supports-color": {+ "version": "5.5.0",+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",+ "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",+ "dev": true,+ "dependencies": {+ "has-flag": "^3.0.0"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/@babel/helper-validator-identifier": {+ "version": "7.22.20",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz",+ "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==",+ "dev": true,+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/highlight": {+ "version": "7.23.4",+ "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.23.4.tgz",+ "integrity": "sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==",+ "dev": true,+ "dependencies": {+ "@babel/helper-validator-identifier": "^7.22.20",+ "chalk": "^2.4.2",+ "js-tokens": "^4.0.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/highlight/node_modules/ansi-styles": {+ "version": "3.2.1",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",+ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",+ "dev": true,+ "dependencies": {+ "color-convert": "^1.9.0"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/@babel/highlight/node_modules/chalk": {+ "version": "2.4.2",+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",+ "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",+ "dev": true,+ "dependencies": {+ "ansi-styles": "^3.2.1",+ "escape-string-regexp": "^1.0.5",+ "supports-color": "^5.3.0"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/@babel/highlight/node_modules/color-convert": {+ "version": "1.9.3",+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",+ "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",+ "dev": true,+ "dependencies": {+ "color-name": "1.1.3"+ }+ },+ "node_modules/@babel/highlight/node_modules/color-name": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",+ "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==",+ "dev": true+ },+ "node_modules/@babel/highlight/node_modules/has-flag": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",+ "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==",+ "dev": true,+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/@babel/highlight/node_modules/supports-color": {+ "version": "5.5.0",+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",+ "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",+ "dev": true,+ "dependencies": {+ "has-flag": "^3.0.0"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/@babel/runtime": {+ "version": "7.23.9",+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.9.tgz",+ "integrity": "sha512-0CX6F+BI2s9dkUqr08KFrAIZgNFj75rdBU/DjCyYLIaV/quFjkk6T+EJ2LkZHyZTbEV4L5p97mNkUsHl2wLFAw==",+ "dev": true,+ "dependencies": {+ "regenerator-runtime": "^0.14.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@testing-library/dom": {+ "version": "9.3.4",+ "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-9.3.4.tgz",+ "integrity": "sha512-FlS4ZWlp97iiNWig0Muq8p+3rVDjRiYE+YKGbAqXOu9nwJFFOdL00kFpz42M+4huzYi86vAK1sOOfyOG45muIQ==",+ "dev": true,+ "dependencies": {+ "@babel/code-frame": "^7.10.4",+ "@babel/runtime": "^7.12.5",+ "@types/aria-query": "^5.0.1",+ "aria-query": "5.1.3",+ "chalk": "^4.1.0",+ "dom-accessibility-api": "^0.5.9",+ "lz-string": "^1.5.0",+ "pretty-format": "^27.0.2"+ },+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/@testing-library/react": {+ "version": "14.2.1",+ "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-14.2.1.tgz",+ "integrity": "sha512-sGdjws32ai5TLerhvzThYFbpnF9XtL65Cjf+gB0Dhr29BGqK+mAeN7SURSdu+eqgET4ANcWoC7FQpkaiGvBr+A==",+ "dev": true,+ "dependencies": {+ "@babel/runtime": "^7.12.5",+ "@testing-library/dom": "^9.0.0",+ "@types/react-dom": "^18.0.0"+ },+ "engines": {+ "node": ">=14"+ },+ "peerDependencies": {+ "react": "^18.0.0",+ "react-dom": "^18.0.0"+ }+ },+ "node_modules/@types/aria-query": {+ "version": "5.0.4",+ "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.4.tgz",+ "integrity": "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==",+ "dev": true+ },+ "node_modules/@types/prop-types": {+ "version": "15.7.11",+ "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.11.tgz",+ "integrity": "sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==",+ "dev": true+ },+ "node_modules/@types/react": {+ "version": "18.2.58",+ "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.58.tgz",+ "integrity": "sha512-TaGvMNhxvG2Q0K0aYxiKfNDS5m5ZsoIBBbtfUorxdH4NGSXIlYvZxLJI+9Dd3KjeB3780bciLyAb7ylO8pLhPw==",+ "dev": true,+ "dependencies": {+ "@types/prop-types": "*",+ "@types/scheduler": "*",+ "csstype": "^3.0.2"+ }+ },+ "node_modules/@types/react-dom": {+ "version": "18.2.19",+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.2.19.tgz",+ "integrity": "sha512-aZvQL6uUbIJpjZk4U8JZGbau9KDeAwMfmhyWorxgBkqDIEf6ROjRozcmPIicqsUwPUjbkDfHKgGee1Lq65APcA==",+ "dev": true,+ "dependencies": {+ "@types/react": "*"+ }+ },+ "node_modules/@types/scheduler": {+ "version": "0.16.8",+ "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.8.tgz",+ "integrity": "sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A==",+ "dev": true+ },+ "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/aria-query": {+ "version": "5.1.3",+ "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.1.3.tgz",+ "integrity": "sha512-R5iJ5lkuHybztUfuOAznmboyjWq8O6sqNqtK7CLOqdydi54VNbORp49mb14KbWgG1QD3JFO9hJdZ+y4KutfdOQ==",+ "dev": true,+ "dependencies": {+ "deep-equal": "^2.0.5"+ }+ },+ "node_modules/array-buffer-byte-length": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.1.tgz",+ "integrity": "sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg==",+ "dev": true,+ "dependencies": {+ "call-bind": "^1.0.5",+ "is-array-buffer": "^3.0.4"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/available-typed-arrays": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz",+ "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==",+ "dev": true,+ "dependencies": {+ "possible-typed-array-names": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/call-bind": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz",+ "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==",+ "dev": true,+ "dependencies": {+ "es-define-property": "^1.0.0",+ "es-errors": "^1.3.0",+ "function-bind": "^1.1.2",+ "get-intrinsic": "^1.2.4",+ "set-function-length": "^1.2.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "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/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/csstype": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz",+ "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==",+ "dev": true+ },+ "node_modules/deep-equal": {+ "version": "2.2.3",+ "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.3.tgz",+ "integrity": "sha512-ZIwpnevOurS8bpT4192sqAowWM76JDKSHYzMLty3BZGSswgq6pBaH3DhCSW5xVAZICZyKdOBPjwww5wfgT/6PA==",+ "dev": true,+ "dependencies": {+ "array-buffer-byte-length": "^1.0.0",+ "call-bind": "^1.0.5",+ "es-get-iterator": "^1.1.3",+ "get-intrinsic": "^1.2.2",+ "is-arguments": "^1.1.1",+ "is-array-buffer": "^3.0.2",+ "is-date-object": "^1.0.5",+ "is-regex": "^1.1.4",+ "is-shared-array-buffer": "^1.0.2",+ "isarray": "^2.0.5",+ "object-is": "^1.1.5",+ "object-keys": "^1.1.1",+ "object.assign": "^4.1.4",+ "regexp.prototype.flags": "^1.5.1",+ "side-channel": "^1.0.4",+ "which-boxed-primitive": "^1.0.2",+ "which-collection": "^1.0.1",+ "which-typed-array": "^1.1.13"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/define-data-property": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",+ "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",+ "dev": true,+ "dependencies": {+ "es-define-property": "^1.0.0",+ "es-errors": "^1.3.0",+ "gopd": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/define-properties": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz",+ "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==",+ "dev": true,+ "dependencies": {+ "define-data-property": "^1.0.1",+ "has-property-descriptors": "^1.0.0",+ "object-keys": "^1.1.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/dom-accessibility-api": {+ "version": "0.5.16",+ "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz",+ "integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==",+ "dev": true+ },+ "node_modules/es-define-property": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz",+ "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==",+ "dev": true,+ "dependencies": {+ "get-intrinsic": "^1.2.4"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-errors": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",+ "dev": true,+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-get-iterator": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.3.tgz",+ "integrity": "sha512-sPZmqHBe6JIiTfN5q2pEi//TwxmAFHwj/XEuYjTuse78i8KxaqMTTzxPoFKuzRpDpTJ+0NAbpfenkmH2rePtuw==",+ "dev": true,+ "dependencies": {+ "call-bind": "^1.0.2",+ "get-intrinsic": "^1.1.3",+ "has-symbols": "^1.0.3",+ "is-arguments": "^1.1.1",+ "is-map": "^2.0.2",+ "is-set": "^2.0.2",+ "is-string": "^1.0.7",+ "isarray": "^2.0.5",+ "stop-iteration-iterator": "^1.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/escape-string-regexp": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",+ "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==",+ "dev": true,+ "engines": {+ "node": ">=0.8.0"+ }+ },+ "node_modules/for-each": {+ "version": "0.3.3",+ "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz",+ "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==",+ "dev": true,+ "dependencies": {+ "is-callable": "^1.1.3"+ }+ },+ "node_modules/function-bind": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",+ "dev": true,+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/functions-have-names": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz",+ "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==",+ "dev": true,+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/get-intrinsic": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz",+ "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==",+ "dev": true,+ "dependencies": {+ "es-errors": "^1.3.0",+ "function-bind": "^1.1.2",+ "has-proto": "^1.0.1",+ "has-symbols": "^1.0.3",+ "hasown": "^2.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/gopd": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz",+ "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==",+ "dev": true,+ "dependencies": {+ "get-intrinsic": "^1.1.3"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/has-bigints": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz",+ "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==",+ "dev": true,+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "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/has-property-descriptors": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",+ "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",+ "dev": true,+ "dependencies": {+ "es-define-property": "^1.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/has-proto": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz",+ "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==",+ "dev": true,+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/has-symbols": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",+ "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",+ "dev": true,+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/has-tostringtag": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",+ "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",+ "dev": true,+ "dependencies": {+ "has-symbols": "^1.0.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/hasown": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.1.tgz",+ "integrity": "sha512-1/th4MHjnwncwXsIW6QMzlvYL9kG5e/CpVvLRZe4XPa8TOUNbCELqmvhDmnkNsAjwaG4+I8gJJL0JBvTTLO9qA==",+ "dev": true,+ "dependencies": {+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/internal-slot": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.7.tgz",+ "integrity": "sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g==",+ "dev": true,+ "dependencies": {+ "es-errors": "^1.3.0",+ "hasown": "^2.0.0",+ "side-channel": "^1.0.4"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/is-arguments": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz",+ "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==",+ "dev": true,+ "dependencies": {+ "call-bind": "^1.0.2",+ "has-tostringtag": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-array-buffer": {+ "version": "3.0.4",+ "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.4.tgz",+ "integrity": "sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw==",+ "dev": true,+ "dependencies": {+ "call-bind": "^1.0.2",+ "get-intrinsic": "^1.2.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-bigint": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz",+ "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==",+ "dev": true,+ "dependencies": {+ "has-bigints": "^1.0.1"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-boolean-object": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz",+ "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==",+ "dev": true,+ "dependencies": {+ "call-bind": "^1.0.2",+ "has-tostringtag": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-callable": {+ "version": "1.2.7",+ "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz",+ "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==",+ "dev": true,+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-date-object": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz",+ "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==",+ "dev": true,+ "dependencies": {+ "has-tostringtag": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-map": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.2.tgz",+ "integrity": "sha512-cOZFQQozTha1f4MxLFzlgKYPTyj26picdZTx82hbc/Xf4K/tZOOXSCkMvU4pKioRXGDLJRn0GM7Upe7kR721yg==",+ "dev": true,+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-number-object": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz",+ "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==",+ "dev": true,+ "dependencies": {+ "has-tostringtag": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-regex": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz",+ "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==",+ "dev": true,+ "dependencies": {+ "call-bind": "^1.0.2",+ "has-tostringtag": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-set": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.2.tgz",+ "integrity": "sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==",+ "dev": true,+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-shared-array-buffer": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.3.tgz",+ "integrity": "sha512-nA2hv5XIhLR3uVzDDfCIknerhx8XUKnstuOERPNNIinXG7v9u+ohXF67vxm4TPTEPU6lm61ZkwP3c9PCB97rhg==",+ "dev": true,+ "dependencies": {+ "call-bind": "^1.0.7"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-string": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz",+ "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==",+ "dev": true,+ "dependencies": {+ "has-tostringtag": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-symbol": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz",+ "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==",+ "dev": true,+ "dependencies": {+ "has-symbols": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-weakmap": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz",+ "integrity": "sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==",+ "dev": true,+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-weakset": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.2.tgz",+ "integrity": "sha512-t2yVvttHkQktwnNNmBQ98AhENLdPUTDTE21uPqAQ0ARwQfGeQKRVS0NNurH7bTf7RrvcVn1OOge45CnBeHCSmg==",+ "dev": true,+ "dependencies": {+ "call-bind": "^1.0.2",+ "get-intrinsic": "^1.1.1"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/isarray": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz",+ "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==",+ "dev": true+ },+ "node_modules/js-tokens": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="+ },+ "node_modules/loose-envify": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",+ "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",+ "peer": true,+ "dependencies": {+ "js-tokens": "^3.0.0 || ^4.0.0"+ },+ "bin": {+ "loose-envify": "cli.js"+ }+ },+ "node_modules/lz-string": {+ "version": "1.5.0",+ "resolved": "https://registry.npmjs.org/lz-string/-/lz-string-1.5.0.tgz",+ "integrity": "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==",+ "dev": true,+ "bin": {+ "lz-string": "bin/bin.js"+ }+ },+ "node_modules/object-inspect": {+ "version": "1.13.1",+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz",+ "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==",+ "dev": true,+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/object-is": {+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz",+ "integrity": "sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==",+ "dev": true,+ "dependencies": {+ "call-bind": "^1.0.2",+ "define-properties": "^1.1.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/object-keys": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",+ "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==",+ "dev": true,+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/object.assign": {+ "version": "4.1.5",+ "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz",+ "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==",+ "dev": true,+ "dependencies": {+ "call-bind": "^1.0.5",+ "define-properties": "^1.2.1",+ "has-symbols": "^1.0.3",+ "object-keys": "^1.1.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/possible-typed-array-names": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz",+ "integrity": "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==",+ "dev": true,+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/pretty-format": {+ "version": "27.5.1",+ "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz",+ "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==",+ "dev": true,+ "dependencies": {+ "ansi-regex": "^5.0.1",+ "ansi-styles": "^5.0.0",+ "react-is": "^17.0.1"+ },+ "engines": {+ "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0"+ }+ },+ "node_modules/pretty-format/node_modules/ansi-styles": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz",+ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==",+ "dev": true,+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },+ "node_modules/react": {+ "version": "18.2.0",+ "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz",+ "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==",+ "peer": true,+ "dependencies": {+ "loose-envify": "^1.1.0"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/react-dom": {+ "version": "18.2.0",+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz",+ "integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==",+ "dev": true,+ "peer": true,+ "dependencies": {+ "loose-envify": "^1.1.0",+ "scheduler": "^0.23.0"+ },+ "peerDependencies": {+ "react": "^18.2.0"+ }+ },+ "node_modules/react-is": {+ "version": "17.0.2",+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz",+ "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==",+ "dev": true+ },+ "node_modules/regenerator-runtime": {+ "version": "0.14.1",+ "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz",+ "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==",+ "dev": true+ },+ "node_modules/regexp.prototype.flags": {+ "version": "1.5.2",+ "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.2.tgz",+ "integrity": "sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==",+ "dev": true,+ "dependencies": {+ "call-bind": "^1.0.6",+ "define-properties": "^1.2.1",+ "es-errors": "^1.3.0",+ "set-function-name": "^2.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/scheduler": {+ "version": "0.23.0",+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz",+ "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==",+ "dev": true,+ "peer": true,+ "dependencies": {+ "loose-envify": "^1.1.0"+ }+ },+ "node_modules/set-function-length": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.1.tgz",+ "integrity": "sha512-j4t6ccc+VsKwYHso+kElc5neZpjtq9EnRICFZtWyBsLojhmeF/ZBd/elqm22WJh/BziDe/SBiOeAt0m2mfLD0g==",+ "dev": true,+ "dependencies": {+ "define-data-property": "^1.1.2",+ "es-errors": "^1.3.0",+ "function-bind": "^1.1.2",+ "get-intrinsic": "^1.2.3",+ "gopd": "^1.0.1",+ "has-property-descriptors": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/set-function-name": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz",+ "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==",+ "dev": true,+ "dependencies": {+ "define-data-property": "^1.1.4",+ "es-errors": "^1.3.0",+ "functions-have-names": "^1.2.3",+ "has-property-descriptors": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/side-channel": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.5.tgz",+ "integrity": "sha512-QcgiIWV4WV7qWExbN5llt6frQB/lBven9pqliLXfGPB+K9ZYXxDozp0wLkHS24kWCm+6YXH/f0HhnObZnZOBnQ==",+ "dev": true,+ "dependencies": {+ "call-bind": "^1.0.6",+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.4",+ "object-inspect": "^1.13.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/stop-iteration-iterator": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.0.0.tgz",+ "integrity": "sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==",+ "dev": true,+ "dependencies": {+ "internal-slot": "^1.0.4"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "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/which-boxed-primitive": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz",+ "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==",+ "dev": true,+ "dependencies": {+ "is-bigint": "^1.0.1",+ "is-boolean-object": "^1.1.0",+ "is-number-object": "^1.0.4",+ "is-string": "^1.0.5",+ "is-symbol": "^1.0.3"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/which-collection": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.1.tgz",+ "integrity": "sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==",+ "dev": true,+ "dependencies": {+ "is-map": "^2.0.1",+ "is-set": "^2.0.1",+ "is-weakmap": "^2.0.1",+ "is-weakset": "^2.0.1"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/which-typed-array": {+ "version": "1.1.14",+ "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.14.tgz",+ "integrity": "sha512-VnXFiIW8yNn9kIHN88xvZ4yOWchftKDsRJ8fEPacX/wl1lOvBrhsJ/OeJCXq7B0AaijRuqgzSKalJoPk+D8MPg==",+ "dev": true,+ "dependencies": {+ "available-typed-arrays": "^1.0.6",+ "call-bind": "^1.0.5",+ "for-each": "^0.3.3",+ "gopd": "^1.0.1",+ "has-tostringtag": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/zod": {+ "version": "3.22.4",+ "resolved": "https://registry.npmjs.org/zod/-/zod-3.22.4.tgz",+ "integrity": "sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==",+ "peer": true,+ "funding": {+ "url": "https://github.com/sponsors/colinhacks"+ }+ }+ }+}diff --git a/packages/block-columns-container/package.json b/packages/block-columns-container/package.jsonnew file mode 100644index 0000000..ce88cc9--- /dev/null+++ b/packages/block-columns-container/package.json@@ -0,0 +1,22 @@+{+ "name": "@usewaypoint/block-columns-container",+ "version": "0.0.1",+ "description": "@usewaypoint/document compatible ColumnsContainer component",+ "main": "dist/index.js",+ "types": "dist/index.d.ts",+ "files": [+ "dist"+ ],+ "scripts": {+ "test": "echo \"Error: no test specified\" && exit 1"+ },+ "author": "[email protected]",+ "license": "MIT",+ "peerDependencies": {+ "react": "^16 || ^17 || ^18",+ "zod": "^1 || ^2 || ^3"+ },+ "devDependencies": {+ "@testing-library/react": "^14.2.1"+ }+}diff --git a/packages/block-columns-container/src/__snapshots__/index.spec.tsx.snap b/packages/block-columns-container/src/__snapshots__/index.spec.tsx.snapnew file mode 100644index 0000000..71870ed--- /dev/null+++ b/packages/block-columns-container/src/__snapshots__/index.spec.tsx.snap@@ -0,0 +1,172 @@+// Jest Snapshot v1, https://goo.gl/fbAQLP++exports[`block-columns-container columnsCount 2 renders column children 1`] = `+<DocumentFragment>+ <div>+ <table+ align="center"+ border="0"+ cellpadding="0"+ style="table-layout: fixed; border-collapse: collapse;"+ width="100%"+ >+ <tbody+ style="width: 100%;"+ >+ <tr+ style="width: 100%;"+ >+ <td+ style="box-sizing: content-box; vertical-align: middle; padding-left: 0px; padding-right: 0px;"+ >+ bread+ </td>+ <td+ style="box-sizing: content-box; vertical-align: middle; padding-left: 0px; padding-right: 0px;"+ >+ tomato+ </td>+ </tr>+ </tbody>+ </table>+ </div>+</DocumentFragment>+`;++exports[`block-columns-container columnsCount 2 uses padding correctly 1`] = `+<DocumentFragment>+ <div>+ <table+ align="center"+ border="0"+ cellpadding="0"+ style="table-layout: fixed; border-collapse: collapse;"+ width="100%"+ >+ <tbody+ style="width: 100%;"+ >+ <tr+ style="width: 100%;"+ >+ <td+ style="box-sizing: content-box; vertical-align: middle; padding-left: 0px; padding-right: 6px;"+ >+ bread+ </td>+ <td+ style="box-sizing: content-box; vertical-align: middle; padding-left: 6px; padding-right: 0px;"+ >+ tomato+ </td>+ </tr>+ </tbody>+ </table>+ </div>+</DocumentFragment>+`;++exports[`block-columns-container columnsCount 3 renders column children 1`] = `+<DocumentFragment>+ <div>+ <table+ align="center"+ border="0"+ cellpadding="0"+ style="table-layout: fixed; border-collapse: collapse;"+ width="100%"+ >+ <tbody+ style="width: 100%;"+ >+ <tr+ style="width: 100%;"+ >+ <td+ style="box-sizing: content-box; vertical-align: middle; padding-left: 0px; padding-right: 0px;"+ >+ bread+ </td>+ <td+ style="box-sizing: content-box; vertical-align: middle; padding-left: 0px; padding-right: 0px;"+ >+ tomato+ </td>+ <td+ style="box-sizing: content-box; vertical-align: middle; padding-left: 0px; padding-right: 0px;"+ >+ lettuce+ </td>+ </tr>+ </tbody>+ </table>+ </div>+</DocumentFragment>+`;++exports[`block-columns-container columnsCount 3 uses padding correctly 1`] = `+<DocumentFragment>+ <div>+ <table+ align="center"+ border="0"+ cellpadding="0"+ style="table-layout: fixed; border-collapse: collapse;"+ width="100%"+ >+ <tbody+ style="width: 100%;"+ >+ <tr+ style="width: 100%;"+ >+ <td+ style="box-sizing: content-box; vertical-align: middle; padding-left: 0px; padding-right: 8px;"+ >+ bread+ </td>+ <td+ style="box-sizing: content-box; vertical-align: middle; padding-left: 4px; padding-right: 4px;"+ >+ tomato+ </td>+ <td+ style="box-sizing: content-box; vertical-align: middle; padding-left: 8px; padding-right: 0px;"+ >+ lettuce+ </td>+ </tr>+ </tbody>+ </table>+ </div>+</DocumentFragment>+`;++exports[`block-columns-container renders with default values 1`] = `+<DocumentFragment>+ <div>+ <table+ align="center"+ border="0"+ cellpadding="0"+ style="table-layout: fixed; border-collapse: collapse;"+ width="100%"+ >+ <tbody+ style="width: 100%;"+ >+ <tr+ style="width: 100%;"+ >+ <td+ style="box-sizing: content-box; vertical-align: middle; padding-left: 0px; padding-right: 0px;"+ />+ <td+ style="box-sizing: content-box; vertical-align: middle; padding-left: 0px; padding-right: 0px;"+ />+ </tr>+ </tbody>+ </table>+ </div>+</DocumentFragment>+`;diff --git a/packages/block-columns-container/src/index.spec.tsx b/packages/block-columns-container/src/index.spec.tsxnew file mode 100644index 0000000..31ef267--- /dev/null+++ b/packages/block-columns-container/src/index.spec.tsx@@ -0,0 +1,55 @@+import React from 'react';++import { render } from '@testing-library/react';++import { ColumnsContainer } from '.';++describe('block-columns-container', () => {+ it('renders with default values', () => {+ expect(render(<ColumnsContainer />).asFragment()).toMatchSnapshot();+ });++ describe('columnsCount 2', () => {+ it('renders column children', () => {+ const columns = [<>bread</>, <>tomato</>, <>lettuce</>];+ expect(render(<ColumnsContainer props={{ columnsCount: 2 }} columns={columns} />).asFragment()).toMatchSnapshot();+ });++ it('uses padding correctly', () => {+ const columns = [<>bread</>, <>tomato</>, <>lettuce</>];+ expect(+ render(+ <ColumnsContainer+ props={{+ columnsGap: 12,+ columnsCount: 2,+ }}+ columns={columns}+ />+ ).asFragment()+ ).toMatchSnapshot();+ });+ });++ describe('columnsCount 3', () => {+ it('renders column children', () => {+ const columns = [<>bread</>, <>tomato</>, <>lettuce</>];+ expect(render(<ColumnsContainer props={{ columnsCount: 3 }} columns={columns} />).asFragment()).toMatchSnapshot();+ });++ it('uses padding correctly', () => {+ const columns = [<>bread</>, <>tomato</>, <>lettuce</>];+ expect(+ render(+ <ColumnsContainer+ props={{+ columnsGap: 12,+ columnsCount: 3,+ }}+ columns={columns}+ />+ ).asFragment()+ ).toMatchSnapshot();+ });+ });+});diff --git a/packages/block-columns-container/src/index.tsx b/packages/block-columns-container/src/index.tsxnew file mode 100644index 0000000..a4833d0--- /dev/null+++ b/packages/block-columns-container/src/index.tsx@@ -0,0 +1,143 @@+import React, { CSSProperties } from 'react';+import { z } from 'zod';++const COLOR_SCHEMA = z+ .string()+ .regex(/^#[0-9a-fA-F]{6}$/)+ .nullable()+ .optional();++const PADDING_SCHEMA = z+ .object({+ top: z.number(),+ bottom: z.number(),+ right: z.number(),+ left: z.number(),+ })+ .optional()+ .nullable();++const getPadding = (padding: z.infer<typeof PADDING_SCHEMA>) =>+ padding ? `${padding.top}px ${padding.right}px ${padding.bottom}px ${padding.left}px` : undefined;++export const ColumnsContainerPropsSchema = z.object({+ style: z+ .object({+ backgroundColor: COLOR_SCHEMA,+ padding: PADDING_SCHEMA,+ })+ .optional()+ .nullable(),+ props: z+ .object({+ columnsCount: z+ .union([z.literal(2), z.literal(3)])+ .optional()+ .nullable(),+ columnsGap: z.number().optional().nullable(),+ contentAlignment: z.enum(['top', 'middle', 'bottom']).optional().nullable(),+ })+ .optional()+ .nullable(),+});++type TColumn = JSX.Element | JSX.Element[] | null;+export type ColumnsContainerProps = z.infer<typeof ColumnsContainerPropsSchema> & {+ columns?: TColumn[];+};++const ColumnsContainerPropsDefaults = {+ columnsCount: 2,+ columnsGap: 0,+ contentAlignment: 'middle',+} as const;++export function ColumnsContainer({ style, columns, props }: ColumnsContainerProps) {+ const wStyle: CSSProperties = {+ backgroundColor: style?.backgroundColor ?? undefined,+ padding: getPadding(style?.padding),+ };++ const blockProps = {+ columnsCount: props?.columnsCount ?? ColumnsContainerPropsDefaults.columnsCount,+ columnsGap: props?.columnsGap ?? ColumnsContainerPropsDefaults.columnsGap,+ contentAlignment: props?.contentAlignment ?? ColumnsContainerPropsDefaults.contentAlignment,+ };++ return (+ <div style={wStyle}>+ <table+ align="center"+ width="100%"+ cellPadding="0"+ border={0}+ style={{ tableLayout: 'fixed', borderCollapse: 'collapse' }}+ >+ <tbody style={{ width: '100%' }}>+ <tr style={{ width: '100%' }}>+ <TableCell index={0} props={blockProps} columns={columns} />+ <TableCell index={1} props={blockProps} columns={columns} />+ <TableCell index={2} props={blockProps} columns={columns} />+ </tr>+ </tbody>+ </table>+ </div>+ );+}++type Props = {+ props: {+ columnsCount: 2 | 3;+ columnsGap: number;+ contentAlignment: 'top' | 'middle' | 'bottom';+ };+ index: number;+ columns?: TColumn[];+};+function TableCell({ index, props, columns }: Props) {+ const contentAlignment = props?.contentAlignment ?? ColumnsContainerPropsDefaults.contentAlignment;+ const columnsCount = props?.columnsCount ?? ColumnsContainerPropsDefaults.columnsCount;++ if (columnsCount === 2 && index === 2) {+ return null;+ }++ const style: CSSProperties = {+ boxSizing: 'content-box',+ verticalAlign: contentAlignment,+ paddingLeft: getPaddingBefore(index, props),+ paddingRight: getPaddingAfter(index, props),+ };+ const children = (columns && columns[index]) ?? null;+ return <td style={style}>{children}</td>;+}++function getPaddingBefore(index: number, { columnsGap, columnsCount }: Props['props']) {+ if (index === 0) {+ return 0;+ }+ if (columnsCount === 2) {+ return columnsGap / 2;+ }+ if (index === 1) {+ return columnsGap / 3;+ }+ return (2 * columnsGap) / 3;+}++function getPaddingAfter(index: number, { columnsGap, columnsCount }: Props['props']) {+ if (columnsCount === 2) {+ if (index === 0) {+ return columnsGap / 2;+ }+ return 0;+ }++ if (index === 0) {+ return (2 * columnsGap) / 3;+ }+ if (index === 1) {+ return columnsGap / 3;+ }+ return 0;+}diff --git a/packages/block-columns-container/tsconfig.build.json b/packages/block-columns-container/tsconfig.build.jsonnew file mode 100644index 0000000..174bf40--- /dev/null+++ b/packages/block-columns-container/tsconfig.build.json@@ -0,0 +1,4 @@+{+ "extends": "./tsconfig.json",+ "exclude": ["src/**/*.spec.ts", "src/**/*.spec.tsx", "jest.config.ts"]+}diff --git a/packages/block-columns-container/tsconfig.json b/packages/block-columns-container/tsconfig.jsonnew file mode 100644index 0000000..efac89d--- /dev/null+++ b/packages/block-columns-container/tsconfig.json@@ -0,0 +1,9 @@+{+ "extends": "../../tsconfig.json",+ "compilerOptions": {+ "target": "es2015",+ "module": "esnext",+ "outDir": "dist"+ },+ "exclude": ["dist"]+}