├── packages ├── @sanity │ ├── check │ │ ├── sanity.json │ │ ├── .npmignore │ │ ├── .eslintrc │ │ └── .gitignore │ ├── util │ │ ├── .npmignore │ │ ├── test │ │ │ ├── versionsFixture │ │ │ │ ├── node_modules │ │ │ │ │ └── @sanity │ │ │ │ │ │ ├── base │ │ │ │ │ │ ├── sanity.json │ │ │ │ │ │ ├── placeholder.js │ │ │ │ │ │ └── package.json │ │ │ │ │ │ └── components │ │ │ │ │ │ ├── sanity.json │ │ │ │ │ │ ├── placeholder.js │ │ │ │ │ │ └── package.json │ │ │ │ ├── sanity.json │ │ │ │ └── package.json │ │ │ ├── mocha.opts │ │ │ └── init.js │ │ ├── README.md │ │ ├── .eslintrc │ │ ├── src │ │ │ └── lazyRequire.js │ │ └── .gitignore │ ├── cli │ │ ├── test │ │ │ ├── .gitkeep │ │ │ ├── mocha.opts │ │ │ ├── fixtures │ │ │ │ └── bin │ │ │ │ │ └── version-stub │ │ │ │ │ └── sanity │ │ │ ├── init.js │ │ │ └── temp.test.js │ │ ├── templates │ │ │ ├── blog │ │ │ │ ├── plugins │ │ │ │ │ └── .gitkeep │ │ │ │ ├── config │ │ │ │ │ ├── @sanity │ │ │ │ │ │ └── data-aspects.json │ │ │ │ │ └── .checksums │ │ │ │ ├── static │ │ │ │ │ ├── .gitkeep │ │ │ │ │ └── favicon.ico │ │ │ │ ├── .gitignore │ │ │ │ └── schemas │ │ │ │ │ └── category.js │ │ │ ├── clean │ │ │ │ ├── plugins │ │ │ │ │ └── .gitkeep │ │ │ │ ├── static │ │ │ │ │ ├── .gitkeep │ │ │ │ │ └── favicon.ico │ │ │ │ ├── config │ │ │ │ │ └── .checksums │ │ │ │ └── .gitignore │ │ │ ├── ecommerce │ │ │ │ ├── plugins │ │ │ │ │ ├── .gitkeep │ │ │ │ │ └── barcode-input │ │ │ │ │ │ └── sanity.json │ │ │ │ ├── static │ │ │ │ │ ├── .gitkeep │ │ │ │ │ └── favicon.ico │ │ │ │ ├── .gitignore │ │ │ │ └── schemas │ │ │ │ │ └── locale │ │ │ │ │ └── supportedLanguages.js │ │ │ └── moviedb │ │ │ │ ├── plugins │ │ │ │ └── .gitkeep │ │ │ │ ├── config │ │ │ │ ├── @sanity │ │ │ │ │ └── data-aspects.json │ │ │ │ └── .checksums │ │ │ │ ├── static │ │ │ │ ├── .gitkeep │ │ │ │ └── favicon.ico │ │ │ │ └── .gitignore │ │ ├── src │ │ │ ├── actions │ │ │ │ └── init-project │ │ │ │ │ └── templates │ │ │ │ │ ├── pluginGitKeep │ │ │ │ │ ├── staticGitKeep │ │ │ │ │ ├── checksums │ │ │ │ │ ├── blog.js │ │ │ │ │ ├── clean.js │ │ │ │ │ ├── gitignore │ │ │ │ │ └── index.js │ │ │ ├── debug.js │ │ │ ├── commands │ │ │ │ ├── projects │ │ │ │ │ └── projectsGroup.js │ │ │ │ ├── login │ │ │ │ │ └── loginCommand.js │ │ │ │ └── install │ │ │ │ │ └── installDependencies.js │ │ │ ├── prompters │ │ │ │ └── cliPrompter.js │ │ │ └── util │ │ │ │ └── canLaunchBrowser.js │ │ ├── README.md │ │ ├── .npmignore │ │ ├── .eslintrc │ │ ├── .babelrc │ │ ├── vendor │ │ │ └── README.md │ │ └── .gitignore │ ├── client │ │ ├── umd │ │ │ └── .gitkeep │ │ ├── src │ │ │ ├── http │ │ │ │ ├── browserMiddleware.js │ │ │ │ └── queryString.js │ │ │ ├── util │ │ │ │ ├── pick.js │ │ │ │ └── defaults.js │ │ │ └── users │ │ │ │ └── usersClient.js │ │ ├── .eslintrc │ │ ├── test │ │ │ ├── fixtures │ │ │ │ ├── pdf-sample.pdf │ │ │ │ └── horsehead-nebula.jpg │ │ │ └── .eslintrc │ │ ├── .npmignore │ │ ├── .travis.yml │ │ ├── .gitignore │ │ └── .babelrc │ ├── form-builder │ │ ├── docs │ │ │ ├── styling.md │ │ │ ├── validation.md │ │ │ ├── custom-dataformat.md │ │ │ ├── advanced-patching.md │ │ │ └── advanced-customization.md │ │ ├── examples │ │ │ ├── schema-testbed │ │ │ │ ├── config │ │ │ │ │ ├── .gitkeep │ │ │ │ │ └── .checksums │ │ │ │ ├── components │ │ │ │ │ ├── styles │ │ │ │ │ │ ├── shared.css │ │ │ │ │ │ ├── Header.css │ │ │ │ │ │ ├── Main.css │ │ │ │ │ │ └── SelectType.css │ │ │ │ │ └── custom │ │ │ │ │ │ ├── MyCustomSlugInput.js │ │ │ │ │ │ ├── mock │ │ │ │ │ │ └── validateSlug.js │ │ │ │ │ │ ├── MyCustomFileInput.js │ │ │ │ │ │ └── MyCustomImageInput.js │ │ │ │ ├── .eslintrc │ │ │ │ └── lib │ │ │ │ │ └── utils.js │ │ │ ├── undo │ │ │ │ ├── .eslintrc │ │ │ │ └── sanity.json │ │ │ └── quickstart │ │ │ │ └── sanity.json │ │ ├── .npmignore │ │ ├── src │ │ │ ├── inputs │ │ │ │ ├── ArrayInput │ │ │ │ │ ├── index.js │ │ │ │ │ └── styles │ │ │ │ │ │ └── ConfirmButton.css │ │ │ │ ├── FileInput │ │ │ │ │ └── index.js │ │ │ │ ├── ImageInput │ │ │ │ │ └── index.js │ │ │ │ ├── ObjectInput │ │ │ │ │ ├── index.js │ │ │ │ │ └── styles │ │ │ │ │ │ └── Field.css │ │ │ │ ├── BlockEditor-slate │ │ │ │ │ ├── index.js │ │ │ │ │ ├── util │ │ │ │ │ │ ├── randomKey.js │ │ │ │ │ │ └── mapToObject.js │ │ │ │ │ ├── styles │ │ │ │ │ │ ├── contentStyles │ │ │ │ │ │ │ ├── Normal.css │ │ │ │ │ │ │ └── Blockquote.css │ │ │ │ │ │ └── InvalidValue.css │ │ │ │ │ ├── toolbar │ │ │ │ │ │ └── styles │ │ │ │ │ │ │ ├── Decorators.css │ │ │ │ │ │ │ ├── ListItems.css │ │ │ │ │ │ │ ├── BlockStyle.css │ │ │ │ │ │ │ └── AnnotationButton.css │ │ │ │ │ ├── createSpanNode.js │ │ │ │ │ ├── constants.js │ │ │ │ │ ├── createBlockNode.js │ │ │ │ │ └── createInlineNode.js │ │ │ │ ├── ImageToolInput │ │ │ │ │ └── index.js │ │ │ │ ├── ReferenceInput │ │ │ │ │ ├── index.js │ │ │ │ │ └── styles │ │ │ │ │ │ └── ReferenceInput.css │ │ │ │ ├── InvalidValueInput │ │ │ │ │ └── index.js │ │ │ │ ├── OptionsArrayInput │ │ │ │ │ ├── index.js │ │ │ │ │ └── styles │ │ │ │ │ │ └── OptionsArrayInput.css │ │ │ │ ├── ArrayOfPrimitivesInput │ │ │ │ │ ├── index.js │ │ │ │ │ └── getEmptyValue.js │ │ │ │ ├── DateInputs │ │ │ │ │ └── index.js │ │ │ │ └── Slug │ │ │ │ │ └── styles │ │ │ │ │ └── SlugInput.css │ │ │ ├── sanity │ │ │ │ ├── uploads │ │ │ │ │ └── constants.js │ │ │ │ ├── .eslintrc │ │ │ │ └── locale │ │ │ │ │ └── strings.json │ │ │ ├── utils │ │ │ │ ├── debug.js │ │ │ │ ├── hasOwn.js │ │ │ │ ├── UploadTargetFieldset.js │ │ │ │ ├── resolveTypeName.js │ │ │ │ ├── fallback-preview │ │ │ │ │ └── PreviewPrimitive.js │ │ │ │ └── is.js │ │ │ ├── simplePatch.js │ │ │ ├── styles │ │ │ │ └── FormBuilder.css │ │ │ └── typedefs │ │ │ │ ├── path.js │ │ │ │ └── index.js │ │ ├── .babelrc │ │ ├── test │ │ │ ├── .babelrc │ │ │ ├── .eslintrc │ │ │ └── patching │ │ │ │ └── containers │ │ │ │ └── SlateNodeAccessors │ │ │ │ └── ListAccessor.js │ │ ├── .flowconfig │ │ ├── PatchEvent.js │ │ ├── .gitignore │ │ └── TODO.md │ ├── storybook │ │ ├── .npmignore │ │ ├── config.dist.json │ │ ├── .babelrc │ │ ├── src │ │ │ ├── config │ │ │ │ ├── styles.css │ │ │ │ └── addons.js │ │ │ ├── addons │ │ │ │ ├── Knobs.js │ │ │ │ └── Center.js │ │ │ └── tool │ │ │ │ └── index.js │ │ ├── README.md │ │ └── .gitignore │ ├── components │ │ ├── src │ │ │ ├── menus │ │ │ │ ├── FabActions.js │ │ │ │ └── styles │ │ │ │ │ └── FabActions.css │ │ │ ├── clickToScroll │ │ │ │ └── ClickToScroll.js │ │ │ ├── utilities │ │ │ │ ├── Portal │ │ │ │ │ ├── index.js │ │ │ │ │ └── Portal.css │ │ │ │ └── styles │ │ │ │ │ ├── Poppable.css │ │ │ │ │ └── ScrollContainer.css │ │ │ ├── textinputs │ │ │ │ └── DefaultTextInput.js │ │ │ ├── lists │ │ │ │ ├── sortable-grid │ │ │ │ │ ├── styles │ │ │ │ │ │ ├── SortableGridItem.css │ │ │ │ │ │ └── SortableGridList.css │ │ │ │ │ └── index.js │ │ │ │ ├── styles │ │ │ │ │ ├── DefaultList.css │ │ │ │ │ ├── DragHandle.css │ │ │ │ │ └── DefaultListItem.css │ │ │ │ ├── default │ │ │ │ │ ├── index.js │ │ │ │ │ ├── List.js │ │ │ │ │ └── ListItem.js │ │ │ │ ├── grid │ │ │ │ │ ├── index.js │ │ │ │ │ ├── styles │ │ │ │ │ │ └── GridItem.css │ │ │ │ │ └── GridItem.js │ │ │ │ └── sortable │ │ │ │ │ ├── styles │ │ │ │ │ └── SortableList.css │ │ │ │ │ ├── SortableListItem.js │ │ │ │ │ ├── index.js │ │ │ │ │ └── DragHandle.js │ │ │ ├── buttons │ │ │ │ ├── AnchorButton.js │ │ │ │ └── DefaultButton.js │ │ │ ├── typography │ │ │ │ └── styles │ │ │ │ │ └── story.css │ │ │ ├── fileinput │ │ │ │ └── FileInputButton.js │ │ │ ├── panes │ │ │ │ └── styles │ │ │ │ │ └── renderFunctions.css │ │ │ ├── labels │ │ │ │ └── styles │ │ │ │ │ └── DefaultLabel.css │ │ │ ├── previews │ │ │ │ ├── CustomPreview.js │ │ │ │ └── styles │ │ │ │ │ └── InlinePreview.css │ │ │ └── selects │ │ │ │ └── styles │ │ │ │ └── RadioSelect.css │ │ ├── README.md │ │ ├── .babelrc │ │ ├── .npmignore │ │ └── demo │ │ │ └── sanity.json │ ├── desk-tool │ │ ├── .npmignore │ │ ├── .babelrc │ │ ├── README.md │ │ ├── src │ │ │ ├── components │ │ │ │ └── styles │ │ │ │ │ ├── Diff.css │ │ │ │ │ ├── ReferringDocumentsList.css │ │ │ │ │ └── InspectView.css │ │ │ ├── styles │ │ │ │ └── GetStarted.css │ │ │ ├── utils │ │ │ │ └── dataAspects.js │ │ │ └── pane │ │ │ │ └── styles │ │ │ │ ├── EditorWrapper.css │ │ │ │ ├── enhanceWithAvailableHeight.css │ │ │ │ └── TypePane.css │ │ ├── examples │ │ │ └── testbed │ │ │ │ └── config │ │ │ │ ├── .checksums │ │ │ │ └── @sanity │ │ │ │ └── data-aspects.json │ │ └── .gitignore │ ├── image-url │ │ ├── .eslintignore │ │ ├── umd │ │ │ └── .gitkeep │ │ ├── .npmignore │ │ ├── test │ │ │ ├── .eslintrc │ │ │ └── parseAssetId.test.js │ │ ├── .gitignore │ │ ├── index.js │ │ ├── urlForImage.js │ │ └── .babelrc │ ├── mutator │ │ ├── .flowconfig │ │ ├── .npmignore │ │ ├── .babel-init.js │ │ ├── .babelrc │ │ ├── .travis.yml │ │ ├── src │ │ │ ├── document │ │ │ │ ├── debug.js │ │ │ │ └── index.js │ │ │ ├── patch │ │ │ │ ├── index.js │ │ │ │ └── util.js │ │ │ ├── index.js │ │ │ └── jsonpath │ │ │ │ ├── extract.js │ │ │ │ ├── extractWithPath.js │ │ │ │ └── index.js │ │ ├── .gitignore │ │ ├── flow-typed │ │ │ └── npm │ │ │ │ └── flow-bin_v0.x.x.js │ │ └── test │ │ │ └── extractWithPath.test.js │ ├── base │ │ ├── .npmignore │ │ ├── src │ │ │ ├── locale │ │ │ │ └── intl.js │ │ │ ├── components │ │ │ │ ├── icons │ │ │ │ │ ├── Sort.js │ │ │ │ │ ├── Undo.js │ │ │ │ │ ├── Public.js │ │ │ │ │ ├── AngleUpIcon.js │ │ │ │ │ ├── Binary.js │ │ │ │ │ ├── Visibility.js │ │ │ │ │ ├── VisibilityOff.js │ │ │ │ │ ├── Cog.js │ │ │ │ │ ├── Bars.js │ │ │ │ │ ├── Check.js │ │ │ │ │ ├── Edit.js │ │ │ │ │ ├── File.js │ │ │ │ │ ├── Plug.js │ │ │ │ │ ├── Plus.js │ │ │ │ │ ├── Sync.js │ │ │ │ │ ├── Trash.js │ │ │ │ │ ├── Error.js │ │ │ │ │ ├── Hamburger.js │ │ │ │ │ ├── Search.js │ │ │ │ │ ├── Upload.js │ │ │ │ │ ├── Calendar.js │ │ │ │ │ ├── ChevronDown.js │ │ │ │ │ ├── CloseIcon.js │ │ │ │ │ ├── SignOut.js │ │ │ │ │ ├── ThLarge.js │ │ │ │ │ ├── ThList.js │ │ │ │ │ ├── Warning.js │ │ │ │ │ ├── ImageArea.js │ │ │ │ │ ├── MoreVert.js │ │ │ │ │ ├── Question.js │ │ │ │ │ ├── CircleThin.js │ │ │ │ │ ├── FormatCode.js │ │ │ │ │ ├── Link.js │ │ │ │ │ ├── PlusCircle.js │ │ │ │ │ ├── Time.js │ │ │ │ │ ├── AngleDownIcon.js │ │ │ │ │ ├── CircleCheck.js │ │ │ │ │ ├── Fullscreen.js │ │ │ │ │ ├── Paste.js │ │ │ │ │ ├── SpinnerIcon.js │ │ │ │ │ ├── ViewColumn.js │ │ │ │ │ ├── ContentCopy.js │ │ │ │ │ ├── FormatBold.js │ │ │ │ │ ├── FormatItalic.js │ │ │ │ │ ├── FormatQuote.js │ │ │ │ │ ├── ArrowDropDown.js │ │ │ │ │ ├── SortAlphaDesc.js │ │ │ │ │ ├── FullscreenExit.js │ │ │ │ │ ├── TrashOutline.js │ │ │ │ │ ├── FormatUnderlined.js │ │ │ │ │ ├── PlusCircleOutline.js │ │ │ │ │ ├── FormatListBulleted.js │ │ │ │ │ ├── FormatListNumbered.js │ │ │ │ │ └── FormatStrikethrough.js │ │ │ │ └── styles │ │ │ │ │ └── SanityRoot.css │ │ │ ├── router │ │ │ │ └── index.js │ │ │ ├── datastores │ │ │ │ ├── user │ │ │ │ │ └── index.js │ │ │ │ ├── project │ │ │ │ │ └── index.js │ │ │ │ └── location │ │ │ │ │ └── index.js │ │ │ ├── index.js │ │ │ ├── styles │ │ │ │ ├── fonts.css │ │ │ │ ├── variables │ │ │ │ │ ├── override.css │ │ │ │ │ ├── list.css │ │ │ │ │ └── code.css │ │ │ │ ├── forms │ │ │ │ │ └── control.css │ │ │ │ ├── layout │ │ │ │ │ └── box.css │ │ │ │ └── typography │ │ │ │ │ └── code.css │ │ │ └── preview │ │ │ │ └── index.js │ │ ├── .babelrc │ │ ├── README.md │ │ ├── test │ │ │ ├── mocha.opts │ │ │ └── init.js │ │ └── .gitignore │ ├── webpack-integration │ │ ├── .gitignore │ │ ├── v1.js │ │ ├── v2.js │ │ ├── v3.js │ │ └── .eslintrc │ ├── date-input │ │ ├── .gitignore │ │ ├── schema.js │ │ ├── README.md │ │ └── sanity.json │ ├── presence-store │ │ └── .gitignore │ ├── preview │ │ ├── .npmignore │ │ ├── .babelrc │ │ ├── test │ │ │ └── .eslintrc │ │ ├── .flowconfig │ │ ├── README.md │ │ ├── jest.config.js │ │ ├── src │ │ │ ├── observePaths.js │ │ │ ├── streams │ │ │ │ ├── orientationChange.js │ │ │ │ ├── visibilityChange.js │ │ │ │ ├── resize.js │ │ │ │ └── scroll.js │ │ │ └── constants.js │ │ ├── .gitignore │ │ └── components.js │ ├── reflector-client │ │ └── .gitignore │ ├── resolver │ │ ├── .npmignore │ │ ├── .travis.yml │ │ ├── test │ │ │ ├── mocha.opts │ │ │ ├── .eslintrc │ │ │ └── init.js │ │ ├── README.md │ │ ├── .gitignore │ │ └── src │ │ │ └── removeDuplicatePlugins.js │ ├── schema │ │ ├── .npmignore │ │ ├── src │ │ │ ├── legacy │ │ │ │ ├── index.js │ │ │ │ ├── preview │ │ │ │ │ └── primitivePreview.js │ │ │ │ └── types │ │ │ │ │ └── document.js │ │ │ └── sanity │ │ │ │ ├── inspect.js │ │ │ │ ├── helpfulError.js │ │ │ │ ├── traverseSchema.js │ │ │ │ └── validation │ │ │ │ └── types │ │ │ │ └── common.js │ │ ├── .babelrc │ │ ├── test │ │ │ └── .eslintrc │ │ ├── .flowconfig │ │ ├── jest.config.js │ │ ├── .gitignore │ │ └── member-types.md │ ├── state-router │ │ ├── .npmignore │ │ ├── src │ │ │ ├── components │ │ │ │ ├── StateButton.js │ │ │ │ └── index.js │ │ │ ├── utils │ │ │ │ ├── hasOwn.js │ │ │ │ ├── arrayify.js │ │ │ │ ├── debug.js │ │ │ │ └── isEmpty.js │ │ │ └── index.js │ │ ├── components.js │ │ ├── .babelrc │ │ ├── .travis.yml │ │ ├── .babel-init.js │ │ ├── perf │ │ │ └── .eslintrc │ │ ├── .gitignore │ │ ├── .flowconfig │ │ └── test │ │ │ └── _util │ │ │ └── test.js │ ├── validation │ │ ├── .eslintignore │ │ ├── .eslintrc │ │ ├── .gitignore │ │ ├── .npmignore │ │ ├── test │ │ │ └── .eslintrc │ │ └── src │ │ │ ├── util │ │ │ ├── escapeRegex.js │ │ │ └── prefixPaths.js │ │ │ └── index.js │ ├── block-tools │ │ ├── .npmignore │ │ ├── test │ │ │ ├── tests │ │ │ │ ├── HtmlDeserializer │ │ │ │ │ ├── customSchema │ │ │ │ │ │ ├── input.html │ │ │ │ │ │ └── output.json │ │ │ │ │ ├── noBlockType │ │ │ │ │ │ ├── input.html │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── word │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── blockTags │ │ │ │ │ │ └── input.html │ │ │ │ │ ├── customRules │ │ │ │ │ │ └── input.html │ │ │ │ │ ├── decorators │ │ │ │ │ │ └── input.html │ │ │ │ │ └── annotations │ │ │ │ │ │ └── input.html │ │ │ │ └── converters │ │ │ │ │ ├── slateStateToBlocks │ │ │ │ │ ├── markDefs │ │ │ │ │ │ └── index.js │ │ │ │ │ └── decorators │ │ │ │ │ │ └── index.js │ │ │ │ │ └── blocksToSlateState │ │ │ │ │ └── decorators │ │ │ │ │ └── index.js │ │ │ ├── .eslintrc │ │ │ └── setup.js │ │ └── .gitignore │ ├── default-layout │ │ ├── .npmignore │ │ ├── .babelrc │ │ ├── example │ │ │ ├── schema.js │ │ │ ├── Main.js │ │ │ ├── plugins │ │ │ │ ├── my-tool │ │ │ │ │ └── sanity.json │ │ │ │ └── my-other-tool │ │ │ │ │ └── sanity.json │ │ │ ├── previewResolver.js │ │ │ ├── config │ │ │ │ ├── @sanity │ │ │ │ │ └── default-layout.json │ │ │ │ └── .checksums │ │ │ ├── authFetcher.js │ │ │ └── LoginDialog.js │ │ ├── config.dist.json │ │ ├── .gitignore │ │ └── src │ │ │ ├── components │ │ │ └── NotFound.js │ │ │ └── util │ │ │ └── reconfigureClient.js │ ├── language-filter │ │ ├── .gitignore │ │ ├── src │ │ │ └── filter-fields.js │ │ ├── .babelrc │ │ └── .npmignore │ ├── server │ │ ├── .npmignore │ │ ├── .babelrc │ │ ├── public │ │ │ └── favicon.png │ │ ├── .eslintrc │ │ ├── .gitignore │ │ └── src │ │ │ ├── configs │ │ │ ├── postcssPlugins.js │ │ │ └── babel-env-config.js │ │ │ ├── prodServer.js │ │ │ ├── browser │ │ │ └── entry.js │ │ │ └── util │ │ │ └── applyStaticLoaderFix.js │ ├── webpack-loader │ │ ├── .npmignore │ │ ├── src │ │ │ ├── emptyPart.js │ │ │ └── unimplementedPart.js │ │ ├── .eslintrc │ │ └── .gitignore │ ├── imagetool │ │ ├── .npmignore │ │ ├── index.js │ │ ├── constants.js │ │ ├── HotspotImage.js │ │ ├── test │ │ │ └── .eslintrc │ │ ├── .gitignore │ │ ├── calculateStyles.js │ │ ├── example │ │ │ ├── .eslintrc │ │ │ ├── public │ │ │ │ ├── hubble.jpg │ │ │ │ ├── koala.jpg │ │ │ │ ├── pigs-nose.png │ │ │ │ ├── dog_smaller.jpg │ │ │ │ └── storesmeden.jpg │ │ │ └── src │ │ │ │ └── history.js │ │ ├── src │ │ │ ├── styles │ │ │ │ ├── HotspotImage.css │ │ │ │ └── ImageTool.css │ │ │ └── constants.js │ │ ├── resources │ │ │ ├── openhand.cur │ │ │ ├── openhand.png │ │ │ ├── closedhand.cur │ │ │ └── closedhand.png │ │ └── .babelrc │ ├── observable │ │ ├── .gitignore │ │ ├── minimal.js │ │ ├── operators │ │ │ ├── map.js │ │ │ ├── filter.js │ │ │ └── reduce.js │ │ ├── .eslintrc │ │ ├── .npmignore │ │ ├── .babelrc │ │ └── README.md │ ├── uuid │ │ ├── index.js │ │ ├── .eslintrc │ │ └── README.md │ ├── production-preview │ │ ├── .npmignore │ │ ├── .babelrc │ │ ├── .gitignore │ │ └── src │ │ │ └── resolveProductionUrl.js │ ├── vision │ │ ├── .babelrc │ │ ├── tool.js │ │ ├── README.md │ │ ├── .npmignore │ │ ├── src │ │ │ ├── components │ │ │ │ └── LoadingSpinner.js │ │ │ ├── util │ │ │ │ ├── isPlainObject.js │ │ │ │ ├── calendarDate.js │ │ │ │ ├── request.js │ │ │ │ ├── encodeQueryString.js │ │ │ │ ├── tryParseParams.js │ │ │ │ └── parseApiQueryString.js │ │ │ └── VisionTool.js │ │ ├── .gitignore │ │ └── sanity.json │ ├── code-input │ │ ├── .babelrc │ │ ├── .npmignore │ │ ├── src │ │ │ ├── HighlightMarkers.css │ │ │ └── Preview.css │ │ ├── .gitignore │ │ └── README.md │ ├── color-input │ │ ├── .babelrc │ │ ├── .npmignore │ │ ├── .gitignore │ │ └── src │ │ │ └── ColorPickerFields.css │ ├── core │ │ ├── src │ │ │ ├── requiredCliVersionRange.js │ │ │ ├── debug.js │ │ │ ├── util │ │ │ │ ├── normalizePluginName.js │ │ │ │ ├── isProduction.js │ │ │ │ ├── trimQuery.js │ │ │ │ ├── generateGuid.js │ │ │ │ └── getStreamForUri.js │ │ │ ├── commands │ │ │ │ ├── hook │ │ │ │ │ └── hookGroup.js │ │ │ │ ├── cors │ │ │ │ │ └── corsGroup.js │ │ │ │ ├── dataset │ │ │ │ │ └── datasetGroup.js │ │ │ │ ├── documents │ │ │ │ │ └── documentsGroup.js │ │ │ │ └── check │ │ │ │ │ └── checkCommand.js │ │ │ ├── index.js │ │ │ └── actions │ │ │ │ └── exec │ │ │ │ └── babel.js │ │ ├── test │ │ │ ├── mocha.opts │ │ │ ├── init.js │ │ │ └── core.test.js │ │ ├── .npmignore │ │ ├── README.md │ │ ├── .eslintrc │ │ └── .gitignore │ ├── data-aspects │ │ ├── config.dist.json │ │ ├── .npmignore │ │ └── .gitignore │ ├── default-login │ │ ├── .babelrc │ │ ├── .npmignore │ │ ├── src │ │ │ └── styles │ │ │ │ └── LoginDialog.css │ │ ├── config.dist.json │ │ ├── locale │ │ │ └── en-US.json │ │ └── .gitignore │ ├── eventsource │ │ ├── node.js │ │ ├── .eslintrc │ │ ├── README.md │ │ └── browser.js │ ├── google-maps-input │ │ ├── .babelrc │ │ ├── .npmignore │ │ ├── config.dist.json │ │ ├── example │ │ │ └── config │ │ │ │ ├── @sanity │ │ │ │ └── google-maps-input.json │ │ │ │ └── .checksums │ │ ├── .gitignore │ │ ├── README.md │ │ └── sanity.json │ ├── import │ │ ├── test │ │ │ ├── helpers │ │ │ │ └── index.js │ │ │ ├── .eslintrc │ │ │ └── fixtures │ │ │ │ ├── img.gif │ │ │ │ ├── invalid-json.ndjson │ │ │ │ ├── employees.ndjson │ │ │ │ ├── missing-type.ndjson │ │ │ │ ├── valid-but-missing-ids.ndjson │ │ │ │ ├── invalid-id.ndjson │ │ │ │ ├── invalid-id-format.ndjson │ │ │ │ ├── unkeyed.ndjson │ │ │ │ └── mock-assets.js │ │ ├── .npmignore │ │ ├── .eslintrc │ │ ├── src │ │ │ └── assignDocumentId.js │ │ └── .gitignore │ ├── rich-date-input │ │ ├── .babelrc │ │ ├── schema.js │ │ ├── .npmignore │ │ ├── src │ │ │ └── index.js │ │ └── .gitignore │ ├── document-store │ │ ├── .npmignore │ │ ├── src │ │ │ ├── index.js │ │ │ └── utils │ │ │ │ └── debug.js │ │ └── .gitignore │ ├── document-window │ │ ├── .npmignore │ │ ├── .eslintrc │ │ ├── .gitignore │ │ ├── test │ │ │ └── .eslintrc │ │ └── src │ │ │ ├── Constants.js │ │ │ └── sortOrderToOperator.js │ ├── export │ │ ├── src │ │ │ ├── debug.js │ │ │ ├── stringifyStream.js │ │ │ ├── requestStream.js │ │ │ ├── rejectOnApiError.js │ │ │ └── filterDrafts.js │ │ ├── test │ │ │ └── .eslintrc │ │ ├── .npmignore │ │ ├── .eslintrc │ │ └── .gitignore │ ├── plugin-loader │ │ ├── test │ │ │ ├── fixture │ │ │ │ ├── plugins │ │ │ │ │ ├── @sanity │ │ │ │ │ │ └── some-plugin │ │ │ │ │ │ │ └── sanity.json │ │ │ │ │ ├── date │ │ │ │ │ │ ├── base.css │ │ │ │ │ │ ├── getIsoDate.js │ │ │ │ │ │ ├── getTimestamp.js │ │ │ │ │ │ └── datepicker.css │ │ │ │ │ └── better-date │ │ │ │ │ │ ├── getBetterTimestamp.js │ │ │ │ │ │ └── sanity.json │ │ │ │ ├── config │ │ │ │ │ ├── better-date.json │ │ │ │ │ └── @sanity │ │ │ │ │ │ └── some-plugin.json │ │ │ │ ├── getBar.js │ │ │ │ └── folder │ │ │ │ │ └── index.js │ │ │ ├── versionsFixture │ │ │ │ ├── node_modules │ │ │ │ │ └── @sanity │ │ │ │ │ │ ├── base │ │ │ │ │ │ ├── sanity.json │ │ │ │ │ │ ├── placeholder.js │ │ │ │ │ │ └── package.json │ │ │ │ │ │ └── components │ │ │ │ │ │ ├── sanity.json │ │ │ │ │ │ ├── placeholder.js │ │ │ │ │ │ └── package.json │ │ │ │ ├── sanity.json │ │ │ │ └── package.json │ │ │ └── .eslintrc │ │ ├── .eslintrc │ │ ├── README.md │ │ └── register.js │ ├── import-cli │ │ ├── .npmignore │ │ ├── .eslintrc │ │ └── .gitignore │ └── generate-help-url │ │ ├── index.js │ │ ├── .eslintrc │ │ └── test │ │ └── generate-help-url.test.js ├── blog-studio │ ├── plugins │ │ └── .gitkeep │ ├── config │ │ └── @sanity │ │ │ ├── data-aspects.json │ │ │ ├── default-layout.json │ │ │ ├── default-login.json │ │ │ └── google-maps-input.json │ ├── schemas │ │ └── schema.js │ ├── static │ │ └── .gitkeep │ ├── .gitignore │ └── README.md ├── storybook │ └── config │ │ └── @sanity │ │ ├── storybook.json │ │ ├── data-aspects.json │ │ ├── default-layout.json │ │ └── google-maps-input.json ├── test-studio │ ├── config │ │ └── @sanity │ │ │ ├── storybook.json │ │ │ ├── data-aspects.json │ │ │ ├── default-layout.json │ │ │ ├── default-login.json │ │ │ └── google-maps-input.json │ ├── static │ │ └── .gitkeep │ ├── README.md │ ├── src │ │ ├── components │ │ │ ├── fonts │ │ │ │ ├── Rye-Regular.eot │ │ │ │ ├── Rye-Regular.otf │ │ │ │ ├── Rye-Regular.ttf │ │ │ │ ├── Rye-Regular.woff │ │ │ │ └── Rye-Regular.woff2 │ │ │ ├── PertEstimate.js │ │ │ ├── PertEstimate.css │ │ │ ├── SearchableArrayFunctions.css │ │ │ └── AuthorReferenceInput.css │ │ └── resolveProductionUrl.js │ ├── schemas │ │ ├── customNumber.js │ │ └── empty.js │ └── .gitignore ├── example-studio │ ├── components │ │ ├── Slider │ │ │ └── index.js │ │ ├── FunkyEditor │ │ │ └── index.js │ │ ├── VideoEmbedPreview │ │ │ ├── index.js │ │ │ └── VideoEmbedPreview.css │ │ └── VideoEmbedInput │ │ │ ├── index.js │ │ │ └── VideoEmbedInput.css │ ├── config │ │ └── @sanity │ │ │ ├── storybook.json │ │ │ ├── default-layout.json │ │ │ ├── default-login.json │ │ │ └── data-aspects.json │ ├── plugins │ │ ├── .gitkeep │ │ └── dark-theme │ │ │ ├── README.md │ │ │ ├── .gitignore │ │ │ └── sanity.json │ ├── README.md │ ├── static │ │ └── .gitkeep │ ├── parts │ │ ├── AuthorPreview.css │ │ └── languageFilterConfig.js │ ├── .gitignore │ └── schemas │ │ ├── localeString.js │ │ └── localeBlockContent.js ├── movies-studio │ ├── plugins │ │ └── .gitkeep │ ├── config │ │ └── @sanity │ │ │ ├── data-aspects.json │ │ │ ├── default-layout.json │ │ │ ├── default-login.json │ │ │ └── google-maps-input.json │ ├── schemas │ │ └── schema.js │ ├── static │ │ └── .gitkeep │ ├── .gitignore │ └── README.md ├── ecommerce-studio │ ├── config │ │ └── @sanity │ │ │ ├── data-aspects.json │ │ │ ├── default-layout.json │ │ │ └── default-login.json │ ├── schemas │ │ └── schema.js │ └── plugins │ │ └── barcode-input │ │ └── sanity.json └── eslint-config-sanity │ ├── .eslintrc │ └── README.md ├── scripts ├── .eslintrc └── transformPkgs.js ├── .prettierrc ├── .stylelintignore ├── .eslintignore ├── babel.config.js └── .editorconfig /packages/@sanity/check/sanity.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/@sanity/util/.npmignore: -------------------------------------------------------------------------------- 1 | src/ 2 | -------------------------------------------------------------------------------- /packages/@sanity/cli/test/.gitkeep: -------------------------------------------------------------------------------- 1 | Keep me 2 | -------------------------------------------------------------------------------- /packages/@sanity/client/umd/.gitkeep: -------------------------------------------------------------------------------- 1 | Keep me 2 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/docs/styling.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/@sanity/storybook/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | -------------------------------------------------------------------------------- /packages/@sanity/components/src/menus/FabActions.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/@sanity/desk-tool/.npmignore: -------------------------------------------------------------------------------- 1 | src 2 | 3 | -------------------------------------------------------------------------------- /packages/@sanity/image-url/.eslintignore: -------------------------------------------------------------------------------- 1 | lib/ 2 | -------------------------------------------------------------------------------- /packages/@sanity/image-url/umd/.gitkeep: -------------------------------------------------------------------------------- 1 | Keep me! 2 | -------------------------------------------------------------------------------- /packages/@sanity/mutator/.flowconfig: -------------------------------------------------------------------------------- 1 | [options] 2 | -------------------------------------------------------------------------------- /packages/@sanity/base/.npmignore: -------------------------------------------------------------------------------- 1 | src/ 2 | coverage/ 3 | -------------------------------------------------------------------------------- /packages/@sanity/webpack-integration/.gitignore: -------------------------------------------------------------------------------- 1 | lib/ 2 | -------------------------------------------------------------------------------- /packages/@sanity/components/src/clickToScroll/ClickToScroll.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/@sanity/date-input/.gitignore: -------------------------------------------------------------------------------- 1 | lib 2 | node_modules 3 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/docs/validation.md: -------------------------------------------------------------------------------- 1 | # Validation -------------------------------------------------------------------------------- /packages/@sanity/mutator/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | flow-typed 3 | -------------------------------------------------------------------------------- /packages/@sanity/presence-store/.gitignore: -------------------------------------------------------------------------------- 1 | /tmp 2 | /lib 3 | -------------------------------------------------------------------------------- /packages/@sanity/preview/.npmignore: -------------------------------------------------------------------------------- 1 | src/ 2 | coverage/ 3 | .idea -------------------------------------------------------------------------------- /packages/@sanity/reflector-client/.gitignore: -------------------------------------------------------------------------------- 1 | /tmp 2 | /lib 3 | -------------------------------------------------------------------------------- /packages/@sanity/resolver/.npmignore: -------------------------------------------------------------------------------- 1 | src/ 2 | coverage/ 3 | -------------------------------------------------------------------------------- /packages/@sanity/schema/.npmignore: -------------------------------------------------------------------------------- 1 | src/ 2 | coverage/ 3 | .idea -------------------------------------------------------------------------------- /packages/@sanity/state-router/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | demo-server/ -------------------------------------------------------------------------------- /packages/@sanity/state-router/src/components/StateButton.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/@sanity/validation/.eslintignore: -------------------------------------------------------------------------------- 1 | lib 2 | coverage 3 | -------------------------------------------------------------------------------- /packages/@sanity/block-tools/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | test 3 | src 4 | -------------------------------------------------------------------------------- /packages/@sanity/default-layout/.npmignore: -------------------------------------------------------------------------------- 1 | src/ 2 | coverage/ 3 | -------------------------------------------------------------------------------- /packages/@sanity/language-filter/.gitignore: -------------------------------------------------------------------------------- 1 | lib 2 | node_modules 3 | -------------------------------------------------------------------------------- /packages/@sanity/server/.npmignore: -------------------------------------------------------------------------------- 1 | src/ 2 | coverage/ 3 | test/ 4 | -------------------------------------------------------------------------------- /packages/@sanity/webpack-loader/.npmignore: -------------------------------------------------------------------------------- 1 | coverage/ 2 | test/ 3 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/locale/intl.js: -------------------------------------------------------------------------------- 1 | export * from 'react-intl' 2 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/docs/custom-dataformat.md: -------------------------------------------------------------------------------- 1 | $type vs _type -------------------------------------------------------------------------------- /packages/@sanity/form-builder/examples/schema-testbed/config/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/@sanity/imagetool/.npmignore: -------------------------------------------------------------------------------- 1 | example 2 | test 3 | src 4 | .idea -------------------------------------------------------------------------------- /packages/@sanity/imagetool/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib') 2 | -------------------------------------------------------------------------------- /packages/@sanity/mutator/.babel-init.js: -------------------------------------------------------------------------------- 1 | require('babel-register') 2 | -------------------------------------------------------------------------------- /packages/@sanity/observable/.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | lib 3 | node_modules 4 | -------------------------------------------------------------------------------- /packages/@sanity/uuid/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('uuid/v4') 2 | -------------------------------------------------------------------------------- /packages/@sanity/webpack-loader/src/emptyPart.js: -------------------------------------------------------------------------------- 1 | module.exports = [] 2 | -------------------------------------------------------------------------------- /packages/@sanity/base/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | presets: ['@babel/react'] 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/client/src/http/browserMiddleware.js: -------------------------------------------------------------------------------- 1 | module.exports = [] 2 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/docs/advanced-patching.md: -------------------------------------------------------------------------------- 1 | # Patches and mutations -------------------------------------------------------------------------------- /packages/@sanity/mutator/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | presets: ['@babel/flow'] 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/production-preview/.npmignore: -------------------------------------------------------------------------------- 1 | .babelrc 2 | src 3 | test 4 | -------------------------------------------------------------------------------- /packages/@sanity/server/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | presets: ['@babel/react'] 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/storybook/config.dist.json: -------------------------------------------------------------------------------- 1 | { 2 | "port": 9001 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/vision/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | presets: ['@babel/react'] 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/code-input/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | presets: ['@babel/react'] 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/color-input/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | presets: ['@babel/react'] 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/components/README.md: -------------------------------------------------------------------------------- 1 | # components 2 | 3 | Basic UX components 4 | -------------------------------------------------------------------------------- /packages/@sanity/core/src/requiredCliVersionRange.js: -------------------------------------------------------------------------------- 1 | export default '>=0.127.1' 2 | -------------------------------------------------------------------------------- /packages/@sanity/data-aspects/config.dist.json: -------------------------------------------------------------------------------- 1 | { 2 | "listOptions": {} 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/default-login/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | presets: ['@babel/react'] 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/desk-tool/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | presets: ['@babel/react'] 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/eventsource/node.js: -------------------------------------------------------------------------------- 1 | module.exports = require('eventsource') 2 | -------------------------------------------------------------------------------- /packages/@sanity/schema/src/legacy/index.js: -------------------------------------------------------------------------------- 1 | export {default} from './Schema' 2 | -------------------------------------------------------------------------------- /packages/@sanity/storybook/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | presets: ['@babel/react'] 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/vision/tool.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/VisionTool') 2 | -------------------------------------------------------------------------------- /packages/@sanity/webpack-integration/v1.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./src/v1') 2 | -------------------------------------------------------------------------------- /packages/@sanity/webpack-integration/v2.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./src/v2') 2 | -------------------------------------------------------------------------------- /packages/@sanity/webpack-integration/v3.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./src/v3') 2 | -------------------------------------------------------------------------------- /packages/blog-studio/plugins/.gitkeep: -------------------------------------------------------------------------------- 1 | User-specific packages can be placed here 2 | -------------------------------------------------------------------------------- /packages/storybook/config/@sanity/storybook.json: -------------------------------------------------------------------------------- 1 | { 2 | "port": 9001 3 | } 4 | -------------------------------------------------------------------------------- /packages/test-studio/config/@sanity/storybook.json: -------------------------------------------------------------------------------- 1 | { 2 | "port": 9001 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/default-layout/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | presets: ['@babel/react'] 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/docs/advanced-customization.md: -------------------------------------------------------------------------------- 1 | # Advanced customizations -------------------------------------------------------------------------------- /packages/@sanity/google-maps-input/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | presets: ['@babel/react'] 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/imagetool/constants.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/constants') 2 | -------------------------------------------------------------------------------- /packages/@sanity/import/test/helpers/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./helpers') 2 | -------------------------------------------------------------------------------- /packages/@sanity/production-preview/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | presets: ['@babel/react'] 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/rich-date-input/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | presets: ['@babel/react'] 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/rich-date-input/schema.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/schema') 2 | -------------------------------------------------------------------------------- /packages/@sanity/schema/src/sanity/inspect.js: -------------------------------------------------------------------------------- 1 | export {default} from 'object-inspect' 2 | -------------------------------------------------------------------------------- /packages/@sanity/storybook/src/config/styles.css: -------------------------------------------------------------------------------- 1 | #root { 2 | padding: 1rem; 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/util/test/versionsFixture/node_modules/@sanity/base/sanity.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/example-studio/components/Slider/index.js: -------------------------------------------------------------------------------- 1 | export {default} from './Slider' 2 | -------------------------------------------------------------------------------- /packages/example-studio/config/@sanity/storybook.json: -------------------------------------------------------------------------------- 1 | { 2 | "port": 9001 3 | } 4 | -------------------------------------------------------------------------------- /packages/example-studio/plugins/.gitkeep: -------------------------------------------------------------------------------- 1 | User-specific packages can be placed here 2 | -------------------------------------------------------------------------------- /packages/movies-studio/plugins/.gitkeep: -------------------------------------------------------------------------------- 1 | User-specific packages can be placed here 2 | -------------------------------------------------------------------------------- /packages/storybook/config/@sanity/data-aspects.json: -------------------------------------------------------------------------------- 1 | { 2 | "listOptions": {} 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/components/src/utilities/Portal/index.js: -------------------------------------------------------------------------------- 1 | export {Portal} from './Portal' 2 | -------------------------------------------------------------------------------- /packages/@sanity/document-store/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | example-app 3 | test 4 | form-builder-old -------------------------------------------------------------------------------- /packages/@sanity/document-window/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | example-app 3 | test 4 | coverage 5 | -------------------------------------------------------------------------------- /packages/@sanity/export/src/debug.js: -------------------------------------------------------------------------------- 1 | module.exports = require('debug')('sanity:export') 2 | -------------------------------------------------------------------------------- /packages/@sanity/imagetool/HotspotImage.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/HotspotImage') 2 | -------------------------------------------------------------------------------- /packages/@sanity/mutator/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "4" 4 | - "6" -------------------------------------------------------------------------------- /packages/@sanity/plugin-loader/test/fixture/plugins/@sanity/some-plugin/sanity.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/@sanity/preview/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | presets: ['@babel/flow', '@babel/react'] 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/schema/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | presets: ['@babel/react', '@babel/flow'] 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/state-router/components.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/components') 2 | -------------------------------------------------------------------------------- /packages/@sanity/util/test/versionsFixture/node_modules/@sanity/components/sanity.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/blog-studio/config/@sanity/data-aspects.json: -------------------------------------------------------------------------------- 1 | { 2 | "typeOptions": {} 3 | } 4 | -------------------------------------------------------------------------------- /packages/movies-studio/config/@sanity/data-aspects.json: -------------------------------------------------------------------------------- 1 | { 2 | "typeOptions": {} 3 | } 4 | -------------------------------------------------------------------------------- /packages/test-studio/config/@sanity/data-aspects.json: -------------------------------------------------------------------------------- 1 | { 2 | "listOptions": {} 3 | } 4 | -------------------------------------------------------------------------------- /scripts/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "import/no-commonjs": "off" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /packages/@sanity/cli/templates/blog/plugins/.gitkeep: -------------------------------------------------------------------------------- 1 | User-specific packages can be placed here 2 | -------------------------------------------------------------------------------- /packages/@sanity/cli/test/mocha.opts: -------------------------------------------------------------------------------- 1 | --compilers js:@babel/register 2 | --require test/init.js 3 | -------------------------------------------------------------------------------- /packages/@sanity/components/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | presets: ['@babel/react', '@babel/flow'] 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/components/src/menus/styles/FabActions.css: -------------------------------------------------------------------------------- 1 | .root { 2 | /* empty */ 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/default-layout/example/schema.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | types: [] 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/document-store/src/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./createDocumentStore') 2 | -------------------------------------------------------------------------------- /packages/@sanity/export/test/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "jest": true 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /packages/@sanity/image-url/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | src 3 | .idea 4 | .babelrc 5 | node_modules 6 | -------------------------------------------------------------------------------- /packages/@sanity/image-url/test/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "jest": true 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /packages/@sanity/imagetool/test/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "mocha": true 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /packages/@sanity/plugin-loader/test/versionsFixture/node_modules/@sanity/base/sanity.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/@sanity/preview/test/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "jest": true 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /packages/@sanity/schema/test/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "jest": true 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /packages/@sanity/state-router/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | presets: ['@babel/react', '@babel/flow'] 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/state-router/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "4" 4 | - "6" -------------------------------------------------------------------------------- /packages/ecommerce-studio/config/@sanity/data-aspects.json: -------------------------------------------------------------------------------- 1 | { 2 | "listOptions": {} 3 | } 4 | -------------------------------------------------------------------------------- /packages/example-studio/components/FunkyEditor/index.js: -------------------------------------------------------------------------------- 1 | export {default} from './FunkyEditor' 2 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/Sort.js: -------------------------------------------------------------------------------- 1 | export {default} from 'react-icons/lib/fa/sort' 2 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/Undo.js: -------------------------------------------------------------------------------- 1 | export {default} from 'react-icons/lib/md/undo' 2 | -------------------------------------------------------------------------------- /packages/@sanity/cli/templates/clean/plugins/.gitkeep: -------------------------------------------------------------------------------- 1 | User-specific packages can be placed here 2 | -------------------------------------------------------------------------------- /packages/@sanity/cli/templates/ecommerce/plugins/.gitkeep: -------------------------------------------------------------------------------- 1 | User-specific packages can be placed here 2 | -------------------------------------------------------------------------------- /packages/@sanity/cli/templates/moviedb/plugins/.gitkeep: -------------------------------------------------------------------------------- 1 | User-specific packages can be placed here 2 | -------------------------------------------------------------------------------- /packages/@sanity/components/src/textinputs/DefaultTextInput.js: -------------------------------------------------------------------------------- 1 | export {default} from './TextInput' 2 | -------------------------------------------------------------------------------- /packages/@sanity/core/test/mocha.opts: -------------------------------------------------------------------------------- 1 | --compilers js:@babel/register 2 | --require ./test/init.js 3 | -------------------------------------------------------------------------------- /packages/@sanity/date-input/schema.js: -------------------------------------------------------------------------------- 1 | module.exports = require('@sanity/rich-date-input/schema') 2 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | example-app 3 | test 4 | src 5 | form-builder-old -------------------------------------------------------------------------------- /packages/@sanity/form-builder/src/inputs/ArrayInput/index.js: -------------------------------------------------------------------------------- 1 | export {default} from './ArrayInput' 2 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/src/inputs/FileInput/index.js: -------------------------------------------------------------------------------- 1 | export {default} from './FileInput' 2 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/src/inputs/ImageInput/index.js: -------------------------------------------------------------------------------- 1 | export {default} from './ImageInput' 2 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/src/inputs/ObjectInput/index.js: -------------------------------------------------------------------------------- 1 | export {default} from './ObjectInput' 2 | -------------------------------------------------------------------------------- /packages/@sanity/imagetool/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | npm-debug.log 3 | package-lock.json 4 | /lib 5 | -------------------------------------------------------------------------------- /packages/@sanity/imagetool/calculateStyles.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/calculateStyles') 2 | -------------------------------------------------------------------------------- /packages/@sanity/observable/minimal.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/SanityObservableMinimal') 2 | -------------------------------------------------------------------------------- /packages/@sanity/plugin-loader/test/fixture/config/better-date.json: -------------------------------------------------------------------------------- 1 | { 2 | "superduper": true 3 | } -------------------------------------------------------------------------------- /packages/@sanity/plugin-loader/test/versionsFixture/node_modules/@sanity/components/sanity.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /packages/@sanity/resolver/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "6.0" 4 | - "4.0" 5 | -------------------------------------------------------------------------------- /packages/@sanity/resolver/test/mocha.opts: -------------------------------------------------------------------------------- 1 | --compilers js:@babel/register 2 | --require test/init.js 3 | -------------------------------------------------------------------------------- /packages/@sanity/storybook/src/addons/Knobs.js: -------------------------------------------------------------------------------- 1 | module.exports = require('@storybook/addon-knobs') 2 | -------------------------------------------------------------------------------- /packages/@sanity/util/README.md: -------------------------------------------------------------------------------- 1 | # @sanity/util 2 | 3 | Utilities shared across projects of Sanity 4 | -------------------------------------------------------------------------------- /packages/@sanity/util/test/mocha.opts: -------------------------------------------------------------------------------- 1 | --compilers js:@babel/register 2 | --require test/init.js 3 | -------------------------------------------------------------------------------- /packages/example-studio/components/VideoEmbedPreview/index.js: -------------------------------------------------------------------------------- 1 | export * from './VideoEmbedPreview' 2 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/Public.js: -------------------------------------------------------------------------------- 1 | export {default} from 'react-icons/lib/md/public' 2 | -------------------------------------------------------------------------------- /packages/@sanity/check/.npmignore: -------------------------------------------------------------------------------- 1 | .babelrc 2 | .editorconfig 3 | .eslintignore 4 | .eslintrc 5 | test 6 | -------------------------------------------------------------------------------- /packages/@sanity/cli/templates/blog/config/@sanity/data-aspects.json: -------------------------------------------------------------------------------- 1 | { 2 | "listOptions": {} 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/cli/templates/moviedb/config/@sanity/data-aspects.json: -------------------------------------------------------------------------------- 1 | { 2 | "listOptions": {} 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/cli/test/fixtures/bin/version-stub/sanity: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | console.log('1.3.37') 3 | -------------------------------------------------------------------------------- /packages/@sanity/client/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "import/no-commonjs": "off" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /packages/@sanity/export/.npmignore: -------------------------------------------------------------------------------- 1 | .babelrc 2 | .editorconfig 3 | .eslintignore 4 | .eslintrc 5 | test 6 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/src/inputs/BlockEditor-slate/index.js: -------------------------------------------------------------------------------- 1 | export {default} from './Syncer' 2 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/src/sanity/uploads/constants.js: -------------------------------------------------------------------------------- 1 | export const UPLOAD_STATUS_KEY = '_upload' 2 | -------------------------------------------------------------------------------- /packages/@sanity/import/.npmignore: -------------------------------------------------------------------------------- 1 | .babelrc 2 | .editorconfig 3 | .eslintignore 4 | .eslintrc 5 | test 6 | -------------------------------------------------------------------------------- /packages/@sanity/language-filter/src/filter-fields.js: -------------------------------------------------------------------------------- 1 | export {filterFn$ as default} from './datastore' 2 | -------------------------------------------------------------------------------- /packages/@sanity/observable/operators/map.js: -------------------------------------------------------------------------------- 1 | exports.map = require('rxjs/internal/operators/map').map 2 | -------------------------------------------------------------------------------- /packages/@sanity/plugin-loader/test/fixture/plugins/date/base.css: -------------------------------------------------------------------------------- 1 | .base { 2 | text-align: right; 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/state-router/.babel-init.js: -------------------------------------------------------------------------------- 1 | require('babel-register') 2 | require('babel-polyfill') 3 | -------------------------------------------------------------------------------- /packages/@sanity/uuid/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "import/no-commonjs": "off" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /packages/@sanity/validation/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "import/no-commonjs": 0 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /packages/@sanity/validation/.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | coverage 3 | yarn.lock 4 | package-lock.json 5 | lib 6 | -------------------------------------------------------------------------------- /packages/example-studio/components/VideoEmbedInput/index.js: -------------------------------------------------------------------------------- 1 | export {default} from './VideoEmbedInput' 2 | -------------------------------------------------------------------------------- /packages/example-studio/plugins/dark-theme/README.md: -------------------------------------------------------------------------------- 1 | # dark-theme 2 | 3 | Makes the studio look dark 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/AngleUpIcon.js: -------------------------------------------------------------------------------- 1 | export {default} from 'react-icons/lib/fa/angle-up' 2 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/Binary.js: -------------------------------------------------------------------------------- 1 | export {default} from 'react-icons/lib/go/file-binary' 2 | -------------------------------------------------------------------------------- /packages/@sanity/core/.npmignore: -------------------------------------------------------------------------------- 1 | .babelrc 2 | .editorconfig 3 | .eslintignore 4 | .eslintrc 5 | src 6 | test 7 | -------------------------------------------------------------------------------- /packages/@sanity/core/src/debug.js: -------------------------------------------------------------------------------- 1 | import debug from 'debug' 2 | 3 | export default debug('sanity:core') 4 | -------------------------------------------------------------------------------- /packages/@sanity/eventsource/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "import/no-commonjs": "off" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | presets: ['@babel/preset-react', '@babel/preset-flow'] 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/src/inputs/ImageToolInput/index.js: -------------------------------------------------------------------------------- 1 | export {default} from './ImageToolInput' 2 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/src/inputs/ReferenceInput/index.js: -------------------------------------------------------------------------------- 1 | export {default} from './ReferenceInput' 2 | -------------------------------------------------------------------------------- /packages/@sanity/image-url/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | npm-debug.log 3 | package-lock.json 4 | /lib 5 | /umd 6 | -------------------------------------------------------------------------------- /packages/@sanity/import-cli/.npmignore: -------------------------------------------------------------------------------- 1 | .babelrc 2 | .editorconfig 3 | .eslintignore 4 | .eslintrc 5 | test 6 | -------------------------------------------------------------------------------- /packages/@sanity/import/test/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": {"node": true, "browser": false, "jest": true} 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/observable/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "import/no-commonjs": "off" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /packages/@sanity/plugin-loader/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "import/no-commonjs": "off" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /packages/@sanity/plugin-loader/test/fixture/config/@sanity/some-plugin.json: -------------------------------------------------------------------------------- 1 | { 2 | "subway": "coding" 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/plugin-loader/test/fixture/getBar.js: -------------------------------------------------------------------------------- 1 | module.exports = function() { 2 | return 'bar' 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/util/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "browser": false, 4 | "node": true 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/@sanity/vision/README.md: -------------------------------------------------------------------------------- 1 | # sanity-vision 2 | React-based data management tool for Sanity projects 3 | -------------------------------------------------------------------------------- /packages/blog-studio/schemas/schema.js: -------------------------------------------------------------------------------- 1 | export {default} from '@sanity/cli/templates/blog/schemas/schema.js' 2 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/Visibility.js: -------------------------------------------------------------------------------- 1 | export {default} from 'react-icons/lib/md/visibility' 2 | -------------------------------------------------------------------------------- /packages/@sanity/cli/src/actions/init-project/templates/pluginGitKeep: -------------------------------------------------------------------------------- 1 | User-specific packages can be placed here 2 | -------------------------------------------------------------------------------- /packages/@sanity/cli/src/debug.js: -------------------------------------------------------------------------------- 1 | const debug = require('debug') 2 | 3 | module.exports = debug('sanity:cli') 4 | -------------------------------------------------------------------------------- /packages/@sanity/code-input/.npmignore: -------------------------------------------------------------------------------- 1 | .babelrc 2 | .editorconfig 3 | .eslintignore 4 | .eslintrc 5 | src 6 | test 7 | -------------------------------------------------------------------------------- /packages/@sanity/components/.npmignore: -------------------------------------------------------------------------------- 1 | .babelrc 2 | .editorconfig 3 | .eslintignore 4 | .eslintrc 5 | src 6 | test 7 | -------------------------------------------------------------------------------- /packages/@sanity/components/src/lists/sortable-grid/styles/SortableGridItem.css: -------------------------------------------------------------------------------- 1 | .root { 2 | cursor: move; 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/default-layout/example/Main.js: -------------------------------------------------------------------------------- 1 | export {default} from '../src/components/DefaultLayoutContainer' 2 | -------------------------------------------------------------------------------- /packages/@sanity/document-window/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "import/no-commonjs": "off" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/src/inputs/InvalidValueInput/index.js: -------------------------------------------------------------------------------- 1 | export {default} from './InvalidValueInput' 2 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/src/inputs/OptionsArrayInput/index.js: -------------------------------------------------------------------------------- 1 | export {default} from './OptionsArrayInput' 2 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/test/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": [ 3 | "css-modules-transform" 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /packages/@sanity/imagetool/example/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "import/no-commonjs": "off" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /packages/@sanity/imagetool/src/styles/HotspotImage.css: -------------------------------------------------------------------------------- 1 | .root { 2 | position: relative; 3 | width: 100%; 4 | } 5 | -------------------------------------------------------------------------------- /packages/@sanity/language-filter/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | presets: ['@babel/preset-react', '@babel/preset-flow'] 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/language-filter/.npmignore: -------------------------------------------------------------------------------- 1 | .babelrc 2 | .editorconfig 3 | .eslintignore 4 | .eslintrc 5 | test 6 | -------------------------------------------------------------------------------- /packages/@sanity/observable/operators/filter.js: -------------------------------------------------------------------------------- 1 | exports.filter = require('rxjs/internal/operators/filter').filter 2 | -------------------------------------------------------------------------------- /packages/@sanity/observable/operators/reduce.js: -------------------------------------------------------------------------------- 1 | exports.reduce = require('rxjs/internal/operators/reduce').reduce 2 | -------------------------------------------------------------------------------- /packages/@sanity/production-preview/.gitignore: -------------------------------------------------------------------------------- 1 | *.log 2 | lib 3 | node_modules 4 | yarn.lock 5 | package-lock.json 6 | -------------------------------------------------------------------------------- /packages/@sanity/resolver/README.md: -------------------------------------------------------------------------------- 1 | # resolver 2 | 3 | Resolves parts and plugins from a Sanity configuration 4 | -------------------------------------------------------------------------------- /packages/@sanity/state-router/perf/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "import/no-commonjs": "off" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /packages/@sanity/vision/.npmignore: -------------------------------------------------------------------------------- 1 | .babelrc 2 | .editorconfig 3 | .eslintignore 4 | .eslintrc 5 | src 6 | test 7 | -------------------------------------------------------------------------------- /packages/movies-studio/schemas/schema.js: -------------------------------------------------------------------------------- 1 | export {default} from '@sanity/cli/templates/moviedb/schemas/schema.js' 2 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/VisibilityOff.js: -------------------------------------------------------------------------------- 1 | export {default} from 'react-icons/lib/md/visibility-off' 2 | -------------------------------------------------------------------------------- /packages/@sanity/color-input/.npmignore: -------------------------------------------------------------------------------- 1 | .babelrc 2 | .editorconfig 3 | .eslintignore 4 | .eslintrc 5 | src 6 | test 7 | -------------------------------------------------------------------------------- /packages/@sanity/data-aspects/.npmignore: -------------------------------------------------------------------------------- 1 | .babelrc 2 | .editorconfig 3 | .eslintignore 4 | .eslintrc 5 | src 6 | test 7 | -------------------------------------------------------------------------------- /packages/@sanity/default-login/.npmignore: -------------------------------------------------------------------------------- 1 | .babelrc 2 | .editorconfig 3 | .eslintignore 4 | .eslintrc 5 | src 6 | test 7 | -------------------------------------------------------------------------------- /packages/@sanity/desk-tool/README.md: -------------------------------------------------------------------------------- 1 | # desk-tool 2 | 3 | Tool for managing all sorts of content in a structured manner 4 | -------------------------------------------------------------------------------- /packages/@sanity/rich-date-input/.npmignore: -------------------------------------------------------------------------------- 1 | .babelrc 2 | .editorconfig 3 | .eslintignore 4 | .eslintrc 5 | src 6 | test 7 | -------------------------------------------------------------------------------- /packages/@sanity/storybook/README.md: -------------------------------------------------------------------------------- 1 | # storybook 2 | 3 | Sanity plugin for running react-storybook in a Sanity studio 4 | -------------------------------------------------------------------------------- /packages/@sanity/webpack-loader/src/unimplementedPart.js: -------------------------------------------------------------------------------- 1 | module.exports = undefined // eslint-disable-line no-undefined 2 | -------------------------------------------------------------------------------- /packages/blog-studio/static/.gitkeep: -------------------------------------------------------------------------------- 1 | Files placed here will be served by the Sanity server under the `/static`-prefix 2 | -------------------------------------------------------------------------------- /packages/ecommerce-studio/schemas/schema.js: -------------------------------------------------------------------------------- 1 | export {default} from '@sanity/cli/templates/ecommerce/schemas/schema.js' 2 | -------------------------------------------------------------------------------- /packages/movies-studio/static/.gitkeep: -------------------------------------------------------------------------------- 1 | Files placed here will be served by the Sanity server under the `/static`-prefix 2 | -------------------------------------------------------------------------------- /packages/test-studio/static/.gitkeep: -------------------------------------------------------------------------------- 1 | Files placed here will be served by the Sanity server under the `/static`-prefix 2 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "semi": false, 3 | "printWidth": 100, 4 | "bracketSpacing": false, 5 | "singleQuote": true 6 | } 7 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/Cog.js: -------------------------------------------------------------------------------- 1 | import FaCog from 'react-icons/lib/fa/cog' 2 | 3 | export default FaCog 4 | -------------------------------------------------------------------------------- /packages/@sanity/core/src/util/normalizePluginName.js: -------------------------------------------------------------------------------- 1 | export default pluginName => pluginName.replace(/^sanity-plugin-/, '') 2 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/src/inputs/ArrayOfPrimitivesInput/index.js: -------------------------------------------------------------------------------- 1 | export {default} from './ArrayOfPrimitivesInput' 2 | -------------------------------------------------------------------------------- /packages/@sanity/google-maps-input/.npmignore: -------------------------------------------------------------------------------- 1 | .babelrc 2 | .editorconfig 3 | .eslintignore 4 | .eslintrc 5 | src 6 | test 7 | -------------------------------------------------------------------------------- /packages/@sanity/mutator/src/document/debug.js: -------------------------------------------------------------------------------- 1 | import debug from 'debug' 2 | 3 | export default debug('mutator-document') 4 | -------------------------------------------------------------------------------- /packages/@sanity/plugin-loader/test/fixture/folder/index.js: -------------------------------------------------------------------------------- 1 | module.exports = function() { 2 | return 'index value' 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/preview/.flowconfig: -------------------------------------------------------------------------------- 1 | [include] 2 | ./src 3 | 4 | [options] 5 | module.name_mapper='.*:.*' -> 'empty/object' 6 | -------------------------------------------------------------------------------- /packages/@sanity/vision/src/components/LoadingSpinner.js: -------------------------------------------------------------------------------- 1 | import Spinner from 'react-spinner' 2 | 3 | export default Spinner 4 | -------------------------------------------------------------------------------- /packages/example-studio/README.md: -------------------------------------------------------------------------------- 1 | # Example Studio 2 | 3 | A sanity studio with instructional examples and useful patterns 4 | -------------------------------------------------------------------------------- /packages/example-studio/static/.gitkeep: -------------------------------------------------------------------------------- 1 | Files placed here will be served by the Sanity server under the `/static`-prefix 2 | -------------------------------------------------------------------------------- /packages/@sanity/base/README.md: -------------------------------------------------------------------------------- 1 | # base 2 | 3 | Sanity plugin containing the base components and roles for a Sanity configuration 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/Bars.js: -------------------------------------------------------------------------------- 1 | import FaBars from 'react-icons/lib/fa/bars' 2 | 3 | export default FaBars 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/Check.js: -------------------------------------------------------------------------------- 1 | import Check from 'react-icons/lib/md/check' 2 | 3 | export default Check 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/Edit.js: -------------------------------------------------------------------------------- 1 | import MdEdit from 'react-icons/lib/md/edit' 2 | 3 | export default MdEdit 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/File.js: -------------------------------------------------------------------------------- 1 | import FaFile from 'react-icons/lib/fa/file-o' 2 | 3 | export default FaFile 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/Plug.js: -------------------------------------------------------------------------------- 1 | import FaPlug from 'react-icons/lib/fa/plug' 2 | 3 | export default FaPlug 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/Plus.js: -------------------------------------------------------------------------------- 1 | import GoPlus from 'react-icons/lib/go/plus' 2 | 3 | export default GoPlus 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/Sync.js: -------------------------------------------------------------------------------- 1 | import MdSync from 'react-icons/lib/md/sync' 2 | 3 | export default MdSync 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/Trash.js: -------------------------------------------------------------------------------- 1 | import Trash from 'react-icons/lib/md/delete' 2 | 3 | export default Trash 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/test/mocha.opts: -------------------------------------------------------------------------------- 1 | --compilers js:@babel/register 2 | --require @babel/polyfill 3 | --require test/init.js 4 | -------------------------------------------------------------------------------- /packages/@sanity/document-store/src/utils/debug.js: -------------------------------------------------------------------------------- 1 | const Debug = require('debug') 2 | module.exports = Debug('document-store') 3 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/.flowconfig: -------------------------------------------------------------------------------- 1 | [include] 2 | ./src 3 | ../../../ 4 | [libs] 5 | defs 6 | [ignore] 7 | .*/examples/.* 8 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/src/inputs/BlockEditor-slate/util/randomKey.js: -------------------------------------------------------------------------------- 1 | export {default} from '../../ArrayInput/randomKey' 2 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/src/utils/debug.js: -------------------------------------------------------------------------------- 1 | import Debug from 'debug' 2 | 3 | export default Debug('@sanity/form-builder') 4 | -------------------------------------------------------------------------------- /packages/@sanity/observable/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | src 3 | .idea 4 | .babelrc 5 | .eslintignore 6 | .eslintrc 7 | .gitignore 8 | -------------------------------------------------------------------------------- /packages/@sanity/rich-date-input/src/index.js: -------------------------------------------------------------------------------- 1 | export {default} from './RichDate' 2 | export {default as schema} from './schema' 3 | -------------------------------------------------------------------------------- /packages/@sanity/server/public/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/sanity/next/packages/@sanity/server/public/favicon.png -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/Error.js: -------------------------------------------------------------------------------- 1 | import MdError from 'react-icons/lib/md/error' 2 | 3 | export default MdError 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/Hamburger.js: -------------------------------------------------------------------------------- 1 | import FaBars from 'react-icons/lib/fa/bars' 2 | 3 | export default FaBars 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/Search.js: -------------------------------------------------------------------------------- 1 | import Search from 'react-icons/lib/fa/search' 2 | 3 | export default Search 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/Upload.js: -------------------------------------------------------------------------------- 1 | import FaUpload from 'react-icons/lib/fa/upload' 2 | 3 | export default FaUpload 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/router/index.js: -------------------------------------------------------------------------------- 1 | export * from '@sanity/state-router' 2 | export * from '@sanity/state-router/components' 3 | -------------------------------------------------------------------------------- /packages/@sanity/cli/templates/blog/static/.gitkeep: -------------------------------------------------------------------------------- 1 | Files placed here will be served by the Sanity server under the `/static`-prefix 2 | -------------------------------------------------------------------------------- /packages/@sanity/cli/templates/clean/static/.gitkeep: -------------------------------------------------------------------------------- 1 | Files placed here will be served by the Sanity server under the `/static`-prefix 2 | -------------------------------------------------------------------------------- /packages/@sanity/components/src/lists/styles/DefaultList.css: -------------------------------------------------------------------------------- 1 | .root { 2 | display: block; 3 | margin: 0; 4 | padding: 0; 5 | } 6 | -------------------------------------------------------------------------------- /packages/@sanity/default-layout/config.dist.json: -------------------------------------------------------------------------------- 1 | { 2 | "toolSwitcher": { 3 | "order": [], 4 | "hidden": [] 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/@sanity/eventsource/README.md: -------------------------------------------------------------------------------- 1 | # eventsource 2 | Meta-package to make browsers and Node use different EventSource polyfills 3 | -------------------------------------------------------------------------------- /packages/@sanity/import/test/fixtures/img.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/sanity/next/packages/@sanity/import/test/fixtures/img.gif -------------------------------------------------------------------------------- /packages/@sanity/resolver/test/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "max-nested-callbacks": 0, 4 | "complexity": 0 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/@sanity/schema/src/legacy/preview/primitivePreview.js: -------------------------------------------------------------------------------- 1 | export default { 2 | prepare: val => ({title: String(val)}) 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/Calendar.js: -------------------------------------------------------------------------------- 1 | import Calendar from 'react-icons/lib/fa/calendar' 2 | 3 | export default Calendar 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/ChevronDown.js: -------------------------------------------------------------------------------- 1 | import AngleDownIcon from './AngleDownIcon' 2 | 3 | export default AngleDownIcon 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/CloseIcon.js: -------------------------------------------------------------------------------- 1 | import CloseIcon from 'react-icons/lib/md/close' 2 | 3 | export default CloseIcon 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/SignOut.js: -------------------------------------------------------------------------------- 1 | import FaSignOut from 'react-icons/lib/fa/sign-out' 2 | 3 | export default FaSignOut 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/ThLarge.js: -------------------------------------------------------------------------------- 1 | import ThLarge from 'react-icons/lib/fa/th-large' 2 | 3 | export default ThLarge 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/ThList.js: -------------------------------------------------------------------------------- 1 | import FaThList from 'react-icons/lib/fa/th-list' 2 | 3 | export default FaThList 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/Warning.js: -------------------------------------------------------------------------------- 1 | import MdWarning from 'react-icons/lib/md/warning' 2 | 3 | export default MdWarning 4 | -------------------------------------------------------------------------------- /packages/@sanity/cli/README.md: -------------------------------------------------------------------------------- 1 | # cli 2 | 3 | Sanity CLI tool for managing Sanity installations, managing plugins, schemas and datasets 4 | -------------------------------------------------------------------------------- /packages/@sanity/cli/templates/ecommerce/static/.gitkeep: -------------------------------------------------------------------------------- 1 | Files placed here will be served by the Sanity server under the `/static`-prefix 2 | -------------------------------------------------------------------------------- /packages/@sanity/cli/templates/moviedb/static/.gitkeep: -------------------------------------------------------------------------------- 1 | Files placed here will be served by the Sanity server under the `/static`-prefix 2 | -------------------------------------------------------------------------------- /packages/@sanity/core/src/util/isProduction.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable no-process-env */ 2 | export default process.env.NODE_ENV === 'production' 3 | -------------------------------------------------------------------------------- /packages/@sanity/core/src/util/trimQuery.js: -------------------------------------------------------------------------------- 1 | export default function trimQuery(query) { 2 | return query.trim().replace(/\s+/, ' ') 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/src/simplePatch.js: -------------------------------------------------------------------------------- 1 | export {default} from './patch/applyPatch' 2 | export {applyAll} from './patch/applyPatch' 3 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/src/styles/FormBuilder.css: -------------------------------------------------------------------------------- 1 | .inner { 2 | max-width: 40em; 3 | margin: 0 auto; 4 | padding: 1rem; 5 | } 6 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/src/utils/hasOwn.js: -------------------------------------------------------------------------------- 1 | export default Object.prototype.hasOwnProperty.call.bind(Object.prototype.hasOwnProperty) 2 | -------------------------------------------------------------------------------- /packages/@sanity/image-url/index.js: -------------------------------------------------------------------------------- 1 | // eslint-disable-next-line import/no-commonjs 2 | module.exports = require('./lib/builder').default 3 | -------------------------------------------------------------------------------- /packages/@sanity/plugin-loader/README.md: -------------------------------------------------------------------------------- 1 | # plugin-loader 2 | Monkey-patches node's require algorithm to allow requiring of Sanity parts 3 | -------------------------------------------------------------------------------- /packages/@sanity/plugin-loader/register.js: -------------------------------------------------------------------------------- 1 | const registerLoader = require('./loader') 2 | 3 | registerLoader({basePath: process.cwd()}) 4 | -------------------------------------------------------------------------------- /packages/@sanity/preview/README.md: -------------------------------------------------------------------------------- 1 | # @sanity/preview 2 | Utilities for previewing Sanity content 3 | 4 | ## License 5 | 6 | MIT-licensed 7 | -------------------------------------------------------------------------------- /packages/blog-studio/config/@sanity/default-layout.json: -------------------------------------------------------------------------------- 1 | { 2 | "toolSwitcher": { 3 | "order": [], 4 | "hidden": [] 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/movies-studio/config/@sanity/default-layout.json: -------------------------------------------------------------------------------- 1 | { 2 | "toolSwitcher": { 3 | "order": [], 4 | "hidden": [] 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/storybook/config/@sanity/default-layout.json: -------------------------------------------------------------------------------- 1 | { 2 | "toolSwitcher": { 3 | "order": [], 4 | "hidden": [] 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/test-studio/config/@sanity/default-layout.json: -------------------------------------------------------------------------------- 1 | { 2 | "toolSwitcher": { 3 | "order": [], 4 | "hidden": [] 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/ImageArea.js: -------------------------------------------------------------------------------- 1 | import MdImageArea from 'react-icons/lib/md/image' 2 | 3 | export default MdImageArea 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/MoreVert.js: -------------------------------------------------------------------------------- 1 | import MdMoreVert from 'react-icons/lib/md/more-vert' 2 | 3 | export default MdMoreVert 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/Question.js: -------------------------------------------------------------------------------- 1 | import FaQuestion from 'react-icons/lib/fa/question' 2 | 3 | export default FaQuestion 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/datastores/user/index.js: -------------------------------------------------------------------------------- 1 | import createUserStore from './createUserStore' 2 | 3 | export default createUserStore() 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/index.js: -------------------------------------------------------------------------------- 1 | import DefaultRootComponent from './components/DefaultRootComponent' 2 | 3 | export {DefaultRootComponent} 4 | -------------------------------------------------------------------------------- /packages/@sanity/components/src/lists/default/index.js: -------------------------------------------------------------------------------- 1 | export {default as List} from './List' 2 | export {default as Item} from './ListItem' 3 | -------------------------------------------------------------------------------- /packages/@sanity/components/src/lists/grid/index.js: -------------------------------------------------------------------------------- 1 | export {default as List} from './GridList' 2 | export {default as Item} from './GridItem' 3 | -------------------------------------------------------------------------------- /packages/@sanity/components/src/utilities/Portal/Portal.css: -------------------------------------------------------------------------------- 1 | .captureTabFocus { 2 | position: absolute; 3 | height: 0; 4 | width: 0; 5 | } 6 | -------------------------------------------------------------------------------- /packages/@sanity/core/README.md: -------------------------------------------------------------------------------- 1 | # @sanity/core 2 | 3 | Sanity core bundle, containing required packages for the development and build process 4 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/examples/schema-testbed/components/styles/shared.css: -------------------------------------------------------------------------------- 1 | .root { 2 | /* postcss does not like empty files */ 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/imagetool/resources/openhand.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/sanity/next/packages/@sanity/imagetool/resources/openhand.cur -------------------------------------------------------------------------------- /packages/@sanity/imagetool/resources/openhand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/sanity/next/packages/@sanity/imagetool/resources/openhand.png -------------------------------------------------------------------------------- /packages/@sanity/plugin-loader/test/fixture/plugins/date/getIsoDate.js: -------------------------------------------------------------------------------- 1 | module.exports = function() { 2 | return new Date().toISOString() 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/plugin-loader/test/fixture/plugins/date/getTimestamp.js: -------------------------------------------------------------------------------- 1 | module.exports = function() { 2 | return new Date().getTime() 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/production-preview/src/resolveProductionUrl.js: -------------------------------------------------------------------------------- 1 | export {default} from 'part:@sanity/production-preview/resolve-production-url' 2 | -------------------------------------------------------------------------------- /packages/@sanity/state-router/src/utils/hasOwn.js: -------------------------------------------------------------------------------- 1 | const _hasOWn = Object.prototype.hasOwnProperty 2 | export default _hasOWn.call.bind(_hasOWn) 3 | -------------------------------------------------------------------------------- /packages/@sanity/util/test/versionsFixture/sanity.json: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": [ 3 | "@sanity/base", 4 | "@sanity/components", 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /packages/ecommerce-studio/config/@sanity/default-layout.json: -------------------------------------------------------------------------------- 1 | { 2 | "toolSwitcher": { 3 | "order": [], 4 | "hidden": [] 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/example-studio/config/@sanity/default-layout.json: -------------------------------------------------------------------------------- 1 | { 2 | "toolSwitcher": { 3 | "order": [], 4 | "hidden": [] 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/example-studio/parts/AuthorPreview.css: -------------------------------------------------------------------------------- 1 | .staleAuthor { 2 | composes: root from 'part:@sanity/components/previews/default-style'; 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/CircleThin.js: -------------------------------------------------------------------------------- 1 | import CircleThin from 'react-icons/lib/fa/circle-thin' 2 | 3 | export default CircleThin 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/FormatCode.js: -------------------------------------------------------------------------------- 1 | import IconFormatCode from 'react-icons/lib/md/code' 2 | 3 | export default IconFormatCode 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/Link.js: -------------------------------------------------------------------------------- 1 | import MdInsertLink from 'react-icons/lib/md/insert-link' 2 | 3 | export default MdInsertLink 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/PlusCircle.js: -------------------------------------------------------------------------------- 1 | import PlusCircle from 'react-icons/lib/md/add-circle' 2 | 3 | export default PlusCircle 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/Time.js: -------------------------------------------------------------------------------- 1 | import MdAccessTime from 'react-icons/lib/md/access-time' 2 | 3 | export default MdAccessTime 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/styles/SanityRoot.css: -------------------------------------------------------------------------------- 1 | @import "part:@sanity/base/theme/body-style"; 2 | 3 | .root { 4 | display: block; 5 | } 6 | -------------------------------------------------------------------------------- /packages/@sanity/client/test/fixtures/pdf-sample.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/sanity/next/packages/@sanity/client/test/fixtures/pdf-sample.pdf -------------------------------------------------------------------------------- /packages/@sanity/image-url/urlForImage.js: -------------------------------------------------------------------------------- 1 | // eslint-disable-next-line import/no-commonjs 2 | module.exports = require('./lib/urlForImage').default 3 | -------------------------------------------------------------------------------- /packages/@sanity/imagetool/example/public/hubble.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/sanity/next/packages/@sanity/imagetool/example/public/hubble.jpg -------------------------------------------------------------------------------- /packages/@sanity/imagetool/example/public/koala.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/sanity/next/packages/@sanity/imagetool/example/public/koala.jpg -------------------------------------------------------------------------------- /packages/@sanity/imagetool/example/src/history.js: -------------------------------------------------------------------------------- 1 | import createHistory from 'history/createBrowserHistory' 2 | 3 | export default createHistory() 4 | -------------------------------------------------------------------------------- /packages/@sanity/imagetool/resources/closedhand.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/sanity/next/packages/@sanity/imagetool/resources/closedhand.cur -------------------------------------------------------------------------------- /packages/@sanity/imagetool/resources/closedhand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/sanity/next/packages/@sanity/imagetool/resources/closedhand.png -------------------------------------------------------------------------------- /packages/@sanity/plugin-loader/test/fixture/plugins/better-date/getBetterTimestamp.js: -------------------------------------------------------------------------------- 1 | module.exports = function() { 2 | return Date.now() 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/util/test/versionsFixture/node_modules/@sanity/base/placeholder.js: -------------------------------------------------------------------------------- 1 | module.exports = function() { 2 | // Intentional noop 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/validation/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | .babelrc 3 | .eslintrc 4 | .eslintignore 5 | test 6 | coverage 7 | yarn.lock 8 | package-lock.json 9 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/AngleDownIcon.js: -------------------------------------------------------------------------------- 1 | import FaAngleDown from 'react-icons/lib/fa/angle-down' 2 | 3 | export default FaAngleDown 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/CircleCheck.js: -------------------------------------------------------------------------------- 1 | import CircleCheck from 'react-icons/lib/fa/check-circle' 2 | 3 | export default CircleCheck 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/Fullscreen.js: -------------------------------------------------------------------------------- 1 | import MdFullscreen from 'react-icons/lib/md/fullscreen' 2 | 3 | export default MdFullscreen 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/Paste.js: -------------------------------------------------------------------------------- 1 | import MdContentPaste from 'react-icons/lib/md/content-paste' 2 | 3 | export default MdContentPaste 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/SpinnerIcon.js: -------------------------------------------------------------------------------- 1 | import SpinnerIcon from 'react-icons/lib/fa/circle-o-notch' 2 | 3 | export default SpinnerIcon 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/ViewColumn.js: -------------------------------------------------------------------------------- 1 | import MdViewColumn from 'react-icons/lib/md/view-column' 2 | 3 | export default MdViewColumn 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/datastores/project/index.js: -------------------------------------------------------------------------------- 1 | import createProjectStore from './createProjectStore' 2 | 3 | export default createProjectStore() 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/styles/fonts.css: -------------------------------------------------------------------------------- 1 | @import url("https://fonts.googleapis.com/css?family=Roboto:100,300,300i,400,400i,500,500i,700,700i,900,900i"); 2 | -------------------------------------------------------------------------------- /packages/@sanity/cli/.npmignore: -------------------------------------------------------------------------------- 1 | /src 2 | /test 3 | /.babelrc 4 | /.editorconfig 5 | /.eslintignore 6 | /.eslintrc 7 | /yarn.lock 8 | /package-lock.json 9 | -------------------------------------------------------------------------------- /packages/@sanity/cli/src/actions/init-project/templates/staticGitKeep: -------------------------------------------------------------------------------- 1 | Files placed here will be served by the Sanity server under the `/static`-prefix 2 | -------------------------------------------------------------------------------- /packages/@sanity/cli/templates/blog/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/sanity/next/packages/@sanity/cli/templates/blog/static/favicon.ico -------------------------------------------------------------------------------- /packages/@sanity/cli/templates/clean/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/sanity/next/packages/@sanity/cli/templates/clean/static/favicon.ico -------------------------------------------------------------------------------- /packages/@sanity/core/test/init.js: -------------------------------------------------------------------------------- 1 | const chai = require('chai') 2 | const chaiAsPromised = require('chai-as-promised') 3 | 4 | chai.use(chaiAsPromised) 5 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/PatchEvent.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable import/no-commonjs, import/unambiguous */ 2 | module.exports = require('./lib/PatchEvent') 3 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/examples/schema-testbed/components/styles/Header.css: -------------------------------------------------------------------------------- 1 | .header { 2 | padding: 10px; 3 | background-color: #e0e1db; 4 | } 5 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/test/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "import/no-extraneous-dependencies": ["error", {"devDependencies": true}] 4 | } 5 | } -------------------------------------------------------------------------------- /packages/@sanity/imagetool/example/public/pigs-nose.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/sanity/next/packages/@sanity/imagetool/example/public/pigs-nose.png -------------------------------------------------------------------------------- /packages/@sanity/import/test/fixtures/invalid-json.ndjson: -------------------------------------------------------------------------------- 1 | {"_id":"foo","_type":"bar","num":0} 2 | {"_id":"bar","_type":"bar","num":1} 3 | {_id: "foo"} 4 | -------------------------------------------------------------------------------- /packages/@sanity/plugin-loader/test/versionsFixture/node_modules/@sanity/base/placeholder.js: -------------------------------------------------------------------------------- 1 | module.exports = function() { 2 | // Intentional noop 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/plugin-loader/test/versionsFixture/sanity.json: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": [ 3 | "@sanity/base", 4 | "@sanity/components" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /packages/@sanity/preview/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | transform: {'^.+\\.jsx?$': 'babel-jest'}, 3 | testRegex: 'test\\/.*\\.test\\.js' 4 | } 5 | -------------------------------------------------------------------------------- /packages/@sanity/schema/.flowconfig: -------------------------------------------------------------------------------- 1 | [include] 2 | ./src 3 | ./test 4 | 5 | [ignore] 6 | 7 | [options] 8 | module.name_mapper='.*:.*' -> 'empty/object' 9 | -------------------------------------------------------------------------------- /packages/@sanity/schema/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | transform: {'^.+\\.jsx?$': 'babel-jest'}, 3 | testRegex: 'test\\/.*\\.test\\.js' 4 | } 5 | -------------------------------------------------------------------------------- /packages/@sanity/util/test/versionsFixture/node_modules/@sanity/components/placeholder.js: -------------------------------------------------------------------------------- 1 | module.exports = function() { 2 | // Intentional noop 3 | } 4 | -------------------------------------------------------------------------------- /packages/eslint-config-sanity/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "node": true 4 | }, 5 | "rules": { 6 | "import/no-commonjs": "off" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/test-studio/README.md: -------------------------------------------------------------------------------- 1 | # sanity test studio 2 | 3 | A bloated, ugly Sanity studio with a contrived schema for edge case testing and development 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/ContentCopy.js: -------------------------------------------------------------------------------- 1 | import MdContentCopy from 'react-icons/lib/md/content-copy' 2 | 3 | export default MdContentCopy 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/FormatBold.js: -------------------------------------------------------------------------------- 1 | import IconFormatBold from 'react-icons/lib/md/format-bold' 2 | 3 | export default IconFormatBold 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/FormatItalic.js: -------------------------------------------------------------------------------- 1 | import MdFormatItalic from 'react-icons/lib/md/format-italic' 2 | 3 | export default MdFormatItalic 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/FormatQuote.js: -------------------------------------------------------------------------------- 1 | import MdFormatQuote from 'react-icons/lib/md/format-quote' 2 | 3 | export default MdFormatQuote 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/datastores/location/index.js: -------------------------------------------------------------------------------- 1 | import createLocationStore from './createLocationStore' 2 | 3 | export default createLocationStore() 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/styles/variables/override.css: -------------------------------------------------------------------------------- 1 | /* 2 | This needs to be empty. 3 | It is used to override variables externaly via a part 4 | */ 5 | -------------------------------------------------------------------------------- /packages/@sanity/cli/templates/moviedb/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/sanity/next/packages/@sanity/cli/templates/moviedb/static/favicon.ico -------------------------------------------------------------------------------- /packages/@sanity/cli/test/init.js: -------------------------------------------------------------------------------- 1 | import chai from 'chai' 2 | import chaiAsPromised from 'chai-as-promised' 3 | 4 | chai.should() 5 | chai.use(chaiAsPromised) 6 | -------------------------------------------------------------------------------- /packages/@sanity/client/test/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "id-length": 0, 4 | "newline-per-chained-call": 0, 5 | "no-sync": 0 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /packages/@sanity/client/test/fixtures/horsehead-nebula.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/sanity/next/packages/@sanity/client/test/fixtures/horsehead-nebula.jpg -------------------------------------------------------------------------------- /packages/@sanity/components/src/lists/sortable/styles/SortableList.css: -------------------------------------------------------------------------------- 1 | .root { 2 | composes: resetList from "part:@sanity/base/theme/layout/helpers"; 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/imagetool/example/public/dog_smaller.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/sanity/next/packages/@sanity/imagetool/example/public/dog_smaller.jpg -------------------------------------------------------------------------------- /packages/@sanity/imagetool/example/public/storesmeden.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/sanity/next/packages/@sanity/imagetool/example/public/storesmeden.jpg -------------------------------------------------------------------------------- /packages/test-studio/src/components/fonts/Rye-Regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/sanity/next/packages/test-studio/src/components/fonts/Rye-Regular.eot -------------------------------------------------------------------------------- /packages/test-studio/src/components/fonts/Rye-Regular.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/sanity/next/packages/test-studio/src/components/fonts/Rye-Regular.otf -------------------------------------------------------------------------------- /packages/test-studio/src/components/fonts/Rye-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/sanity/next/packages/test-studio/src/components/fonts/Rye-Regular.ttf -------------------------------------------------------------------------------- /packages/test-studio/src/components/fonts/Rye-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/sanity/next/packages/test-studio/src/components/fonts/Rye-Regular.woff -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/ArrowDropDown.js: -------------------------------------------------------------------------------- 1 | import MdArrowDropDown from 'react-icons/lib/md/arrow-drop-down' 2 | 3 | export default MdArrowDropDown 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/SortAlphaDesc.js: -------------------------------------------------------------------------------- 1 | import FaSortAlphaDesc from 'react-icons/lib/fa/sort-alpha-desc' 2 | 3 | export default FaSortAlphaDesc 4 | -------------------------------------------------------------------------------- /packages/@sanity/cli/templates/blog/config/.checksums: -------------------------------------------------------------------------------- 1 | { 2 | "#": "Used by Sanity to keep track of configuration file checksums, do not delete or modify!" 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/cli/templates/clean/config/.checksums: -------------------------------------------------------------------------------- 1 | { 2 | "#": "Used by Sanity to keep track of configuration file checksums, do not delete or modify!" 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/cli/templates/ecommerce/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/sanity/next/packages/@sanity/cli/templates/ecommerce/static/favicon.ico -------------------------------------------------------------------------------- /packages/@sanity/cli/templates/moviedb/config/.checksums: -------------------------------------------------------------------------------- 1 | { 2 | "#": "Used by Sanity to keep track of configuration file checksums, do not delete or modify!" 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/default-login/src/styles/LoginDialog.css: -------------------------------------------------------------------------------- 1 | @import 'part:@sanity/base/theme/variables-style'; 2 | 3 | .error a { 4 | color: var(--white); 5 | } 6 | -------------------------------------------------------------------------------- /packages/@sanity/desk-tool/src/components/styles/Diff.css: -------------------------------------------------------------------------------- 1 | .added { 2 | background-color: #6ee4a9; 3 | } 4 | 5 | .removed { 6 | background-color: #ff8b7e; 7 | } 8 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/examples/undo/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "import/no-extraneous-dependencies": ["error", {"devDependencies": true}] 4 | } 5 | } -------------------------------------------------------------------------------- /packages/@sanity/form-builder/src/inputs/BlockEditor-slate/styles/contentStyles/Normal.css: -------------------------------------------------------------------------------- 1 | .root { 2 | margin: 0; 3 | padding: 0; 4 | padding: 1em 0; 5 | } 6 | -------------------------------------------------------------------------------- /packages/@sanity/plugin-loader/test/versionsFixture/node_modules/@sanity/components/placeholder.js: -------------------------------------------------------------------------------- 1 | module.exports = function() { 2 | // Intentional noop 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/resolver/test/init.js: -------------------------------------------------------------------------------- 1 | import chai from 'chai' 2 | import chaiAsPromised from 'chai-as-promised' 3 | 4 | chai.should() 5 | chai.use(chaiAsPromised) 6 | -------------------------------------------------------------------------------- /packages/@sanity/storybook/src/config/addons.js: -------------------------------------------------------------------------------- 1 | import '@storybook/addons' 2 | import '@storybook/addon-knobs/register' 3 | import '../addons/sanity/SanityPanel' 4 | -------------------------------------------------------------------------------- /packages/@sanity/util/test/init.js: -------------------------------------------------------------------------------- 1 | import chai from 'chai' 2 | import chaiAsPromised from 'chai-as-promised' 3 | 4 | chai.should() 5 | chai.use(chaiAsPromised) 6 | -------------------------------------------------------------------------------- /packages/eslint-config-sanity/README.md: -------------------------------------------------------------------------------- 1 | # eslint-config-sanity 2 | 3 | Shared eslint rules for Sanity 4 | 5 | # Usage 6 | 7 | `npm i -D eslint-config-sanity` 8 | -------------------------------------------------------------------------------- /packages/test-studio/src/components/PertEstimate.js: -------------------------------------------------------------------------------- 1 | export {default as Input} from './PertEstimateInput' 2 | export {default as schema} from './PertEstimateSchema' 3 | -------------------------------------------------------------------------------- /packages/test-studio/src/components/fonts/Rye-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/sanity/next/packages/test-studio/src/components/fonts/Rye-Regular.woff2 -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/FullscreenExit.js: -------------------------------------------------------------------------------- 1 | import MdFullscreenExit from 'react-icons/lib/md/fullscreen-exit' 2 | 3 | export default MdFullscreenExit 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/TrashOutline.js: -------------------------------------------------------------------------------- 1 | import IosTrashOutline from 'react-icons/lib/io/ios-trash-outline' 2 | 3 | export default IosTrashOutline 4 | -------------------------------------------------------------------------------- /packages/@sanity/default-login/config.dist.json: -------------------------------------------------------------------------------- 1 | { 2 | "providers": { 3 | "mode": "append", 4 | "redirectOnSingle": false, 5 | "entries": [] 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/src/sanity/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "import/no-extraneous-dependencies": 0, 4 | "import/no-unresolved": 0 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/example-studio/components/VideoEmbedPreview/VideoEmbedPreview.css: -------------------------------------------------------------------------------- 1 | .root { 2 | display: flex; 3 | justify-content: space-between; 4 | padding: 0.5em; 5 | } 6 | -------------------------------------------------------------------------------- /packages/@sanity/block-tools/test/tests/HtmlDeserializer/customSchema/input.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |Paragraph
5 | 6 | 7 | -------------------------------------------------------------------------------- /packages/@sanity/cli/src/actions/init-project/templates/checksums: -------------------------------------------------------------------------------- 1 | { 2 | "#": "Used by Sanity to keep track of configuration file checksums, do not delete or modify!" 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/default-login/locale/en-US.json: -------------------------------------------------------------------------------- 1 | { 2 | "en-US": { 3 | "loginWithProvider": "Choose login provider", 4 | "logoutButtonText": "Log out" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/examples/schema-testbed/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "import/no-extraneous-dependencies": ["error", {"devDependencies": true}] 4 | } 5 | } -------------------------------------------------------------------------------- /packages/@sanity/form-builder/src/inputs/DateInputs/index.js: -------------------------------------------------------------------------------- 1 | export {default as DateTimeInput} from './DateTimeInput' 2 | export {default as DateInput} from './DateInput' 3 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/src/sanity/locale/strings.json: -------------------------------------------------------------------------------- 1 | { 2 | "en-US": { 3 | "@sanity/form-builder.errors.fieldIsRequired": "This field is required" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /packages/@sanity/import/test/fixtures/employees.ndjson: -------------------------------------------------------------------------------- 1 | {"_id": "espen", "_type": "employee", "name": "Espen"} 2 | {"_id": "pk", "_type": "employee", "name": "Per-Kristian"} 3 | -------------------------------------------------------------------------------- /packages/blog-studio/config/@sanity/default-login.json: -------------------------------------------------------------------------------- 1 | { 2 | "providers": { 3 | "mode": "append", 4 | "redirectOnSingle": false, 5 | "entries": [] 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /packages/test-studio/config/@sanity/default-login.json: -------------------------------------------------------------------------------- 1 | { 2 | "providers": { 3 | "mode": "append", 4 | "redirectOnSingle": false, 5 | "entries": [] 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/FormatUnderlined.js: -------------------------------------------------------------------------------- 1 | import MdFormatUnderlined from 'react-icons/lib/md/format-underlined' 2 | 3 | export default MdFormatUnderlined 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/PlusCircleOutline.js: -------------------------------------------------------------------------------- 1 | import PlusCircleOutline from 'react-icons/lib/md/add-circle-outline' 2 | 3 | export default PlusCircleOutline 4 | -------------------------------------------------------------------------------- /packages/@sanity/block-tools/test/tests/converters/slateStateToBlocks/markDefs/index.js: -------------------------------------------------------------------------------- 1 | export default (slateJsonToBlocks, input) => { 2 | return slateJsonToBlocks(input) 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/date-input/README.md: -------------------------------------------------------------------------------- 1 | ### @sanity/date-input 2 | 3 | [DEPRECATED]: Use [@sanity/rich-date-input instead](https://www.npmjs.com/package/@sanity/rich-date-input) 4 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/examples/schema-testbed/config/.checksums: -------------------------------------------------------------------------------- 1 | { 2 | "#": "Used by Sanity to keep track of configuration file checksums, do not delete or modify!" 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/mutator/src/patch/index.js: -------------------------------------------------------------------------------- 1 | import Patcher from './Patcher' 2 | import ImmutableAccessor from './ImmutableAccessor' 3 | 4 | export {Patcher, ImmutableAccessor} 5 | -------------------------------------------------------------------------------- /packages/ecommerce-studio/config/@sanity/default-login.json: -------------------------------------------------------------------------------- 1 | { 2 | "providers": { 3 | "mode": "append", 4 | "redirectOnSingle": false, 5 | "entries": [] 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /packages/example-studio/config/@sanity/default-login.json: -------------------------------------------------------------------------------- 1 | { 2 | "providers": { 3 | "mode": "append", 4 | "redirectOnSingle": false, 5 | "entries": [] 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /packages/movies-studio/config/@sanity/default-login.json: -------------------------------------------------------------------------------- 1 | { 2 | "providers": { 3 | "mode": "append", 4 | "redirectOnSingle": false, 5 | "entries": [] 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/FormatListBulleted.js: -------------------------------------------------------------------------------- 1 | import MdFormatListBulleted from 'react-icons/lib/md/format-list-bulleted' 2 | 3 | export default MdFormatListBulleted 4 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/FormatListNumbered.js: -------------------------------------------------------------------------------- 1 | import MdFormatListNumbered from 'react-icons/lib/md/format-list-numbered' 2 | 3 | export default MdFormatListNumbered 4 | -------------------------------------------------------------------------------- /packages/@sanity/block-tools/test/tests/converters/slateStateToBlocks/decorators/index.js: -------------------------------------------------------------------------------- 1 | export default (slateJsonToBlocks, input) => { 2 | return slateJsonToBlocks(input) 3 | } 4 | -------------------------------------------------------------------------------- /packages/@sanity/check/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "browser": false, 4 | "node": true 5 | }, 6 | "rules": { 7 | "import/no-commonjs": "off" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /packages/@sanity/client/.npmignore: -------------------------------------------------------------------------------- 1 | .nyc_output 2 | node_modules 3 | src 4 | .babelrc 5 | .editorconfig 6 | .eslintignore 7 | .eslintrc 8 | .gitignore 9 | rollup.config.js 10 | -------------------------------------------------------------------------------- /packages/@sanity/components/src/buttons/AnchorButton.js: -------------------------------------------------------------------------------- 1 | import createButtonLike from './createButtonLike' 2 | 3 | export default createButtonLike('a', {displayName: 'AnchorButton'}) 4 | -------------------------------------------------------------------------------- /packages/@sanity/core/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "browser": false, 4 | "node": true 5 | }, 6 | "rules": { 7 | "import/no-commonjs": "off" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /packages/@sanity/export/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "browser": false, 4 | "node": true 5 | }, 6 | "rules": { 7 | "import/no-commonjs": "off" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /packages/@sanity/generate-help-url/index.js: -------------------------------------------------------------------------------- 1 | var baseUrl = 'https://docs.sanity.io/help/' 2 | 3 | module.exports = function generateHelpUrl(slug) { 4 | return baseUrl + slug 5 | } 6 | -------------------------------------------------------------------------------- /packages/@sanity/import/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "browser": false, 4 | "node": true 5 | }, 6 | "rules": { 7 | "import/no-commonjs": "off" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /packages/@sanity/server/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "browser": false, 4 | "node": true 5 | }, 6 | "rules": { 7 | "import/no-commonjs": "off" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /packages/@sanity/base/src/components/icons/FormatStrikethrough.js: -------------------------------------------------------------------------------- 1 | import MdFormatStrikethrough from 'react-icons/lib/md/format-strikethrough' 2 | 3 | export default MdFormatStrikethrough 4 | -------------------------------------------------------------------------------- /packages/@sanity/eventsource/browser.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable no-var */ 2 | var evs = require('eventsource-polyfill/dist/eventsource') 3 | module.exports = window.EventSource || evs.EventSource 4 | -------------------------------------------------------------------------------- /packages/@sanity/import-cli/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "browser": false, 4 | "node": true 5 | }, 6 | "rules": { 7 | "import/no-commonjs": "off" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /packages/example-studio/parts/languageFilterConfig.js: -------------------------------------------------------------------------------- 1 | import {SUPPORTED_LANGUAGES} from '../schemas/languages' 2 | 3 | export default { 4 | supportedLanguages: SUPPORTED_LANGUAGES 5 | } 6 | -------------------------------------------------------------------------------- /packages/@sanity/desk-tool/src/styles/GetStarted.css: -------------------------------------------------------------------------------- 1 | .content { 2 | padding: 2em; 3 | } 4 | 5 | .lead { 6 | composes: lead from 'part:@sanity/base/theme/typography/text-blocks-style'; 7 | } 8 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/src/inputs/BlockEditor-slate/toolbar/styles/Decorators.css: -------------------------------------------------------------------------------- 1 | .root { 2 | display: inline-block; 3 | } 4 | 5 | .iconContainer { 6 | transform: scale(1.5); 7 | } 8 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/src/inputs/BlockEditor-slate/toolbar/styles/ListItems.css: -------------------------------------------------------------------------------- 1 | .root { 2 | display: inline-block; 3 | } 4 | 5 | .iconContainer { 6 | transform: scale(1.5); 7 | } 8 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/test/patching/containers/SlateNodeAccessors/ListAccessor.js: -------------------------------------------------------------------------------- 1 | export default class ListAccessor { 2 | constructor(value) { 3 | this.value = value 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /packages/@sanity/webpack-loader/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "browser": false, 4 | "node": true 5 | }, 6 | "rules": { 7 | "import/no-commonjs": "off" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /packages/test-studio/src/components/PertEstimate.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: #bf1942; 3 | } 4 | 5 | .pert-global { 6 | font-family: monospace !important; 7 | background: #bf1942; 8 | } 9 | -------------------------------------------------------------------------------- /.stylelintignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /packages/*/node_modules 3 | /packages/@sanity/*/node_modules 4 | /packages/*/dist 5 | /packages/@sanity/*/dist 6 | /packages/*/lib 7 | /packages/@sanity/*/lib 8 | -------------------------------------------------------------------------------- /packages/@sanity/default-layout/example/plugins/my-tool/sanity.json: -------------------------------------------------------------------------------- 1 | { 2 | "parts": [ 3 | { 4 | "implements": "part:@sanity/base/tool", 5 | "path": "./MyTool" 6 | } 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /packages/@sanity/google-maps-input/config.dist.json: -------------------------------------------------------------------------------- 1 | { 2 | "apiKey": null, 3 | "defaultZoom": 11, 4 | "defaultLocation": { 5 | "lat": 40.7058254, 6 | "lng": -74.1180863 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/@sanity/webpack-integration/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "browser": false, 4 | "node": true 5 | }, 6 | "rules": { 7 | "import/no-commonjs": "off" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /packages/blog-studio/.gitignore: -------------------------------------------------------------------------------- 1 | # Build files 2 | dist 3 | 4 | # Dependency directories 5 | node_modules 6 | 7 | # npm log 8 | npm-debug.log 9 | 10 | # macOS finder file 11 | .DS_Store 12 | -------------------------------------------------------------------------------- /packages/blog-studio/README.md: -------------------------------------------------------------------------------- 1 | # blog-studio 2 | 3 | Content studio running with schema from the blog init template 4 | 5 | Start from project root directory with 6 | 7 | npm run blog-studio 8 | -------------------------------------------------------------------------------- /packages/movies-studio/.gitignore: -------------------------------------------------------------------------------- 1 | # Build files 2 | dist 3 | 4 | # Dependency directories 5 | node_modules 6 | 7 | # npm log 8 | npm-debug.log 9 | 10 | # macOS finder file 11 | .DS_Store 12 | -------------------------------------------------------------------------------- /packages/test-studio/schemas/customNumber.js: -------------------------------------------------------------------------------- 1 | export default { 2 | name: 'customNumber', 3 | type: 'number', 4 | title: 'Custom number', 5 | validation: Rule => Rule.min(0).max(1000) 6 | } 7 | -------------------------------------------------------------------------------- /packages/@sanity/cli/src/actions/init-project/templates/blog.js: -------------------------------------------------------------------------------- 1 | export const dependencies = {} 2 | 3 | export const generateSanityManifest = base => ({ 4 | ...base, 5 | plugins: base.plugins 6 | }) 7 | -------------------------------------------------------------------------------- /packages/@sanity/cli/src/actions/init-project/templates/clean.js: -------------------------------------------------------------------------------- 1 | export const dependencies = {} 2 | 3 | export const generateSanityManifest = base => ({ 4 | ...base, 5 | plugins: base.plugins 6 | }) 7 | -------------------------------------------------------------------------------- /packages/@sanity/cli/templates/blog/.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | 5 | # Coverage directory used by tools like istanbul 6 | coverage 7 | 8 | # Dependency directories 9 | node_modules 10 | -------------------------------------------------------------------------------- /packages/@sanity/components/src/typography/styles/story.css: -------------------------------------------------------------------------------- 1 | @import 'part:@sanity/base/theme/variables-style'; 2 | 3 | .wrapper { 4 | max-width: 40em; 5 | padding: 0 1em; 6 | margin: 0 auto; 7 | } 8 | -------------------------------------------------------------------------------- /packages/@sanity/export/src/stringifyStream.js: -------------------------------------------------------------------------------- 1 | const miss = require('mississippi') 2 | 3 | module.exports = miss.through.obj((doc, enc, callback) => 4 | callback(null, `${JSON.stringify(doc)}\n`) 5 | ) 6 | -------------------------------------------------------------------------------- /packages/storybook/config/@sanity/google-maps-input.json: -------------------------------------------------------------------------------- 1 | { 2 | "apiKey": null, 3 | "defaultZoom": 11, 4 | "defaultLocation": { 5 | "lat": 40.7058254, 6 | "lng": -74.1180863 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/@sanity/cli/templates/clean/.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | 5 | # Coverage directory used by tools like istanbul 6 | coverage 7 | 8 | # Dependency directories 9 | node_modules 10 | -------------------------------------------------------------------------------- /packages/@sanity/cli/templates/ecommerce/.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | 5 | # Coverage directory used by tools like istanbul 6 | coverage 7 | 8 | # Dependency directories 9 | node_modules 10 | -------------------------------------------------------------------------------- /packages/@sanity/cli/templates/moviedb/.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | 5 | # Coverage directory used by tools like istanbul 6 | coverage 7 | 8 | # Dependency directories 9 | node_modules 10 | -------------------------------------------------------------------------------- /packages/@sanity/core/src/commands/hook/hookGroup.js: -------------------------------------------------------------------------------- 1 | export default { 2 | name: 'hook', 3 | signature: '[COMMAND]', 4 | isGroupRoot: true, 5 | description: 'Interact with hooks in your project' 6 | } 7 | -------------------------------------------------------------------------------- /packages/@sanity/util/src/lazyRequire.js: -------------------------------------------------------------------------------- 1 | const dynamicRequire = require('./dynamicRequire') 2 | 3 | module.exports = id => (...args) => { 4 | const mod = dynamicRequire(id) 5 | return mod(...args) 6 | } 7 | -------------------------------------------------------------------------------- /packages/ecommerce-studio/plugins/barcode-input/sanity.json: -------------------------------------------------------------------------------- 1 | { 2 | "parts": [ 3 | { 4 | "implements": "part:@sanity/base/schema-type", 5 | "path": "./BarcodeType.js" 6 | } 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /packages/movies-studio/README.md: -------------------------------------------------------------------------------- 1 | # movies-studio 2 | 3 | Content studio running with schema from the moviedb init template 4 | 5 | Start from project root directory with 6 | 7 | npm run movies-studio 8 | -------------------------------------------------------------------------------- /packages/@sanity/cli/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "browser": false, 4 | "node": true 5 | }, 6 | "rules": { 7 | "import/no-commonjs": "off", 8 | "complexity": [1, 18] 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /packages/@sanity/default-layout/example/plugins/my-other-tool/sanity.json: -------------------------------------------------------------------------------- 1 | { 2 | "parts": [ 3 | { 4 | "implements": "part:@sanity/base/tool", 5 | "path": "./MyOtherTool" 6 | } 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /packages/@sanity/form-builder/src/typedefs/path.js: -------------------------------------------------------------------------------- 1 | type KeyedSegment = { 2 | _key: string 3 | } 4 | 5 | export type PathSegment = string | number | KeyedSegment 6 | 7 | export type Path = ArrayParagraph
4 |Blockquote11 | 12 | 13 | -------------------------------------------------------------------------------- /packages/@sanity/components/src/lists/default/List.js: -------------------------------------------------------------------------------- 1 | // @flow 2 | import React from 'react' 3 | import styles from '../styles/DefaultList.css' 4 | import classNames from 'classnames' 5 | 6 | export default function DefaultList(props) { 7 | return
const foo = 'bar'
4 | 5 |8 |Quote with emphasis
6 | Emphasis! 7 |

4 | Strong text but
5 | this is also emphasized and
6 | striked
7 |
8 |
9 | Just emphasized
10 |
4 | I am a strong link 5 | and I am a emphasized link 6 |
7 |8 | I am a totally different link 9 |
10 | 11 | 12 | -------------------------------------------------------------------------------- /packages/@sanity/components/src/lists/styles/DefaultListItem.css: -------------------------------------------------------------------------------- 1 | @import 'part:@sanity/base/theme/variables-style'; 2 | 3 | .root { 4 | display: block; 5 | margin: 0; 6 | padding: 0; 7 | } 8 | 9 | .lineBetween { 10 | composes: root; 11 | border-bottom: var(--list-border); 12 | padding: var(--small-padding) 0; 13 | 14 | @nest &:last-child { 15 | border-bottom: none; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /packages/@sanity/default-layout/example/LoginDialog.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | function login(e) { 4 | document.location.reload() 5 | } 6 | 7 | export default function LoginModal(props) { 8 | return ( 9 |