From c7d2bfc92a18c6a46428b06169db3879d78f7f59 Mon Sep 17 00:00:00 2001 From: DJ Corbett Date: Thu, 12 Oct 2023 11:50:03 -0400 Subject: [PATCH 01/14] updating pages to 1.0.0.rc-5 and studio to 0.26.0 --- package-lock.json | 534 +++++++++++++++--- package.json | 5 +- sites-config/ci.json | 4 + ...r-VariableFont_slnt,wght.ttf => inter.ttf} | Bin src/components/molecules/Header.tsx | 2 +- src/index.css | 2 +- src/templates/_client.tsx | 8 +- src/templates/_server.tsx | 7 +- 8 files changed, 480 insertions(+), 82 deletions(-) rename src/assets/fonts/{Inter-VariableFont_slnt,wght.ttf => inter.ttf} (100%) diff --git a/package-lock.json b/package-lock.json index beb4fff..867da05 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,8 @@ "@headlessui/react": "^1.7.15", "@heroicons/react": "^2.0.18", "@vitejs/plugin-react": "^4.0.2", - "@yext/studio": "^0.25.0", + "@yext/sites-components": "^1.0.0-rc.5", + "@yext/studio": "^0.26.0", "clsx": "^1.2.1", "cva": "npm:class-variance-authority@^0.7.0", "react": "^18.0.2", @@ -27,7 +28,7 @@ "@types/react-dom": "^18.0.20", "@typescript-eslint/eslint-plugin": "^5.61.0", "@typescript-eslint/parser": "^5.61.0", - "@yext/pages": "1.0.0-rc.4", + "@yext/pages": "1.0.0-rc.5", "autoprefixer": "^10.4.14", "eslint-config-prettier": "^8.8.0", "eslint-plugin-react": "^7.32.2", @@ -84,8 +85,9 @@ } }, "node_modules/@babel/compat-data": { - "version": "7.22.20", - "license": "MIT", + "version": "7.23.2", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.2.tgz", + "integrity": "sha512-0S9TQMmDHlqAZ2ITT95irXKfxN9bncq8ZCoJhun3nHL/lLUxd2NKBJYoNGWH7S0hz6fRQwWlAWn/ILM0C70KZQ==", "engines": { "node": ">=6.9.0" } @@ -236,9 +238,9 @@ } }, "node_modules/@babel/helper-define-polyfill-provider": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.4.2.tgz", - "integrity": "sha512-k0qnnOqHn5dK9pZpfD5XXZ9SojAITdCKRn2Lp6rnDGzIbaP0rHyMPk/4wsSxVBVz4RfN0q6VpXWP2pDGIoQ7hw==", + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.4.3.tgz", + "integrity": "sha512-WBrLmuPP47n7PNwsZ57pqam6G/RGo1vw/87b0Blc53tZNGZ4x7YvZ6HgQe2vo1W/FR20OgjeZuGXzudPiXHFug==", "dependencies": { "@babel/helper-compilation-targets": "^7.22.6", "@babel/helper-plugin-utils": "^7.22.5", @@ -767,13 +769,13 @@ } }, "node_modules/@babel/plugin-transform-async-generator-functions": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.22.15.tgz", - "integrity": "sha512-jBm1Es25Y+tVoTi5rfd5t1KLmL8ogLKpXszboWOTTtGFGz2RKnQe2yn7HbZ+kb/B8N0FVSGQo874NSlOU1T4+w==", + "version": "7.23.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.23.2.tgz", + "integrity": "sha512-BBYVGxbDVHfoeXbOwcagAkOQAm9NxoTdMGfTqghu1GrvadSaw6iW3Je6IcL5PNOw8VwjxqBECXy50/iCQSY/lQ==", "dependencies": { - "@babel/helper-environment-visitor": "^7.22.5", + "@babel/helper-environment-visitor": "^7.22.20", "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-remap-async-to-generator": "^7.22.9", + "@babel/helper-remap-async-to-generator": "^7.22.20", "@babel/plugin-syntax-async-generators": "^7.8.4" }, "engines": { @@ -1581,11 +1583,11 @@ } }, "node_modules/@babel/preset-env": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.22.20.tgz", - "integrity": "sha512-11MY04gGC4kSzlPHRfvVkNAZhUxOvm7DCJ37hPDnUENwe06npjIRAfInEMTGSb4LZK5ZgDFkv5hw0lGebHeTyg==", + "version": "7.23.2", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.23.2.tgz", + "integrity": "sha512-BW3gsuDD+rvHL2VO2SjAUNTBe5YrjsTiDyqamPDWY723na3/yPQ65X5oQkFVJZ0o50/2d+svm1rkPoJeR1KxVQ==", "dependencies": { - "@babel/compat-data": "^7.22.20", + "@babel/compat-data": "^7.23.2", "@babel/helper-compilation-targets": "^7.22.15", "@babel/helper-plugin-utils": "^7.22.5", "@babel/helper-validator-option": "^7.22.15", @@ -1611,15 +1613,15 @@ "@babel/plugin-syntax-top-level-await": "^7.14.5", "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", "@babel/plugin-transform-arrow-functions": "^7.22.5", - "@babel/plugin-transform-async-generator-functions": "^7.22.15", + "@babel/plugin-transform-async-generator-functions": "^7.23.2", "@babel/plugin-transform-async-to-generator": "^7.22.5", "@babel/plugin-transform-block-scoped-functions": "^7.22.5", - "@babel/plugin-transform-block-scoping": "^7.22.15", + "@babel/plugin-transform-block-scoping": "^7.23.0", "@babel/plugin-transform-class-properties": "^7.22.5", "@babel/plugin-transform-class-static-block": "^7.22.11", "@babel/plugin-transform-classes": "^7.22.15", "@babel/plugin-transform-computed-properties": "^7.22.5", - "@babel/plugin-transform-destructuring": "^7.22.15", + "@babel/plugin-transform-destructuring": "^7.23.0", "@babel/plugin-transform-dotall-regex": "^7.22.5", "@babel/plugin-transform-duplicate-keys": "^7.22.5", "@babel/plugin-transform-dynamic-import": "^7.22.11", @@ -1631,9 +1633,9 @@ "@babel/plugin-transform-literals": "^7.22.5", "@babel/plugin-transform-logical-assignment-operators": "^7.22.11", "@babel/plugin-transform-member-expression-literals": "^7.22.5", - "@babel/plugin-transform-modules-amd": "^7.22.5", - "@babel/plugin-transform-modules-commonjs": "^7.22.15", - "@babel/plugin-transform-modules-systemjs": "^7.22.11", + "@babel/plugin-transform-modules-amd": "^7.23.0", + "@babel/plugin-transform-modules-commonjs": "^7.23.0", + "@babel/plugin-transform-modules-systemjs": "^7.23.0", "@babel/plugin-transform-modules-umd": "^7.22.5", "@babel/plugin-transform-named-capturing-groups-regex": "^7.22.5", "@babel/plugin-transform-new-target": "^7.22.5", @@ -1642,7 +1644,7 @@ "@babel/plugin-transform-object-rest-spread": "^7.22.15", "@babel/plugin-transform-object-super": "^7.22.5", "@babel/plugin-transform-optional-catch-binding": "^7.22.11", - "@babel/plugin-transform-optional-chaining": "^7.22.15", + "@babel/plugin-transform-optional-chaining": "^7.23.0", "@babel/plugin-transform-parameters": "^7.22.15", "@babel/plugin-transform-private-methods": "^7.22.5", "@babel/plugin-transform-private-property-in-object": "^7.22.11", @@ -1659,10 +1661,10 @@ "@babel/plugin-transform-unicode-regex": "^7.22.5", "@babel/plugin-transform-unicode-sets-regex": "^7.22.5", "@babel/preset-modules": "0.1.6-no-external-plugins", - "@babel/types": "^7.22.19", - "babel-plugin-polyfill-corejs2": "^0.4.5", - "babel-plugin-polyfill-corejs3": "^0.8.3", - "babel-plugin-polyfill-regenerator": "^0.5.2", + "@babel/types": "^7.23.0", + "babel-plugin-polyfill-corejs2": "^0.4.6", + "babel-plugin-polyfill-corejs3": "^0.8.5", + "babel-plugin-polyfill-regenerator": "^0.5.3", "core-js-compat": "^3.31.0", "semver": "^6.3.1" }, @@ -1714,9 +1716,9 @@ } }, "node_modules/@babel/preset-typescript": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.23.0.tgz", - "integrity": "sha512-6P6VVa/NM/VlAYj5s2Aq/gdVg8FSENCg3wlZ6Qau9AcPaoF5LbN1nyGlR9DTRIw9PpxI94e+ReydsJHcjwAweg==", + "version": "7.23.2", + "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.23.2.tgz", + "integrity": "sha512-u4UJc1XsS1GhIGteM8rnGiIvf9rJpiVgMEeCnwlLA7WJPC+jcXWJAGxYmeqs5hOZD8BbAfnV5ezBOxQbb4OUxA==", "dependencies": { "@babel/helper-plugin-utils": "^7.22.5", "@babel/helper-validator-option": "^7.22.15", @@ -1737,9 +1739,9 @@ "integrity": "sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==" }, "node_modules/@babel/runtime": { - "version": "7.23.1", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.1.tgz", - "integrity": "sha512-hC2v6p8ZSI/W0HUzh3V8C5g+NwSKzKPtJwSpTjwl0o297GP9+ZLQSkdvHz46CM3LqyoXxq+5G9komY+eSqSO0g==", + "version": "7.23.2", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.2.tgz", + "integrity": "sha512-mM8eg4yl5D6i3lu2QKPuPH4FArvJ8KhTofbE7jwMUv9KX5mBvwPAqnV3MlyBNqdp9RyRKP6Yck8TrfYrPvX3bg==", "dependencies": { "regenerator-runtime": "^0.14.0" }, @@ -2672,6 +2674,43 @@ "node": ">=14" } }, + "node_modules/@pnpm/config.env-replace": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@pnpm/config.env-replace/-/config.env-replace-1.1.0.tgz", + "integrity": "sha512-htyl8TWnKL7K/ESFa1oW2UB5lVDxuF5DpM7tBi6Hu2LNL3mWkIzNLG6N4zoCUP1lCKNxWy/3iu8mS8MvToGd6w==", + "engines": { + "node": ">=12.22.0" + } + }, + "node_modules/@pnpm/network.ca-file": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@pnpm/network.ca-file/-/network.ca-file-1.0.2.tgz", + "integrity": "sha512-YcPQ8a0jwYU9bTdJDpXjMi7Brhkr1mXsXrUJvjqM2mQDgkRiz8jFaQGOdaLxgjtUfQgZhKy/O3cG/YwmgKaxLA==", + "dependencies": { + "graceful-fs": "4.2.10" + }, + "engines": { + "node": ">=12.22.0" + } + }, + "node_modules/@pnpm/network.ca-file/node_modules/graceful-fs": { + "version": "4.2.10", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", + "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==" + }, + "node_modules/@pnpm/npm-conf": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/@pnpm/npm-conf/-/npm-conf-2.2.2.tgz", + "integrity": "sha512-UA91GwWPhFExt3IizW6bOeY/pQ0BkuNwKjk9iQW9KqxluGCrg4VenZ0/L+2Y0+ZOtme72EVvg6v0zo3AMQRCeA==", + "dependencies": { + "@pnpm/config.env-replace": "^1.1.0", + "@pnpm/network.ca-file": "^1.0.1", + "config-chain": "^1.1.11" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/@popperjs/core": { "version": "2.11.8", "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", @@ -2783,6 +2822,17 @@ } } }, + "node_modules/@sindresorhus/is": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-5.6.0.tgz", + "integrity": "sha512-TV7t8GKYaJWsn00tFDqBw8+Uqmr8A0fRU1tvTQhyZzGv0sJCGRQL3JGMI3ucuKo3XIZdUP+Lx7/gh2t3lewy7g==", + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sindresorhus/is?sponsor=1" + } + }, "node_modules/@svgr/babel-plugin-add-jsx-attribute": { "version": "6.5.1", "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-6.5.1.tgz", @@ -3007,13 +3057,24 @@ } }, "node_modules/@swc/helpers": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.2.tgz", - "integrity": "sha512-E4KcWTpoLHqwPHLxidpOqQbcrZVgi0rsmmZXUle1jXmJfuIf/UWpczUJ7MZZ5tlxytgJXyp0w4PGkkeLiuIdZw==", + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.3.tgz", + "integrity": "sha512-FaruWX6KdudYloq1AHD/4nU+UsMTdNE8CKyrseXWEcgjDAbvkwJg2QGPAnfIJLIWsjZOSPLOAykK6fuYp4vp4A==", "dependencies": { "tslib": "^2.4.0" } }, + "node_modules/@szmarczak/http-timer": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-5.0.1.tgz", + "integrity": "sha512-+PmQX0PiAYPMeVYe237LJAYvOMYW1j2rH5YROyS3b4CTVJum34HfRvKvAzozHAQG0TnHNdUfY9nCeUyRAs//cw==", + "dependencies": { + "defer-to-connect": "^2.0.1" + }, + "engines": { + "node": ">=14.16" + } + }, "node_modules/@tailwindcss/typography": { "version": "0.5.10", "resolved": "https://registry.npmjs.org/@tailwindcss/typography/-/typography-0.5.10.tgz", @@ -3094,6 +3155,11 @@ "@types/unist": "^2" } }, + "node_modules/@types/http-cache-semantics": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.2.tgz", + "integrity": "sha512-FD+nQWA2zJjh4L9+pFXqWOi0Hs1ryBCfI+985NjluQ1p8EYtoLvjLOKidXBtZ4/IcxDX4o8/E8qDS3540tNliw==" + }, "node_modules/@types/json-schema": { "version": "7.0.13", "dev": true, @@ -3351,10 +3417,26 @@ "vite": "^4.2.0" } }, + "node_modules/@yext/analytics": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@yext/analytics/-/analytics-0.3.0.tgz", + "integrity": "sha512-b2sXkoEmCdQyO2nbuYATOOQ1gs501bOUd1GxE8u7dQmhcYCyzzbUKQ07hzWRJoP6I3/Rf1o0fEfXsnlb5vmcnA==", + "dependencies": { + "cross-fetch": "^3.1.5" + } + }, + "node_modules/@yext/analytics/node_modules/cross-fetch": { + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.8.tgz", + "integrity": "sha512-cvA+JwZoU0Xq+h6WkMvAUqPEYy92Obet6UdKLfW60qn99ftItKjB5T+BkyWOFWe2pUyfQ+IJHmpOTznqk1M6Kg==", + "dependencies": { + "node-fetch": "^2.6.12" + } + }, "node_modules/@yext/pages": { - "version": "1.0.0-rc.4", - "resolved": "https://registry.npmjs.org/@yext/pages/-/pages-1.0.0-rc.4.tgz", - "integrity": "sha512-WdIC/4GBhF4WOkxfS9AxJ2o9aewqXCGVPjEMfIiYIQt3JdqaxbkE6IOIEOXK4WYn61ZpUTBDyIdqDFaHMPqXfQ==", + "version": "1.0.0-rc.5", + "resolved": "https://registry.npmjs.org/@yext/pages/-/pages-1.0.0-rc.5.tgz", + "integrity": "sha512-LLjjTSTRxgVmzrDhL2qoCnLV9SyuKvbD3y/H5+2LULSXqu54ifB6x3lojhH0ZuQNr/FG4BlmyqmY2PLkrEJbqQ==", "dependencies": { "ansi-to-html": "^0.7.2", "browser-or-node": "^2.1.1", @@ -3369,7 +3451,7 @@ "get-port": "^7.0.0", "glob": "^10.3.3", "handlebars": "^4.7.8", - "js-yaml": "^4.1.0", + "latest-version": "^7.0.0", "lodash": "^4.17.21", "mime-types": "^2.1.35", "module-from-string": "^3.3.0", @@ -3382,7 +3464,8 @@ "ts-morph": "^19.0.0", "typescript": "^5.1.6", "vite": "^4.4.9", - "vite-plugin-node-polyfills": "^0.11.0" + "vite-plugin-node-polyfills": "^0.11.0", + "yaml": "^2.3.1" }, "bin": { "pages": "dist/bin/spawn.js" @@ -3474,14 +3557,33 @@ "node": ">=14.17" } }, + "node_modules/@yext/sites-components": { + "version": "1.0.0-rc.5", + "resolved": "https://registry.npmjs.org/@yext/sites-components/-/sites-components-1.0.0-rc.5.tgz", + "integrity": "sha512-EkJQlC+5RITQErl1vfGFjFhiTvXMTUjW+cmt0ewQe1DdcI9zo7fiQZYbkXKZpRxuT/HkUfMFax4VbHYgtl7g5w==", + "dependencies": { + "@yext/analytics": "^0.3.0", + "browser-or-node": "^2.1.1", + "classnames": "^2.3.2", + "cross-fetch": "^4.0.0", + "picocolors": "^1.0.0" + }, + "engines": { + "node": "^17 || ^18 || ^19" + }, + "peerDependencies": { + "react": "^17.0.2 || ^18.2.0", + "react-dom": "^17.0.2 || ^18.2.0" + } + }, "node_modules/@yext/studio": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@yext/studio/-/studio-0.25.0.tgz", - "integrity": "sha512-aRBh5Df6D+o3muEMoGyafWfo5YofQTd9QdYsDGH3tlqRs5Ex6VrGk3VCUUZyAi94HhSAXfa2G6QrTQ3Wzb9AXg==", + "version": "0.26.1", + "resolved": "https://registry.npmjs.org/@yext/studio/-/studio-0.26.1.tgz", + "integrity": "sha512-GTeW4FzFUQgutpMRIAdZlfFgAWBKdALVrYfxnamMN6iXPYipv55+QQifKbUXtfV8x9+2M9suPONVtAAO7LtvVw==", "dependencies": { "@vitejs/plugin-react": "^4.0.4", - "@yext/studio-plugin": "0.25.0", - "@yext/studio-ui": "0.25.0", + "@yext/studio-plugin": "0.26.1", + "@yext/studio-ui": "0.26.1", "autoprefixer": "^10.4.14", "cac": "^6.7.14", "cross-env": "^7.0.3", @@ -3496,9 +3598,9 @@ } }, "node_modules/@yext/studio-plugin": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@yext/studio-plugin/-/studio-plugin-0.25.0.tgz", - "integrity": "sha512-ERWnZk8P7fx5PlDQIaJ6oYC7Tstb7ZydPbxWxs5Ix/cz2ZOHIncLU1Uru5txVGgNLQyoWFEV5vTcVlanBs8B3g==", + "version": "0.26.1", + "resolved": "https://registry.npmjs.org/@yext/studio-plugin/-/studio-plugin-0.26.1.tgz", + "integrity": "sha512-eB3fy8Ka9RDt9DChEg40OxHguiPpZSW0sQUSuRV9Bp5y43mAPt+HHEqAkYOTKaLJ6tTpmVBhxMSDfFxT5i+ajQ==", "dependencies": { "@babel/parser": "^7.21.8", "@babel/preset-env": "^7.22.4", @@ -3549,9 +3651,9 @@ } }, "node_modules/@yext/studio-ui": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@yext/studio-ui/-/studio-ui-0.25.0.tgz", - "integrity": "sha512-wajUZOIJph4mhWqdLYkG7TtZn616815barhDmX3Canjq6TQ7SReuNOmAUvEq9SbotjyhJTPpoTlXl9Alhl6Ijg==", + "version": "0.26.1", + "resolved": "https://registry.npmjs.org/@yext/studio-ui/-/studio-ui-0.26.1.tgz", + "integrity": "sha512-agXWRYHIPZ3SQ+0b5SN2x9RMESd0znnFqvjHV9CGU7qUdtRx0vRbampnqxENXNB0b6Lc/Xh4ZZkgEzS8GF41Cg==", "dependencies": { "@dhmk/zustand-lens": "^2.0.5", "@minoru/react-dnd-treeview": "^3.4.1", @@ -3710,7 +3812,9 @@ }, "node_modules/argparse": { "version": "2.0.1", - "license": "Python-2.0" + "dev": true, + "license": "Python-2.0", + "peer": true }, "node_modules/array-buffer-byte-length": { "version": "1.0.0", @@ -3930,12 +4034,12 @@ } }, "node_modules/babel-plugin-polyfill-corejs2": { - "version": "0.4.5", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.5.tgz", - "integrity": "sha512-19hwUH5FKl49JEsvyTcoHakh6BE0wgXLLptIyKZ3PijHc/Ci521wygORCUCCred+E/twuqRyAkE02BAWPmsHOg==", + "version": "0.4.6", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.6.tgz", + "integrity": "sha512-jhHiWVZIlnPbEUKSSNb9YoWcQGdlTLq7z1GHL4AjFxaoOUMuuEVJ+Y4pAaQUGOGk93YsVCKPbqbfw3m0SM6H8Q==", "dependencies": { "@babel/compat-data": "^7.22.6", - "@babel/helper-define-polyfill-provider": "^0.4.2", + "@babel/helper-define-polyfill-provider": "^0.4.3", "semver": "^6.3.1" }, "peerDependencies": { @@ -3951,11 +4055,11 @@ } }, "node_modules/babel-plugin-polyfill-corejs3": { - "version": "0.8.4", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.4.tgz", - "integrity": "sha512-9l//BZZsPR+5XjyJMPtZSK4jv0BsTO1zDac2GC6ygx9WLGlcsnRd1Co0B2zT5fF5Ic6BZy+9m3HNZ3QcOeDKfg==", + "version": "0.8.5", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.5.tgz", + "integrity": "sha512-Q6CdATeAvbScWPNLB8lzSO7fgUVBkQt6zLgNlfyeCr/EQaEQR+bWiBYYPYAFyE528BMjRhL+1QBMOI4jc/c5TA==", "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.4.2", + "@babel/helper-define-polyfill-provider": "^0.4.3", "core-js-compat": "^3.32.2" }, "peerDependencies": { @@ -3963,11 +4067,11 @@ } }, "node_modules/babel-plugin-polyfill-regenerator": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.2.tgz", - "integrity": "sha512-tAlOptU0Xj34V1Y2PNTL4Y0FOJMDB6bZmoW39FeCQIhigGLkqu3Fj6uiXpxIf6Ij274ENdYx64y6Au+ZKlb1IA==", + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.3.tgz", + "integrity": "sha512-8sHeDOmXC8csczMrYEOf0UTNa4yE2SxV5JGeT/LP1n0OYVDUUFPxG9vdk2AlDlIit4t+Kf0xCtpgXPBwnn/9pw==", "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.4.2" + "@babel/helper-define-polyfill-provider": "^0.4.3" }, "peerDependencies": { "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" @@ -4301,6 +4405,31 @@ "node": ">=8" } }, + "node_modules/cacheable-lookup": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-7.0.0.tgz", + "integrity": "sha512-+qJyx4xiKra8mZrcwhjMRMUhD5NR1R8esPkzIYxX96JiecFoxAXFuz/GpR3+ev4PE1WamHip78wV0vcmPQtp8w==", + "engines": { + "node": ">=14.16" + } + }, + "node_modules/cacheable-request": { + "version": "10.2.14", + "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-10.2.14.tgz", + "integrity": "sha512-zkDT5WAF4hSSoUgyfg5tFIxz8XQK+25W/TLVojJTMKBaxevLBBtLxgqguAuVQB8PVW79FVjHcU+GJ9tVbDZ9mQ==", + "dependencies": { + "@types/http-cache-semantics": "^4.0.2", + "get-stream": "^6.0.1", + "http-cache-semantics": "^4.1.1", + "keyv": "^4.5.3", + "mimic-response": "^4.0.0", + "normalize-url": "^8.0.0", + "responselike": "^3.0.0" + }, + "engines": { + "node": ">=14.16" + } + }, "node_modules/call-bind": { "version": "1.0.2", "license": "MIT", @@ -4515,6 +4644,15 @@ "version": "0.0.1", "license": "MIT" }, + "node_modules/config-chain": { + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.13.tgz", + "integrity": "sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==", + "dependencies": { + "ini": "^1.3.4", + "proto-list": "~1.2.1" + } + }, "node_modules/console-browserify": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.2.0.tgz", @@ -4770,6 +4908,39 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/decompress-response": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", + "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", + "dependencies": { + "mimic-response": "^3.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/decompress-response/node_modules/mimic-response": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", + "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", + "engines": { + "node": ">=4.0.0" + } + }, "node_modules/deep-is": { "version": "0.1.4", "dev": true, @@ -4819,6 +4990,14 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/defer-to-connect": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", + "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==", + "engines": { + "node": ">=10" + } + }, "node_modules/define-data-property": { "version": "1.1.0", "license": "MIT", @@ -6212,6 +6391,14 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/form-data-encoder": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-2.1.4.tgz", + "integrity": "sha512-yDYSgNMraqvnxiEXO4hi88+YZxaHC6QKzb5N84iRCTDeRO7ZALpir/lVmf/uXUhnwUr2O4HU8s/n6x+yNjQkHw==", + "engines": { + "node": ">= 14.17" + } + }, "node_modules/forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", @@ -6684,6 +6871,30 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/got": { + "version": "12.6.1", + "resolved": "https://registry.npmjs.org/got/-/got-12.6.1.tgz", + "integrity": "sha512-mThBblvlAF1d4O5oqyvN+ZxLAYwIJK7bpMxgYqPD9okW0C3qm5FFn7k811QrcuEBwaogR3ngOFoCfs6mRv7teQ==", + "dependencies": { + "@sindresorhus/is": "^5.2.0", + "@szmarczak/http-timer": "^5.0.1", + "cacheable-lookup": "^7.0.0", + "cacheable-request": "^10.2.8", + "decompress-response": "^6.0.0", + "form-data-encoder": "^2.1.2", + "get-stream": "^6.0.1", + "http2-wrapper": "^2.1.10", + "lowercase-keys": "^3.0.0", + "p-cancelable": "^3.0.0", + "responselike": "^3.0.0" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sindresorhus/got?sponsor=1" + } + }, "node_modules/graceful-fs": { "version": "4.2.11", "license": "ISC" @@ -6839,6 +7050,11 @@ "dev": true, "license": "ISC" }, + "node_modules/http-cache-semantics": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", + "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==" + }, "node_modules/http-errors": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", @@ -6854,6 +7070,18 @@ "node": ">= 0.8" } }, + "node_modules/http2-wrapper": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-2.2.0.tgz", + "integrity": "sha512-kZB0wxMo0sh1PehyjJUWRFEd99KC5TLjZ2cULC4f9iqJBAmKQQXEICjxl5iPJRwP40dpeHFqqhm7tYCvODpqpQ==", + "dependencies": { + "quick-lru": "^5.1.1", + "resolve-alpn": "^1.2.0" + }, + "engines": { + "node": ">=10.19.0" + } + }, "node_modules/https-browserify": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", @@ -6948,6 +7176,11 @@ "version": "2.0.4", "license": "ISC" }, + "node_modules/ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" + }, "node_modules/inline-style-parser": { "version": "0.1.1", "license": "MIT" @@ -7574,7 +7807,9 @@ }, "node_modules/js-yaml": { "version": "4.1.0", + "dev": true, "license": "MIT", + "peer": true, "dependencies": { "argparse": "^2.0.1" }, @@ -7594,9 +7829,7 @@ }, "node_modules/json-buffer": { "version": "3.0.1", - "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/json-parse-even-better-errors": { "version": "2.3.1", @@ -7651,9 +7884,7 @@ }, "node_modules/keyv": { "version": "4.5.3", - "dev": true, "license": "MIT", - "peer": true, "dependencies": { "json-buffer": "3.0.1" } @@ -7678,6 +7909,20 @@ "node": ">=6" } }, + "node_modules/latest-version": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-7.0.0.tgz", + "integrity": "sha512-KvNT4XqAMzdcL6ka6Tl3i2lYeFDgXNCuIX+xNx6ZMVR1dFq+idXd9FLKNMOIx0t9mJ9/HudyX4oZWXZQ0UJHeg==", + "dependencies": { + "package-json": "^8.1.0" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/levn": { "version": "0.4.1", "dev": true, @@ -7811,6 +8056,17 @@ "loose-envify": "cli.js" } }, + "node_modules/lowercase-keys": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-3.0.0.tgz", + "integrity": "sha512-ozCC6gdQ+glXOQsveKD0YsDy8DSQFjDTz4zyzEHNV5+JP5D62LmfDZ6o1cycFx9ouG940M5dE8C8CTewdj2YWQ==", + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/lru-cache": { "version": "5.1.1", "license": "ISC", @@ -8070,6 +8326,17 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/mimic-response": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-4.0.0.tgz", + "integrity": "sha512-e5ISH9xMYU0DzrT+jl8q2ze9D6eWBto+I8CNpe+VI+K2J/F/k3PdkdTdz4wvGVH4NTpo+NRYTVIuMQEMMcsLqg==", + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/minimalistic-assert": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", @@ -8325,6 +8592,17 @@ "node": ">=0.10.0" } }, + "node_modules/normalize-url": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-8.0.0.tgz", + "integrity": "sha512-uVFpKhj5MheNBJRTiMZ9pE/7hD1QTeEvugSJW/OmLzAp78PB5O6adfMNTvmfKhXBkvCzC+rqifWcVYpGFwTjnw==", + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/npm-normalize-package-bin": { "version": "1.0.1", "dev": true, @@ -8702,6 +8980,14 @@ "os-tmpdir": "^1.0.0" } }, + "node_modules/p-cancelable": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-3.0.0.tgz", + "integrity": "sha512-mlVgR3PGuzlo0MmTdk4cXqXWlwQDLnONTAg6sm62XkMJEiRxN3GL3SffkYvqwonbkJBcrI7Uvv5Zh9yjvn2iUw==", + "engines": { + "node": ">=12.20" + } + }, "node_modules/p-limit": { "version": "3.1.0", "license": "MIT", @@ -8728,6 +9014,23 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/package-json": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/package-json/-/package-json-8.1.1.tgz", + "integrity": "sha512-cbH9IAIJHNj9uXi196JVsRlt7cHKak6u/e6AkL/bkRelZ7rlL3X1YKxsZwa36xipOEKAsdtmaG6aAJoM1fx2zA==", + "dependencies": { + "got": "^12.1.0", + "registry-auth-token": "^5.0.1", + "registry-url": "^6.0.0", + "semver": "^7.3.7" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/pako": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", @@ -9140,6 +9443,11 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/proto-list": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz", + "integrity": "sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==" + }, "node_modules/proxy-addr": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", @@ -9219,6 +9527,17 @@ ], "license": "MIT" }, + "node_modules/quick-lru": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", + "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/randombytes": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", @@ -9258,6 +9577,28 @@ "node": ">= 0.8" } }, + "node_modules/rc": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", + "dependencies": { + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + }, + "bin": { + "rc": "cli.js" + } + }, + "node_modules/rc/node_modules/strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/react": { "version": "18.2.0", "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", @@ -9650,6 +9991,31 @@ "node": ">=4" } }, + "node_modules/registry-auth-token": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-5.0.2.tgz", + "integrity": "sha512-o/3ikDxtXaA59BmZuZrJZDJv8NMDGSj+6j6XaeBmHw8eY1i1qd9+6H+LjVvQXx3HN6aRCGa1cUdJ9RaJZUugnQ==", + "dependencies": { + "@pnpm/npm-conf": "^2.1.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/registry-url": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-6.0.1.tgz", + "integrity": "sha512-+crtS5QjFRqFCoQmvGduwYWEBng99ZvmFvF+cUJkGYF1L1BfU8C6Zp9T7f5vPAwyLkUExpvK+ANVZmGU49qi4Q==", + "dependencies": { + "rc": "1.2.8" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/regjsparser": { "version": "0.9.1", "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", @@ -10169,6 +10535,11 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/resolve-alpn": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz", + "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==" + }, "node_modules/resolve-from": { "version": "4.0.0", "license": "MIT", @@ -10176,6 +10547,20 @@ "node": ">=4" } }, + "node_modules/responselike": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/responselike/-/responselike-3.0.0.tgz", + "integrity": "sha512-40yHxbNcl2+rzXvZuVkrYohathsSJlMTXKryG5y8uciHv1+xDLHQpgjG64JUO9nrEq2jGLH6IZ8BcZyw3wrweg==", + "dependencies": { + "lowercase-keys": "^3.0.0" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/restore-cursor": { "version": "3.1.0", "dev": true, @@ -10500,7 +10885,6 @@ }, "node_modules/semver": { "version": "7.5.4", - "dev": true, "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" @@ -10514,7 +10898,6 @@ }, "node_modules/semver/node_modules/lru-cache": { "version": "6.0.0", - "dev": true, "license": "ISC", "dependencies": { "yallist": "^4.0.0" @@ -10525,7 +10908,6 @@ }, "node_modules/semver/node_modules/yallist": { "version": "4.0.0", - "dev": true, "license": "ISC" }, "node_modules/send": { @@ -12215,9 +12597,9 @@ } }, "node_modules/zustand": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.4.2.tgz", - "integrity": "sha512-qF3/vZHCrjPUX5DvPE3DPDZlh+FiAWRKlP9PI7SlW1MCk8q4vUCDqyWsbF8K41ne0Yx8eeeb0m1cypn1LqUMYQ==", + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.4.3.tgz", + "integrity": "sha512-oRy+X3ZazZvLfmv6viIaQmtLOMeij1noakIsK/Y47PWYhT8glfXzQ4j0YcP5i0P0qI1A4rIB//SGROGyZhx91A==", "dependencies": { "use-sync-external-store": "1.2.0" }, diff --git a/package.json b/package.json index 69e7fec..e10136a 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,8 @@ "@headlessui/react": "^1.7.15", "@heroicons/react": "^2.0.18", "@vitejs/plugin-react": "^4.0.2", - "@yext/studio": "^0.25.0", + "@yext/sites-components": "^1.0.0-rc.5", + "@yext/studio": "^0.26.0", "clsx": "^1.2.1", "cva": "npm:class-variance-authority@^0.7.0", "react": "^18.0.2", @@ -39,7 +40,7 @@ "@types/react-dom": "^18.0.20", "@typescript-eslint/eslint-plugin": "^5.61.0", "@typescript-eslint/parser": "^5.61.0", - "@yext/pages": "1.0.0-rc.4", + "@yext/pages": "1.0.0-rc.5", "autoprefixer": "^10.4.14", "eslint-config-prettier": "^8.8.0", "eslint-plugin-react": "^7.32.2", diff --git a/sites-config/ci.json b/sites-config/ci.json index fc74c51..7d38222 100644 --- a/sites-config/ci.json +++ b/sites-config/ci.json @@ -4,6 +4,10 @@ { "root": "dist", "pattern": "assets/**/*" + }, + { + "root": "dist", + "pattern": "*" } ], "features": "sites-config/features.json", diff --git a/src/assets/fonts/Inter-VariableFont_slnt,wght.ttf b/src/assets/fonts/inter.ttf similarity index 100% rename from src/assets/fonts/Inter-VariableFont_slnt,wght.ttf rename to src/assets/fonts/inter.ttf diff --git a/src/components/molecules/Header.tsx b/src/components/molecules/Header.tsx index 03358fd..268659f 100644 --- a/src/components/molecules/Header.tsx +++ b/src/components/molecules/Header.tsx @@ -14,7 +14,7 @@ const navigation = [ { label: "About", uRL: "#" }, { label: "Membership", uRL: "#" }, { label: "Contribute", uRL: "#" }, - { label: "Login", uRL: "#" }, + { label: "Contact", uRL: "#" }, ]; export default function Header({ logo }: HeaderProps) { diff --git a/src/index.css b/src/index.css index f9ceafa..1a31ca6 100644 --- a/src/index.css +++ b/src/index.css @@ -4,5 +4,5 @@ @font-face { font-family: "Inter var"; - src: url(./assets/fonts/Inter-VariableFont_slnt\wght.ttf); + src: url("./assets/fonts/inter.ttf"); } diff --git a/src/templates/_client.tsx b/src/templates/_client.tsx index 4ed088a..8af21f7 100644 --- a/src/templates/_client.tsx +++ b/src/templates/_client.tsx @@ -1,5 +1,6 @@ import { PageContext } from "@yext/pages"; import { hydrateRoot } from "react-dom/client"; +import { AnalyticsProvider } from "@yext/sites-components"; export { render }; @@ -7,6 +8,11 @@ const render = async (pageContext: PageContext) => { const { Page, pageProps } = pageContext; const rootElement = document.getElementById("reactele"); if (rootElement) { - hydrateRoot(rootElement, ); + hydrateRoot( + rootElement, + + + + ); } }; diff --git a/src/templates/_server.tsx b/src/templates/_server.tsx index 799f01d..4237401 100644 --- a/src/templates/_server.tsx +++ b/src/templates/_server.tsx @@ -1,11 +1,16 @@ import * as ReactDOMServer from "react-dom/server"; import { PageContext } from "@yext/pages"; +import { AnalyticsProvider } from "@yext/sites-components"; export { render }; const render = async (pageContext: PageContext) => { const { Page, pageProps } = pageContext; - const viewHtml = ReactDOMServer.renderToString(); + const viewHtml = ReactDOMServer.renderToString( + + + + ); return ` From e39de242367caf41733a5e2b5c3662b4a16e1351 Mon Sep 17 00:00:00 2001 From: DJ Corbett Date: Thu, 12 Oct 2023 11:57:10 -0400 Subject: [PATCH 02/14] removing pin to minor version --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 867da05..d0c9dc4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,7 +28,7 @@ "@types/react-dom": "^18.0.20", "@typescript-eslint/eslint-plugin": "^5.61.0", "@typescript-eslint/parser": "^5.61.0", - "@yext/pages": "1.0.0-rc.5", + "@yext/pages": "^1.0.0-rc.5", "autoprefixer": "^10.4.14", "eslint-config-prettier": "^8.8.0", "eslint-plugin-react": "^7.32.2", diff --git a/package.json b/package.json index e10136a..2d7afa6 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "@types/react-dom": "^18.0.20", "@typescript-eslint/eslint-plugin": "^5.61.0", "@typescript-eslint/parser": "^5.61.0", - "@yext/pages": "1.0.0-rc.5", + "@yext/pages": "^1.0.0-rc.5", "autoprefixer": "^10.4.14", "eslint-config-prettier": "^8.8.0", "eslint-plugin-react": "^7.32.2", From e7204cf74e2eab8b5d7736abef84f7671ff7c812 Mon Sep 17 00:00:00 2001 From: DJ Corbett Date: Thu, 12 Oct 2023 12:32:22 -0400 Subject: [PATCH 03/14] reverting back to rc.4 --- package-lock.json | 400 ++++------------------------------------------ package.json | 4 +- 2 files changed, 37 insertions(+), 367 deletions(-) diff --git a/package-lock.json b/package-lock.json index d0c9dc4..867c007 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@headlessui/react": "^1.7.15", "@heroicons/react": "^2.0.18", "@vitejs/plugin-react": "^4.0.2", - "@yext/sites-components": "^1.0.0-rc.5", + "@yext/sites-components": "1.0.0-rc.4", "@yext/studio": "^0.26.0", "clsx": "^1.2.1", "cva": "npm:class-variance-authority@^0.7.0", @@ -28,7 +28,7 @@ "@types/react-dom": "^18.0.20", "@typescript-eslint/eslint-plugin": "^5.61.0", "@typescript-eslint/parser": "^5.61.0", - "@yext/pages": "^1.0.0-rc.5", + "@yext/pages": "1.0.0-rc.4", "autoprefixer": "^10.4.14", "eslint-config-prettier": "^8.8.0", "eslint-plugin-react": "^7.32.2", @@ -2674,43 +2674,6 @@ "node": ">=14" } }, - "node_modules/@pnpm/config.env-replace": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@pnpm/config.env-replace/-/config.env-replace-1.1.0.tgz", - "integrity": "sha512-htyl8TWnKL7K/ESFa1oW2UB5lVDxuF5DpM7tBi6Hu2LNL3mWkIzNLG6N4zoCUP1lCKNxWy/3iu8mS8MvToGd6w==", - "engines": { - "node": ">=12.22.0" - } - }, - "node_modules/@pnpm/network.ca-file": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@pnpm/network.ca-file/-/network.ca-file-1.0.2.tgz", - "integrity": "sha512-YcPQ8a0jwYU9bTdJDpXjMi7Brhkr1mXsXrUJvjqM2mQDgkRiz8jFaQGOdaLxgjtUfQgZhKy/O3cG/YwmgKaxLA==", - "dependencies": { - "graceful-fs": "4.2.10" - }, - "engines": { - "node": ">=12.22.0" - } - }, - "node_modules/@pnpm/network.ca-file/node_modules/graceful-fs": { - "version": "4.2.10", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", - "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==" - }, - "node_modules/@pnpm/npm-conf": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/@pnpm/npm-conf/-/npm-conf-2.2.2.tgz", - "integrity": "sha512-UA91GwWPhFExt3IizW6bOeY/pQ0BkuNwKjk9iQW9KqxluGCrg4VenZ0/L+2Y0+ZOtme72EVvg6v0zo3AMQRCeA==", - "dependencies": { - "@pnpm/config.env-replace": "^1.1.0", - "@pnpm/network.ca-file": "^1.0.1", - "config-chain": "^1.1.11" - }, - "engines": { - "node": ">=12" - } - }, "node_modules/@popperjs/core": { "version": "2.11.8", "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", @@ -2822,17 +2785,6 @@ } } }, - "node_modules/@sindresorhus/is": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-5.6.0.tgz", - "integrity": "sha512-TV7t8GKYaJWsn00tFDqBw8+Uqmr8A0fRU1tvTQhyZzGv0sJCGRQL3JGMI3ucuKo3XIZdUP+Lx7/gh2t3lewy7g==", - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sindresorhus/is?sponsor=1" - } - }, "node_modules/@svgr/babel-plugin-add-jsx-attribute": { "version": "6.5.1", "resolved": "https://registry.npmjs.org/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-6.5.1.tgz", @@ -3064,17 +3016,6 @@ "tslib": "^2.4.0" } }, - "node_modules/@szmarczak/http-timer": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-5.0.1.tgz", - "integrity": "sha512-+PmQX0PiAYPMeVYe237LJAYvOMYW1j2rH5YROyS3b4CTVJum34HfRvKvAzozHAQG0TnHNdUfY9nCeUyRAs//cw==", - "dependencies": { - "defer-to-connect": "^2.0.1" - }, - "engines": { - "node": ">=14.16" - } - }, "node_modules/@tailwindcss/typography": { "version": "0.5.10", "resolved": "https://registry.npmjs.org/@tailwindcss/typography/-/typography-0.5.10.tgz", @@ -3155,11 +3096,6 @@ "@types/unist": "^2" } }, - "node_modules/@types/http-cache-semantics": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.2.tgz", - "integrity": "sha512-FD+nQWA2zJjh4L9+pFXqWOi0Hs1ryBCfI+985NjluQ1p8EYtoLvjLOKidXBtZ4/IcxDX4o8/E8qDS3540tNliw==" - }, "node_modules/@types/json-schema": { "version": "7.0.13", "dev": true, @@ -3433,10 +3369,24 @@ "node-fetch": "^2.6.12" } }, + "node_modules/@yext/components-tsx-geo": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@yext/components-tsx-geo/-/components-tsx-geo-1.0.3.tgz", + "integrity": "sha512-dcxvyEBo4b0yKuiummdDh6J+FP6lXK2wsBYyNxBGeLXYrjUZYXarQn6knHyRNClVHNEZ0jjKKW7QN7JwFd+LlQ==" + }, + "node_modules/@yext/components-tsx-maps": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@yext/components-tsx-maps/-/components-tsx-maps-1.0.11.tgz", + "integrity": "sha512-OgUOA2DoduzKy8XMq/iDekmsUJPqZhvAY64xCFDG6PSCnziURa4uKAD5ZcpZnghOwgNaQQeUchx4MflAxjOxZQ==", + "dependencies": { + "@yext/components-tsx-geo": "^1.0.3", + "typescript": "^4.7.3" + } + }, "node_modules/@yext/pages": { - "version": "1.0.0-rc.5", - "resolved": "https://registry.npmjs.org/@yext/pages/-/pages-1.0.0-rc.5.tgz", - "integrity": "sha512-LLjjTSTRxgVmzrDhL2qoCnLV9SyuKvbD3y/H5+2LULSXqu54ifB6x3lojhH0ZuQNr/FG4BlmyqmY2PLkrEJbqQ==", + "version": "1.0.0-rc.4", + "resolved": "https://registry.npmjs.org/@yext/pages/-/pages-1.0.0-rc.4.tgz", + "integrity": "sha512-WdIC/4GBhF4WOkxfS9AxJ2o9aewqXCGVPjEMfIiYIQt3JdqaxbkE6IOIEOXK4WYn61ZpUTBDyIdqDFaHMPqXfQ==", "dependencies": { "ansi-to-html": "^0.7.2", "browser-or-node": "^2.1.1", @@ -3451,7 +3401,7 @@ "get-port": "^7.0.0", "glob": "^10.3.3", "handlebars": "^4.7.8", - "latest-version": "^7.0.0", + "js-yaml": "^4.1.0", "lodash": "^4.17.21", "mime-types": "^2.1.35", "module-from-string": "^3.3.0", @@ -3464,8 +3414,7 @@ "ts-morph": "^19.0.0", "typescript": "^5.1.6", "vite": "^4.4.9", - "vite-plugin-node-polyfills": "^0.11.0", - "yaml": "^2.3.1" + "vite-plugin-node-polyfills": "^0.11.0" }, "bin": { "pages": "dist/bin/spawn.js" @@ -3558,11 +3507,13 @@ } }, "node_modules/@yext/sites-components": { - "version": "1.0.0-rc.5", - "resolved": "https://registry.npmjs.org/@yext/sites-components/-/sites-components-1.0.0-rc.5.tgz", - "integrity": "sha512-EkJQlC+5RITQErl1vfGFjFhiTvXMTUjW+cmt0ewQe1DdcI9zo7fiQZYbkXKZpRxuT/HkUfMFax4VbHYgtl7g5w==", + "version": "1.0.0-rc.4", + "resolved": "https://registry.npmjs.org/@yext/sites-components/-/sites-components-1.0.0-rc.4.tgz", + "integrity": "sha512-mOdLVo8LF+sT75dskxy1ckLVQh+C9gDtwiJG6UBUyvWtuvWz/kIQAdGteWDj3gmapZkwryklWFz/s08sQGahTg==", "dependencies": { "@yext/analytics": "^0.3.0", + "@yext/components-tsx-geo": "^1.0.3", + "@yext/components-tsx-maps": "^1.0.11", "browser-or-node": "^2.1.1", "classnames": "^2.3.2", "cross-fetch": "^4.0.0", @@ -3812,9 +3763,7 @@ }, "node_modules/argparse": { "version": "2.0.1", - "dev": true, - "license": "Python-2.0", - "peer": true + "license": "Python-2.0" }, "node_modules/array-buffer-byte-length": { "version": "1.0.0", @@ -4405,31 +4354,6 @@ "node": ">=8" } }, - "node_modules/cacheable-lookup": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-7.0.0.tgz", - "integrity": "sha512-+qJyx4xiKra8mZrcwhjMRMUhD5NR1R8esPkzIYxX96JiecFoxAXFuz/GpR3+ev4PE1WamHip78wV0vcmPQtp8w==", - "engines": { - "node": ">=14.16" - } - }, - "node_modules/cacheable-request": { - "version": "10.2.14", - "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-10.2.14.tgz", - "integrity": "sha512-zkDT5WAF4hSSoUgyfg5tFIxz8XQK+25W/TLVojJTMKBaxevLBBtLxgqguAuVQB8PVW79FVjHcU+GJ9tVbDZ9mQ==", - "dependencies": { - "@types/http-cache-semantics": "^4.0.2", - "get-stream": "^6.0.1", - "http-cache-semantics": "^4.1.1", - "keyv": "^4.5.3", - "mimic-response": "^4.0.0", - "normalize-url": "^8.0.0", - "responselike": "^3.0.0" - }, - "engines": { - "node": ">=14.16" - } - }, "node_modules/call-bind": { "version": "1.0.2", "license": "MIT", @@ -4644,15 +4568,6 @@ "version": "0.0.1", "license": "MIT" }, - "node_modules/config-chain": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.13.tgz", - "integrity": "sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==", - "dependencies": { - "ini": "^1.3.4", - "proto-list": "~1.2.1" - } - }, "node_modules/console-browserify": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.2.0.tgz", @@ -4908,39 +4823,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/decompress-response": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", - "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", - "dependencies": { - "mimic-response": "^3.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/decompress-response/node_modules/mimic-response": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", - "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/deep-extend": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", - "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", - "engines": { - "node": ">=4.0.0" - } - }, "node_modules/deep-is": { "version": "0.1.4", "dev": true, @@ -4990,14 +4872,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/defer-to-connect": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", - "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==", - "engines": { - "node": ">=10" - } - }, "node_modules/define-data-property": { "version": "1.1.0", "license": "MIT", @@ -6391,14 +6265,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/form-data-encoder": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-2.1.4.tgz", - "integrity": "sha512-yDYSgNMraqvnxiEXO4hi88+YZxaHC6QKzb5N84iRCTDeRO7ZALpir/lVmf/uXUhnwUr2O4HU8s/n6x+yNjQkHw==", - "engines": { - "node": ">= 14.17" - } - }, "node_modules/forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", @@ -6871,30 +6737,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/got": { - "version": "12.6.1", - "resolved": "https://registry.npmjs.org/got/-/got-12.6.1.tgz", - "integrity": "sha512-mThBblvlAF1d4O5oqyvN+ZxLAYwIJK7bpMxgYqPD9okW0C3qm5FFn7k811QrcuEBwaogR3ngOFoCfs6mRv7teQ==", - "dependencies": { - "@sindresorhus/is": "^5.2.0", - "@szmarczak/http-timer": "^5.0.1", - "cacheable-lookup": "^7.0.0", - "cacheable-request": "^10.2.8", - "decompress-response": "^6.0.0", - "form-data-encoder": "^2.1.2", - "get-stream": "^6.0.1", - "http2-wrapper": "^2.1.10", - "lowercase-keys": "^3.0.0", - "p-cancelable": "^3.0.0", - "responselike": "^3.0.0" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sindresorhus/got?sponsor=1" - } - }, "node_modules/graceful-fs": { "version": "4.2.11", "license": "ISC" @@ -7050,11 +6892,6 @@ "dev": true, "license": "ISC" }, - "node_modules/http-cache-semantics": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", - "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==" - }, "node_modules/http-errors": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", @@ -7070,18 +6907,6 @@ "node": ">= 0.8" } }, - "node_modules/http2-wrapper": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-2.2.0.tgz", - "integrity": "sha512-kZB0wxMo0sh1PehyjJUWRFEd99KC5TLjZ2cULC4f9iqJBAmKQQXEICjxl5iPJRwP40dpeHFqqhm7tYCvODpqpQ==", - "dependencies": { - "quick-lru": "^5.1.1", - "resolve-alpn": "^1.2.0" - }, - "engines": { - "node": ">=10.19.0" - } - }, "node_modules/https-browserify": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", @@ -7176,11 +7001,6 @@ "version": "2.0.4", "license": "ISC" }, - "node_modules/ini": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", - "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" - }, "node_modules/inline-style-parser": { "version": "0.1.1", "license": "MIT" @@ -7807,9 +7627,7 @@ }, "node_modules/js-yaml": { "version": "4.1.0", - "dev": true, "license": "MIT", - "peer": true, "dependencies": { "argparse": "^2.0.1" }, @@ -7829,7 +7647,9 @@ }, "node_modules/json-buffer": { "version": "3.0.1", - "license": "MIT" + "dev": true, + "license": "MIT", + "peer": true }, "node_modules/json-parse-even-better-errors": { "version": "2.3.1", @@ -7884,7 +7704,9 @@ }, "node_modules/keyv": { "version": "4.5.3", + "dev": true, "license": "MIT", + "peer": true, "dependencies": { "json-buffer": "3.0.1" } @@ -7909,20 +7731,6 @@ "node": ">=6" } }, - "node_modules/latest-version": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-7.0.0.tgz", - "integrity": "sha512-KvNT4XqAMzdcL6ka6Tl3i2lYeFDgXNCuIX+xNx6ZMVR1dFq+idXd9FLKNMOIx0t9mJ9/HudyX4oZWXZQ0UJHeg==", - "dependencies": { - "package-json": "^8.1.0" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/levn": { "version": "0.4.1", "dev": true, @@ -8056,17 +7864,6 @@ "loose-envify": "cli.js" } }, - "node_modules/lowercase-keys": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-3.0.0.tgz", - "integrity": "sha512-ozCC6gdQ+glXOQsveKD0YsDy8DSQFjDTz4zyzEHNV5+JP5D62LmfDZ6o1cycFx9ouG940M5dE8C8CTewdj2YWQ==", - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/lru-cache": { "version": "5.1.1", "license": "ISC", @@ -8326,17 +8123,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/mimic-response": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-4.0.0.tgz", - "integrity": "sha512-e5ISH9xMYU0DzrT+jl8q2ze9D6eWBto+I8CNpe+VI+K2J/F/k3PdkdTdz4wvGVH4NTpo+NRYTVIuMQEMMcsLqg==", - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/minimalistic-assert": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", @@ -8592,17 +8378,6 @@ "node": ">=0.10.0" } }, - "node_modules/normalize-url": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-8.0.0.tgz", - "integrity": "sha512-uVFpKhj5MheNBJRTiMZ9pE/7hD1QTeEvugSJW/OmLzAp78PB5O6adfMNTvmfKhXBkvCzC+rqifWcVYpGFwTjnw==", - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/npm-normalize-package-bin": { "version": "1.0.1", "dev": true, @@ -8980,14 +8755,6 @@ "os-tmpdir": "^1.0.0" } }, - "node_modules/p-cancelable": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-3.0.0.tgz", - "integrity": "sha512-mlVgR3PGuzlo0MmTdk4cXqXWlwQDLnONTAg6sm62XkMJEiRxN3GL3SffkYvqwonbkJBcrI7Uvv5Zh9yjvn2iUw==", - "engines": { - "node": ">=12.20" - } - }, "node_modules/p-limit": { "version": "3.1.0", "license": "MIT", @@ -9014,23 +8781,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/package-json": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/package-json/-/package-json-8.1.1.tgz", - "integrity": "sha512-cbH9IAIJHNj9uXi196JVsRlt7cHKak6u/e6AkL/bkRelZ7rlL3X1YKxsZwa36xipOEKAsdtmaG6aAJoM1fx2zA==", - "dependencies": { - "got": "^12.1.0", - "registry-auth-token": "^5.0.1", - "registry-url": "^6.0.0", - "semver": "^7.3.7" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/pako": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", @@ -9443,11 +9193,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/proto-list": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz", - "integrity": "sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==" - }, "node_modules/proxy-addr": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", @@ -9527,17 +9272,6 @@ ], "license": "MIT" }, - "node_modules/quick-lru": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", - "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/randombytes": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", @@ -9577,28 +9311,6 @@ "node": ">= 0.8" } }, - "node_modules/rc": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", - "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", - "dependencies": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - }, - "bin": { - "rc": "cli.js" - } - }, - "node_modules/rc/node_modules/strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/react": { "version": "18.2.0", "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", @@ -9991,31 +9703,6 @@ "node": ">=4" } }, - "node_modules/registry-auth-token": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-5.0.2.tgz", - "integrity": "sha512-o/3ikDxtXaA59BmZuZrJZDJv8NMDGSj+6j6XaeBmHw8eY1i1qd9+6H+LjVvQXx3HN6aRCGa1cUdJ9RaJZUugnQ==", - "dependencies": { - "@pnpm/npm-conf": "^2.1.0" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/registry-url": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-6.0.1.tgz", - "integrity": "sha512-+crtS5QjFRqFCoQmvGduwYWEBng99ZvmFvF+cUJkGYF1L1BfU8C6Zp9T7f5vPAwyLkUExpvK+ANVZmGU49qi4Q==", - "dependencies": { - "rc": "1.2.8" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/regjsparser": { "version": "0.9.1", "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", @@ -10535,11 +10222,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/resolve-alpn": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz", - "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==" - }, "node_modules/resolve-from": { "version": "4.0.0", "license": "MIT", @@ -10547,20 +10229,6 @@ "node": ">=4" } }, - "node_modules/responselike": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/responselike/-/responselike-3.0.0.tgz", - "integrity": "sha512-40yHxbNcl2+rzXvZuVkrYohathsSJlMTXKryG5y8uciHv1+xDLHQpgjG64JUO9nrEq2jGLH6IZ8BcZyw3wrweg==", - "dependencies": { - "lowercase-keys": "^3.0.0" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/restore-cursor": { "version": "3.1.0", "dev": true, @@ -10885,6 +10553,7 @@ }, "node_modules/semver": { "version": "7.5.4", + "dev": true, "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" @@ -10898,6 +10567,7 @@ }, "node_modules/semver/node_modules/lru-cache": { "version": "6.0.0", + "dev": true, "license": "ISC", "dependencies": { "yallist": "^4.0.0" @@ -10908,6 +10578,7 @@ }, "node_modules/semver/node_modules/yallist": { "version": "4.0.0", + "dev": true, "license": "ISC" }, "node_modules/send": { @@ -11759,7 +11430,6 @@ }, "node_modules/typescript": { "version": "4.9.5", - "dev": true, "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", diff --git a/package.json b/package.json index 2d7afa6..a4a5bd1 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "@headlessui/react": "^1.7.15", "@heroicons/react": "^2.0.18", "@vitejs/plugin-react": "^4.0.2", - "@yext/sites-components": "^1.0.0-rc.5", + "@yext/sites-components": "1.0.0-rc.4", "@yext/studio": "^0.26.0", "clsx": "^1.2.1", "cva": "npm:class-variance-authority@^0.7.0", @@ -40,7 +40,7 @@ "@types/react-dom": "^18.0.20", "@typescript-eslint/eslint-plugin": "^5.61.0", "@typescript-eslint/parser": "^5.61.0", - "@yext/pages": "^1.0.0-rc.5", + "@yext/pages": "1.0.0-rc.4", "autoprefixer": "^10.4.14", "eslint-config-prettier": "^8.8.0", "eslint-plugin-react": "^7.32.2", From 9062d6476e48100aad2092956ee0677e824cf584 Mon Sep 17 00:00:00 2001 From: DJ Corbett Date: Thu, 12 Oct 2023 13:44:40 -0400 Subject: [PATCH 04/14] adding link and arrow icon atoms --- src/components/atoms/ArrowIcon.tsx | 22 ++++++++++ src/components/atoms/Container.tsx | 2 +- src/components/atoms/Date.tsx | 3 +- src/components/atoms/Heading.tsx | 2 +- src/components/atoms/HorizontalDivider.tsx | 2 +- src/components/atoms/Image.tsx | 2 +- src/components/atoms/Link.tsx | 49 ++++++++++++++++++++-- src/components/atoms/PageWrapper.tsx | 2 +- src/components/atoms/Text.tsx | 2 +- src/sharedVariants.ts | 10 +++++ src/templates/blog.tsx | 7 +++- src/{utils/formatDate.ts => utils.ts} | 7 ++++ src/utils/cn.ts | 6 --- 13 files changed, 97 insertions(+), 19 deletions(-) create mode 100644 src/components/atoms/ArrowIcon.tsx rename src/{utils/formatDate.ts => utils.ts} (57%) delete mode 100644 src/utils/cn.ts diff --git a/src/components/atoms/ArrowIcon.tsx b/src/components/atoms/ArrowIcon.tsx new file mode 100644 index 0000000..c54badd --- /dev/null +++ b/src/components/atoms/ArrowIcon.tsx @@ -0,0 +1,22 @@ +import { ArrowLeftIcon } from "@heroicons/react/24/outline"; +import { Colors, Sizes, color, height } from "../../sharedVariants"; +import { cn } from "../../utils"; +import { cva } from "cva"; + +const arrowVariants = cva("", { + variants: { + height, + color, + }, +}); + +export interface ArrowIconProps { + color?: Colors; + height: Sizes; +} + +const ArrowIcon = ({ height, color }: ArrowIconProps) => { + return ; +}; + +export default ArrowIcon; diff --git a/src/components/atoms/Container.tsx b/src/components/atoms/Container.tsx index 4c47c30..bb40c27 100644 --- a/src/components/atoms/Container.tsx +++ b/src/components/atoms/Container.tsx @@ -1,5 +1,5 @@ import { cva } from "cva"; -import { cn } from "../../utils/cn"; +import { cn } from "../../utils"; import { paddingLeft, paddingBottom, diff --git a/src/components/atoms/Date.tsx b/src/components/atoms/Date.tsx index 27aec54..de0d2ad 100644 --- a/src/components/atoms/Date.tsx +++ b/src/components/atoms/Date.tsx @@ -1,6 +1,5 @@ -import { formatDate } from "../../utils/formatDate"; import { cva } from "cva"; -import { cn } from "../../utils/cn"; +import { cn, formatDate } from "../../utils"; import { Colors, TextSizes, diff --git a/src/components/atoms/Heading.tsx b/src/components/atoms/Heading.tsx index 97e7199..8e63c52 100644 --- a/src/components/atoms/Heading.tsx +++ b/src/components/atoms/Heading.tsx @@ -1,5 +1,5 @@ import { cva } from "cva"; -import { cn } from "../../utils/cn"; +import { cn } from "../../utils"; import { Colors, Weights, color, weight } from "../../sharedVariants"; const headingVariants = cva("tracking-tight", { diff --git a/src/components/atoms/HorizontalDivider.tsx b/src/components/atoms/HorizontalDivider.tsx index 251694c..01a6f2f 100644 --- a/src/components/atoms/HorizontalDivider.tsx +++ b/src/components/atoms/HorizontalDivider.tsx @@ -1,5 +1,5 @@ import { cva } from "cva"; -import { cn } from "../../utils/cn"; +import { cn } from "../../utils"; import { Colors, Sizes, backgroundColor, height } from "../../sharedVariants"; const horizontalDividerVariants = cva("w-0.5 rounded-full", { diff --git a/src/components/atoms/Image.tsx b/src/components/atoms/Image.tsx index 9000ec1..c6109b7 100644 --- a/src/components/atoms/Image.tsx +++ b/src/components/atoms/Image.tsx @@ -1,5 +1,5 @@ import { cva } from "cva"; -import { cn } from "../../utils/cn"; +import { cn } from "../../utils"; const imageVariants = cva( "h-full w-full rounded-md object-cover object-center", diff --git a/src/components/atoms/Link.tsx b/src/components/atoms/Link.tsx index 52a59e6..b3b8324 100644 --- a/src/components/atoms/Link.tsx +++ b/src/components/atoms/Link.tsx @@ -1,3 +1,27 @@ +import { Link as SitesLink } from "@yext/sites-components"; +import { cn } from "../../utils"; +import { cva } from "cva"; + +const linkVariants = cva("", { + variants: { + variant: { + default: "", + "button-dark": + "w-fit rounded-md bg-zinc-900 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-zinc-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-zinc-600", + "button-light": + "rounded-md w-fit bg-white shadow-md shadow-zinc-800/5 ring-1 ring-zinc-900/5 transition px-3 py-2 hover:ring-zinc-400 text-gray-600", + }, + shape: { + default: "", + round: "rounded-full p-3", + }, + }, + defaultVariants: { + variant: "default", + shape: "default", + }, +}); + export interface LinkProps { children: React.ReactNode; /** @@ -5,13 +29,32 @@ export interface LinkProps { * @tooltip Controls the URL the link should redirect to */ url: string; + /** + * @displayName Analytics Label + * @tooltip Controls the label the click is tagged with in analytics + */ + analyticsLabel?: "string"; + /** + * @displayName Variant + * @tooltip Controls the style of the link + */ + variant?: "default" | "button-dark" | "button-light"; + /** + * @displayName Shape + * @tooltip Controls the border radius of the link + */ + shape?: "default" | "round"; } -const Link = ({ children, url }: LinkProps) => { +const Link = ({ children, url, analyticsLabel, variant, shape }: LinkProps) => { return ( - + {children} - + ); }; diff --git a/src/components/atoms/PageWrapper.tsx b/src/components/atoms/PageWrapper.tsx index ba1cd90..e8cc1a6 100644 --- a/src/components/atoms/PageWrapper.tsx +++ b/src/components/atoms/PageWrapper.tsx @@ -1,5 +1,5 @@ import { cva } from "cva"; -import { cn } from "../../utils/cn"; +import { cn } from "../../utils"; import { Colors, backgroundColor } from "../../sharedVariants"; const pageWrapperVariants = cva("relative min-h-screen", { diff --git a/src/components/atoms/Text.tsx b/src/components/atoms/Text.tsx index c0df9b4..b362c8b 100644 --- a/src/components/atoms/Text.tsx +++ b/src/components/atoms/Text.tsx @@ -1,5 +1,5 @@ import { cva } from "cva"; -import { cn } from "../../utils/cn"; +import { cn } from "../../utils"; import { Colors, TextSizes, diff --git a/src/sharedVariants.ts b/src/sharedVariants.ts index ee3f01c..8d9e85b 100644 --- a/src/sharedVariants.ts +++ b/src/sharedVariants.ts @@ -15,6 +15,7 @@ export type Sizes = | "0px" | "4px" | "8px" + | "10px" | "16px" | "24px" | "32px" @@ -31,6 +32,7 @@ export const paddingRight = { "0px": "pr-0", "4px": "pr-1", "8px": "pr-2", + "10px": "pr-3", "16px": "pr-4", "24px": "pr-6", "32px": "pr-8", @@ -48,6 +50,7 @@ export const paddingLeft = { "0px": "pl-0", "4px": "pl-1", "8px": "pl-2", + "10px": "pl-3", "16px": "pl-4", "24px": "pl-6", "32px": "pl-8", @@ -65,6 +68,7 @@ export const paddingTop = { "0px": "pt-0", "4px": "pt-1", "8px": "pt-2", + "10px": "pt-3", "16px": "pt-4", "24px": "pt-6", "32px": "pt-8", @@ -82,6 +86,7 @@ export const paddingBottom = { "0px": "pb-0", "4px": "pb-1", "8px": "pb-2", + "10px": "pb-3", "16px": "pb-4", "24px": "pb-6", "32px": "pb-8", @@ -99,6 +104,7 @@ export const marginLeft = { "0px": "ml-0", "4px": "ml-1", "8px": "ml-2", + "10px": "ml-3", "16px": "ml-4", "24px": "ml-6", "32px": "ml-8", @@ -117,6 +123,7 @@ export const marginRight = { "0px": "mr-0", "4px": "mr-1", "8px": "mr-2", + "10px": "mr-3", "16px": "mr-4", "24px": "mr-6", "32px": "mr-8", @@ -135,6 +142,7 @@ export const marginTop = { "0px": "mt-0", "4px": "mt-1", "8px": "mt-2", + "10px": "mt-3", "16px": "mt-4", "24px": "mt-6", "32px": "mt-8", @@ -152,6 +160,7 @@ export const marginBottom = { "0px": "mb-0", "4px": "mb-1", "8px": "mb-2", + "10px": "mb-3", "16px": "mb-4", "24px": "mb-6", "32px": "mb-8", @@ -196,6 +205,7 @@ export const height = { "0px": "h-0", "4px": "h-1", "8px": "h-2", + "10px": "h-3", "16px": "h-4", "24px": "h-6", "32px": "h-8", diff --git a/src/templates/blog.tsx b/src/templates/blog.tsx index d21e112..c893316 100644 --- a/src/templates/blog.tsx +++ b/src/templates/blog.tsx @@ -18,7 +18,8 @@ import PageWrapper from "../components/atoms/PageWrapper"; import MainContentWrapper from "../components/atoms/MainContentWrapper"; import Header from "../components/molecules/Header"; import Footer from "../components/molecules/Footer"; -import BackButton from "../components/atoms/BackButton"; +import Link from "../components/atoms/Link"; +import ArrowIcon from "../components/atoms/ArrowIcon"; export const config: TemplateConfig = { stream: { @@ -69,7 +70,9 @@ export default function Blog({ document }: TemplateProps) { marginLeft="Auto" marginRight="Auto" > - + + + { if (!date) { return ""; diff --git a/src/utils/cn.ts b/src/utils/cn.ts deleted file mode 100644 index 365058c..0000000 --- a/src/utils/cn.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { type ClassValue, clsx } from "clsx"; -import { twMerge } from "tailwind-merge"; - -export function cn(...inputs: ClassValue[]) { - return twMerge(clsx(inputs)); -} From 3a779bf024d8e27a6e8d573ea53a01f2f35c4d20 Mon Sep 17 00:00:00 2001 From: DJ Corbett Date: Thu, 12 Oct 2023 13:59:26 -0400 Subject: [PATCH 05/14] adding analytics labels to molecule links --- src/components/atoms/Link.tsx | 4 +- src/components/molecules/FeaturedBlog.tsx | 2 +- src/components/molecules/Footer.tsx | 12 ++++-- src/components/molecules/Header.tsx | 45 +++++++++++++++-------- src/templates/blog.tsx | 7 +++- 5 files changed, 46 insertions(+), 24 deletions(-) diff --git a/src/components/atoms/Link.tsx b/src/components/atoms/Link.tsx index b3b8324..7457569 100644 --- a/src/components/atoms/Link.tsx +++ b/src/components/atoms/Link.tsx @@ -33,7 +33,7 @@ export interface LinkProps { * @displayName Analytics Label * @tooltip Controls the label the click is tagged with in analytics */ - analyticsLabel?: "string"; + analyticsLabel?: string; /** * @displayName Variant * @tooltip Controls the style of the link @@ -51,7 +51,7 @@ const Link = ({ children, url, analyticsLabel, variant, shape }: LinkProps) => { {children} diff --git a/src/components/molecules/FeaturedBlog.tsx b/src/components/molecules/FeaturedBlog.tsx index 3e09f02..abe610c 100644 --- a/src/components/molecules/FeaturedBlog.tsx +++ b/src/components/molecules/FeaturedBlog.tsx @@ -96,7 +96,7 @@ const FeaturedBlog = ({ weight="Light" /> - + {navigation.main.map((item: { label: string; uRL: string }) => ( ))}
{navigation.social.map((item) => ( - {item.name} + ))}

