-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: bring rich text validator [TOL-2426] (#694)
* feat: bring rich text validator * chore: node 20 * test(rich-text-types): migrate tests for validation [] * fix(rich-text-types): entry hyperlink validation * refactor(rich-text-types): you don't need lodash uniqBy [] * refactor(build): exclude dependencies from bundle [] BREAKING CHANGE: removed getSchemaWithNodeType in favor of validateRichTextDocument --------- Co-authored-by: Chris Helgert <chrishelgert@users.noreply.github.com>
- Loading branch information
1 parent
a7386da
commit 30893a6
Showing
52 changed files
with
1,872 additions
and
8,800 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v18 | ||
v20 |
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,4 +1,6 @@ | ||
import config from '../../rollup.config'; | ||
import { main as outputFile } from './package.json'; | ||
import { main as outputFile, dependencies } from './package.json'; | ||
|
||
export default config(outputFile); | ||
export default config(outputFile, { | ||
external: Object.keys(dependencies), | ||
}); |
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,4 +1,6 @@ | ||
import config from '../../rollup.config'; | ||
import { main as outputFile } from './package.json'; | ||
import { main as outputFile, dependencies } from './package.json'; | ||
|
||
export default config(outputFile); | ||
export default config(outputFile, { | ||
external: Object.keys(dependencies), | ||
}); |
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,4 +1,6 @@ | ||
import config from '../../rollup.config'; | ||
import { main as outputFile } from './package.json'; | ||
import { main as outputFile, dependencies } from './package.json'; | ||
|
||
export default config(outputFile); | ||
export default config(outputFile, { | ||
external: Object.keys(dependencies), | ||
}); |
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,4 +1,6 @@ | ||
import config from '../../rollup.config'; | ||
import { main as outputFile } from './package.json'; | ||
import { main as outputFile, dependencies } from './package.json'; | ||
|
||
export default config(outputFile); | ||
export default config(outputFile, { | ||
external: Object.keys(dependencies), | ||
}); |
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,9 +1,9 @@ | ||
import config from '../../rollup.config'; | ||
import { main as outputFile } from './package.json'; | ||
import { main as outputFile, dependencies } from './package.json'; | ||
|
||
const overrides = { | ||
input: 'src/index.tsx', | ||
external: ['react'], | ||
external: [...Object.keys(dependencies), 'react'], | ||
}; | ||
|
||
export default config(outputFile, overrides); |
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,32 +1,6 @@ | ||
import copy from 'rollup-plugin-copy'; | ||
|
||
import config from '../../rollup.config'; | ||
import { main as outputFile } from './package.json'; | ||
|
||
const customConfig = () => { | ||
const baseConfig = config(outputFile); | ||
|
||
return { | ||
...baseConfig, | ||
output: { | ||
// Maintain the same file names & folders structure as "src" | ||
// This is necessary to resolve generated JSON schema files | ||
// | ||
// https://rollupjs.org/guide/en/#outputpreservemodules | ||
preserveModules: true, | ||
}, | ||
plugins: [ | ||
...baseConfig.plugins, | ||
copy({ | ||
targets: [ | ||
{ | ||
src: 'src/schemas/generated', | ||
dest: 'dist/schemas', | ||
}, | ||
], | ||
}), | ||
], | ||
}; | ||
}; | ||
import { main as outputFile, dependencies } from './package.json'; | ||
|
||
export default customConfig(); | ||
export default config(outputFile, { | ||
external: Object.keys(dependencies), | ||
}); |
Oops, something went wrong.