├── .eslintignore ├── .eslintrc ├── .gitignore ├── .npmignore ├── .prettierrc ├── CHANGELOG.md ├── README.md ├── babel.config.js ├── example.gif ├── package.json ├── sanity.json ├── src ├── _constants.js ├── components │ ├── OrderDocuments.jsx │ ├── atoms │ │ ├── QuestionIcon.jsx │ │ ├── RefreshIcon.jsx │ │ └── index.js │ ├── molecules │ │ ├── Card.jsx │ │ ├── Select.jsx │ │ └── index.js │ └── organisms │ │ ├── DraggableSection.jsx │ │ ├── TypeSection.jsx │ │ └── index.js ├── data │ └── index.js ├── functions │ ├── escapeStringRegExp.js │ ├── getDocumentTypeNames.js │ ├── index.js │ ├── setOrder.js │ ├── useOnClickOutside.js │ └── willUserOverrideData.js ├── index.css └── index.js └── yarn.lock /.eslintignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BretCameron/sanity-plugin-order-documents/HEAD/.eslintrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BretCameron/sanity-plugin-order-documents/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | 2 | .DS_Store 3 | /src 4 | /node_modules 5 | example.gif -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BretCameron/sanity-plugin-order-documents/HEAD/.prettierrc -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BretCameron/sanity-plugin-order-documents/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BretCameron/sanity-plugin-order-documents/HEAD/README.md -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BretCameron/sanity-plugin-order-documents/HEAD/babel.config.js -------------------------------------------------------------------------------- /example.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BretCameron/sanity-plugin-order-documents/HEAD/example.gif -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BretCameron/sanity-plugin-order-documents/HEAD/package.json -------------------------------------------------------------------------------- /sanity.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BretCameron/sanity-plugin-order-documents/HEAD/sanity.json -------------------------------------------------------------------------------- /src/_constants.js: -------------------------------------------------------------------------------- 1 | export const CLIENT_API_VERSION = "2021-12-17"; 2 | -------------------------------------------------------------------------------- /src/components/OrderDocuments.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BretCameron/sanity-plugin-order-documents/HEAD/src/components/OrderDocuments.jsx -------------------------------------------------------------------------------- /src/components/atoms/QuestionIcon.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BretCameron/sanity-plugin-order-documents/HEAD/src/components/atoms/QuestionIcon.jsx -------------------------------------------------------------------------------- /src/components/atoms/RefreshIcon.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BretCameron/sanity-plugin-order-documents/HEAD/src/components/atoms/RefreshIcon.jsx -------------------------------------------------------------------------------- /src/components/atoms/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BretCameron/sanity-plugin-order-documents/HEAD/src/components/atoms/index.js -------------------------------------------------------------------------------- /src/components/molecules/Card.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BretCameron/sanity-plugin-order-documents/HEAD/src/components/molecules/Card.jsx -------------------------------------------------------------------------------- /src/components/molecules/Select.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BretCameron/sanity-plugin-order-documents/HEAD/src/components/molecules/Select.jsx -------------------------------------------------------------------------------- /src/components/molecules/index.js: -------------------------------------------------------------------------------- 1 | export * from "./Card"; 2 | -------------------------------------------------------------------------------- /src/components/organisms/DraggableSection.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BretCameron/sanity-plugin-order-documents/HEAD/src/components/organisms/DraggableSection.jsx -------------------------------------------------------------------------------- /src/components/organisms/TypeSection.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BretCameron/sanity-plugin-order-documents/HEAD/src/components/organisms/TypeSection.jsx -------------------------------------------------------------------------------- /src/components/organisms/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BretCameron/sanity-plugin-order-documents/HEAD/src/components/organisms/index.js -------------------------------------------------------------------------------- /src/data/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BretCameron/sanity-plugin-order-documents/HEAD/src/data/index.js -------------------------------------------------------------------------------- /src/functions/escapeStringRegExp.js: -------------------------------------------------------------------------------- 1 | export function escapeStringRegExp(str) { 2 | return str.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&"); 3 | } 4 | -------------------------------------------------------------------------------- /src/functions/getDocumentTypeNames.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BretCameron/sanity-plugin-order-documents/HEAD/src/functions/getDocumentTypeNames.js -------------------------------------------------------------------------------- /src/functions/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BretCameron/sanity-plugin-order-documents/HEAD/src/functions/index.js -------------------------------------------------------------------------------- /src/functions/setOrder.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BretCameron/sanity-plugin-order-documents/HEAD/src/functions/setOrder.js -------------------------------------------------------------------------------- /src/functions/useOnClickOutside.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BretCameron/sanity-plugin-order-documents/HEAD/src/functions/useOnClickOutside.js -------------------------------------------------------------------------------- /src/functions/willUserOverrideData.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BretCameron/sanity-plugin-order-documents/HEAD/src/functions/willUserOverrideData.js -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BretCameron/sanity-plugin-order-documents/HEAD/src/index.css -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BretCameron/sanity-plugin-order-documents/HEAD/src/index.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BretCameron/sanity-plugin-order-documents/HEAD/yarn.lock --------------------------------------------------------------------------------