diff --git a/src/components/molecules/Header.tsx b/src/components/molecules/Header.tsx index 268659f..f1ff685 100644 --- a/src/components/molecules/Header.tsx +++ b/src/components/molecules/Header.tsx @@ -1,6 +1,7 @@ import { useState } from "react"; import { Dialog } from "@headlessui/react"; import { Bars3Icon, XMarkIcon } from "@heroicons/react/24/outline"; +import { Link } from "@yext/sites-components"; export interface HeaderProps { /** @@ -31,33 +32,39 @@ export default function Header({ logo }: HeaderProps) { aria-label="Global" >

{navigation.map((item) => ( - + {item.label} - + ))}
diff --git a/src/templates/blog.tsx b/src/templates/blog.tsx index c893316..efa10fa 100644 --- a/src/templates/blog.tsx +++ b/src/templates/blog.tsx @@ -70,7 +70,12 @@ export default function Blog({ document }: TemplateProps) { marginLeft="Auto" marginRight="Auto" > - + From 1a6329bda598b1dff6731f30d7f637e27f876511 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 17 Oct 2023 20:24:01 +0000 Subject: [PATCH 06/14] Automated update to THIRD-PARTY-NOTICES from github action's 3rd party notices check --- THIRD-PARTY-NOTICES | 150 ++++++++++++++++++++++++++++++++++++++------ 1 file changed, 132 insertions(+), 18 deletions(-) diff --git a/THIRD-PARTY-NOTICES b/THIRD-PARTY-NOTICES index 44c0451..134b1ff 100644 --- a/THIRD-PARTY-NOTICES +++ b/THIRD-PARTY-NOTICES @@ -251,7 +251,7 @@ Apache License The following NPM packages may be included in this product: - @babel/code-frame@7.22.13 - - @babel/compat-data@7.22.20 + - @babel/compat-data@7.23.2 - @babel/core@7.22.20 - @babel/generator@7.22.15 - @babel/helper-annotate-as-pure@7.22.5 @@ -302,7 +302,7 @@ The following NPM packages may be included in this product: - @babel/plugin-syntax-typescript@7.22.5 - @babel/plugin-syntax-unicode-sets-regex@7.18.6 - @babel/plugin-transform-arrow-functions@7.22.5 - - @babel/plugin-transform-async-generator-functions@7.22.15 + - @babel/plugin-transform-async-generator-functions@7.23.2 - @babel/plugin-transform-async-to-generator@7.22.5 - @babel/plugin-transform-block-scoped-functions@7.22.5 - @babel/plugin-transform-block-scoping@7.23.0 @@ -356,10 +356,10 @@ The following NPM packages may be included in this product: - @babel/plugin-transform-unicode-property-regex@7.22.5 - @babel/plugin-transform-unicode-regex@7.22.5 - @babel/plugin-transform-unicode-sets-regex@7.22.5 - - @babel/preset-env@7.22.20 + - @babel/preset-env@7.23.2 - @babel/preset-react@7.22.15 - - @babel/preset-typescript@7.23.0 - - @babel/runtime@7.23.1 + - @babel/preset-typescript@7.23.2 + - @babel/runtime@7.23.2 - @babel/template@7.22.15 - @babel/traverse@7.22.20 - @babel/types@7.23.0 @@ -393,10 +393,10 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. The following NPM packages may be included in this product: - - @babel/helper-define-polyfill-provider@0.4.2 - - babel-plugin-polyfill-corejs2@0.4.5 - - babel-plugin-polyfill-corejs3@0.8.4 - - babel-plugin-polyfill-regenerator@0.5.2 + - @babel/helper-define-polyfill-provider@0.4.3 + - babel-plugin-polyfill-corejs2@0.4.6 + - babel-plugin-polyfill-corejs3@0.8.5 + - babel-plugin-polyfill-regenerator@0.5.3 These packages each contain the following license and notice below: @@ -2400,7 +2400,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI The following NPM package may be included in this product: - - @swc/helpers@0.5.2 + - @swc/helpers@0.5.3 This package contains the following license and notice below: @@ -2741,6 +2741,77 @@ SOFTWARE. ----------- +The following NPM package may be included in this product: + + - @yext/analytics@0.3.0 + +This package contains the following license and notice below: + +The Analytics files listed in this repository are licensed under the below license. All other features and products are subject to separate agreements +and certain functionality requires paid subscriptions to Yext products. + +BSD 3-Clause License + +Copyright (c) 2022, Yext +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +----------- + +The following NPM packages may be included in this product: + + - @yext/components-tsx-geo@1.0.3 + - @yext/components-tsx-maps@1.0.11 + +These packages each contain the following license and notice below: + +Copyright (c) 2022 Yext, Inc. + +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. + +----------- + The following NPM package may be included in this product: - @yext/pages@1.0.0-rc.4 @@ -2782,11 +2853,52 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ----------- +The following NPM package may be included in this product: + + - @yext/sites-components@1.0.0-rc.4 + +This package contains the following license and notice below: + +The files listed in this repository are licensed under the below license. All other features and products are subject to separate agreements +and certain functionality requires paid subscriptions to Yext products. + +BSD 3-Clause License + +Copyright (c) 2022, Yext +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +----------- + The following NPM packages may be included in this product: - - @yext/studio-plugin@0.25.0 - - @yext/studio-ui@0.25.0 - - @yext/studio@0.25.0 + - @yext/studio-plugin@0.26.1 + - @yext/studio-ui@0.26.1 + - @yext/studio@0.26.1 These packages each contain the following license and notice below: @@ -5520,11 +5632,12 @@ SOFTWARE. ----------- -The following NPM package may be included in this product: +The following NPM packages may be included in this product: + - cross-fetch@3.1.8 - cross-fetch@4.0.0 -This package contains the following license and notice below: +These packages each contain the following license and notice below: The MIT License (MIT) @@ -22859,7 +22972,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. The following NPM packages may be included in this product: - react-use-measure@2.1.1 - - zustand@4.4.2 + - zustand@4.4.3 These packages each contain the following license and notice below: @@ -25980,11 +26093,12 @@ PERFORMANCE OF THIS SOFTWARE. ----------- -The following NPM package may be included in this product: +The following NPM packages may be included in this product: + - typescript@4.9.5 - typescript@5.2.2 -This package contains the following license and notice below: +These packages each contain the following license and notice below: Apache License From 0b3ee5dfbaf3e2303060d16b318115fc9bbc676f Mon Sep 17 00:00:00 2001 From: DJ Corbett Date: Tue, 17 Oct 2023 16:28:45 -0400 Subject: [PATCH 07/14] updating footer font color --- src/components/molecules/Footer.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/molecules/Footer.tsx b/src/components/molecules/Footer.tsx index e755e9b..8f99a73 100644 --- a/src/components/molecules/Footer.tsx +++ b/src/components/molecules/Footer.tsx @@ -86,7 +86,7 @@ export default function Footer() {
{item.label} @@ -99,7 +99,7 @@ export default function Footer() { {item.name} @@ -107,7 +107,7 @@ export default function Footer() { ))}
-

+

© 2020 Your Company, Inc. All rights reserved.

From a13c3aac21c4ed0b0135a43d59d7b1c8e63aac16 Mon Sep 17 00:00:00 2001 From: DJ Corbett Date: Tue, 17 Oct 2023 16:55:58 -0400 Subject: [PATCH 08/14] fix blog links --- src/components/molecules/FeaturedBlog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/molecules/FeaturedBlog.tsx b/src/components/molecules/FeaturedBlog.tsx index abe610c..6403222 100644 --- a/src/components/molecules/FeaturedBlog.tsx +++ b/src/components/molecules/FeaturedBlog.tsx @@ -96,7 +96,7 @@ const FeaturedBlog = ({ weight="Light" /> - + Date: Tue, 17 Oct 2023 17:07:13 -0400 Subject: [PATCH 09/14] updating path fallback for home --- src/templates/home.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/templates/home.tsx b/src/templates/home.tsx index 3dbacc8..c246c64 100644 --- a/src/templates/home.tsx +++ b/src/templates/home.tsx @@ -25,7 +25,7 @@ export const config: TemplateConfig = { }, }; export const getPath: GetPath = ({ document }) => { - return document.slug ?? "index.html"; + return document.slug ?? document.entityId.toString(); }; export const getHeadConfig: GetHeadConfig< From 39c92c7cb227f8949e3b081db27c9436e4b0c488 Mon Sep 17 00:00:00 2001 From: DJ Corbett Date: Mon, 30 Oct 2023 14:27:27 -0400 Subject: [PATCH 10/14] upgrading studio to 0.27.0-alpha.1 --- package-lock.json | 656 ++++++++++++++++++++++++++++++++++++++++++---- package.json | 2 +- 2 files changed, 611 insertions(+), 47 deletions(-) diff --git a/package-lock.json b/package-lock.json index 867c007..3a5eeb9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "@heroicons/react": "^2.0.18", "@vitejs/plugin-react": "^4.0.2", "@yext/sites-components": "1.0.0-rc.4", - "@yext/studio": "^0.26.0", + "@yext/studio": "0.27.0-alpha.1", "clsx": "^1.2.1", "cva": "npm:class-variance-authority@^0.7.0", "react": "^18.0.2", @@ -1793,6 +1793,18 @@ "node": ">=6.9.0" } }, + "node_modules/@dependents/detective-less": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@dependents/detective-less/-/detective-less-4.1.0.tgz", + "integrity": "sha512-KrkT6qO5NxqNfy68sBl6CTSoJ4SNDIS5iQArkibhlbGU4LaDukZ3q2HIkh8aUKDio6o4itU4xDR7t82Y2eP1Bg==", + "dependencies": { + "gonzales-pe": "^4.3.0", + "node-source-walk": "^6.0.1" + }, + "engines": { + "node": ">=14" + } + }, "node_modules/@dhmk/utils": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/@dhmk/utils/-/utils-2.4.2.tgz", @@ -3132,9 +3144,9 @@ } }, "node_modules/@types/react-transition-group": { - "version": "4.4.7", - "resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.7.tgz", - "integrity": "sha512-ICCyBl5mvyqYp8Qeq9B5G/fyBSRC0zx3XM3sCC6KkcMsNeAHqXBKkmat4GqdJET5jtYUpZXrxI5flve5qhi2Eg==", + "version": "4.4.8", + "resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.8.tgz", + "integrity": "sha512-QmQ22q+Pb+HQSn04NL3HtrqHwYMf4h3QKArOy5F8U5nEVMaihBs3SR10WiOM1iwPz5jIo8x/u11al+iEGZZrvg==", "dependencies": { "@types/react": "*" } @@ -3153,9 +3165,9 @@ "license": "MIT" }, "node_modules/@types/warning": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/warning/-/warning-3.0.1.tgz", - "integrity": "sha512-ywJmriP+nvjBKNBEMaNZgj2irZHoxcKeYcyMLbqhYKbDVn8yCIULy2Ol/tvIb37O3IBeZj3RU4tXqQTtGwoAMg==" + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/warning/-/warning-3.0.2.tgz", + "integrity": "sha512-S/2+OjBIcBl8Kur23YLe0hG1e7J5m2bHfB4UuMNoLZjIFhQWhTf1FeS+WFoXHUC6QsCEfk4pftj4J1KIKC1glA==" }, "node_modules/@typescript-eslint/eslint-plugin": { "version": "5.62.0", @@ -3260,7 +3272,6 @@ }, "node_modules/@typescript-eslint/types": { "version": "5.62.0", - "dev": true, "license": "MIT", "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -3272,7 +3283,6 @@ }, "node_modules/@typescript-eslint/typescript-estree": { "version": "5.62.0", - "dev": true, "license": "BSD-2-Clause", "dependencies": { "@typescript-eslint/types": "5.62.0", @@ -3323,7 +3333,6 @@ }, "node_modules/@typescript-eslint/visitor-keys": { "version": "5.62.0", - "dev": true, "license": "MIT", "dependencies": { "@typescript-eslint/types": "5.62.0", @@ -3528,13 +3537,13 @@ } }, "node_modules/@yext/studio": { - "version": "0.26.1", - "resolved": "https://registry.npmjs.org/@yext/studio/-/studio-0.26.1.tgz", - "integrity": "sha512-GTeW4FzFUQgutpMRIAdZlfFgAWBKdALVrYfxnamMN6iXPYipv55+QQifKbUXtfV8x9+2M9suPONVtAAO7LtvVw==", + "version": "0.27.0-alpha.1", + "resolved": "https://registry.npmjs.org/@yext/studio/-/studio-0.27.0-alpha.1.tgz", + "integrity": "sha512-lYsmeEbEkvf+LGWbA1x3dMhGpKXSXAzCWvm30GIgiFXap1PlBYtf8bGCT0/KVTexyPb9fzEQYLnmBiUMbwaEQg==", "dependencies": { "@vitejs/plugin-react": "^4.0.4", - "@yext/studio-plugin": "0.26.1", - "@yext/studio-ui": "0.26.1", + "@yext/studio-plugin": "0.27.0-alpha.1", + "@yext/studio-ui": "0.27.0-alpha.1", "autoprefixer": "^10.4.14", "cac": "^6.7.14", "cross-env": "^7.0.3", @@ -3549,9 +3558,9 @@ } }, "node_modules/@yext/studio-plugin": { - "version": "0.26.1", - "resolved": "https://registry.npmjs.org/@yext/studio-plugin/-/studio-plugin-0.26.1.tgz", - "integrity": "sha512-eB3fy8Ka9RDt9DChEg40OxHguiPpZSW0sQUSuRV9Bp5y43mAPt+HHEqAkYOTKaLJ6tTpmVBhxMSDfFxT5i+ajQ==", + "version": "0.27.0-alpha.1", + "resolved": "https://registry.npmjs.org/@yext/studio-plugin/-/studio-plugin-0.27.0-alpha.1.tgz", + "integrity": "sha512-I8l7tlq8epkoq5gXRCUxz4qhXqlhi7XAcVlO42B3P2QEuuzNhUDSSvnLivC7QzmSNuvdPAEc1mAWAXOLGokhHQ==", "dependencies": { "@babel/parser": "^7.21.8", "@babel/preset-env": "^7.22.4", @@ -3562,6 +3571,8 @@ "chokidar": "^3.5.3", "colors": "^1.4.0", "cross-fetch": "^4.0.0", + "dependency-tree": "^10.0.9", + "filing-cabinet": "^4.1.6", "kill-port": "^2.0.1", "prettier": "2.8.3", "simple-git": "^3.16.0", @@ -3602,9 +3613,9 @@ } }, "node_modules/@yext/studio-ui": { - "version": "0.26.1", - "resolved": "https://registry.npmjs.org/@yext/studio-ui/-/studio-ui-0.26.1.tgz", - "integrity": "sha512-agXWRYHIPZ3SQ+0b5SN2x9RMESd0znnFqvjHV9CGU7qUdtRx0vRbampnqxENXNB0b6Lc/Xh4ZZkgEzS8GF41Cg==", + "version": "0.27.0-alpha.1", + "resolved": "https://registry.npmjs.org/@yext/studio-ui/-/studio-ui-0.27.0-alpha.1.tgz", + "integrity": "sha512-PKSEeBVCkxFGoH2rMkGUsUUIv9lQ1H0UHvPien+oekcXI+1BLTe89lWq4flAZzcBPXQa9hdX0GgN0mfXO0LLnQ==", "dependencies": { "@dhmk/zustand-lens": "^2.0.5", "@minoru/react-dnd-treeview": "^3.4.1", @@ -3756,6 +3767,11 @@ "node": ">= 8" } }, + "node_modules/app-module-path": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/app-module-path/-/app-module-path-2.2.0.tgz", + "integrity": "sha512-gkco+qxENJV+8vFcDiiFhuoSvRXb2a/QPqpSoWhVz829VNJfOTnELbBmPmNKFxf3xdNnw4DWCkzkDaavcX/1YQ==" + }, "node_modules/arg": { "version": "4.1.3", "dev": true, @@ -3810,7 +3826,6 @@ }, "node_modules/array-union": { "version": "2.1.0", - "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -3915,6 +3930,14 @@ "util": "^0.12.5" } }, + "node_modules/ast-module-types": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/ast-module-types/-/ast-module-types-5.0.0.tgz", + "integrity": "sha512-JvqziE0Wc0rXQfma0HZC/aY7URXHFuZV84fJRtP8u+lhp0JYCNd5wJzVXP45t0PH0Mej3ynlzvdyITYIu0G4LQ==", + "engines": { + "node": ">=14" + } + }, "node_modules/asynciterator.prototype": { "version": "1.0.0", "dev": true, @@ -4004,12 +4027,12 @@ } }, "node_modules/babel-plugin-polyfill-corejs3": { - "version": "0.8.5", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.5.tgz", - "integrity": "sha512-Q6CdATeAvbScWPNLB8lzSO7fgUVBkQt6zLgNlfyeCr/EQaEQR+bWiBYYPYAFyE528BMjRhL+1QBMOI4jc/c5TA==", + "version": "0.8.6", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.6.tgz", + "integrity": "sha512-leDIc4l4tUgU7str5BWLS2h8q2N4Nf6lGZP6UrNDxdtfF2g69eJ5L0H7S8A5Ln/arfFAfHor5InAdZuIOwZdgQ==", "dependencies": { "@babel/helper-define-polyfill-provider": "^0.4.3", - "core-js-compat": "^3.32.2" + "core-js-compat": "^3.33.1" }, "peerDependencies": { "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" @@ -4615,9 +4638,9 @@ "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" }, "node_modules/core-js-compat": { - "version": "3.33.0", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.33.0.tgz", - "integrity": "sha512-0w4LcLXsVEuNkIqwjjf9rjCoPhK8uqA4tMRh4Ge26vfLtUutshn+aRJU21I9LCJlh2QQHfisNToLjw1XEJLTWw==", + "version": "3.33.2", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.33.2.tgz", + "integrity": "sha512-axfo+wxFVxnqf8RvxTzoAlzW4gRoacrHeoFlc9n0x50+7BEyZL/Rt3hicaED1/CEd7I6tPCPVUYcJwCMO5XUYw==", "dependencies": { "browserslist": "^4.22.1" }, @@ -4918,6 +4941,43 @@ "node": ">= 0.8" } }, + "node_modules/dependency-tree": { + "version": "10.0.9", + "resolved": "https://registry.npmjs.org/dependency-tree/-/dependency-tree-10.0.9.tgz", + "integrity": "sha512-dwc59FRIsht+HfnTVM0BCjJaEWxdq2YAvEDy4/Hn6CwS3CBWMtFnL3aZGAkQn3XCYxk/YcTDE4jX2Q7bFTwCjA==", + "dependencies": { + "commander": "^10.0.1", + "filing-cabinet": "^4.1.6", + "precinct": "^11.0.5", + "typescript": "^5.0.4" + }, + "bin": { + "dependency-tree": "bin/cli.js" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/dependency-tree/node_modules/commander": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz", + "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==", + "engines": { + "node": ">=14" + } + }, + "node_modules/dependency-tree/node_modules/typescript": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", + "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, "node_modules/dequal": { "version": "2.0.3", "license": "MIT", @@ -4943,6 +5003,117 @@ "npm": "1.2.8000 || >= 1.4.16" } }, + "node_modules/detective-amd": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/detective-amd/-/detective-amd-5.0.2.tgz", + "integrity": "sha512-XFd/VEQ76HSpym80zxM68ieB77unNuoMwopU2TFT/ErUk5n4KvUTwW4beafAVUugrjV48l4BmmR0rh2MglBaiA==", + "dependencies": { + "ast-module-types": "^5.0.0", + "escodegen": "^2.0.0", + "get-amd-module-type": "^5.0.1", + "node-source-walk": "^6.0.1" + }, + "bin": { + "detective-amd": "bin/cli.js" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/detective-cjs": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/detective-cjs/-/detective-cjs-5.0.1.tgz", + "integrity": "sha512-6nTvAZtpomyz/2pmEmGX1sXNjaqgMplhQkskq2MLrar0ZAIkHMrDhLXkRiK2mvbu9wSWr0V5/IfiTrZqAQMrmQ==", + "dependencies": { + "ast-module-types": "^5.0.0", + "node-source-walk": "^6.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/detective-es6": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/detective-es6/-/detective-es6-4.0.1.tgz", + "integrity": "sha512-k3Z5tB4LQ8UVHkuMrFOlvb3GgFWdJ9NqAa2YLUU/jTaWJIm+JJnEh4PsMc+6dfT223Y8ACKOaC0qcj7diIhBKw==", + "dependencies": { + "node-source-walk": "^6.0.1" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/detective-postcss": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/detective-postcss/-/detective-postcss-6.1.3.tgz", + "integrity": "sha512-7BRVvE5pPEvk2ukUWNQ+H2XOq43xENWbH0LcdCE14mwgTBEAMoAx+Fc1rdp76SmyZ4Sp48HlV7VedUnP6GA1Tw==", + "dependencies": { + "is-url": "^1.2.4", + "postcss": "^8.4.23", + "postcss-values-parser": "^6.0.2" + }, + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/detective-sass": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/detective-sass/-/detective-sass-5.0.3.tgz", + "integrity": "sha512-YsYT2WuA8YIafp2RVF5CEfGhhyIVdPzlwQgxSjK+TUm3JoHP+Tcorbk3SfG0cNZ7D7+cYWa0ZBcvOaR0O8+LlA==", + "dependencies": { + "gonzales-pe": "^4.3.0", + "node-source-walk": "^6.0.1" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/detective-scss": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/detective-scss/-/detective-scss-4.0.3.tgz", + "integrity": "sha512-VYI6cHcD0fLokwqqPFFtDQhhSnlFWvU614J42eY6G0s8c+MBhi9QAWycLwIOGxlmD8I/XvGSOUV1kIDhJ70ZPg==", + "dependencies": { + "gonzales-pe": "^4.3.0", + "node-source-walk": "^6.0.1" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/detective-stylus": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/detective-stylus/-/detective-stylus-4.0.0.tgz", + "integrity": "sha512-TfPotjhszKLgFBzBhTOxNHDsutIxx9GTWjrL5Wh7Qx/ydxKhwUrlSFeLIn+ZaHPF+h0siVBkAQSuy6CADyTxgQ==", + "engines": { + "node": ">=14" + } + }, + "node_modules/detective-typescript": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/detective-typescript/-/detective-typescript-11.1.0.tgz", + "integrity": "sha512-Mq8egjnW2NSCkzEb/Az15/JnBI/Ryyl6Po0Y+0mABTFvOS6DAyUGRZqz1nyhu4QJmWWe0zaGs/ITIBeWkvCkGw==", + "dependencies": { + "@typescript-eslint/typescript-estree": "^5.59.5", + "ast-module-types": "^5.0.0", + "node-source-walk": "^6.0.1", + "typescript": "^5.0.4" + }, + "engines": { + "node": "^14.14.0 || >=16.0.0" + } + }, + "node_modules/detective-typescript/node_modules/typescript": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", + "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, "node_modules/dezalgo": { "version": "1.0.4", "dev": true, @@ -4980,7 +5151,6 @@ }, "node_modules/dir-glob": { "version": "3.0.1", - "dev": true, "license": "MIT", "dependencies": { "path-type": "^4.0.0" @@ -5107,6 +5277,18 @@ "node": ">=0.10.0" } }, + "node_modules/enhanced-resolve": { + "version": "5.15.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz", + "integrity": "sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==", + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, "node_modules/enquirer": { "version": "2.4.1", "dev": true, @@ -5600,6 +5782,26 @@ "node": ">=0.8.0" } }, + "node_modules/escodegen": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", + "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=6.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, "node_modules/eslint": { "version": "8.49.0", "dev": true, @@ -5751,7 +5953,6 @@ }, "node_modules/eslint-visitor-keys": { "version": "3.4.3", - "dev": true, "license": "Apache-2.0", "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -5930,6 +6131,18 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/esquery": { "version": "1.5.0", "dev": true, @@ -5955,7 +6168,6 @@ }, "node_modules/estraverse": { "version": "5.3.0", - "dev": true, "license": "BSD-2-Clause", "engines": { "node": ">=4.0" @@ -6164,6 +6376,51 @@ "node": "^10.12.0 || >=12.0.0" } }, + "node_modules/filing-cabinet": { + "version": "4.1.6", + "resolved": "https://registry.npmjs.org/filing-cabinet/-/filing-cabinet-4.1.6.tgz", + "integrity": "sha512-C+HZbuQTER36sKzGtUhrAPAoK6+/PrrUhYDBQEh3kBRdsyEhkLbp1ML8S0+6e6gCUrUlid+XmubxJrhvL2g/Zw==", + "dependencies": { + "app-module-path": "^2.2.0", + "commander": "^10.0.1", + "enhanced-resolve": "^5.14.1", + "is-relative-path": "^1.0.2", + "module-definition": "^5.0.1", + "module-lookup-amd": "^8.0.5", + "resolve": "^1.22.3", + "resolve-dependency-path": "^3.0.2", + "sass-lookup": "^5.0.1", + "stylus-lookup": "^5.0.1", + "tsconfig-paths": "^4.2.0", + "typescript": "^5.0.4" + }, + "bin": { + "filing-cabinet": "bin/cli.js" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/filing-cabinet/node_modules/commander": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz", + "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==", + "engines": { + "node": ">=14" + } + }, + "node_modules/filing-cabinet/node_modules/typescript": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", + "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, "node_modules/fill-range": { "version": "7.0.1", "license": "MIT", @@ -6579,6 +6836,18 @@ "node": ">=6.9.0" } }, + "node_modules/get-amd-module-type": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/get-amd-module-type/-/get-amd-module-type-5.0.1.tgz", + "integrity": "sha512-jb65zDeHyDjFR1loOVk0HQGM5WNwoGB8aLWy3LKCieMKol0/ProHkhO2X1JxojuN10vbz1qNn09MJ7tNp7qMzw==", + "dependencies": { + "ast-module-types": "^5.0.0", + "node-source-walk": "^6.0.1" + }, + "engines": { + "node": ">=14" + } + }, "node_modules/get-intrinsic": { "version": "1.2.1", "license": "MIT", @@ -6592,6 +6861,11 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/get-own-enumerable-property-symbols": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz", + "integrity": "sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g==" + }, "node_modules/get-port": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/get-port/-/get-port-7.0.0.tgz", @@ -6710,7 +6984,6 @@ }, "node_modules/globby": { "version": "11.1.0", - "dev": true, "license": "MIT", "dependencies": { "array-union": "^2.1.0", @@ -6727,6 +7000,20 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/gonzales-pe": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/gonzales-pe/-/gonzales-pe-4.3.0.tgz", + "integrity": "sha512-otgSPpUmdWJ43VXyiNgEYE4luzHCL2pz4wQ0OnDluC6Eg4Ko3Vexy/SrSynglw/eR+OhkzmqFCZa/OFa/RgAOQ==", + "dependencies": { + "minimist": "^1.2.5" + }, + "bin": { + "gonzales": "bin/gonzales.js" + }, + "engines": { + "node": ">=0.6.0" + } + }, "node_modules/gopd": { "version": "1.0.1", "license": "MIT", @@ -6951,7 +7238,6 @@ }, "node_modules/ignore": { "version": "5.2.4", - "dev": true, "license": "MIT", "engines": { "node": ">= 4" @@ -7396,6 +7682,14 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", + "integrity": "sha512-l4RyHgRqGN4Y3+9JHVrNqO+tN0rV5My76uW5/nuO4K1b6vw5G8d/cmFjP9tRfEsdhZNt0IFdZuK/c2Vr4Nb+Qg==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/is-path-inside": { "version": "3.0.3", "dev": true, @@ -7430,6 +7724,19 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-regexp": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz", + "integrity": "sha512-7zjFAPO4/gwyQAAgRRmqeEeyIICSdmCqa3tsVHMdBzaXXRiqopZL4Cyghg/XulGWrtABTpbnYYzzIRffLkP4oA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-relative-path": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-relative-path/-/is-relative-path-1.0.2.tgz", + "integrity": "sha512-i1h+y50g+0hRbBD+dbnInl3JlJ702aar58snAeX+MxBAPvzXGej7sYoPMhlnykabt0ZzCJNBEyzMlekuQZN7fA==" + }, "node_modules/is-set": { "version": "2.0.2", "dev": true, @@ -7512,6 +7819,22 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/is-url": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/is-url/-/is-url-1.2.4.tgz", + "integrity": "sha512-ITvGim8FhRiYe4IQ5uHSkj7pVaPDrCTkNd3yq3cV7iZAcJdHTUMPMEHcqSOy9xZ9qFenQCvi+2wjH9a1nXqHww==" + }, + "node_modules/is-url-superb": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-url-superb/-/is-url-superb-4.0.0.tgz", + "integrity": "sha512-GI+WjezhPPcbM+tqE9LnmsY5qqjwHzTvjJ36wxYX5ujNXefSUJ/T17r5bqDV8yLhcgB59KTPNOc9O9cmHTPWsA==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-weakmap": { "version": "2.0.1", "dev": true, @@ -8169,6 +8492,21 @@ "mkdirp": "bin/cmd.js" } }, + "node_modules/module-definition": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/module-definition/-/module-definition-5.0.1.tgz", + "integrity": "sha512-kvw3B4G19IXk+BOXnYq/D/VeO9qfHaapMeuS7w7sNUqmGaA6hywdFHMi+VWeR9wUScXM7XjoryTffCZ5B0/8IA==", + "dependencies": { + "ast-module-types": "^5.0.0", + "node-source-walk": "^6.0.1" + }, + "bin": { + "module-definition": "bin/cli.js" + }, + "engines": { + "node": ">=14" + } + }, "node_modules/module-from-string": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/module-from-string/-/module-from-string-3.3.0.tgz", @@ -8181,6 +8519,50 @@ "node": ">=12.20.0" } }, + "node_modules/module-lookup-amd": { + "version": "8.0.5", + "resolved": "https://registry.npmjs.org/module-lookup-amd/-/module-lookup-amd-8.0.5.tgz", + "integrity": "sha512-vc3rYLjDo5Frjox8NZpiyLXsNWJ5BWshztc/5KSOMzpg9k5cHH652YsJ7VKKmtM4SvaxuE9RkrYGhiSjH3Ehow==", + "dependencies": { + "commander": "^10.0.1", + "glob": "^7.2.3", + "requirejs": "^2.3.6", + "requirejs-config-file": "^4.0.0" + }, + "bin": { + "lookup-amd": "bin/cli.js" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/module-lookup-amd/node_modules/commander": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz", + "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==", + "engines": { + "node": ">=14" + } + }, + "node_modules/module-lookup-amd/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/mri": { "version": "1.2.0", "license": "MIT", @@ -8268,6 +8650,17 @@ "version": "2.0.13", "license": "MIT" }, + "node_modules/node-source-walk": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/node-source-walk/-/node-source-walk-6.0.2.tgz", + "integrity": "sha512-jn9vOIK/nfqoFCcpK89/VCVaLg1IHE6UVfDOzvqmANaJ/rWCTEdH8RZ1V278nv2jr36BJdyQXIAavBLXpzdlag==", + "dependencies": { + "@babel/parser": "^7.21.8" + }, + "engines": { + "node": ">=14" + } + }, "node_modules/node-stdlib-browser": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/node-stdlib-browser/-/node-stdlib-browser-1.2.0.tgz", @@ -9109,6 +9502,60 @@ "version": "4.2.0", "license": "MIT" }, + "node_modules/postcss-values-parser": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/postcss-values-parser/-/postcss-values-parser-6.0.2.tgz", + "integrity": "sha512-YLJpK0N1brcNJrs9WatuJFtHaV9q5aAOj+S4DI5S7jgHlRfm0PIbDCAFRYMQD5SHq7Fy6xsDhyutgS0QOAs0qw==", + "dependencies": { + "color-name": "^1.1.4", + "is-url-superb": "^4.0.0", + "quote-unquote": "^1.0.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "postcss": "^8.2.9" + } + }, + "node_modules/postcss-values-parser/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==" + }, + "node_modules/precinct": { + "version": "11.0.5", + "resolved": "https://registry.npmjs.org/precinct/-/precinct-11.0.5.tgz", + "integrity": "sha512-oHSWLC8cL/0znFhvln26D14KfCQFFn4KOLSw6hmLhd+LQ2SKt9Ljm89but76Pc7flM9Ty1TnXyrA2u16MfRV3w==", + "dependencies": { + "@dependents/detective-less": "^4.1.0", + "commander": "^10.0.1", + "detective-amd": "^5.0.2", + "detective-cjs": "^5.0.1", + "detective-es6": "^4.0.1", + "detective-postcss": "^6.1.3", + "detective-sass": "^5.0.3", + "detective-scss": "^4.0.3", + "detective-stylus": "^4.0.0", + "detective-typescript": "^11.1.0", + "module-definition": "^5.0.1", + "node-source-walk": "^6.0.2" + }, + "bin": { + "precinct": "bin/cli.js" + }, + "engines": { + "node": "^14.14.0 || >=16.0.0" + } + }, + "node_modules/precinct/node_modules/commander": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz", + "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==", + "engines": { + "node": ">=14" + } + }, "node_modules/prelude-ls": { "version": "1.2.1", "dev": true, @@ -9272,6 +9719,11 @@ ], "license": "MIT" }, + "node_modules/quote-unquote": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/quote-unquote/-/quote-unquote-1.0.0.tgz", + "integrity": "sha512-twwRO/ilhlG/FIgYeKGFqyHhoEhqgnKVkcmqMKi2r524gz3ZbDTcyFt38E9xjJI2vT+KbRNHVbnJ/e0I25Azwg==" + }, "node_modules/randombytes": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", @@ -9481,9 +9933,9 @@ } }, "node_modules/react-tooltip": { - "version": "5.21.5", - "resolved": "https://registry.npmjs.org/react-tooltip/-/react-tooltip-5.21.5.tgz", - "integrity": "sha512-ey70qf6pBGi4U6xpyNlZAHobAhlo2dfxmImR2Bzd/DbLTsAYWz3TEaK+RMFuUZMq6hSPRbUHQSkP2rHBq4uFVg==", + "version": "5.21.6", + "resolved": "https://registry.npmjs.org/react-tooltip/-/react-tooltip-5.21.6.tgz", + "integrity": "sha512-WbND5ee8Kr5HaSuDDiAmSyRp5jH77PSk8M0CUzmVfD+1WST8XOm1StJndK/wOQIP5GPvDVPy96ylLxY/V+VpqA==", "dependencies": { "@floating-ui/dom": "^1.0.0", "classnames": "^2.3.0" @@ -10207,6 +10659,30 @@ "@types/unist": "^2" } }, + "node_modules/requirejs": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/requirejs/-/requirejs-2.3.6.tgz", + "integrity": "sha512-ipEzlWQe6RK3jkzikgCupiTbTvm4S0/CAU5GlgptkN5SO6F3u0UD0K18wy6ErDqiCyP4J4YYe1HuAShvsxePLg==", + "bin": { + "r_js": "bin/r.js", + "r.js": "bin/r.js" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/requirejs-config-file": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/requirejs-config-file/-/requirejs-config-file-4.0.0.tgz", + "integrity": "sha512-jnIre8cbWOyvr8a5F2KuqBnY+SDA4NXr/hzEZJG79Mxm2WiFQz2dzhC8ibtPJS7zkmBEl1mxSwp5HhC1W4qpxw==", + "dependencies": { + "esprima": "^4.0.0", + "stringify-object": "^3.2.1" + }, + "engines": { + "node": ">=10.13.0" + } + }, "node_modules/resolve": { "version": "1.22.6", "license": "MIT", @@ -10222,6 +10698,14 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/resolve-dependency-path": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/resolve-dependency-path/-/resolve-dependency-path-3.0.2.tgz", + "integrity": "sha512-Tz7zfjhLfsvR39ADOSk9us4421J/1ztVBo4rWUkF38hgHK5m0OCZ3NxFVpqHRkjctnwVa15igEUHFJp8MCS7vA==", + "engines": { + "node": ">=14" + } + }, "node_modules/resolve-from": { "version": "4.0.0", "license": "MIT", @@ -10543,6 +11027,28 @@ "version": "2.1.2", "license": "MIT" }, + "node_modules/sass-lookup": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/sass-lookup/-/sass-lookup-5.0.1.tgz", + "integrity": "sha512-t0X5PaizPc2H4+rCwszAqHZRtr4bugo4pgiCvrBFvIX0XFxnr29g77LJcpyj9A0DcKf7gXMLcgvRjsonYI6x4g==", + "dependencies": { + "commander": "^10.0.1" + }, + "bin": { + "sass-lookup": "bin/cli.js" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/sass-lookup/node_modules/commander": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz", + "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==", + "engines": { + "node": ">=14" + } + }, "node_modules/scheduler": { "version": "0.23.0", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz", @@ -10553,7 +11059,6 @@ }, "node_modules/semver": { "version": "7.5.4", - "dev": true, "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" @@ -10567,7 +11072,6 @@ }, "node_modules/semver/node_modules/lru-cache": { "version": "6.0.0", - "dev": true, "license": "ISC", "dependencies": { "yallist": "^4.0.0" @@ -10578,7 +11082,6 @@ }, "node_modules/semver/node_modules/yallist": { "version": "4.0.0", - "dev": true, "license": "ISC" }, "node_modules/send": { @@ -10737,7 +11240,6 @@ }, "node_modules/slash": { "version": "3.0.0", - "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -10964,6 +11466,19 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/stringify-object": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/stringify-object/-/stringify-object-3.3.0.tgz", + "integrity": "sha512-rHqiFh1elqCQ9WPLIC8I0Q/g/wj5J1eMkyoiD6eoQApWHP0FtlK7rqnhmabL5VUY9JQCcqwwvlOaSuutekgyrw==", + "dependencies": { + "get-own-enumerable-property-symbols": "^3.0.0", + "is-obj": "^1.0.1", + "is-regexp": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/strip-ansi": { "version": "6.0.1", "license": "MIT", @@ -10986,6 +11501,14 @@ "node": ">=8" } }, + "node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "engines": { + "node": ">=4" + } + }, "node_modules/strip-final-newline": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", @@ -11030,6 +11553,28 @@ "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.2.0.tgz", "integrity": "sha512-Orov6g6BB1sDfYgzWfTHDOxamtX1bE/zo104Dh9e6fqJ3PooipYyfJ0pUmrZO2wAvO8YbEyeFrkV91XTsGMSrw==" }, + "node_modules/stylus-lookup": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/stylus-lookup/-/stylus-lookup-5.0.1.tgz", + "integrity": "sha512-tLtJEd5AGvnVy4f9UHQMw4bkJJtaAcmo54N+ovQBjDY3DuWyK9Eltxzr5+KG0q4ew6v2EHyuWWNnHeiw/Eo7rQ==", + "dependencies": { + "commander": "^10.0.1" + }, + "bin": { + "stylus-lookup": "bin/cli.js" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/stylus-lookup/node_modules/commander": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz", + "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==", + "engines": { + "node": ">=14" + } + }, "node_modules/sucrase": { "version": "3.34.0", "license": "MIT", @@ -11168,6 +11713,14 @@ "node": ">=4" } }, + "node_modules/tapable": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", + "engines": { + "node": ">=6" + } + }, "node_modules/text-table": { "version": "0.2.0", "dev": true, @@ -11303,6 +11856,19 @@ "code-block-writer": "^12.0.0" } }, + "node_modules/tsconfig-paths": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-4.2.0.tgz", + "integrity": "sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==", + "dependencies": { + "json5": "^2.2.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/tslib": { "version": "2.6.2", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", @@ -11310,7 +11876,6 @@ }, "node_modules/tsutils": { "version": "3.21.0", - "dev": true, "license": "MIT", "dependencies": { "tslib": "^1.8.1" @@ -11324,7 +11889,6 @@ }, "node_modules/tsutils/node_modules/tslib": { "version": "1.14.1", - "dev": true, "license": "0BSD" }, "node_modules/tty-browserify": { @@ -12267,9 +12831,9 @@ } }, "node_modules/zustand": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.4.3.tgz", - "integrity": "sha512-oRy+X3ZazZvLfmv6viIaQmtLOMeij1noakIsK/Y47PWYhT8glfXzQ4j0YcP5i0P0qI1A4rIB//SGROGyZhx91A==", + "version": "4.4.4", + "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.4.4.tgz", + "integrity": "sha512-5UTUIAiHMNf5+mFp7/AnzJXS7+XxktULFN0+D1sCiZWyX7ZG+AQpqs2qpYrynRij4QvoDdCD+U+bmg/cG3Ucxw==", "dependencies": { "use-sync-external-store": "1.2.0" }, diff --git a/package.json b/package.json index a4a5bd1..2a06db7 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "@heroicons/react": "^2.0.18", "@vitejs/plugin-react": "^4.0.2", "@yext/sites-components": "1.0.0-rc.4", - "@yext/studio": "^0.26.0", + "@yext/studio": "0.27.0-alpha.1", "clsx": "^1.2.1", "cva": "npm:class-variance-authority@^0.7.0", "react": "^18.0.2", From c44e8fac1b20e4177525093637564d16263e681b Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 30 Oct 2023 18:28:22 +0000 Subject: [PATCH 11/14] Automated update to THIRD-PARTY-NOTICES from github action's 3rd party notices check --- THIRD-PARTY-NOTICES | 3504 +++++++++++++++++++++++++++++++++++-------- 1 file changed, 2888 insertions(+), 616 deletions(-) diff --git a/THIRD-PARTY-NOTICES b/THIRD-PARTY-NOTICES index 134b1ff..547e836 100644 --- a/THIRD-PARTY-NOTICES +++ b/THIRD-PARTY-NOTICES @@ -4,9 +4,11 @@ The following NPM packages may be included in this product: - ansi-regex@5.0.1 - ansi-styles@3.2.1 - ansi-styles@4.3.0 + - array-union@2.1.0 - callsites@3.1.0 - chalk@2.4.2 - globals@11.12.0 + - globby@11.1.0 - has-flag@3.0.0 - is-fullwidth-code-point@3.0.0 - is-wsl@2.2.0 @@ -18,6 +20,7 @@ The following NPM packages may be included in this product: - path-type@4.0.0 - resolve-from@4.0.0 - shebang-regex@3.0.0 + - slash@3.0.0 - string-width@4.2.3 - strip-ansi@6.0.1 - strip-final-newline@2.0.0 @@ -395,7 +398,7 @@ The following NPM packages may be included in this product: - @babel/helper-define-polyfill-provider@0.4.3 - babel-plugin-polyfill-corejs2@0.4.6 - - babel-plugin-polyfill-corejs3@0.8.5 + - babel-plugin-polyfill-corejs3@0.8.6 - babel-plugin-polyfill-regenerator@0.5.3 These packages each contain the following license and notice below: @@ -514,6 +517,46 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------- +The following NPM packages may be included in this product: + + - @dependents/detective-less@4.1.0 + - ast-module-types@5.0.0 + - detective-amd@5.0.2 + - detective-es6@4.0.1 + - detective-sass@5.0.3 + - detective-scss@4.0.3 + - detective-stylus@4.0.0 + - get-amd-module-type@5.0.1 + - module-definition@5.0.1 + - node-source-walk@6.0.2 + - precinct@11.0.5 + +These packages each contain the following license and notice below: + +MIT License + +Copyright (c) 2022 Dependents + +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. + +----------- + The following NPM package may be included in this product: - @dhmk/utils@2.4.2 @@ -2648,11 +2691,11 @@ The following NPM packages may be included in this product: - @types/hast@2.3.6 - @types/mdast@3.0.12 - @types/prop-types@15.7.6 - - @types/react-transition-group@4.4.7 + - @types/react-transition-group@4.4.8 - @types/react@18.2.22 - @types/scheduler@0.16.3 - @types/unist@2.0.8 - - @types/warning@3.0.1 + - @types/warning@3.0.2 These packages each contain the following license and notice below: @@ -2711,6 +2754,72 @@ MIT License ----------- +The following NPM packages may be included in this product: + + - @typescript-eslint/types@5.62.0 + - @typescript-eslint/visitor-keys@5.62.0 + +These packages each contain the following license and notice below: + +MIT License + +Copyright (c) 2019 typescript-eslint and other contributors + +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. + +----------- + +The following NPM package may be included in this product: + + - @typescript-eslint/typescript-estree@5.62.0 + +This package contains the following license and notice below: + +TypeScript ESTree + +Originally extracted from: + +TypeScript ESLint Parser +Copyright JS Foundation and other contributors, https://js.foundation + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +- Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +----------- + The following NPM package may be included in this product: - @vitejs/plugin-react@4.0.4 @@ -2896,9 +3005,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. The following NPM packages may be included in this product: - - @yext/studio-plugin@0.26.1 - - @yext/studio-ui@0.26.1 - - @yext/studio@0.26.1 + - @yext/studio-plugin@0.27.0-alpha.1 + - @yext/studio-ui@0.27.0-alpha.1 + - @yext/studio@0.27.0-alpha.1 These packages each contain the following license and notice below: @@ -2968,6 +3077,7 @@ The following NPM packages may be included in this product: - is-stream@2.0.1 - is-stream@3.0.0 - is-unicode-supported@1.3.0 + - is-url-superb@4.0.0 - locate-path@6.0.0 - log-symbols@5.1.0 - mimic-fn@4.0.0 @@ -3092,6 +3202,148 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ----------- +The following NPM package may be included in this product: + + - app-module-path@2.2.0 + +This package contains the following license and notice below: + +[![NPM](https://nodei.co/npm/app-module-path.png?downloads=true)](https://nodei.co/npm/app-module-path/) + +app-module-path +===================== + +This simple module enables you to add additional directories to the Node.js module search path (for top-level app modules only). This allows application-level modules to be required as if they were installed into the `node_modules` directory. + +## Installation + +`npm install app-module-path --save` + +## Usage +```javascript +// ***IMPORTANT**: The following line should be added to the very +// beginning of your main script! +require('app-module-path').addPath(baseDir); +``` + +__IMPORTANT:__ +The search path should be modified before any modules are loaded! + +__Example:__ + +In your `my-app/index.js` (or `my-app/server.js`) file: +```javascript +// Add the root project directory to the app module search path: +require('app-module-path').addPath(__dirname); +``` + +Given the following example directory structure: + +- **my-app/** + - **src/** - Source code and application modules directory + - **foo/** - A module directory + - index.js + - **bar/** - Another module directory + - index.js + - **node_modules/** - Installed modules + - **installed-baz/** - An installed module + - index.js + - index.js - Main script + +The following will work for any modules under the `src` directory: +```javascript +// All of the following lines will work in "src/foo/index.js" and "src/bar/index.js": +var foo = require('src/foo'); // Works +var bar = require('src/bar'); // Works +var baz = require('installed-baz'); // Works +``` + +Lastly, by design, installed modules (i.e. modules under the `node_modules` directory) will not be able to require application-level modules so the following will ___not___ work: + +```javascript +// All of the following lines will *not* work in "node_modules/installed-baz/index.js"! +var foo = require('src/foo'); // Fails +var bar = require('src/bar'); // Fails +``` + +## Alternate Usage (`app-module-path/register`) + +This module supports an alternate method of adding a path to the Node.js module search path that requires less code. Requiring or importing the `app-module-path/register` module will result in the directory of the calling module being added to the Node.js module search path as shown below: + +## Explicitly enabling a directory/package + +By default, `app-module-path` will not attempt to resolve app modules from a directory that is found to be within a `node_modules` directory. This behavior can be changed by explicitly enabling `app-module-path` to work for descendent modules of a specific directory. For example: + +```javascript +var packageDir = path.dirname(require.resolve('installed-module-allowed')); +require('../').enableForDir(packageDir); +``` + + +### ES5 + +```javascript +require('app-module-path/register'); + +// Is equivalent to: +require('app-module-path').addPath(__dirname); +``` + +### ES6 + +```javascript +import "app-module-path/register"; + +// Is equivalent to: +import { addPath } from 'app-module-path'; +addPath(__dirname); +``` + +## Alternative Usage (`app-module-path/cwd`) + +Additionally, requiring or importing `app-module-path/cwd` will result in the current working directory of the Node.js process being added to the module search path as shown below: + +### ES5 + +```javascript +require('app-module-path/cwd'); + +// Is equivalent to: +require('app-module-path').addPath(process.cwd()); +``` + +### ES6 + +```javascript +import "app-module-path/cwd"; + +// Is equivalent to: +import { addPath } from 'app-module-path'; +addPath(process.cwd()); +``` + +## Additional Notes + +* __Search path order:__ + * App module paths will be added to the end of the default module search path. That is, if a module with the same name exists in both a `node_modules` directory and an application module directory then the module in the `node_modules` directory will be loaded since it is found first. + *This behavior is new in v2.x. In v1.x, this search order was reversed* + +* __Node.js compatibility:__ + * This module depends on overriding/wrapping a built-in Node.js method, and it is possible (but unlikely) that this behavior could be broken in a future release of Node.js (at which point a workaround would need to be used) + * This module will _not_ change or break modules installed into the `node_modules` directory. +* __Recommendations:__ + * Since this module changes the Node.js convention of how non-relative modules are resolved, it is recommended (but not required) to put all app modules in a common directory below the application root (such as `my-app/src` or `my-app/app_modules`) and then to add the application root to the search path. The require calls would then be something like `require('src/foo')` or `require('app_modules/foo')`. The common prefix makes it more clear that the module can be found in the application's modules directory and not in the `node_modules` directory. + + +## Contribute +Pull requests, bug reports and feature requests welcome. + +## License + +BSD-2-Clause + +----------- + The following NPM package may be included in this product: - arg@5.0.2 @@ -5153,6 +5405,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. The following NPM packages may be included in this product: + - commander@10.0.1 - commander@11.0.0 - commander@4.1.1 @@ -5483,7 +5736,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. The following NPM package may be included in this product: - - core-js-compat@3.33.0 + - core-js-compat@3.33.2 This package contains the following license and notice below: @@ -6002,6 +6255,36 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------- +The following NPM package may be included in this product: + + - dependency-tree@10.0.9 + +This package contains the following license and notice below: + +MIT License + +Copyright (c) 2017 Dependents + +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. + +----------- + The following NPM packages may be included in this product: - dequal@2.0.3 @@ -6104,75 +6387,43 @@ THE SOFTWARE. The following NPM package may be included in this product: - - didyoumean@1.2.2 + - detective-cjs@5.0.1 This package contains the following license and notice below: -## License +MIT License -didYouMean.js copyright (c) 2013 Dave Porter. +Copyright (c) 2014-2019 node-detective-cjs contributors -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 -[here](http://www.apache.org/licenses/LICENSE-2.0). +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: -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. +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. ----------- The following NPM package may be included in this product: - - diff@5.1.0 + - detective-postcss@6.1.3 This package contains the following license and notice below: -Software License Agreement (BSD License) - -Copyright (c) 2009-2015, Kevin Decker - -All rights reserved. - -Redistribution and use of this software in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above - copyright notice, this list of conditions and the - following disclaimer. - -* Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the - following disclaimer in the documentation and/or other - materials provided with the distribution. - -* Neither the name of Kevin Decker nor the names of its - contributors may be used to endorse or promote products - derived from this software without specific prior - written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR -IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER -IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT -OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - ------------ - -The following NPM packages may be included in this product: - - - diffie-hellman@5.0.3 - - public-encrypt@4.0.3 - -These packages each contain the following license and notice below: +MIT License -Copyright (c) 2017 Calvin Metcalf +Copyright (c) 2018 Joscha Feth Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -6196,16 +6447,172 @@ SOFTWARE. The following NPM package may be included in this product: - - dlv@1.1.3 + - detective-typescript@11.1.0 This package contains the following license and notice below: -# `dlv(obj, keypath)` [![NPM](https://img.shields.io/npm/v/dlv.svg)](https://npmjs.com/package/dlv) [![Build](https://travis-ci.org/developit/dlv.svg?branch=master)](https://travis-ci.org/developit/dlv) +# detective-typescript -> Safely get a dot-notated path within a nested object, with ability to return a default if the full key path does not exist or the value is undefined +[![CI](https://img.shields.io/github/actions/workflow/status/dependents/detective-typescript/ci.yml?branch=main&label=CI&logo=github)](https://github.com/dependents/detective-typescript/actions/workflows/ci.yml?query=branch%3Amain) +[![npm version](https://img.shields.io/npm/v/detective-typescript?logo=npm&logoColor=fff)](https://www.npmjs.com/package/detective-typescript) +[![npm downloads](https://img.shields.io/npm/dm/detective-typescript)](https://www.npmjs.com/package/detective-typescript) +> Get the dependencies of TypeScript module -### Why? +```sh +npm install detective-typescript +``` + +## Usage + +```js +const fs = require('fs'); +const detective = require('detective-typescript'); + +const mySourceCode = fs.readFileSync('myfile.ts', 'utf8'); + +// Pass in a file's content or an AST +const dependencies = detective(mySourceCode); +``` + +## Options + +- `skipTypeImports` (default: `false`) Skips imports that only imports types +- `mixedImports`: (default: `false`) Include CJS imports in dependency list +- `skipAsyncImports`: (default: `false`) Whether or not to omit async imports (import('foo')) +- `jsx`: (default: `false`) Enable parsing of JSX +- `onFile`: A callback that will be called before the file is processed. Intended for use with [`dependency-tree`](https://github.com/dependents/node-dependency-tree). Passed an object argument with properties `options` (echoing any options passed in, e.g., by [`precinct`](https://github.com/dependents/node-precinct)), `src` (source code for file as string), `ast` (parsed AST object for the file source), and `walker` (a `Walker` instance from [`node-source-walk`](https://github.com/dependents/node-source-walk) configured for TypeScript to which you can pass the `ast` or `src`). +- `onAfterFile`: Similar to `onFile`, but the callback is also passed an object property `dependencies`, a string array with the extracted dependencies. + +## License + +MIT + +----------- + +The following NPM package may be included in this product: + + - didyoumean@1.2.2 + +This package contains the following license and notice below: + +## License + +didYouMean.js copyright (c) 2013 Dave Porter. + +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 +[here](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. + +----------- + +The following NPM package may be included in this product: + + - diff@5.1.0 + +This package contains the following license and notice below: + +Software License Agreement (BSD License) + +Copyright (c) 2009-2015, Kevin Decker + +All rights reserved. + +Redistribution and use of this software in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above + copyright notice, this list of conditions and the + following disclaimer. + +* Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the + following disclaimer in the documentation and/or other + materials provided with the distribution. + +* Neither the name of Kevin Decker nor the names of its + contributors may be used to endorse or promote products + derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR +CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER +IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +----------- + +The following NPM packages may be included in this product: + + - diffie-hellman@5.0.3 + - public-encrypt@4.0.3 + +These packages each contain the following license and notice below: + +Copyright (c) 2017 Calvin Metcalf + +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. + +----------- + +The following NPM packages may be included in this product: + + - dir-glob@3.0.1 + - shebang-command@2.0.0 + +These packages each contain the following license and notice below: + +MIT License + +Copyright (c) Kevin Mårtensson (github.com/kevva) + +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. + +----------- + +The following NPM package may be included in this product: + + - dlv@1.1.3 + +This package contains the following license and notice below: + +# `dlv(obj, keypath)` [![NPM](https://img.shields.io/npm/v/dlv.svg)](https://npmjs.com/package/dlv) [![Build](https://travis-ci.org/developit/dlv.svg?branch=master)](https://travis-ci.org/developit/dlv) + +> Safely get a dot-notated path within a nested object, with ability to return a default if the full key path does not exist or the value is undefined + + +### Why? Smallest possible implementation: only **130 bytes.** @@ -6791,6 +7198,35 @@ SOFTWARE. ----------- +The following NPM package may be included in this product: + + - enhanced-resolve@5.15.0 + +This package contains the following license and notice below: + +Copyright JS Foundation and other contributors + +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. + +----------- + The following NPM packages may be included in this product: - entities@2.2.0 @@ -6910,9 +7346,11 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. The following NPM packages may be included in this product: - escape-string-regexp@1.0.5 + - is-obj@1.0.1 - object-assign@4.1.1 - path-is-absolute@1.0.1 - pify@2.3.0 + - strip-bom@3.0.0 These packages each contain the following license and notice below: @@ -6942,83 +7380,11 @@ THE SOFTWARE. The following NPM package may be included in this product: - - esm-module-paths@1.1.1 - -This package contains the following license and notice below: - -# esm-module-paths - -ESM modules don't allow to use [`__dirname`](https://nodejs.org/docs/latest/api/modules.html#modules_dirname) and [`__filename`](https://nodejs.org/docs/latest/api/modules.html#modules_filename) do determine a `.js` file's location. -Instead, you need to copy/paste [multiple lines and expressions](https://stackoverflow.com/a/50052194) each time to achieve the same. - -This package makes this a bit easier. - -## Usage - -Imagine a file in `./your/path/index.js` - -```js -import { getModulePaths } from "esm-module-paths"; - -const { __dirname, __filename } = getModulePaths(); - -console.log(__dirname); // /your/path -console.log(__filename); // /your/path/index.js -``` - -For convenience reasons, the library also exports `__filename` and `__dirname` as functions, which can be used independently. - -```js -import { __filename, __dirname } from "esm-module-paths"; - -console.log(__dirname()); // /your/path -console.log(__filename()); // /your/path/index.js -``` - -Since `__dirname` and `__filename` being functions may be confusing to some, especially since those used to be variables, this package also exports aliased, more descriptive versions of each function. - -```js -import { getFileName, getDirName } from "esm-module-paths"; - -console.log(getDirName()); // /your/path -console.log(getFileName()); // /your/path/index.js -``` - -## Installation - -```sh -npm install esm-module-paths -``` - -or - -```sh -yarn add esm-module-paths -``` - ------------ - -The following NPM package may be included in this product: - - - estree-walker@2.0.2 + - escodegen@2.1.0 This package contains the following license and notice below: -Copyright (c) 2015-20 [these people](https://github.com/Rich-Harris/estree-walker/graphs/contributors) - -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. - ------------ - -The following NPM package may be included in this product: - - - esutils@2.0.3 - -This package contains the following license and notice below: +Copyright (C) 2012 Yusuke Suzuki (twitter: @Constellation) and other contributors. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -7042,19 +7408,838 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ----------- -The following NPM packages may be included in this product: +The following NPM package may be included in this product: - - etag@1.8.1 - - proxy-addr@2.0.7 + - eslint-visitor-keys@3.4.3 -These packages each contain the following license and notice below: +This package contains the following license and notice below: -(The MIT License) +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ -Copyright (c) 2014-2016 Douglas Christopher Wilson + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the + 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 contributors + + 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. + +----------- + +The following NPM package may be included in this product: + + - esm-module-paths@1.1.1 + +This package contains the following license and notice below: + +# esm-module-paths + +ESM modules don't allow to use [`__dirname`](https://nodejs.org/docs/latest/api/modules.html#modules_dirname) and [`__filename`](https://nodejs.org/docs/latest/api/modules.html#modules_filename) do determine a `.js` file's location. +Instead, you need to copy/paste [multiple lines and expressions](https://stackoverflow.com/a/50052194) each time to achieve the same. + +This package makes this a bit easier. + +## Usage + +Imagine a file in `./your/path/index.js` + +```js +import { getModulePaths } from "esm-module-paths"; + +const { __dirname, __filename } = getModulePaths(); + +console.log(__dirname); // /your/path +console.log(__filename); // /your/path/index.js +``` + +For convenience reasons, the library also exports `__filename` and `__dirname` as functions, which can be used independently. + +```js +import { __filename, __dirname } from "esm-module-paths"; + +console.log(__dirname()); // /your/path +console.log(__filename()); // /your/path/index.js +``` + +Since `__dirname` and `__filename` being functions may be confusing to some, especially since those used to be variables, this package also exports aliased, more descriptive versions of each function. + +```js +import { getFileName, getDirName } from "esm-module-paths"; + +console.log(getDirName()); // /your/path +console.log(getFileName()); // /your/path/index.js +``` + +## Installation + +```sh +npm install esm-module-paths +``` + +or + +```sh +yarn add esm-module-paths +``` + +----------- + +The following NPM package may be included in this product: + + - esprima@4.0.1 + +This package contains the following license and notice below: + +Copyright JS Foundation and other contributors, https://js.foundation/ + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +----------- + +The following NPM packages may be included in this product: + + - estraverse@5.3.0 + - esutils@2.0.3 + +These packages each contain the following license and notice below: + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +----------- + +The following NPM package may be included in this product: + + - estree-walker@2.0.2 + +This package contains the following license and notice below: + +Copyright (c) 2015-20 [these people](https://github.com/Rich-Harris/estree-walker/graphs/contributors) + +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. + +----------- + +The following NPM packages may be included in this product: + + - etag@1.8.1 + - proxy-addr@2.0.7 + +These packages each contain the following license and notice below: + +(The MIT License) + +Copyright (c) 2014-2016 Douglas Christopher Wilson + +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. + +----------- + +The following NPM package may be included in this product: + + - events@3.3.0 + +This package contains the following license and notice below: + +MIT + +Copyright Joyent, Inc. and other Node contributors. + +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. + +----------- + +The following NPM package may be included in this product: + + - exenv@1.2.2 + +This package contains the following license and notice below: + +BSD License + +For React software + +Copyright (c) 2013-2015, Facebook, Inc. +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + * Neither the name Facebook nor the names of its contributors may be used to + endorse or promote products derived from this software without specific + prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +----------- + +The following NPM package may be included in this product: + + - express@4.18.2 + +This package contains the following license and notice below: + +(The MIT License) + +Copyright (c) 2009-2014 TJ Holowaychuk +Copyright (c) 2013-2014 Roman Shtylman +Copyright (c) 2014-2015 Douglas Christopher Wilson + +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. + +----------- + +The following NPM package may be included in this product: + + - extend@3.0.2 + +This package contains the following license and notice below: + +The MIT License (MIT) + +Copyright (c) 2014 Stefan Thomas + +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. + +----------- + +The following NPM package may be included in this product: + + - fast-deep-equal@3.1.3 + +This package contains the following license and notice below: + +MIT License + +Copyright (c) 2017 Evgeny Poberezkin + +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. + +----------- + +The following NPM package may be included in this product: + + - fastq@1.15.0 + +This package contains the following license and notice below: + +Copyright (c) 2015-2020, Matteo Collina + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +----------- + +The following NPM packages may be included in this product: + + - filing-cabinet@4.1.6 + - module-lookup-amd@8.0.5 + - resolve-dependency-path@3.0.2 + - sass-lookup@5.0.1 + - stylus-lookup@5.0.1 + +These packages each contain the following license and notice below: + +MIT License + +Copyright (c) 2023 Dependents + +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. + +----------- + +The following NPM packages may be included in this product: + + - fill-range@7.0.1 + - is-number@7.0.0 + - micromatch@4.0.5 + +These packages each contain the following license and notice below: + +The MIT License (MIT) + +Copyright (c) 2014-present, Jon Schlinkert. + +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. + +----------- + +The following NPM package may be included in this product: + + - finalhandler@1.2.0 + +This package contains the following license and notice below: + +(The MIT License) + +Copyright (c) 2014-2022 Douglas Christopher Wilson + +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. + +----------- + +The following NPM package may be included in this product: + + - find-root@1.1.0 + +This package contains the following license and notice below: + +Copyright © 2017 jsdnxx + +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. + +----------- + +The following NPM package may be included in this product: + + - for-each@0.3.3 + +This package contains the following license and notice below: + +The MIT License (MIT) + +Copyright (c) 2012 Raynos. + +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. + +----------- + +The following NPM package may be included in this product: + + - foreground-child@3.1.1 + +This package contains the following license and notice below: + +The ISC License + +Copyright (c) 2015-2023 Isaac Z. Schlueter and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +----------- + +The following NPM package may be included in this product: + + - fraction.js@4.3.6 + +This package contains the following license and notice below: + +MIT License + +Copyright (c) 2023 Robert Eisele + +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. + +----------- + +The following NPM package may be included in this product: + + - framer-motion@6.5.1 + +This package contains the following license and notice below: + +The MIT License (MIT) + +Copyright (c) 2018 Framer B.V. + +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. + +----------- + +The following NPM package may be included in this product: + + - framesync@6.0.1 + +This package contains the following license and notice below: + +MIT License + +Copyright © 2019 Framer BV + +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. + +----------- + +The following NPM package may be included in this product: + + - fresh@0.5.2 + +This package contains the following license and notice below: + +(The MIT License) + +Copyright (c) 2012 TJ Holowaychuk +Copyright (c) 2016-2017 Douglas Christopher Wilson + +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 @@ -7076,148 +8261,155 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. The following NPM package may be included in this product: - - events@3.3.0 + - fs-extra@11.1.1 This package contains the following license and notice below: -MIT +(The MIT License) -Copyright Joyent, Inc. and other Node contributors. +Copyright (c) 2011-2017 JP Richardson -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: +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 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. +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. ----------- The following NPM package may be included in this product: - - exenv@1.2.2 + - fs.realpath@1.0.0 This package contains the following license and notice below: -BSD License +The ISC License -For React software +Copyright (c) Isaac Z. Schlueter and Contributors -Copyright (c) 2013-2015, Facebook, Inc. -All rights reserved. +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. +---- - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. +This library bundles a version of the `fs.realpath` and `fs.realpathSync` +methods from Node.js v0.10 under the terms of the Node.js MIT license. - * Neither the name Facebook nor the names of its contributors may be used to - endorse or promote products derived from this software without specific - prior written permission. +Node's license follows, also included at the header of `old.js` which contains +the licensed code: + + Copyright Joyent, Inc. and other Node contributors. + + 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. + +----------- + +The following NPM package may be included in this product: + + - function-bind@1.1.1 + +This package contains the following license and notice below: + +Copyright (c) 2013 Raynos. + +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: -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +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. ----------- The following NPM package may be included in this product: - - express@4.18.2 + - gensync@1.0.0-beta.2 This package contains the following license and notice below: -(The MIT License) - -Copyright (c) 2009-2014 TJ Holowaychuk -Copyright (c) 2013-2014 Roman Shtylman -Copyright (c) 2014-2015 Douglas Christopher Wilson +Copyright 2018 Logan Smyth -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: +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 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. +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. ----------- The following NPM package may be included in this product: - - extend@3.0.2 + - get-own-enumerable-property-symbols@3.0.2 This package contains the following license and notice below: -The MIT License (MIT) - -Copyright (c) 2014 Stefan Thomas - -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: +Copyright (c) 2019, Shahar Or -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +Permission to use, copy, modify, and/or distribute this software for any purpose +with or without fee is hereby granted, provided that the above copyright notice +and this permission notice appear in all copies. -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. +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS +OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER +TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF +THIS SOFTWARE. ----------- The following NPM package may be included in this product: - - fast-deep-equal@3.1.3 + - get-them-args@1.3.2 This package contains the following license and notice below: -MIT License +The MIT License (MIT) -Copyright (c) 2017 Evgeny Poberezkin +Copyright (c) Tiaan (tiaanduplessis.co.za) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -7226,26 +8418,28 @@ 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 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. +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. ----------- The following NPM package may be included in this product: - - fastq@1.15.0 + - glob-parent@5.1.2 This package contains the following license and notice below: -Copyright (c) 2015-2020, Matteo Collina +The ISC License + +Copyright (c) 2015, 2019 Elan Shanker Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above @@ -7256,515 +8450,904 @@ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +----------- + +The following NPM package may be included in this product: + + - glob-parent@6.0.2 + +This package contains the following license and notice below: + +The ISC License + +Copyright (c) 2015, 2019 Elan Shanker, 2021 Blaine Bublitz , Eric Schoffstall and other contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +----------- + +The following NPM package may be included in this product: + + - glob@10.3.5 + +This package contains the following license and notice below: + +The ISC License + +Copyright (c) 2009-2023 Isaac Z. Schlueter and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ----------- The following NPM packages may be included in this product: - - fill-range@7.0.1 - - is-number@7.0.0 - - micromatch@4.0.5 + - glob@7.1.6 + - glob@7.2.3 These packages each contain the following license and notice below: -The MIT License (MIT) +The ISC License -Copyright (c) 2014-present, Jon Schlinkert. +Copyright (c) Isaac Z. Schlueter and Contributors -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: +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. -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" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 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. +## Glob Logo + +Glob's logo created by Tanya Brassie , licensed +under a Creative Commons Attribution-ShareAlike 4.0 International License +https://creativecommons.org/licenses/by-sa/4.0/ ----------- The following NPM package may be included in this product: - - finalhandler@1.2.0 + - gonzales-pe@4.3.0 This package contains the following license and notice below: -(The MIT License) +# Gonzales PE @dev -Copyright (c) 2014-2022 Douglas Christopher Wilson +[![NPM version][npm-img]][npm] +[![Build Status][travis-img]][travis] +[![AppVeyor Build Status][appveyor-img]][appveyor] -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: +[npm-img]: https://img.shields.io/npm/v/gonzales-pe.svg +[npm]: https://www.npmjs.com/package/gonzales-pe +[travis-img]: https://travis-ci.org/tonyganch/gonzales-pe.svg +[travis]: https://travis-ci.org/tonyganch/gonzales-pe +[appveyor-img]: https://ci.appveyor.com/api/projects/status/m29jphtrqt398v2o/branch/dev?svg=true +[appveyor]: https://ci.appveyor.com/project/tonyganch/gonzales-pe/branch/dev -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +Gonzales PE is a CSS parser which plays nicely with preprocessors. +Currently those are supported: SCSS, Sass, LESS. +Try out Gonzales PE online: [Gonzales PE Playground](https://tonyganch.io/gonzales-pe/). -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. +## Install + +(1) To install command-line tool globally: + +```bash +npm install -g git://github.com/tonyganch/gonzales-pe.git#dev +``` + +(2) To install parser as a project dependency: + +```bash +npm install --save git://github.com/tonyganch/gonzales-pe.git#dev +``` + +(3) If for some reason you want to build files yourself: + +```bash +# Clone the repo. +git clone git@github.com:tonyganch/gonzales-pe.git +# Go to dev branch. +git checkout dev +# Install project dependencies. +npm install +# Install git hooks and build files. +npm run init +``` + +## API + +Basically there are a few things you can do: + +1. parse css string and get a parse tree in return; +2. modify tree nodes; +3. remove tree nodes; +4. add new nodes to the tree; +5. convert modified tree back to a string. + +The different type of tree nodes can be found in [docs/node-types.md](https://github.com/tonyganch/gonzales-pe/blob/dev/docs/node-types.md). + +In examples below I assume that `gonzales` is a parser module and `parseTree` +is some parsed css: + +```js +let gonzales = require('gonzales-pe'); +let parseTree = gonzales.parse(css); +``` + +### gonzales.createNode(options) + +##### Description + +Creates a new node. Useful when you need to add something to a tree. + +##### Parameters + + + + + + + + +
{Object}optionsOptions to pass to a `Node` constructor.
+ +##### Returns + + + + + + +
{Object}A new node.
+ +##### Examples + +```js +let css = 'a {color: tomato}'; +let parseTree = gonzales.parse(css); +let node = gonzales.createNode({ type: 'animal', content: 'panda' }); +parseTree.content.push(node); +``` + + +### gonzales.parse(css[, options]) + +##### Description + +Parses a css string. + +##### Parameters + + + + + + + + + + + + +
{string}cssA string to parse.
{Object=}optionsOptional. Additional options: +
    +
  • + {string} syntax — any of the following: css, + less, sass, scss. + Default one is css. +
  • +
  • + {string} context — root node's type. For a list of available + values see "Node types". Default + one is stylesheet. +
  • +
  • + {number} tabSize — size of a tab character in spaces. + Default one is 1. +
  • +
+
+ +##### Returns + + + + + + +
{Object}Parse tree.
------------ +##### Examples -The following NPM package may be included in this product: +```js +let css = 'a {color: tomato}'; +let parseTree = gonzales.parse(css); +``` - - find-root@1.1.0 +```js +let less = 'a {$color: tomato}'; +let parseTree = gonzales.parse(less, {syntax: 'less'}); +``` -This package contains the following license and notice below: +```js +let less = '$color: tomato'; +let parseTree = gonzales.parse(less, {syntax: 'less', rule: 'declaration'}); +``` -Copyright © 2017 jsdnxx +### parseTree.contains(type) -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: +##### Description -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +Checks whether there is a child node of given type. -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. +##### Parameters ------------ + + + + + + +
{string}type + Node type we're looking for. For a list of available values see + "Node types". +
-The following NPM package may be included in this product: +##### Returns - - for-each@0.3.3 + + + + + +
{boolean} + true if a tree contains a child node of a given type, + false otherwise. +
-This package contains the following license and notice below: +##### Examples -The MIT License (MIT) +```js +if (parseTree.contains('space')) { + doSomething(); +} +``` -Copyright (c) 2012 Raynos. +### parseTree.content -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: +##### Returns -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. + + + + + +
{string|Array}Node's content (child nodes or a string).
-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. +### parseTree.eachFor([type, ]callback) ------------ +##### Description -The following NPM package may be included in this product: +Calls a function for every child node in tree. If `type` parameter is passed, +calls a function only for child nodes of a given type. The main difference from +`parseTree.forEach()` is that this method loops through node list from the end +to beginning. - - foreground-child@3.1.1 +##### Parameters -This package contains the following license and notice below: + + + + + + + + + + + +
{string=}type + Optional. A node type by which to filter child nodes before applying + a callback function. For a list of available values see + "Node types". +
{Function}callback + Function to call for every child node. Accepts following parameters: +
    +
  • {Object} — a child node;
  • +
  • {number} — index of the child node in node list;
  • +
  • + {Object} — parent node (equals to parseTree). +
  • +
+
-The ISC License +##### Examples -Copyright (c) 2015-2023 Isaac Z. Schlueter and Contributors +```js +parseTree.eachFor(function(childNode) { + doSomething(childNode); +}); +``` -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +```js +// Remove all child spaces. +parseTree.eachFor('space', function(spaceNode, i) { + parseTree.removeChild(i); +}); +``` -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +### parseTree.end ------------ +##### Returns -The following NPM package may be included in this product: + + + + + +
{Object} + End position of the node. Contains following info: +
    +
  • + {number} line — last symbol's line number + (1-based index); +
  • +
  • + {number} column — last symbol's column number + (1-based index). +
  • +
+
- - fraction.js@4.3.6 +### parseTree.first([type]) -This package contains the following license and notice below: +##### Description -MIT License +Gets the first child node. If `type` parameter is passed, gets the first child +node of a given type. If no node has been found, returns `null`. -Copyright (c) 2023 Robert Eisele +##### Parameters -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: + + + + + + +
{string=}type + Optional. Node type to look for. For a list of available values see + "Node types". +
-The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +##### Returns -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. + + + + + +
{?Object}A node.
------------ +##### Examples -The following NPM package may be included in this product: +```js +let node = parseTree.first(); +node.content = 'panda'; +``` - - framer-motion@6.5.1 +```js +let node = parseTree.first('multilineComment'); +node.content = 'panda'; +``` -This package contains the following license and notice below: +### parseTree.forEach([type, ]callback) -The MIT License (MIT) +##### Description -Copyright (c) 2018 Framer B.V. +Calls a function for every child node in tree. If `type` parameter is passed, +calls a function only for child nodes of a given type. The main difference from +`parseTree.eachFor()` is that this method loops through node list from the +beginnig to end. -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: +##### Parameters -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. + + + + + + + + + + + +
{string=}type + Optional. A node type by which to filter child nodes before applying + a callback function. For a list of available values see + "Node types". +
{Function}callback + Function to call for every child node. Accepts following parameters: +
    +
  • {Object} — a child node;
  • +
  • {number} — index of the child node in node list;
  • +
  • + {Object} — parent node (equals to parseTree). +
  • +
+
-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. +##### Examples ------------ +```js +parseTree.forEach(function(childNode) { + doSomething(); +}); +``` -The following NPM package may be included in this product: +```js +parseTree.forEach('space', function(spaceNode) { + doSomething(); +}); +``` - - framesync@6.0.1 +### parseTree.get(index) -This package contains the following license and notice below: +##### Description -MIT License +Gets *nth* child of the `parseTree`. If no node has been found, returns `null`. -Copyright © 2019 Framer BV +##### Parameters -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: + + + + + + +
{number}indexIndex number of node which we're looking for.
-The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +##### Returns -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. + + + + + +
{?Object}A node.
------------ +##### Examples -The following NPM package may be included in this product: +```js +var node = parseTree.get(2); +doSomething(node); +``` - - fresh@0.5.2 +### parseTree.insert(index, node) -This package contains the following license and notice below: +##### Description -(The MIT License) +Inserts a node to a given position in `parseTree`. -Copyright (c) 2012 TJ Holowaychuk -Copyright (c) 2016-2017 Douglas Christopher Wilson +##### Parameters -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: + + + + + + + + + + + +
{number}indexIndex of position where to insert the node.
{Object}nodeA node to insert.
-The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +##### Examples -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. +```js +let node = gonzales.createNode({type: 'animal', content: 'panda'}); +parseTree.insert(2, node); +``` ------------ +### parseTree.is(type) -The following NPM package may be included in this product: +##### Description - - fs-extra@11.1.1 +Checks whether the node is of given type. -This package contains the following license and notice below: +##### Parameters -(The MIT License) + + + + + + +
{string}type + A node type against which to check type of parseTree. + For a list of available values see + "Node types". +
-Copyright (c) 2011-2017 JP Richardson +##### Returns -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: + + + + + +
{boolean} + true if types are equal, false otherwise. +
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +##### Examples -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. +```js +if (node.is('space')) { + node.content = ''; +} +``` ------------ +### parseTree.last(type) -The following NPM package may be included in this product: +Gets the last child node. If `type` parameter is passed, gets the last child +node of a given type. If no node has been found, returns `null`. - - fs.realpath@1.0.0 +##### Parameters -This package contains the following license and notice below: + + + + + + +
{string=}type + Optional. Node type to look for. For a list of available values see + "Node types". +
-The ISC License +##### Returns -Copyright (c) Isaac Z. Schlueter and Contributors + + + + + +
{?Object}A node.
-Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +##### Examples -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +```js +let node = parseTree.last(); +node.content = 'panda'; +``` ----- +```js +let node = parseTree.last('multilineComment'); +node.content = 'panda'; +``` -This library bundles a version of the `fs.realpath` and `fs.realpathSync` -methods from Node.js v0.10 under the terms of the Node.js MIT license. +### parseTree.length -Node's license follows, also included at the header of `old.js` which contains -the licensed code: +##### Returns - Copyright Joyent, Inc. and other Node contributors. + + + + + +
{number}Number of child nodes.
- 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: +### parseTree.removeChild(index) - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. +##### Description - 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. +Removes a child node at a given position. + +##### Parameters + + + + + + + +
{number}indexIndex of a child node we need to remove.
+ +##### Returns ------------ + + + + + +
{Object}Removed node.
+##### Examples -The following NPM package may be included in this product: +```js +// Swap nodes. +var node = parseTree.removeChild(1); +parseTree.insert(0, node); +``` - - function-bind@1.1.1 +### parseTree.start -This package contains the following license and notice below: +##### Returns -Copyright (c) 2013 Raynos. + + + + + +
{Object} + Start position of the node. Contains following info: +
    +
  • + {number} line — first symbol's line number + (1-based index); +
  • +
  • + {number} column — first symbol's column number + (1-based index). +
  • +
+
-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. +### parseTree.syntax -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. +##### Returns ------------ + + + + + +
{string}Syntax of original parsed string.
-The following NPM package may be included in this product: +### parseTree.toJson() - - gensync@1.0.0-beta.2 +##### Description -This package contains the following license and notice below: +Converts parse tree to JSON. Useful for printing. -Copyright 2018 Logan Smyth +##### Returns -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: + + + + + +
{Object}Parse tree in JSON
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +### parseTree.toString() -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. +##### Description ------------ +Converts parse tree back to string according to original syntax. -The following NPM package may be included in this product: +##### Returns - - get-them-args@1.3.2 + + + + + +
{string}A compiled string.
-This package contains the following license and notice below: +##### Examples -The MIT License (MIT) +```js +let css = parseTree.toString(); +``` -Copyright (c) Tiaan (tiaanduplessis.co.za) +### parseTree.traverse(callback) -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: +##### Description -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +Calls the function for every node in a tree including `parseTree` itself. -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. +##### Parameters ------------ + + + + + + +
{Function}callback + Function to apply to every node. Accepts following parameters: +
    +
  • {Object} — a node to which we apply callback;
  • +
  • {number} — node's index number inside its parent;
  • +
  • {Object} — a node's parent;
  • +
  • + {number} — node's nesting level relative to its parent. +
  • +
+
-The following NPM package may be included in this product: +##### Examples - - glob-parent@5.1.2 +```js +parseTree.traverse(function(node, index, parent) { + if (node.is('multilineComment')) { + parent.removeChild(index); + } else if (node.is('space')) { + node.content = ' '; + } +}); +``` -This package contains the following license and notice below: +### parseTree.traverseByType(type, callback) -The ISC License +##### Description -Copyright (c) 2015, 2019 Elan Shanker +This method should be called for a root node, because calling it for a child +will be more time consuming. +Calls the function for every node of a given type. This means not just child +nodes, but grandchilds and so on. -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +##### Parameters -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + + + + + + + + + + +
{string}type + Node type. For a list of available values please see + "Node types". +
{Function}callback + Function to apply to every node of a given type. + Accepts following parameters: +
    +
  • {Object} — a node to which we apply callback;
  • +
  • {number} — node's index number inside its parent;
  • +
  • {Object} — a node's parent.
  • +
+
------------ +##### Examples -The following NPM package may be included in this product: +```js +// Remove all comments. +parseTree.traverseByType('multilineComment', function(node, index, parent) { + parent.removeChild(index); +}); +``` - - glob-parent@6.0.2 +### parseTree.traverseByTypes(types, callback) -This package contains the following license and notice below: +##### Description -The ISC License +This method should be called for a root node, because calling it for a child +will be more time consuming. +Calls the function for every node of given types. This means not just child +nodes, but grandchilds and so on. -Copyright (c) 2015, 2019 Elan Shanker, 2021 Blaine Bublitz , Eric Schoffstall and other contributors +##### Parameters -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. + + + + + + + + + + + +
{Array.string}types + List of node types. For a list of available values please see + "Node types". +
{Function}callback + Function to apply to every node of given types. + Accepts following parameters: +
    +
  • {Object} — a node to which we apply callback;
  • +
  • {number} — node's index number inside its parent;
  • +
  • {Object} — a node's parent.
  • +
+
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +##### Examples ------------ +```js +// Remove all comments and spaces. +let types = ['multilineComment', 'space']; +parseTree.traverseByTypes(types, function(node, index, parent) { + parent.removeChild(index); +}); +``` -The following NPM package may be included in this product: +### parseTree.type - - glob@10.3.5 +##### Returns -This package contains the following license and notice below: + + + + + +
{string} + Node type. For a list of available values see + "Node types". +
-The ISC License -Copyright (c) 2009-2023 Isaac Z. Schlueter and Contributors +## Test -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. +To run tests: -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + npm test ------------ +This command will build library files from sources and run tests on all files +in syntax directories. -The following NPM package may be included in this product: +Every test has 3 files: source stylesheet, expected parse tree and expected +string compiled back from parse tree to css. - - glob@7.1.6 +If some tests fail, you can find information in test logs: -This package contains the following license and notice below: +- `log/test.log` contains all information from stdout; +- `log/expected.txt` contains only expected text; +- `log/result.txt` contains only result text. -The ISC License +The last two are made for your convenience: you can use any diff app to see +the defference between them. -Copyright (c) Isaac Z. Schlueter and Contributors +If you want to test one specific string or get a general idea of how Gonzales +works, you can use `test/ast.js` file. +Simply change the first two strings (`css` and `syntax` vars) and run: -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. + node test/single-test.js -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +## Report -## Glob Logo +If you find a bug or want to add a feature, welcome to [Issues](https://github.com/tonyganch/gonzales-pe/issues). -Glob's logo created by Tanya Brassie , licensed -under a Creative Commons Attribution-ShareAlike 4.0 International License -https://creativecommons.org/licenses/by-sa/4.0/ +If you are shy but have a question, feel free to [drop me a +line](mailto:tonyganch+gonzales@gmail.com). ----------- @@ -8716,6 +10299,36 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ----------- +The following NPM package may be included in this product: + + - ignore@5.2.4 + +This package contains the following license and notice below: + +Copyright (c) 2013 Kael Zhang , contributors +http://kael.me/ + +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. + +----------- + The following NPM package may be included in this product: - immer@9.0.21 @@ -9206,25 +10819,116 @@ 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. +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. + +----------- + +The following NPM package may be included in this product: + + - is-glob@4.0.3 + +This package contains the following license and notice below: + +The MIT License (MIT) + +Copyright (c) 2014-2017, Jon Schlinkert. + +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. + +----------- + +The following NPM package may be included in this product: + + - is-regexp@1.0.0 + +This package contains the following license and notice below: + +# is-regexp [![Build Status](https://travis-ci.org/sindresorhus/is-regexp.svg?branch=master)](https://travis-ci.org/sindresorhus/is-regexp) + +> Check whether a variable is a regular expression + + +## Install + +```sh +$ npm install --save is-regexp +``` + + +## Usage + +```js +var isRegexp = require('is-regexp'); + +isRegexp('unicorn'); +//=> false + +isRegexp(/unicorn/); +//=> true + +isRegexp(new RegExp('unicorn')); +//=> true +``` + + +## License + +MIT © [Sindre Sorhus](http://sindresorhus.com) + +----------- + +The following NPM package may be included in this product: + + - is-relative-path@1.0.2 + +This package contains the following license and notice below: + +### is-relative-path [![npm](http://img.shields.io/npm/v/is-relative-path.svg)](https://npmjs.org/package/is-relative-path) [![npm](http://img.shields.io/npm/dm/is-relative-path.svg)](https://npmjs.org/package/is-relative-path) + +> Sometimes I just want to scream + +`npm install is-relative-path` + +### Usage + +```js +var isRelative = require('is-relative-path'); + +isRelative('../'); // true +isRelative('/'); // false +``` ----------- The following NPM package may be included in this product: - - is-glob@4.0.3 + - is-url@1.2.4 This package contains the following license and notice below: -The MIT License (MIT) - -Copyright (c) 2014-2017, Jon Schlinkert. +MIT LICENSE Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -9250,12 +10954,15 @@ The following NPM packages may be included in this product: - isexe@2.0.0 - lru-cache@5.1.1 + - lru-cache@6.0.0 - minimatch@3.1.2 - once@1.4.0 - semver@6.3.1 + - semver@7.5.4 - which@2.0.2 - wrappy@1.0.2 - yallist@3.1.1 + - yallist@4.0.0 These packages each contain the following license and notice below: @@ -16185,6 +17892,388 @@ OTHER DEALINGS IN THE SOFTWARE. ----------- +The following NPM package may be included in this product: + + - postcss-values-parser@6.0.2 + +This package contains the following license and notice below: + +Mozilla Public License Version 2.0 +================================== + +1. Definitions +-------------- + +1.1. "Contributor" + means each individual or legal entity that creates, contributes to + the creation of, or owns Covered Software. + +1.2. "Contributor Version" + means the combination of the Contributions of others (if any) used + by a Contributor and that particular Contributor's Contribution. + +1.3. "Contribution" + means Covered Software of a particular Contributor. + +1.4. "Covered Software" + means Source Code Form to which the initial Contributor has attached + the notice in Exhibit A, the Executable Form of such Source Code + Form, and Modifications of such Source Code Form, in each case + including portions thereof. + +1.5. "Incompatible With Secondary Licenses" + means + + (a) that the initial Contributor has attached the notice described + in Exhibit B to the Covered Software; or + + (b) that the Covered Software was made available under the terms of + version 1.1 or earlier of the License, but not also under the + terms of a Secondary License. + +1.6. "Executable Form" + means any form of the work other than Source Code Form. + +1.7. "Larger Work" + means a work that combines Covered Software with other material, in + a separate file or files, that is not Covered Software. + +1.8. "License" + means this document. + +1.9. "Licensable" + means having the right to grant, to the maximum extent possible, + whether at the time of the initial grant or subsequently, any and + all of the rights conveyed by this License. + +1.10. "Modifications" + means any of the following: + + (a) any file in Source Code Form that results from an addition to, + deletion from, or modification of the contents of Covered + Software; or + + (b) any new file in Source Code Form that contains any Covered + Software. + +1.11. "Patent Claims" of a Contributor + means any patent claim(s), including without limitation, method, + process, and apparatus claims, in any patent Licensable by such + Contributor that would be infringed, but for the grant of the + License, by the making, using, selling, offering for sale, having + made, import, or transfer of either its Contributions or its + Contributor Version. + +1.12. "Secondary License" + means either the GNU General Public License, Version 2.0, the GNU + Lesser General Public License, Version 2.1, the GNU Affero General + Public License, Version 3.0, or any later versions of those + licenses. + +1.13. "Source Code Form" + means the form of the work preferred for making modifications. + +1.14. "You" (or "Your") + means an individual or a legal entity exercising rights under this + License. For legal entities, "You" includes any entity that + controls, is controlled by, or is under common control with You. For + purposes of this definition, "control" means (a) the power, direct + or indirect, to cause the direction or management of such entity, + whether by contract or otherwise, or (b) ownership of more than + fifty percent (50%) of the outstanding shares or beneficial + ownership of such entity. + +2. License Grants and Conditions +-------------------------------- + +2.1. Grants + +Each Contributor hereby grants You a world-wide, royalty-free, +non-exclusive license: + +(a) under intellectual property rights (other than patent or trademark) + Licensable by such Contributor to use, reproduce, make available, + modify, display, perform, distribute, and otherwise exploit its + Contributions, either on an unmodified basis, with Modifications, or + as part of a Larger Work; and + +(b) under Patent Claims of such Contributor to make, use, sell, offer + for sale, have made, import, and otherwise transfer either its + Contributions or its Contributor Version. + +2.2. Effective Date + +The licenses granted in Section 2.1 with respect to any Contribution +become effective for each Contribution on the date the Contributor first +distributes such Contribution. + +2.3. Limitations on Grant Scope + +The licenses granted in this Section 2 are the only rights granted under +this License. No additional rights or licenses will be implied from the +distribution or licensing of Covered Software under this License. +Notwithstanding Section 2.1(b) above, no patent license is granted by a +Contributor: + +(a) for any code that a Contributor has removed from Covered Software; + or + +(b) for infringements caused by: (i) Your and any other third party's + modifications of Covered Software, or (ii) the combination of its + Contributions with other software (except as part of its Contributor + Version); or + +(c) under Patent Claims infringed by Covered Software in the absence of + its Contributions. + +This License does not grant any rights in the trademarks, service marks, +or logos of any Contributor (except as may be necessary to comply with +the notice requirements in Section 3.4). + +2.4. Subsequent Licenses + +No Contributor makes additional grants as a result of Your choice to +distribute the Covered Software under a subsequent version of this +License (see Section 10.2) or under the terms of a Secondary License (if +permitted under the terms of Section 3.3). + +2.5. Representation + +Each Contributor represents that the Contributor believes its +Contributions are its original creation(s) or it has sufficient rights +to grant the rights to its Contributions conveyed by this License. + +2.6. Fair Use + +This License is not intended to limit any rights You have under +applicable copyright doctrines of fair use, fair dealing, or other +equivalents. + +2.7. Conditions + +Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted +in Section 2.1. + +3. Responsibilities +------------------- + +3.1. Distribution of Source Form + +All distribution of Covered Software in Source Code Form, including any +Modifications that You create or to which You contribute, must be under +the terms of this License. You must inform recipients that the Source +Code Form of the Covered Software is governed by the terms of this +License, and how they can obtain a copy of this License. You may not +attempt to alter or restrict the recipients' rights in the Source Code +Form. + +3.2. Distribution of Executable Form + +If You distribute Covered Software in Executable Form then: + +(a) such Covered Software must also be made available in Source Code + Form, as described in Section 3.1, and You must inform recipients of + the Executable Form how they can obtain a copy of such Source Code + Form by reasonable means in a timely manner, at a charge no more + than the cost of distribution to the recipient; and + +(b) You may distribute such Executable Form under the terms of this + License, or sublicense it under different terms, provided that the + license for the Executable Form does not attempt to limit or alter + the recipients' rights in the Source Code Form under this License. + +3.3. Distribution of a Larger Work + +You may create and distribute a Larger Work under terms of Your choice, +provided that You also comply with the requirements of this License for +the Covered Software. If the Larger Work is a combination of Covered +Software with a work governed by one or more Secondary Licenses, and the +Covered Software is not Incompatible With Secondary Licenses, this +License permits You to additionally distribute such Covered Software +under the terms of such Secondary License(s), so that the recipient of +the Larger Work may, at their option, further distribute the Covered +Software under the terms of either this License or such Secondary +License(s). + +3.4. Notices + +You may not remove or alter the substance of any license notices +(including copyright notices, patent notices, disclaimers of warranty, +or limitations of liability) contained within the Source Code Form of +the Covered Software, except that You may alter any license notices to +the extent required to remedy known factual inaccuracies. + +3.5. Application of Additional Terms + +You may choose to offer, and to charge a fee for, warranty, support, +indemnity or liability obligations to one or more recipients of Covered +Software. However, You may do so only on Your own behalf, and not on +behalf of any Contributor. You must make it absolutely clear that any +such warranty, support, indemnity, or liability obligation is offered by +You alone, and You hereby agree to indemnify every Contributor for any +liability incurred by such Contributor as a result of warranty, support, +indemnity or liability terms You offer. You may include additional +disclaimers of warranty and limitations of liability specific to any +jurisdiction. + +4. Inability to Comply Due to Statute or Regulation +--------------------------------------------------- + +If it is impossible for You to comply with any of the terms of this +License with respect to some or all of the Covered Software due to +statute, judicial order, or regulation then You must: (a) comply with +the terms of this License to the maximum extent possible; and (b) +describe the limitations and the code they affect. Such description must +be placed in a text file included with all distributions of the Covered +Software under this License. Except to the extent prohibited by statute +or regulation, such description must be sufficiently detailed for a +recipient of ordinary skill to be able to understand it. + +5. Termination +-------------- + +5.1. The rights granted under this License will terminate automatically +if You fail to comply with any of its terms. However, if You become +compliant, then the rights granted under this License from a particular +Contributor are reinstated (a) provisionally, unless and until such +Contributor explicitly and finally terminates Your grants, and (b) on an +ongoing basis, if such Contributor fails to notify You of the +non-compliance by some reasonable means prior to 60 days after You have +come back into compliance. Moreover, Your grants from a particular +Contributor are reinstated on an ongoing basis if such Contributor +notifies You of the non-compliance by some reasonable means, this is the +first time You have received notice of non-compliance with this License +from such Contributor, and You become compliant prior to 30 days after +Your receipt of the notice. + +5.2. If You initiate litigation against any entity by asserting a patent +infringement claim (excluding declaratory judgment actions, +counter-claims, and cross-claims) alleging that a Contributor Version +directly or indirectly infringes any patent, then the rights granted to +You by any and all Contributors for the Covered Software under Section +2.1 of this License shall terminate. + +5.3. In the event of termination under Sections 5.1 or 5.2 above, all +end user license agreements (excluding distributors and resellers) which +have been validly granted by You or Your distributors under this License +prior to termination shall survive termination. + +************************************************************************ +* * +* 6. Disclaimer of Warranty * +* ------------------------- * +* * +* Covered Software is provided under this License on an "as is" * +* basis, without warranty of any kind, either expressed, implied, or * +* statutory, including, without limitation, warranties that the * +* Covered Software is free of defects, merchantable, fit for a * +* particular purpose or non-infringing. The entire risk as to the * +* quality and performance of the Covered Software is with You. * +* Should any Covered Software prove defective in any respect, You * +* (not any Contributor) assume the cost of any necessary servicing, * +* repair, or correction. This disclaimer of warranty constitutes an * +* essential part of this License. No use of any Covered Software is * +* authorized under this License except under this disclaimer. * +* * +************************************************************************ + +************************************************************************ +* * +* 7. Limitation of Liability * +* -------------------------- * +* * +* Under no circumstances and under no legal theory, whether tort * +* (including negligence), contract, or otherwise, shall any * +* Contributor, or anyone who distributes Covered Software as * +* permitted above, be liable to You for any direct, indirect, * +* special, incidental, or consequential damages of any character * +* including, without limitation, damages for lost profits, loss of * +* goodwill, work stoppage, computer failure or malfunction, or any * +* and all other commercial damages or losses, even if such party * +* shall have been informed of the possibility of such damages. This * +* limitation of liability shall not apply to liability for death or * +* personal injury resulting from such party's negligence to the * +* extent applicable law prohibits such limitation. Some * +* jurisdictions do not allow the exclusion or limitation of * +* incidental or consequential damages, so this exclusion and * +* limitation may not apply to You. * +* * +************************************************************************ + +8. Litigation +------------- + +Any litigation relating to this License may be brought only in the +courts of a jurisdiction where the defendant maintains its principal +place of business and such litigation shall be governed by laws of that +jurisdiction, without reference to its conflict-of-law provisions. +Nothing in this Section shall prevent a party's ability to bring +cross-claims or counter-claims. + +9. Miscellaneous +---------------- + +This License represents the complete agreement concerning the subject +matter hereof. If any provision of this License is held to be +unenforceable, such provision shall be reformed only to the extent +necessary to make it enforceable. Any law or regulation which provides +that the language of a contract shall be construed against the drafter +shall not be used to construe this License against a Contributor. + +10. Versions of the License +--------------------------- + +10.1. New Versions + +Mozilla Foundation is the license steward. Except as provided in Section +10.3, no one other than the license steward has the right to modify or +publish new versions of this License. Each version will be given a +distinguishing version number. + +10.2. Effect of New Versions + +You may distribute the Covered Software under the terms of the version +of the License under which You originally received the Covered Software, +or under the terms of any subsequent version published by the license +steward. + +10.3. Modified Versions + +If you create software not governed by this License, and you want to +create a new license for such software, you may create and use a +modified version of this License if you rename the license and remove +any references to the name of the license steward (except to note that +such modified license differs from this License). + +10.4. Distributing Source Code Form that is Incompatible With Secondary +Licenses + +If You choose to distribute Source Code Form that is Incompatible With +Secondary Licenses under the terms of this version of the License, the +notice described in Exhibit B of this License must be attached. + +Exhibit A - Source Code Form License Notice +------------------------------------------- + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + +If it is not possible or desirable to put the notice in a particular +file, then You may include the notice in a location (such as a LICENSE +file in a relevant directory) where a recipient would be likely to look +for such a notice. + +You may add additional accurate notices of copyright ownership. + +Exhibit B - "Incompatible With Secondary Licenses" Notice +--------------------------------------------------------- + + This Source Code Form is "Incompatible With Secondary Licenses", as + defined by the Mozilla Public License, v. 2.0. + +----------- + The following NPM package may be included in this product: - prettier@2.8.3 @@ -22415,6 +24504,39 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------- +The following NPM package may be included in this product: + + - quote-unquote@1.0.0 + +This package contains the following license and notice below: + +The MIT License (MIT) + +Copyright (c) 2015 Dominic Tarr + +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. + +----------- + The following NPM packages may be included in this product: - randombytes@2.1.0 @@ -22902,7 +25024,7 @@ SOFTWARE. The following NPM package may be included in this product: - - react-tooltip@5.21.5 + - react-tooltip@5.21.6 This package contains the following license and notice below: @@ -22972,7 +25094,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. The following NPM packages may be included in this product: - react-use-measure@2.1.1 - - zustand@4.4.3 + - zustand@4.4.4 These packages each contain the following license and notice below: @@ -23237,6 +25359,52 @@ THE SOFTWARE. ----------- +The following NPM package may be included in this product: + + - requirejs-config-file@4.0.0 + +This package contains the following license and notice below: + +The MIT License (MIT) + +Copyright (c) 2013 webforge-labs + +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. + +----------- + +The following NPM package may be included in this product: + + - requirejs@2.3.6 + +This package contains the following license and notice below: + +# requirejs + +RequireJS for use in Node. includes: + +* r.js: the RequireJS optimizer, and AMD runtime for use in Node. +* require.js: The browser-based AMD loader. + +More information at http://requirejs.org + +----------- + The following NPM package may be included in this product: - resolve@1.22.6 @@ -24265,24 +26433,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ----------- -The following NPM package may be included in this product: - - - shebang-command@2.0.0 - -This package contains the following license and notice below: - -MIT License - -Copyright (c) Kevin Mårtensson (github.com/kevva) - -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. - ------------ - The following NPM package may be included in this product: - shell-exec@1.0.2 @@ -25420,6 +27570,37 @@ IN THE SOFTWARE. ----------- +The following NPM package may be included in this product: + + - stringify-object@3.3.0 + +This package contains the following license and notice below: + +Copyright (c) 2015, Yeoman team +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +----------- + The following NPM package may be included in this product: - style-to-object@0.4.2 @@ -25638,6 +27819,36 @@ SOFTWARE. ----------- +The following NPM package may be included in this product: + + - tapable@2.2.1 + +This package contains the following license and notice below: + +The MIT License + +Copyright JS Foundation and other contributors + +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. + +----------- + The following NPM package may be included in this product: - thenify@3.3.1 @@ -26074,10 +28285,41 @@ Apache License The following NPM package may be included in this product: - - tslib@2.6.2 + - tsconfig-paths@4.2.0 This package contains the following license and notice below: +The MIT License (MIT) + +Copyright (c) 2016 Jonas Kello + +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. + +----------- + +The following NPM packages may be included in this product: + + - tslib@1.14.1 + - tslib@2.6.2 + +These packages each contain the following license and notice below: + Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -26093,6 +28335,36 @@ PERFORMANCE OF THIS SOFTWARE. ----------- +The following NPM package may be included in this product: + + - tsutils@3.21.0 + +This package contains the following license and notice below: + +The MIT License (MIT) + +Copyright (c) 2017 Klaus Meinhardt + +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. + +----------- + The following NPM packages may be included in this product: - typescript@4.9.5 From 6a7d871f59200e61e83deee6ec2c9ec5f6a43cb8 Mon Sep 17 00:00:00 2001 From: DJ Corbett Date: Mon, 30 Oct 2023 14:32:57 -0400 Subject: [PATCH 12/14] restructing components folder --- src/components/{atoms => blog}/ArrowIcon.tsx | 0 src/components/{atoms => blog}/BackButton.tsx | 0 .../{atoms => common}/Container.tsx | 0 src/components/{atoms => common}/Date.tsx | 0 .../{molecules => common}/Footer.tsx | 0 .../{molecules => common}/Header.tsx | 0 src/components/{atoms => common}/Heading.tsx | 0 .../{atoms => common}/HorizontalDivider.tsx | 0 src/components/{atoms => common}/Image.tsx | 0 src/components/{atoms => common}/Link.tsx | 0 .../{atoms => common}/MainContentWrapper.tsx | 0 .../{atoms => common}/MarkdownContent.tsx | 0 .../{atoms => common}/PageWrapper.tsx | 0 src/components/{atoms => common}/Text.tsx | 0 .../{molecules => home}/FeaturedBlog.tsx | 12 ++++----- .../FeaturedBlogsSection.tsx | 2 +- src/layouts/BasicLayout.tsx | 16 ++++++------ src/templates/blog.tsx | 26 +++++++++---------- src/templates/home.tsx | 16 ++++++------ 19 files changed, 36 insertions(+), 36 deletions(-) rename src/components/{atoms => blog}/ArrowIcon.tsx (100%) rename src/components/{atoms => blog}/BackButton.tsx (100%) rename src/components/{atoms => common}/Container.tsx (100%) rename src/components/{atoms => common}/Date.tsx (100%) rename src/components/{molecules => common}/Footer.tsx (100%) rename src/components/{molecules => common}/Header.tsx (100%) rename src/components/{atoms => common}/Heading.tsx (100%) rename src/components/{atoms => common}/HorizontalDivider.tsx (100%) rename src/components/{atoms => common}/Image.tsx (100%) rename src/components/{atoms => common}/Link.tsx (100%) rename src/components/{atoms => common}/MainContentWrapper.tsx (100%) rename src/components/{atoms => common}/MarkdownContent.tsx (100%) rename src/components/{atoms => common}/PageWrapper.tsx (100%) rename src/components/{atoms => common}/Text.tsx (100%) rename src/components/{molecules => home}/FeaturedBlog.tsx (92%) rename src/components/{molecules => home}/FeaturedBlogsSection.tsx (99%) diff --git a/src/components/atoms/ArrowIcon.tsx b/src/components/blog/ArrowIcon.tsx similarity index 100% rename from src/components/atoms/ArrowIcon.tsx rename to src/components/blog/ArrowIcon.tsx diff --git a/src/components/atoms/BackButton.tsx b/src/components/blog/BackButton.tsx similarity index 100% rename from src/components/atoms/BackButton.tsx rename to src/components/blog/BackButton.tsx diff --git a/src/components/atoms/Container.tsx b/src/components/common/Container.tsx similarity index 100% rename from src/components/atoms/Container.tsx rename to src/components/common/Container.tsx diff --git a/src/components/atoms/Date.tsx b/src/components/common/Date.tsx similarity index 100% rename from src/components/atoms/Date.tsx rename to src/components/common/Date.tsx diff --git a/src/components/molecules/Footer.tsx b/src/components/common/Footer.tsx similarity index 100% rename from src/components/molecules/Footer.tsx rename to src/components/common/Footer.tsx diff --git a/src/components/molecules/Header.tsx b/src/components/common/Header.tsx similarity index 100% rename from src/components/molecules/Header.tsx rename to src/components/common/Header.tsx diff --git a/src/components/atoms/Heading.tsx b/src/components/common/Heading.tsx similarity index 100% rename from src/components/atoms/Heading.tsx rename to src/components/common/Heading.tsx diff --git a/src/components/atoms/HorizontalDivider.tsx b/src/components/common/HorizontalDivider.tsx similarity index 100% rename from src/components/atoms/HorizontalDivider.tsx rename to src/components/common/HorizontalDivider.tsx diff --git a/src/components/atoms/Image.tsx b/src/components/common/Image.tsx similarity index 100% rename from src/components/atoms/Image.tsx rename to src/components/common/Image.tsx diff --git a/src/components/atoms/Link.tsx b/src/components/common/Link.tsx similarity index 100% rename from src/components/atoms/Link.tsx rename to src/components/common/Link.tsx diff --git a/src/components/atoms/MainContentWrapper.tsx b/src/components/common/MainContentWrapper.tsx similarity index 100% rename from src/components/atoms/MainContentWrapper.tsx rename to src/components/common/MainContentWrapper.tsx diff --git a/src/components/atoms/MarkdownContent.tsx b/src/components/common/MarkdownContent.tsx similarity index 100% rename from src/components/atoms/MarkdownContent.tsx rename to src/components/common/MarkdownContent.tsx diff --git a/src/components/atoms/PageWrapper.tsx b/src/components/common/PageWrapper.tsx similarity index 100% rename from src/components/atoms/PageWrapper.tsx rename to src/components/common/PageWrapper.tsx diff --git a/src/components/atoms/Text.tsx b/src/components/common/Text.tsx similarity index 100% rename from src/components/atoms/Text.tsx rename to src/components/common/Text.tsx diff --git a/src/components/molecules/FeaturedBlog.tsx b/src/components/home/FeaturedBlog.tsx similarity index 92% rename from src/components/molecules/FeaturedBlog.tsx rename to src/components/home/FeaturedBlog.tsx index 6403222..5435df1 100644 --- a/src/components/molecules/FeaturedBlog.tsx +++ b/src/components/home/FeaturedBlog.tsx @@ -1,9 +1,9 @@ -import Link from "../atoms/Link"; -import Date from "../atoms/Date"; -import Container from "../atoms/Container"; -import Text from "../atoms/Text"; -import Heading from "../atoms/Heading"; -import Image from "../atoms/Image"; +import Link from "../common/Link"; +import Date from "../common/Date"; +import Container from "../common/Container"; +import Text from "../common/Text"; +import Heading from "../common/Heading"; +import Image from "../common/Image"; import { TextSizes } from "../../sharedVariants"; interface FeaturedBlogProps { diff --git a/src/components/molecules/FeaturedBlogsSection.tsx b/src/components/home/FeaturedBlogsSection.tsx similarity index 99% rename from src/components/molecules/FeaturedBlogsSection.tsx rename to src/components/home/FeaturedBlogsSection.tsx index 6eca13e..48c6c51 100644 --- a/src/components/molecules/FeaturedBlogsSection.tsx +++ b/src/components/home/FeaturedBlogsSection.tsx @@ -1,4 +1,4 @@ -import Container from "../atoms/Container"; +import Container from "../common/Container"; import FeaturedBlog from "./FeaturedBlog"; export interface FeaturedBlogsSectionProps { diff --git a/src/layouts/BasicLayout.tsx b/src/layouts/BasicLayout.tsx index c5679f8..43bc6a4 100644 --- a/src/layouts/BasicLayout.tsx +++ b/src/layouts/BasicLayout.tsx @@ -1,11 +1,11 @@ -import Container from "../components/atoms/Container"; -import Heading from "../components/atoms/Heading"; -import Image from "../components/atoms/Image"; -import MainContentWrapper from "../components/atoms/MainContentWrapper"; -import PageWrapper from "../components/atoms/PageWrapper"; -import Text from "../components/atoms/Text"; -import Footer from "../components/molecules/Footer"; -import Header from "../components/molecules/Header"; +import Container from "../components/common/Container"; +import Heading from "../components/common/Heading"; +import Image from "../components/common/Image"; +import MainContentWrapper from "../components/common/MainContentWrapper"; +import PageWrapper from "../components/common/PageWrapper"; +import Text from "../components/common/Text"; +import Footer from "../components/common/Footer"; +import Header from "../components/common/Header"; const BasicLayout = () => { return ( diff --git a/src/templates/blog.tsx b/src/templates/blog.tsx index efa10fa..55fef59 100644 --- a/src/templates/blog.tsx +++ b/src/templates/blog.tsx @@ -7,19 +7,19 @@ import { GetHeadConfig, HeadConfig, } from "@yext/pages"; -import Image from "../components/atoms/Image"; -import MarkdownContent from "../components/atoms/MarkdownContent"; -import HorizontalDivider from "../components/atoms/HorizontalDivider"; -import Date from "../components/atoms/Date"; -import Heading from "../components/atoms/Heading"; -import Container from "../components/atoms/Container"; -import Text from "../components/atoms/Text"; -import PageWrapper from "../components/atoms/PageWrapper"; -import MainContentWrapper from "../components/atoms/MainContentWrapper"; -import Header from "../components/molecules/Header"; -import Footer from "../components/molecules/Footer"; -import Link from "../components/atoms/Link"; -import ArrowIcon from "../components/atoms/ArrowIcon"; +import Image from "../components/common/Image"; +import MarkdownContent from "../components/common/MarkdownContent"; +import HorizontalDivider from "../components/common/HorizontalDivider"; +import Date from "../components/common/Date"; +import Heading from "../components/common/Heading"; +import Container from "../components/common/Container"; +import Text from "../components/common/Text"; +import PageWrapper from "../components/common/PageWrapper"; +import MainContentWrapper from "../components/common/MainContentWrapper"; +import Header from "../components/common/Header"; +import Footer from "../components/common/Footer"; +import Link from "../components/common/Link"; +import ArrowIcon from "../components/blog/ArrowIcon"; export const config: TemplateConfig = { stream: { diff --git a/src/templates/home.tsx b/src/templates/home.tsx index c246c64..c25c8ff 100644 --- a/src/templates/home.tsx +++ b/src/templates/home.tsx @@ -6,14 +6,14 @@ import { TemplateProps, TemplateRenderProps, } from "@yext/pages"; -import MainContentWrapper from "../components/atoms/MainContentWrapper"; -import Container from "../components/atoms/Container"; -import Heading from "../components/atoms/Heading"; -import Image from "../components/atoms/Image"; -import PageWrapper from "../components/atoms/PageWrapper"; -import FeaturedBlogsSection from "../components/molecules/FeaturedBlogsSection"; -import Footer from "../components/molecules/Footer"; -import Header from "../components/molecules/Header"; +import MainContentWrapper from "../components/common/MainContentWrapper"; +import Container from "../components/common/Container"; +import Heading from "../components/common/Heading"; +import Image from "../components/common/Image"; +import PageWrapper from "../components/common/PageWrapper"; +import FeaturedBlogsSection from "../components/home/FeaturedBlogsSection"; +import Footer from "../components/common/Footer"; +import Header from "../components/common/Header"; import "../index.css"; export const config: TemplateConfig = { From f63839c8c30698c16778f49ad58b1bf2e7d486af Mon Sep 17 00:00:00 2001 From: DJ Corbett Date: Mon, 30 Oct 2023 16:58:11 -0400 Subject: [PATCH 13/14] updating studio to v0.27.0 --- package-lock.json | 30 ++++++++++++++++++------------ package.json | 2 +- 2 files changed, 19 insertions(+), 13 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3a5eeb9..84ea2d4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "@heroicons/react": "^2.0.18", "@vitejs/plugin-react": "^4.0.2", "@yext/sites-components": "1.0.0-rc.4", - "@yext/studio": "0.27.0-alpha.1", + "@yext/studio": "^0.27.0", "clsx": "^1.2.1", "cva": "npm:class-variance-authority@^0.7.0", "react": "^18.0.2", @@ -3537,13 +3537,13 @@ } }, "node_modules/@yext/studio": { - "version": "0.27.0-alpha.1", - "resolved": "https://registry.npmjs.org/@yext/studio/-/studio-0.27.0-alpha.1.tgz", - "integrity": "sha512-lYsmeEbEkvf+LGWbA1x3dMhGpKXSXAzCWvm30GIgiFXap1PlBYtf8bGCT0/KVTexyPb9fzEQYLnmBiUMbwaEQg==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@yext/studio/-/studio-0.27.0.tgz", + "integrity": "sha512-cHl+WGWeu/ehZOEDyZWs/bK+AYRjmPh4Kd6LFIiCT0XDvGcmZ66WM1TGXHyZJQxYdL12tvfbfXmOGiLvKpK9eQ==", "dependencies": { "@vitejs/plugin-react": "^4.0.4", - "@yext/studio-plugin": "0.27.0-alpha.1", - "@yext/studio-ui": "0.27.0-alpha.1", + "@yext/studio-plugin": "0.27.0", + "@yext/studio-ui": "0.27.0", "autoprefixer": "^10.4.14", "cac": "^6.7.14", "cross-env": "^7.0.3", @@ -3558,9 +3558,9 @@ } }, "node_modules/@yext/studio-plugin": { - "version": "0.27.0-alpha.1", - "resolved": "https://registry.npmjs.org/@yext/studio-plugin/-/studio-plugin-0.27.0-alpha.1.tgz", - "integrity": "sha512-I8l7tlq8epkoq5gXRCUxz4qhXqlhi7XAcVlO42B3P2QEuuzNhUDSSvnLivC7QzmSNuvdPAEc1mAWAXOLGokhHQ==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@yext/studio-plugin/-/studio-plugin-0.27.0.tgz", + "integrity": "sha512-oHcGs3k+y4Kpu9STCH8p5JvDMlEiVBy4YAVOWYDdFLhQai0K4idW9TRVp946k8WaSBePK5Qc8uEAxoZGs4ZQFA==", "dependencies": { "@babel/parser": "^7.21.8", "@babel/preset-env": "^7.22.4", @@ -3613,9 +3613,9 @@ } }, "node_modules/@yext/studio-ui": { - "version": "0.27.0-alpha.1", - "resolved": "https://registry.npmjs.org/@yext/studio-ui/-/studio-ui-0.27.0-alpha.1.tgz", - "integrity": "sha512-PKSEeBVCkxFGoH2rMkGUsUUIv9lQ1H0UHvPien+oekcXI+1BLTe89lWq4flAZzcBPXQa9hdX0GgN0mfXO0LLnQ==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@yext/studio-ui/-/studio-ui-0.27.0.tgz", + "integrity": "sha512-r5N9a219UOhzEH561eiI41p4H8FNNY7YnMV4y0z3gVrrx96LHbG1rb9CmWOTc78oVDuZF1LiYdJX7aF1Kq0ikQ==", "dependencies": { "@dhmk/zustand-lens": "^2.0.5", "@minoru/react-dnd-treeview": "^3.4.1", @@ -3628,6 +3628,7 @@ "immer": "^9.0.21", "lodash": "^4.17.21", "path-browserify": "^1.0.1", + "platform": "^1.3.6", "postcss": "^8.4.27", "react": "^18.2.0", "react-dom": "^18.2.0", @@ -9362,6 +9363,11 @@ "node": ">=10" } }, + "node_modules/platform": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/platform/-/platform-1.3.6.tgz", + "integrity": "sha512-fnWVljUchTro6RiCFvCXBbNhJc2NijN7oIQxbwsyL0buWJPG85v81ehlHI9fXrJsMNgTofEoWIQeClKpgxFLrg==" + }, "node_modules/popmotion": { "version": "11.0.3", "resolved": "https://registry.npmjs.org/popmotion/-/popmotion-11.0.3.tgz", diff --git a/package.json b/package.json index 2a06db7..d64c998 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "@heroicons/react": "^2.0.18", "@vitejs/plugin-react": "^4.0.2", "@yext/sites-components": "1.0.0-rc.4", - "@yext/studio": "0.27.0-alpha.1", + "@yext/studio": "^0.27.0", "clsx": "^1.2.1", "cva": "npm:class-variance-authority@^0.7.0", "react": "^18.0.2", From 405d16df3ab6a8872a91b252519201d1d0863cde Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 30 Oct 2023 20:59:09 +0000 Subject: [PATCH 14/14] Automated update to THIRD-PARTY-NOTICES from github action's 3rd party notices check --- THIRD-PARTY-NOTICES | 36 +++++++++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/THIRD-PARTY-NOTICES b/THIRD-PARTY-NOTICES index 547e836..9e81e6d 100644 --- a/THIRD-PARTY-NOTICES +++ b/THIRD-PARTY-NOTICES @@ -3005,9 +3005,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. The following NPM packages may be included in this product: - - @yext/studio-plugin@0.27.0-alpha.1 - - @yext/studio-ui@0.27.0-alpha.1 - - @yext/studio@0.27.0-alpha.1 + - @yext/studio-plugin@0.27.0 + - @yext/studio-ui@0.27.0 + - @yext/studio@0.27.0 These packages each contain the following license and notice below: @@ -17696,6 +17696,36 @@ SOFTWARE. ----------- +The following NPM package may be included in this product: + + - platform@1.3.6 + +This package contains the following license and notice below: + +Copyright 2014-2020 Benjamin Tan +Copyright 2011-2013 John-David Dalton + +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. + +----------- + The following NPM package may be included in this product: - popmotion@11.0.3