diff --git a/.env.local.example b/.env.local.example index 4f6a17b4..615644cf 100644 --- a/.env.local.example +++ b/.env.local.example @@ -1,8 +1,8 @@ -NEXT_PUBLIC_APP_NAME='Sitecore Commerce Seller App' -NEXT_PUBLIC_OC_CLIENT_ID='4A9F0BAC-EC1D-4711-B01F-1A394F72F2B6' -NEXT_PUBLIC_OC_API_URL='https://sandboxapi.ordercloud.io' -NEXT_PUBLIC_OC_MARKETPLACE_ID='SitecoreCommerce' -NEXT_PUBLIC_OC_MARKETPLACE_NAME='Sitecore Commerce' +NEXT_PUBLIC_APP_NAME='Sitecore.Commerce.Headstart.ReactAdmin' +NEXT_PUBLIC_OC_CLIENT_ID='YOU_ORDERCLOUD_CLIENT_ID' +NEXT_PUBLIC_OC_API_URL='YOUR_ORDERCLOUD_SANDBOX_URL' +NEXT_PUBLIC_OC_MARKETPLACE_ID='YOUR_MARKETPLACE_ID' +NEXT_PUBLIC_OC_MARKETPLACE_NAME='YOUR_MARKETPLACE_NAME' NEXT_PUBLIC_OC_USELIVEANALYTICSDATA='false' diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3a482e58..eb2ef6d5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -9,7 +9,7 @@ Before logging a new issue, please check to see if your concern / idea has alrea Once an issue is moved (by a project maintainer) to the "Todo" column in the project backlog it is considered ready to be worked on. Please assign yourself and mark the issue as "In Progress" once development has started in order to avoid duplicate work. ## Development -1. Fork and clone the template repository locally +1. Fork and clone the template repository locally, be sure to check "Include all branches" to get the development branch 2. Follow the working locally guide outlined in the main README.md 3. After you have completed development, run `npm test` and `npm build` locally to ensure everything still works. 4. Feel free to push changes to your forked development branch or create a new feature branch if it's a larger change. diff --git a/README.md b/README.md index b6504639..2328dbe6 100644 --- a/README.md +++ b/README.md @@ -8,12 +8,10 @@ This is an Open Source implementation of Sitecore Commerce using the OrderCloud This app is capable of showcasing different marketplace scenarios and commerce strategies: B2B, B2C, B2B2C. It is actively being worked on and maintained by internal developers at Sitecore and the larger Sitecore community. You can expect some major changes in the near future regarding design system choice, feature additions / modifications, and further integrations with additional Sitecore services. ## What is Sitecore Commerce OrderCloud? ----- [OrderCloud](https://ordercloud.io/discover/platform-overview) is a B2B, B2C, B2X commerce and marketplace development platform, OrderCloud delivers cloud-based, API-first, headless eCommerce architecture. Limitless customizations and endless freedom for growth to support your complete commerce strategy. ## What is Sitecore Commerce Seller App? ----- A **simple**, **powerful** and **flexible** Commerce Seller Application built on top of Sitecore [OrderCloud API](https://ordercloud.io/api-reference) and the [Javascript SDK](https://www.npmjs.com/package/ordercloud-javascript-sdk) built with: * React * Next.JS @@ -23,7 +21,6 @@ A **simple**, **powerful** and **flexible** Commerce Seller Application built on * SEO optimization configured with `next-seo` and `next-sitemap`. you'll need to reconfigure or tinker with it to get it right according to your needs, but it's there if you need it. ## What you can do with this app? ----- * Create, read, update delete product catalogs and categories * Create, read, update delete products with Extended propreties * Create, read, update delete promotions @@ -37,10 +34,9 @@ Create an OrderCloud Marketplace instance (https://portal.ordercloud.io) ## How do I get started? Using the Deploy Button below, you'll deploy on Vercel the Next.js project as well as connect it to your Sitecore Commerce OrderCloud sandbox. -[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FSitecoreNA%2Fsitecore-commerce%2Ftree%2Fmain) +[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FSitecore%2FSitecore.Commerce.Headstart.ReactAdmin&env=NEXT_PUBLIC_APP_NAME,NEXT_PUBLIC_OC_CLIENT_ID,NEXT_PUBLIC_OC_API_URL,NEXT_PUBLIC_OC_MARKETPLACE_ID,NEXT_PUBLIC_OC_MARKETPLACE_NAME,NEXT_PUBLIC_OC_USELIVEANALYTICSDATA&envDescription=Environment%20Variables%20Description&envLink=https%3A%2F%2Fgithub.com%2FSitecore%2FSitecore.Commerce.Headstart.ReactAdmin%23working-locally&project-name=sitecore-commerce-headstart-reactadmin&repository-name=Sitecore.Commerce.Headstart.ReactAdmin&demo-title=Sitecore%20Commerce%20Headstart%20ReactAdmin&demo-description=This%20is%20a%20basic%20implementation%20of%20Sitecore%20Commerce%20using%20the%20OrderCloud%20Javascript%20SDK.%20You%20can%20use%20it%20as%20a%20starting%20point%20to%20discover%2C%20understand%2C%20and%20learn%20more%20about%20the%20Sitecore%20Commerce%20OrderCloud%20capabilities.&demo-url=sitecore-commerce-headstart-react-admin.vercel.app&demo-image=https%3A%2F%2Fgithub.com%2FSitecore%2FSitecore.Commerce.Headstart.ReactAdmin%2Fblob%2Fmain%2Fpublic%2Fimages%2Fdemo-image.png) ## Working locally ----- 1. Using this repository as a template, create a new repository. 2. Clone your new repository locally 3. Copy the `.env.local.example` file in the root directory to `.env.local` (ignored by default during your next Git commit): @@ -74,8 +70,7 @@ npm install npm run dev ``` -Your app should be up and running on [http://localhost:3000](http://localhost:3000)! -If it doesn't work, post on [GitHub issues](https://github.com/Sitecore/Sitecore.Commerce.Headstart.ReactAdmin/issues). +Your app should be up and running on [http://localhost:3000](http://localhost:3000)! ### Seeding a new marketplace @@ -85,9 +80,11 @@ In some cases it may be useful to have your own marketplace. Maybe you need to c npm run seed -- -u=YOUR_PORTAL_USERNAME -p=YOUR_PORTAL_PASSWORD -n=YOUR_MARKETPLACE_NAME ``` -Next, find the admin client ID and set it as NEXT_PUBLIC_OC_CLIENT_ID in your .env file. +Next, find the admin client ID and set it as NEXT_PUBLIC_OC_CLIENT_ID in your .env.local file. -Finally log in as `initialadminuser` with the password `Testingsetup123!` +Then, run the application by running `npm run dev`. + +Finally, log in as `initialadminuser` with the password `Testingsetup123!` ### Unit Tests This project uses [Jest](https://jestjs.io/) for unit testing. To write a unit test: @@ -99,6 +96,11 @@ This project uses [Jest](https://jestjs.io/) for unit testing. To write a unit t ### Deploy on Vercel To deploy your local project to Vercel, push it to public GitHub/GitLab/Bitbucket repository then [import to Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example). +### Questions or New Ideas? +Check out the [Discussion board](https://github.com/Sitecore/Sitecore.Commerce.Headstart.ReactAdmin/discussions). You ask questions or suggest answers in our [Q&A](https://github.com/Sitecore/Sitecore.Commerce.Headstart.ReactAdmin/discussions/categories/q-a) board. + +--- + ## Contributing Guide Check out our [Contributing](./CONTRIBUTING.md) guide. diff --git a/package-lock.json b/package-lock.json index 88ab6ca0..50f42555 100644 --- a/package-lock.json +++ b/package-lock.json @@ -36,7 +36,7 @@ "yup": "^0.32.11" }, "devDependencies": { - "@ordercloud/seeding": "^1.0.31", + "@ordercloud/seeding": "^1.1.0", "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^14.0.0", "@types/date-fns": "^2.6.0", @@ -2855,23 +2855,23 @@ } }, "node_modules/@ordercloud/portal-javascript-sdk": { - "version": "0.0.1-beta.19", - "resolved": "https://registry.npmjs.org/@ordercloud/portal-javascript-sdk/-/portal-javascript-sdk-0.0.1-beta.19.tgz", - "integrity": "sha512-YysNBHX2h4DTuQyp7wcpZYVEOlhVy+IDC0tyslxjmCLf9sMaV2/xL6oUHYyo042O1Ijxi9ILDh2pQoAmoMKrKw==", + "version": "0.0.1-beta.33", + "resolved": "https://registry.npmjs.org/@ordercloud/portal-javascript-sdk/-/portal-javascript-sdk-0.0.1-beta.33.tgz", + "integrity": "sha512-T6kF+/1OmHy+xOPsLLsZg/LdlyY9FzFFVHdhleBzWFSG4gKdk2GlQVwHEL/kh33lTqCwPddB+iFzy7feoRygnA==", "dev": true, "peerDependencies": { - "axios": ">=0.19.2" + "axios": ">=1.0.0" } }, "node_modules/@ordercloud/seeding": { - "version": "1.0.31", - "resolved": "https://registry.npmjs.org/@ordercloud/seeding/-/seeding-1.0.31.tgz", - "integrity": "sha512-0cb9isS6zrZObbHbzg+fxHjDa4u8Y7j3Khhq5hFUdi0bxOnDopfyDL7/QB2KW5GHG4s18qgqJXYFM9BzEBW52Q==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@ordercloud/seeding/-/seeding-1.1.0.tgz", + "integrity": "sha512-kf+jXF8WjObinhmdaWb6ze7ag2oV1RnDPB+iqeZ3t2F8Otz1cHLd81myouGOYsnZb/Ac1pcS7HkGLPKSz7dwlQ==", "dev": true, "dependencies": { - "@ordercloud/portal-javascript-sdk": "0.0.1-beta.19", + "@ordercloud/portal-javascript-sdk": "0.0.1-beta.33", "@types/jwt-decode": "^3.1.0", - "axios": "^0.21.1", + "axios": "^1.1.3", "bottleneck": "^2.19.5", "chalk": "^4.1.1", "cli-progress": "^3.11.2", @@ -2880,7 +2880,7 @@ "js-yaml": "^4.0.0", "jwt-decode": "^3.1.2", "lodash": "^4.17.21", - "ordercloud-javascript-sdk": "^4.8.8", + "ordercloud-javascript-sdk": "^5.0.3", "qs": "^6.9.6", "typescript": "^4.2.3", "yargs": "^15.4.1" @@ -2889,27 +2889,6 @@ "seeding": "dist/cli.js" } }, - "node_modules/@ordercloud/seeding/node_modules/axios": { - "version": "0.21.4", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", - "integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", - "dev": true, - "dependencies": { - "follow-redirects": "^1.14.0" - } - }, - "node_modules/@ordercloud/seeding/node_modules/ordercloud-javascript-sdk": { - "version": "4.11.1", - "resolved": "https://registry.npmjs.org/ordercloud-javascript-sdk/-/ordercloud-javascript-sdk-4.11.1.tgz", - "integrity": "sha512-93bQI4x6Qw2s2T1o6X0IpOodS1f6f1vElIu1qlUiC8sRAAQDH1298twrMhaq0iI9zpRZhmkSR3QgQ7AAX+SDZA==", - "dev": true, - "engines": { - "node": ">=0.10" - }, - "peerDependencies": { - "axios": "^0.19.2" - } - }, "node_modules/@pkgr/utils": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/@pkgr/utils/-/utils-2.3.1.tgz", @@ -3188,7 +3167,7 @@ "version": "3.3.1", "resolved": "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz", "integrity": "sha512-iMIqiko6ooLrTh1joXodJK5X9xeEALT1kM5G3ZLhD3hszxBdIEd5C75U834D9mLcINgD4OyZf5uQXjkuYydWvA==", - "dev": true, + "devOptional": true, "dependencies": { "@types/react": "*", "hoist-non-react-statics": "^3.3.0" @@ -3328,7 +3307,7 @@ "version": "18.14.6", "resolved": "https://registry.npmjs.org/@types/node/-/node-18.14.6.tgz", "integrity": "sha512-93+VvleD3mXwlLI/xASjw0FzKcwzl3OdTCzm1LaRfqgS21gfFtK3zDXM5Op9TeeMsJVOaJ2VRDpT9q4Y3d0AvA==", - "dev": true + "devOptional": true }, "node_modules/@types/normalize-package-data": { "version": "2.4.1", @@ -3351,13 +3330,13 @@ "version": "15.7.5", "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz", "integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==", - "dev": true + "devOptional": true }, "node_modules/@types/react": { "version": "18.0.28", "resolved": "https://registry.npmjs.org/@types/react/-/react-18.0.28.tgz", "integrity": "sha512-RD0ivG1kEztNBdoAK7lekI9M+azSnitIn85h4iOiaLjaTrMjzslhaqCGaI4IyCJ1RljWiLCEu4jyrLLgqxBTew==", - "dev": true, + "devOptional": true, "dependencies": { "@types/prop-types": "*", "@types/scheduler": "*", @@ -3475,7 +3454,7 @@ "version": "0.16.2", "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.2.tgz", "integrity": "sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew==", - "dev": true + "devOptional": true }, "node_modules/@types/semver": { "version": "7.3.13", @@ -13109,7 +13088,8 @@ "@chakra-ui/control-box": { "version": "2.0.13", "resolved": "https://registry.npmjs.org/@chakra-ui/control-box/-/control-box-2.0.13.tgz", - "integrity": "sha512-FEyrU4crxati80KUF/+1Z1CU3eZK6Sa0Yv7Z/ydtz9/tvGblXW9NFanoomXAOvcIFLbaLQPPATm9Gmpr7VG05A==" + "integrity": "sha512-FEyrU4crxati80KUF/+1Z1CU3eZK6Sa0Yv7Z/ydtz9/tvGblXW9NFanoomXAOvcIFLbaLQPPATm9Gmpr7VG05A==", + "requires": {} }, "@chakra-ui/counter": { "version": "2.0.14", @@ -13124,7 +13104,8 @@ "@chakra-ui/css-reset": { "version": "2.0.12", "resolved": "https://registry.npmjs.org/@chakra-ui/css-reset/-/css-reset-2.0.12.tgz", - "integrity": "sha512-Q5OYIMvqTl2vZ947kIYxcS5DhQXeStB84BzzBd6C10wOx1gFUu9pL+jLpOnHR3hhpWRMdX5o7eT+gMJWIYUZ0Q==" + "integrity": "sha512-Q5OYIMvqTl2vZ947kIYxcS5DhQXeStB84BzzBd6C10wOx1gFUu9pL+jLpOnHR3hhpWRMdX5o7eT+gMJWIYUZ0Q==", + "requires": {} }, "@chakra-ui/descendant": { "version": "3.0.13", @@ -13251,7 +13232,8 @@ "@chakra-ui/live-region": { "version": "2.0.13", "resolved": "https://registry.npmjs.org/@chakra-ui/live-region/-/live-region-2.0.13.tgz", - "integrity": "sha512-Ja+Slk6ZkxSA5oJzU2VuGU7TpZpbMb/4P4OUhIf2D30ctmIeXkxTWw1Bs1nGJAVtAPcGS5sKA+zb89i8g+0cTQ==" + "integrity": "sha512-Ja+Slk6ZkxSA5oJzU2VuGU7TpZpbMb/4P4OUhIf2D30ctmIeXkxTWw1Bs1nGJAVtAPcGS5sKA+zb89i8g+0cTQ==", + "requires": {} }, "@chakra-ui/media-query": { "version": "3.2.12", @@ -13475,12 +13457,14 @@ "@chakra-ui/react-children-utils": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/@chakra-ui/react-children-utils/-/react-children-utils-2.0.6.tgz", - "integrity": "sha512-QVR2RC7QsOsbWwEnq9YduhpqSFnZGvjjGREV8ygKi8ADhXh93C8azLECCUVgRJF2Wc+So1fgxmjLcbZfY2VmBA==" + "integrity": "sha512-QVR2RC7QsOsbWwEnq9YduhpqSFnZGvjjGREV8ygKi8ADhXh93C8azLECCUVgRJF2Wc+So1fgxmjLcbZfY2VmBA==", + "requires": {} }, "@chakra-ui/react-context": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/@chakra-ui/react-context/-/react-context-2.0.7.tgz", - "integrity": "sha512-i7EGmSU+h2GB30cwrKB4t1R5BMHyGoJM5L2Zz7b+ZUX4aAqyPcfe97wPiQB6Rgr1ImGXrUeov4CDVrRZ2FPgLQ==" + "integrity": "sha512-i7EGmSU+h2GB30cwrKB4t1R5BMHyGoJM5L2Zz7b+ZUX4aAqyPcfe97wPiQB6Rgr1ImGXrUeov4CDVrRZ2FPgLQ==", + "requires": {} }, "@chakra-ui/react-env": { "version": "3.0.0", @@ -13493,7 +13477,8 @@ "@chakra-ui/react-types": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/@chakra-ui/react-types/-/react-types-2.0.7.tgz", - "integrity": "sha512-12zv2qIZ8EHwiytggtGvo4iLT0APris7T0qaAWqzpUGS0cdUtR8W+V1BJ5Ocq+7tA6dzQ/7+w5hmXih61TuhWQ==" + "integrity": "sha512-12zv2qIZ8EHwiytggtGvo4iLT0APris7T0qaAWqzpUGS0cdUtR8W+V1BJ5Ocq+7tA6dzQ/7+w5hmXih61TuhWQ==", + "requires": {} }, "@chakra-ui/react-use-animation-state": { "version": "2.0.8", @@ -13507,7 +13492,8 @@ "@chakra-ui/react-use-callback-ref": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/@chakra-ui/react-use-callback-ref/-/react-use-callback-ref-2.0.7.tgz", - "integrity": "sha512-YjT76nTpfHAK5NxplAlZsQwNju5KmQExnqsWNPFeOR6vvbC34+iPSTr+r91i1Hdy7gBSbevsOsd5Wm6RN3GuMw==" + "integrity": "sha512-YjT76nTpfHAK5NxplAlZsQwNju5KmQExnqsWNPFeOR6vvbC34+iPSTr+r91i1Hdy7gBSbevsOsd5Wm6RN3GuMw==", + "requires": {} }, "@chakra-ui/react-use-controllable-state": { "version": "2.0.8", @@ -13563,12 +13549,14 @@ "@chakra-ui/react-use-latest-ref": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/@chakra-ui/react-use-latest-ref/-/react-use-latest-ref-2.0.5.tgz", - "integrity": "sha512-3mIuFzMyIo3Ok/D8uhV9voVg7KkrYVO/pwVvNPJOHsDQqCA6DpYE4WDsrIx+fVcwad3Ta7SupexR5PoI+kq6QQ==" + "integrity": "sha512-3mIuFzMyIo3Ok/D8uhV9voVg7KkrYVO/pwVvNPJOHsDQqCA6DpYE4WDsrIx+fVcwad3Ta7SupexR5PoI+kq6QQ==", + "requires": {} }, "@chakra-ui/react-use-merge-refs": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/@chakra-ui/react-use-merge-refs/-/react-use-merge-refs-2.0.7.tgz", - "integrity": "sha512-zds4Uhsc+AMzdH8JDDkLVet9baUBgtOjPbhC5r3A0ZXjZvGhCztFAVE3aExYiVoMPoHLKbLcqvCWE6ioFKz1lw==" + "integrity": "sha512-zds4Uhsc+AMzdH8JDDkLVet9baUBgtOjPbhC5r3A0ZXjZvGhCztFAVE3aExYiVoMPoHLKbLcqvCWE6ioFKz1lw==", + "requires": {} }, "@chakra-ui/react-use-outside-click": { "version": "2.0.7", @@ -13591,12 +13579,14 @@ "@chakra-ui/react-use-previous": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/@chakra-ui/react-use-previous/-/react-use-previous-2.0.5.tgz", - "integrity": "sha512-BIZgjycPE4Xr+MkhKe0h67uHXzQQkBX/u5rYPd65iMGdX1bCkbE0oorZNfOHLKdTmnEb4oVsNvfN6Rfr+Mnbxw==" + "integrity": "sha512-BIZgjycPE4Xr+MkhKe0h67uHXzQQkBX/u5rYPd65iMGdX1bCkbE0oorZNfOHLKdTmnEb4oVsNvfN6Rfr+Mnbxw==", + "requires": {} }, "@chakra-ui/react-use-safe-layout-effect": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/@chakra-ui/react-use-safe-layout-effect/-/react-use-safe-layout-effect-2.0.5.tgz", - "integrity": "sha512-MwAQBz3VxoeFLaesaSEN87reVNVbjcQBDex2WGexAg6hUB6n4gc1OWYH/iXp4tzp4kuggBNhEHkk9BMYXWfhJQ==" + "integrity": "sha512-MwAQBz3VxoeFLaesaSEN87reVNVbjcQBDex2WGexAg6hUB6n4gc1OWYH/iXp4tzp4kuggBNhEHkk9BMYXWfhJQ==", + "requires": {} }, "@chakra-ui/react-use-size": { "version": "2.0.9", @@ -13617,7 +13607,8 @@ "@chakra-ui/react-use-update-effect": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/@chakra-ui/react-use-update-effect/-/react-use-update-effect-2.0.7.tgz", - "integrity": "sha512-vBM2bmmM83ZdDtasWv3PXPznpTUd+FvqBC8J8rxoRmvdMEfrxTiQRBJhiGHLpS9BPLLPQlosN6KdFU97csB6zg==" + "integrity": "sha512-vBM2bmmM83ZdDtasWv3PXPznpTUd+FvqBC8J8rxoRmvdMEfrxTiQRBJhiGHLpS9BPLLPQlosN6KdFU97csB6zg==", + "requires": {} }, "@chakra-ui/react-utils": { "version": "2.0.12", @@ -13845,7 +13836,8 @@ "@chakra-ui/visually-hidden": { "version": "2.0.15", "resolved": "https://registry.npmjs.org/@chakra-ui/visually-hidden/-/visually-hidden-2.0.15.tgz", - "integrity": "sha512-WWULIiucYRBIewHKFA7BssQ2ABLHLVd9lrUo3N3SZgR0u4ZRDDVEUNOy+r+9ruDze8+36dGbN9wsN1IdELtdOw==" + "integrity": "sha512-WWULIiucYRBIewHKFA7BssQ2ABLHLVd9lrUo3N3SZgR0u4ZRDDVEUNOy+r+9ruDze8+36dGbN9wsN1IdELtdOw==", + "requires": {} }, "@corex/deepmerge": { "version": "4.0.37", @@ -13954,7 +13946,8 @@ "@emotion/use-insertion-effect-with-fallbacks": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/@emotion/use-insertion-effect-with-fallbacks/-/use-insertion-effect-with-fallbacks-1.0.0.tgz", - "integrity": "sha512-1eEgUGmkaljiBnRMTdksDV1W4kUnmwgp7X9G8B++9GYwl1lUdqSndSriIrTJ0N7LQaoauY9JJ2yhiOYK5+NI4A==" + "integrity": "sha512-1eEgUGmkaljiBnRMTdksDV1W4kUnmwgp7X9G8B++9GYwl1lUdqSndSriIrTJ0N7LQaoauY9JJ2yhiOYK5+NI4A==", + "requires": {} }, "@emotion/utils": { "version": "1.2.0", @@ -14587,20 +14580,21 @@ } }, "@ordercloud/portal-javascript-sdk": { - "version": "0.0.1-beta.19", - "resolved": "https://registry.npmjs.org/@ordercloud/portal-javascript-sdk/-/portal-javascript-sdk-0.0.1-beta.19.tgz", - "integrity": "sha512-YysNBHX2h4DTuQyp7wcpZYVEOlhVy+IDC0tyslxjmCLf9sMaV2/xL6oUHYyo042O1Ijxi9ILDh2pQoAmoMKrKw==", - "dev": true + "version": "0.0.1-beta.33", + "resolved": "https://registry.npmjs.org/@ordercloud/portal-javascript-sdk/-/portal-javascript-sdk-0.0.1-beta.33.tgz", + "integrity": "sha512-T6kF+/1OmHy+xOPsLLsZg/LdlyY9FzFFVHdhleBzWFSG4gKdk2GlQVwHEL/kh33lTqCwPddB+iFzy7feoRygnA==", + "dev": true, + "requires": {} }, "@ordercloud/seeding": { - "version": "1.0.31", - "resolved": "https://registry.npmjs.org/@ordercloud/seeding/-/seeding-1.0.31.tgz", - "integrity": "sha512-0cb9isS6zrZObbHbzg+fxHjDa4u8Y7j3Khhq5hFUdi0bxOnDopfyDL7/QB2KW5GHG4s18qgqJXYFM9BzEBW52Q==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@ordercloud/seeding/-/seeding-1.1.0.tgz", + "integrity": "sha512-kf+jXF8WjObinhmdaWb6ze7ag2oV1RnDPB+iqeZ3t2F8Otz1cHLd81myouGOYsnZb/Ac1pcS7HkGLPKSz7dwlQ==", "dev": true, "requires": { - "@ordercloud/portal-javascript-sdk": "0.0.1-beta.19", + "@ordercloud/portal-javascript-sdk": "0.0.1-beta.33", "@types/jwt-decode": "^3.1.0", - "axios": "^0.21.1", + "axios": "^1.1.3", "bottleneck": "^2.19.5", "chalk": "^4.1.1", "cli-progress": "^3.11.2", @@ -14609,27 +14603,10 @@ "js-yaml": "^4.0.0", "jwt-decode": "^3.1.2", "lodash": "^4.17.21", - "ordercloud-javascript-sdk": "^4.8.8", + "ordercloud-javascript-sdk": "^5.0.3", "qs": "^6.9.6", "typescript": "^4.2.3", "yargs": "^15.4.1" - }, - "dependencies": { - "axios": { - "version": "0.21.4", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", - "integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", - "dev": true, - "requires": { - "follow-redirects": "^1.14.0" - } - }, - "ordercloud-javascript-sdk": { - "version": "4.11.1", - "resolved": "https://registry.npmjs.org/ordercloud-javascript-sdk/-/ordercloud-javascript-sdk-4.11.1.tgz", - "integrity": "sha512-93bQI4x6Qw2s2T1o6X0IpOodS1f6f1vElIu1qlUiC8sRAAQDH1298twrMhaq0iI9zpRZhmkSR3QgQ7AAX+SDZA==", - "dev": true - } } }, "@pkgr/utils": { @@ -14669,22 +14646,26 @@ "@react-querybuilder/chakra": { "version": "5.4.1", "resolved": "https://registry.npmjs.org/@react-querybuilder/chakra/-/chakra-5.4.1.tgz", - "integrity": "sha512-wF86BJHZIrneqTnDW/mXx96QiigOAtb9LMK23aqcT3CeOrZLLOmllhVRGQlNd8LNkW+0BNDvDmsOSQTnJKp/9A==" + "integrity": "sha512-wF86BJHZIrneqTnDW/mXx96QiigOAtb9LMK23aqcT3CeOrZLLOmllhVRGQlNd8LNkW+0BNDvDmsOSQTnJKp/9A==", + "requires": {} }, "@react-querybuilder/ctx": { "version": "5.4.1", "resolved": "https://registry.npmjs.org/@react-querybuilder/ctx/-/ctx-5.4.1.tgz", - "integrity": "sha512-v4sIxzOZgr/io6Tz96YUDxpBw7XFxbWqB1qhr+p3gKNfM3x9qqIQSAx2i9sASXt0pv10EainVQYCy5BoYQ+lig==" + "integrity": "sha512-v4sIxzOZgr/io6Tz96YUDxpBw7XFxbWqB1qhr+p3gKNfM3x9qqIQSAx2i9sASXt0pv10EainVQYCy5BoYQ+lig==", + "requires": {} }, "@react-querybuilder/dnd": { "version": "5.4.1", "resolved": "https://registry.npmjs.org/@react-querybuilder/dnd/-/dnd-5.4.1.tgz", - "integrity": "sha512-tYFDcphF97MJLYd8NxcEoyK9v+lGNsxp1OUyLutkzvBFPxeaJS2LoayOPRSpgEcifIvOU/AV/6iv3oD1DBm1WA==" + "integrity": "sha512-tYFDcphF97MJLYd8NxcEoyK9v+lGNsxp1OUyLutkzvBFPxeaJS2LoayOPRSpgEcifIvOU/AV/6iv3oD1DBm1WA==", + "requires": {} }, "@react-querybuilder/ts": { "version": "5.4.1", "resolved": "https://registry.npmjs.org/@react-querybuilder/ts/-/ts-5.4.1.tgz", - "integrity": "sha512-zYquHYbyoVLQ3Fa7ky4o6dPXGOvJjKFZdgIg9IDiqzYZ8F4WXuP/4OkDCwLRZNbUAsW1kUoPBqBdGeiitmmCUg==" + "integrity": "sha512-zYquHYbyoVLQ3Fa7ky4o6dPXGOvJjKFZdgIg9IDiqzYZ8F4WXuP/4OkDCwLRZNbUAsW1kUoPBqBdGeiitmmCUg==", + "requires": {} }, "@rushstack/eslint-patch": { "version": "1.2.0", @@ -14860,7 +14841,7 @@ "version": "3.3.1", "resolved": "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz", "integrity": "sha512-iMIqiko6ooLrTh1joXodJK5X9xeEALT1kM5G3ZLhD3hszxBdIEd5C75U834D9mLcINgD4OyZf5uQXjkuYydWvA==", - "dev": true, + "devOptional": true, "requires": { "@types/react": "*", "hoist-non-react-statics": "^3.3.0" @@ -14991,7 +14972,7 @@ "version": "18.14.6", "resolved": "https://registry.npmjs.org/@types/node/-/node-18.14.6.tgz", "integrity": "sha512-93+VvleD3mXwlLI/xASjw0FzKcwzl3OdTCzm1LaRfqgS21gfFtK3zDXM5Op9TeeMsJVOaJ2VRDpT9q4Y3d0AvA==", - "dev": true + "devOptional": true }, "@types/normalize-package-data": { "version": "2.4.1", @@ -15014,13 +14995,13 @@ "version": "15.7.5", "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz", "integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==", - "dev": true + "devOptional": true }, "@types/react": { "version": "18.0.28", "resolved": "https://registry.npmjs.org/@types/react/-/react-18.0.28.tgz", "integrity": "sha512-RD0ivG1kEztNBdoAK7lekI9M+azSnitIn85h4iOiaLjaTrMjzslhaqCGaI4IyCJ1RljWiLCEu4jyrLLgqxBTew==", - "dev": true, + "devOptional": true, "requires": { "@types/prop-types": "*", "@types/scheduler": "*", @@ -15138,7 +15119,7 @@ "version": "0.16.2", "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.2.tgz", "integrity": "sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew==", - "dev": true + "devOptional": true }, "@types/semver": { "version": "7.3.13", @@ -15335,7 +15316,8 @@ "version": "5.3.2", "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true + "dev": true, + "requires": {} }, "acorn-walk": { "version": "8.2.0", @@ -16798,7 +16780,8 @@ "version": "8.7.0", "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.7.0.tgz", "integrity": "sha512-HHVXLSlVUhMSmyW4ZzEuvjpwqamgmlfkutD53cYXLikh4pt/modINRcCIApJ84czDxM4GZInwUrromsDdTImTA==", - "dev": true + "dev": true, + "requires": {} }, "eslint-config-sznm": { "version": "1.1.0", @@ -17073,13 +17056,15 @@ "version": "4.6.0", "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz", "integrity": "sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==", - "dev": true + "dev": true, + "requires": {} }, "eslint-plugin-sonarjs": { "version": "0.18.0", "resolved": "https://registry.npmjs.org/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.18.0.tgz", "integrity": "sha512-DJ3osLnt6KFdT5e9ZuIDOjT5A6wUGSLeiJJT03lPgpdD+7CVWlYAw9Goe3bt7SmbFO3Xh89NOCZAuB9XA7bAUQ==", - "dev": true + "dev": true, + "requires": {} }, "eslint-scope": { "version": "7.1.1", @@ -18786,7 +18771,8 @@ "version": "1.2.3", "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", - "dev": true + "dev": true, + "requires": {} }, "jest-regex-util": { "version": "29.4.3", @@ -19623,7 +19609,8 @@ "next-seo": { "version": "5.15.0", "resolved": "https://registry.npmjs.org/next-seo/-/next-seo-5.15.0.tgz", - "integrity": "sha512-LGbcY91yDKGMb7YI+28n3g+RuChUkt6pXNpa8FkfKkEmNiJkeRDEXTnnjVtwT9FmMhG6NH8qwHTelGrlYm9rgg==" + "integrity": "sha512-LGbcY91yDKGMb7YI+28n3g+RuChUkt6pXNpa8FkfKkEmNiJkeRDEXTnnjVtwT9FmMhG6NH8qwHTelGrlYm9rgg==", + "requires": {} }, "next-sitemap": { "version": "3.1.55", @@ -19799,7 +19786,8 @@ "ordercloud-javascript-sdk": { "version": "5.0.3", "resolved": "https://registry.npmjs.org/ordercloud-javascript-sdk/-/ordercloud-javascript-sdk-5.0.3.tgz", - "integrity": "sha512-9cYVU/9uv2Oqg9XqoYo8xvDX1HqqfCP01WQqrwL9mEYbNCikwwKzZacFKzqVyM6+Oz8mcdCIjCj9ymfCGEiqng==" + "integrity": "sha512-9cYVU/9uv2Oqg9XqoYo8xvDX1HqqfCP01WQqrwL9mEYbNCikwwKzZacFKzqVyM6+Oz8mcdCIjCj9ymfCGEiqng==", + "requires": {} }, "os-shim": { "version": "0.1.3", @@ -20287,7 +20275,8 @@ "react-icons": { "version": "4.8.0", "resolved": "https://registry.npmjs.org/react-icons/-/react-icons-4.8.0.tgz", - "integrity": "sha512-N6+kOLcihDiAnj5Czu637waJqSnwlMNROzVZMhfX68V/9bu9qHaMIJC4UdozWoOk57gahFCNHwVvWzm0MTzRjg==" + "integrity": "sha512-N6+kOLcihDiAnj5Czu637waJqSnwlMNROzVZMhfX68V/9bu9qHaMIJC4UdozWoOk57gahFCNHwVvWzm0MTzRjg==", + "requires": {} }, "react-is": { "version": "16.13.1", @@ -20297,7 +20286,8 @@ "react-onclickoutside": { "version": "6.12.2", "resolved": "https://registry.npmjs.org/react-onclickoutside/-/react-onclickoutside-6.12.2.tgz", - "integrity": "sha512-NMXGa223OnsrGVp5dJHkuKxQ4czdLmXSp5jSV9OqiCky9LOpPATn3vLldc+q5fK3gKbEHvr7J1u0yhBh/xYkpA==" + "integrity": "sha512-NMXGa223OnsrGVp5dJHkuKxQ4czdLmXSp5jSV9OqiCky9LOpPATn3vLldc+q5fK3gKbEHvr7J1u0yhBh/xYkpA==", + "requires": {} }, "react-popper": { "version": "2.3.0", @@ -20353,7 +20343,8 @@ "react-table": { "version": "7.8.0", "resolved": "https://registry.npmjs.org/react-table/-/react-table-7.8.0.tgz", - "integrity": "sha512-hNaz4ygkZO4bESeFfnfOft73iBUj8K5oKi1EcSHPAibEydfsX2MyU6Z8KCr3mv3C9Kqqh71U+DhZkFvibbnPbA==" + "integrity": "sha512-hNaz4ygkZO4bESeFfnfOft73iBUj8K5oKi1EcSHPAibEydfsX2MyU6Z8KCr3mv3C9Kqqh71U+DhZkFvibbnPbA==", + "requires": {} }, "react-use-measure": { "version": "2.1.1", @@ -21130,7 +21121,8 @@ "styled-jsx": { "version": "5.0.2", "resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-5.0.2.tgz", - "integrity": "sha512-LqPQrbBh3egD57NBcHET4qcgshPks+yblyhPlH2GY8oaDgKs8SK4C3dBh3oSJjgzJ3G5t1SYEZGHkP+QEpX9EQ==" + "integrity": "sha512-LqPQrbBh3egD57NBcHET4qcgshPks+yblyhPlH2GY8oaDgKs8SK4C3dBh3oSJjgzJ3G5t1SYEZGHkP+QEpX9EQ==", + "requires": {} }, "stylis": { "version": "4.1.3", @@ -21526,7 +21518,8 @@ "use-sync-external-store": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.1.0.tgz", - "integrity": "sha512-SEnieB2FPKEVne66NpXPd1Np4R1lTNKfjuy3XdIoPQKYBAFdzbzSZlSn1KJZUiihQLQC5Znot4SBz1EOTBwQAQ==" + "integrity": "sha512-SEnieB2FPKEVne66NpXPd1Np4R1lTNKfjuy3XdIoPQKYBAFdzbzSZlSn1KJZUiihQLQC5Znot4SBz1EOTBwQAQ==", + "requires": {} }, "util-deprecate": { "version": "1.0.2", @@ -21709,7 +21702,8 @@ "version": "8.12.1", "resolved": "https://registry.npmjs.org/ws/-/ws-8.12.1.tgz", "integrity": "sha512-1qo+M9Ba+xNhPB+YTWUlK6M17brTut5EXbcBaMRN5pH5dFrXz7lzz1ChFSUq3bOUl8yEvSenhHmYUNJxFzdJew==", - "dev": true + "dev": true, + "requires": {} }, "xml-name-validator": { "version": "4.0.0", diff --git a/package.json b/package.json index 07cbf45a..bfb4af65 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ocsellerapp", - "version": "0.1.0", + "version": "1.0.0-alpha.2", "private": true, "author": "ghaeger", "scripts": { @@ -50,7 +50,7 @@ "yup": "^0.32.11" }, "devDependencies": { - "@ordercloud/seeding": "^1.0.31", + "@ordercloud/seeding": "^1.1.0", "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^14.0.0", "@types/date-fns": "^2.6.0", diff --git a/public/images/demo-image.png b/public/images/demo-image.png new file mode 100644 index 00000000..6c6ebf53 Binary files /dev/null and b/public/images/demo-image.png differ