-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up the alinea package exports. Deprecate the createNextCMS func…
…tion and move it to 'alinea/next'.
- Loading branch information
Showing
6 changed files
with
53 additions
and
40 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,4 +1,4 @@ | ||
import {createNextCMS} from 'alinea' | ||
import {createNextCMS} from 'alinea/next' | ||
import {config} from '../alinea.config' | ||
|
||
export const cms = createNextCMS(config) |
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,14 +1,12 @@ | ||
// Config creation | ||
export {Root, Workspace} from 'alinea/core' | ||
export type {Config, Infer, Schema, TextDoc, Type} from 'alinea/core' | ||
export * from 'alinea/core/driver/DefaultDriver' | ||
export * from 'alinea/core/driver/NextDriver' | ||
export {alinea} | ||
export * from './alinea.js' | ||
import * as alinea from './alinea.js' | ||
export default alinea | ||
export type { | ||
EntryReference, | ||
FileReference, | ||
ImageReference | ||
} from 'alinea/picker/entry/EntryReference' | ||
export type {UrlReference} from 'alinea/picker/url' | ||
|
||
export {alinea as default} | ||
|
||
// Next CMS constructor - deprecated | ||
import {createNextCMS as _createNextCMS} from 'alinea/core/driver/NextDriver' | ||
export {createNextCMS} | ||
/** @deprecated Use import {createCMS} from 'alinea/next' instead */ | ||
const createNextCMS = _createNextCMS | ||
|
||
export * from 'alinea/core/driver/DefaultDriver' |
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,23 +1,21 @@ | ||
// Included inputs | ||
export {document} from 'alinea/core/Document' | ||
export {check} from 'alinea/input/check' | ||
export {code} from 'alinea/input/code' | ||
export {date} from 'alinea/input/date' | ||
export {json} from 'alinea/input/json' | ||
export {link} from 'alinea/input/link' | ||
export {list} from 'alinea/input/list' | ||
export {metadata} from 'alinea/input/metadata' | ||
export {number} from 'alinea/input/number' | ||
export {object} from 'alinea/input/object' | ||
export {path} from 'alinea/input/path' | ||
export {richText} from 'alinea/input/richtext' | ||
export {select} from 'alinea/input/select' | ||
export {tab, tabs} from 'alinea/input/tabs' | ||
export {text} from 'alinea/input/text' | ||
export {view} from 'alinea/input/view' | ||
|
||
import {link} from 'alinea/input/link' | ||
export const entry = link.entry | ||
export const image = link.image | ||
export const file = link.file | ||
export const url = link.url | ||
export {check} from 'alinea/input/check' | ||
export {code} from 'alinea/input/code' | ||
export {date} from 'alinea/input/date' | ||
export {json} from 'alinea/input/json' | ||
export {link} from 'alinea/input/link' | ||
export {list} from 'alinea/input/list' | ||
export {metadata} from 'alinea/input/metadata' | ||
export {number} from 'alinea/input/number' | ||
export {object} from 'alinea/input/object' | ||
export {path} from 'alinea/input/path' | ||
export {richText} from 'alinea/input/richtext' | ||
export {select} from 'alinea/input/select' | ||
export {tab, tabs} from 'alinea/input/tabs' | ||
export {text} from 'alinea/input/text' | ||
export {view} from 'alinea/input/view' | ||
|
||
import {link} from 'alinea/input/link' | ||
export const entry = link.entry | ||
export const image = link.image | ||
export const file = link.file | ||
export const url = link.url |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export {createNextCMS as createCMS} from 'alinea/core/driver/NextDriver' |