-
Notifications
You must be signed in to change notification settings - Fork 429
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[components] Proof of new slug concept (#585)
* [components] Show focus and open on press enter * [components] Proof of new slug concept * [form-builder] Remove old validation from slug. * [test-studio] Preview of slug * [form-builder] Not check slug agains unpublished slugs * [form-builder] Test of using the validaiton system. Needs access to document * [form-builder] Clean up imports/variables in SlugInput * [form-builder] Add focus handling to slug input * [form-builder] Simplify slug input significantly. Use validation infrastructure. * [form-builder] Remove unused file * [form-builder] Make sure _type is set on slug objects * [form-builder] Make sure slug input is still mounted before setting state * [form-builder] Make sure slugify always returns a promise * [form-builder] Fix missing import * [form-builder] Disable generate slug when no source
- Loading branch information
Kristoffer J. Sivertsen
authored
Feb 28, 2018
1 parent
0b34988
commit 03b7d93
Showing
18 changed files
with
351 additions
and
381 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
import * as SlugInput from './inputs/Slug' | ||
|
||
export {default as FormBuilder} from './FormBuilder' | ||
export {default as FormBuilderContext} from './FormBuilderContext' | ||
export {default as BlockEditor} from './inputs/BlockEditor-slate' | ||
export {default as ReferenceInput} from './inputs/ReferenceInput' | ||
export {default as FileInput} from './inputs/FileInput' | ||
export {default as ImageInput} from './inputs/ImageInput' | ||
|
||
// Input component factories | ||
export {SlugInput} | ||
|
||
export function createFormBuilder() { | ||
throw new Error('The factory function createFormBuilder(...) has been removed. Please use <FormBuilder .../> instead') | ||
throw new Error( | ||
'The factory function createFormBuilder(...) has been removed. Please use <FormBuilder .../> instead' | ||
) | ||
} |
44 changes: 0 additions & 44 deletions
44
packages/@sanity/form-builder/src/inputs/Slug/Placeholder.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.