mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
28 lines
770 B
TypeScript
28 lines
770 B
TypeScript
export * from './adapter';
|
|
export * from './extension';
|
|
export * from './model';
|
|
export * from './reactive';
|
|
export * from './schema';
|
|
export * from './transformer';
|
|
export { type IdGenerator, nanoid, uuidv4 } from './utils/id-generator';
|
|
export * from './yjs';
|
|
|
|
const env = (
|
|
typeof globalThis !== 'undefined'
|
|
? globalThis
|
|
: typeof window !== 'undefined'
|
|
? window
|
|
: typeof global !== 'undefined'
|
|
? global
|
|
: {}
|
|
) as Record<string, boolean>;
|
|
const importIdentifier = '__ $BLOCKSUITE_STORE$ __';
|
|
|
|
if (env[importIdentifier] === true) {
|
|
// https://github.com/yjs/yjs/issues/438
|
|
console.error(
|
|
'@blocksuite/store was already imported. This breaks constructor checks and will lead to issues!'
|
|
);
|
|
}
|
|
env[importIdentifier] = true;
|