Open-source and local-first Slack and Notion alternative that puts you in control of your data
TypeScript chatchat-applicationcrdteditorelectronknowledge-baselocal-firstnotionnotion-alternativerealtime-collaborationself-hostedslacksqliteteam-collaborationwikiyjs
Fix exports in core packages
Hakan Shehu56a16ba9b3d8
diff --git a/packages/core/src/index.ts b/packages/core/src/index.tsindex ba86d7eb..d87ba7c2 100644--- a/packages/core/src/index.ts+++ b/packages/core/src/index.ts@@ -1,299 +1,15 @@-import {- ChannelAttributes,- channelAttributesSchema,- channelModel,-} from './registry/channel';-import {- PageAttributes,- pageAttributesSchema,- pageModel,-} from './registry/page';-import {- ChatAttributes,- chatAttributesSchema,- chatModel,-} from './registry/chat';-import {- SpaceAttributes,- spaceAttributesSchema,- spaceModel,-} from './registry/space';-import {- UserAttributes,- userAttributesSchema,- userModel,-} from './registry/user';-import {- MessageAttributes,- messageAttributesSchema,- messageModel,-} from './registry/message';-import {- ViewFieldAttributes,- viewFieldAttributesSchema,- ViewFieldFilterAttributes,- viewFieldFilterAttributesSchema,- ViewGroupFilterAttributes,- viewGroupFilterAttributesSchema,- ViewFilterAttributes,- viewFilterAttributesSchema,- ViewSortAttributes,- viewSortAttributesSchema,- ViewAttributes,- viewAttributesSchema,- DatabaseAttributes,- databaseAttributesSchema,- databaseModel,-} from './registry/database';-import {- FileAttributes,- fileAttributesSchema,- fileModel,-} from './registry/file';-import {- FolderAttributes,- folderAttributesSchema,- folderModel,-} from './registry/folder';-import {- RecordAttributes,- recordAttributesSchema,- recordModel,-} from './registry/record';-import {- blockLeafSchema,- blockSchema,- BlockLeaf,- Block,-} from './registry/block';-import {- selectOptionAttributesSchema,- booleanFieldAttributesSchema,- booleanFieldValueSchema,- collaboratorFieldAttributesSchema,- collaboratorFieldValueSchema,- createdAtFieldAttributesSchema,- dateFieldAttributesSchema,- dateFieldValueSchema,- emailFieldAttributesSchema,- emailFieldValueSchema,- numberFieldAttributesSchema,- numberFieldValueSchema,- phoneFieldAttributesSchema,- phoneFieldValueSchema,- textFieldAttributesSchema,- textFieldValueSchema,- urlFieldAttributesSchema,- urlFieldValueSchema,- updatedAtFieldAttributesSchema,- updatedAtFieldValueSchema,- updatedByFieldAttributesSchema,- updatedByFieldValueSchema,- fieldAttributesSchema,- fieldValueSchema,- BooleanFieldAttributes,- BooleanFieldValue,- CollaboratorFieldAttributes,- CollaboratorFieldValue,- CreatedAtFieldAttributes,- CreatedAtFieldValue,- DateFieldAttributes,- DateFieldValue,- EmailFieldAttributes,- EmailFieldValue,- FileFieldAttributes,- FileFieldValue,- MultiSelectFieldAttributes,- MultiSelectFieldValue,- NumberFieldAttributes,- NumberFieldValue,- PhoneFieldAttributes,- PhoneFieldValue,- RelationFieldAttributes,- RelationFieldValue,- RollupFieldAttributes,- RollupFieldValue,- SelectFieldAttributes,- SelectFieldValue,- TextFieldAttributes,- TextFieldValue,- UrlFieldAttributes,- CreatedByFieldAttributes,- CreatedByFieldValue,- UpdatedByFieldAttributes,- FieldAttributes,- FieldValue,- FieldType,- SelectOptionAttributes,- UpdatedAtFieldAttributes,- UpdatedAtFieldValue,- createdAtFieldValueSchema,- createdByFieldAttributesSchema,- createdByFieldValueSchema,- fileFieldAttributesSchema,- fileFieldValueSchema,- multiSelectFieldAttributesSchema,- multiSelectFieldValueSchema,- relationFieldAttributesSchema,- relationFieldValueSchema,- rollupFieldAttributesSchema,- rollupFieldValueSchema,- selectFieldAttributesSchema,- selectFieldValueSchema,-} from './registry/fields';-import { NodeRole, NodeModel, NodeMutationContext } from './registry/core';-import {- registry,- NodeAttributes,- ChannelNode,- ChatNode,- DatabaseNode,- FileNode,- FolderNode,- MessageNode,- PageNode,- RecordNode,- SpaceNode,- UserNode,- Node,-} from './registry';-import { ZodText } from './registry/zod';--export {- ZodText,- registry,- type ChannelAttributes,- channelAttributesSchema,- channelModel,- type PageAttributes,- pageAttributesSchema,- pageModel,- type ChatAttributes,- chatAttributesSchema,- chatModel,- type SpaceAttributes,- spaceAttributesSchema,- spaceModel,- type UserAttributes,- userAttributesSchema,- userModel,- type MessageAttributes,- messageAttributesSchema,- messageModel,- type ViewFieldAttributes,- viewFieldAttributesSchema,- type ViewFieldFilterAttributes,- viewFieldFilterAttributesSchema,- type ViewGroupFilterAttributes,- viewGroupFilterAttributesSchema,- type ViewFilterAttributes,- viewFilterAttributesSchema,- type ViewSortAttributes,- viewSortAttributesSchema,- type ViewAttributes,- viewAttributesSchema,- type DatabaseAttributes,- databaseAttributesSchema,- databaseModel,- type FileAttributes,- fileAttributesSchema,- fileModel,- type FolderAttributes,- folderAttributesSchema,- folderModel,- type RecordAttributes,- recordAttributesSchema,- recordModel,- blockLeafSchema,- blockSchema,- selectOptionAttributesSchema,- booleanFieldAttributesSchema,- booleanFieldValueSchema,- collaboratorFieldAttributesSchema,- collaboratorFieldValueSchema,- createdAtFieldAttributesSchema,- dateFieldAttributesSchema,- dateFieldValueSchema,- emailFieldAttributesSchema,- emailFieldValueSchema,- numberFieldAttributesSchema,- numberFieldValueSchema,- phoneFieldAttributesSchema,- phoneFieldValueSchema,- textFieldAttributesSchema,- textFieldValueSchema,- urlFieldAttributesSchema,- urlFieldValueSchema,- updatedAtFieldAttributesSchema,- updatedAtFieldValueSchema,- updatedByFieldAttributesSchema,- updatedByFieldValueSchema,- fieldAttributesSchema,- fieldValueSchema,- type BooleanFieldAttributes,- type BooleanFieldValue,- type CollaboratorFieldAttributes,- type CollaboratorFieldValue,- type CreatedAtFieldAttributes,- type CreatedAtFieldValue,- type DateFieldAttributes,- type DateFieldValue,- type EmailFieldAttributes,- type EmailFieldValue,- type FileFieldAttributes,- type FileFieldValue,- type MultiSelectFieldAttributes,- type MultiSelectFieldValue,- type NumberFieldAttributes,- type NumberFieldValue,- type PhoneFieldAttributes,- type PhoneFieldValue,- type RelationFieldAttributes,- type RelationFieldValue,- type RollupFieldAttributes,- type RollupFieldValue,- type SelectFieldAttributes,- type SelectFieldValue,- type TextFieldAttributes,- type TextFieldValue,- type UrlFieldAttributes,- type CreatedByFieldAttributes,- type CreatedByFieldValue,- type UpdatedByFieldAttributes,- type FieldAttributes,- type FieldValue,- type FieldType,- type SelectOptionAttributes,- type UpdatedAtFieldAttributes,- type UpdatedAtFieldValue,- createdAtFieldValueSchema,- createdByFieldAttributesSchema,- createdByFieldValueSchema,- fileFieldAttributesSchema,- fileFieldValueSchema,- multiSelectFieldAttributesSchema,- multiSelectFieldValueSchema,- relationFieldAttributesSchema,- relationFieldValueSchema,- rollupFieldAttributesSchema,- rollupFieldValueSchema,- selectFieldAttributesSchema,- selectFieldValueSchema,- type NodeRole,- type NodeModel,- type NodeMutationContext,- type NodeAttributes,- type ChannelNode,- type ChatNode,- type DatabaseNode,- type FileNode,- type FolderNode,- type MessageNode,- type PageNode,- type RecordNode,- type SpaceNode,- type UserNode,- type BlockLeaf,- type Block,- type Node,-};+export * from './registry/block';+export * from './registry/channel';+export * from './registry/chat';+export * from './registry/core';+export * from './registry/database';+export * from './registry/fields';+export * from './registry/file';+export * from './registry/folder';+export * from './registry/index';+export * from './registry/message';+export * from './registry/page';+export * from './registry/record';+export * from './registry/space';+export * from './registry/user';+export * from './registry/zod';