@blocklet/discuss-kit-ux-lite 2.6.0 → 2.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { useEffect } from "react";
2
- import { useInlineTranslationStore } from "@blocklet/editor/lib/ext/InlineTranslationPlugin";
2
+ import { useInlineTranslationStore } from "@blocklet/editor-lite/lib/ext/InlineTranslationPlugin";
3
3
  import { useAutoTranslateStore } from "./store.mjs";
4
4
  export const useEditorStoreAdapter = () => {
5
5
  const { autoTranslate } = useAutoTranslateStore();
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { InlineTranslationPlugin } from "@blocklet/editor/lib/ext/InlineTranslationPlugin";
2
+ import { InlineTranslationPlugin } from "@blocklet/editor-lite/lib/ext/InlineTranslationPlugin";
3
3
  import { useMemo } from "react";
4
4
  import { createContainer } from "unstated-next";
5
5
  import { useLocaleContext } from "../hooks/locale-context.mjs";
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { AxiosInstance } from 'axios';
3
- import type { EditorConfig } from '@blocklet/editor/lib/config';
3
+ import type { EditorConfig } from '@blocklet/editor-lite/lib/config';
4
4
  export default function DefaultEditorConfigProvider({ request, children, editorConfig, }: {
5
5
  request: AxiosInstance;
6
6
  children: React.ReactNode;
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useMemo } from "react";
3
- import { EditorConfigProvider } from "@blocklet/editor/lib/config";
3
+ import { EditorConfigProvider } from "@blocklet/editor-lite/lib/config";
4
4
  import { joinURL } from "ufo";
5
5
  import { useMediaQuery } from "@mui/material";
6
6
  import { useSessionContext } from "./hooks/index.mjs";
@@ -1 +1 @@
1
- export { BlockletEditor, useBlockletEditorLoaded } from '@blocklet/editor/lib/blocklet-editor';
1
+ export { BlockletEditor, useBlockletEditorLoaded } from '@blocklet/editor-lite/lib/blocklet-editor';
@@ -1 +1 @@
1
- export { BlockletEditor, useBlockletEditorLoaded } from "@blocklet/editor/lib/blocklet-editor";
1
+ export { BlockletEditor, useBlockletEditorLoaded } from "@blocklet/editor-lite/lib/blocklet-editor";
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { BlockletEditorProps } from '@blocklet/editor';
2
+ import type { BlockletEditorProps } from '@blocklet/editor-lite';
3
3
  import type { EditorState, LexicalEditor } from 'lexical';
4
4
  export type OnChangeHandler = ({ content, editorState, editor, isEmpty, }: {
5
5
  content: string;
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { Box, styled } from "@mui/material";
3
- import { OnContentChangePlugin } from "@blocklet/editor/lib/ext/OnContentChangePlugin";
4
- import { CtrlsShortcutPlugin } from "@blocklet/editor/lib/ext/ShortcutPlugin";
3
+ import { OnContentChangePlugin } from "@blocklet/editor-lite/lib/ext/OnContentChangePlugin";
4
+ import { CtrlsShortcutPlugin } from "@blocklet/editor-lite/lib/ext/ShortcutPlugin";
5
5
  import { isEmptyContent, stringify } from "../lexical.mjs";
6
6
  import { BlockletEditor } from "./blocklet-editor.mjs";
7
7
  const Root = styled(Box)`
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { useBlockletEditorViewerLoaded, EditorViewerProps } from '@blocklet/editor/lib/blocklet-editor-viewer';
2
+ import { useBlockletEditorViewerLoaded, EditorViewerProps } from '@blocklet/editor-lite/lib/blocklet-editor-viewer';
3
3
  export interface EditorProps extends Omit<EditorViewerProps, 'editorState'> {
4
4
  content: string;
5
5
  }
@@ -4,7 +4,7 @@ import { Skeleton } from "@mui/material";
4
4
  import {
5
5
  BlockletEditorViewer as InternalBlockletEditorViewer,
6
6
  useBlockletEditorViewerLoaded
7
- } from "@blocklet/editor/lib/blocklet-editor-viewer";
7
+ } from "@blocklet/editor-lite/lib/blocklet-editor-viewer";
8
8
  const fallback = /* @__PURE__ */ jsxs(Fragment, { children: [
9
9
  /* @__PURE__ */ jsx(Skeleton, {}),
10
10
  /* @__PURE__ */ jsx(Skeleton, { width: "80%" }),
@@ -3,7 +3,7 @@ import { createElement } from "react";
3
3
  import { useState, useRef } from "react";
4
4
  import { Box } from "@mui/material";
5
5
  import isNil from "lodash/isNil";
6
- import { EditorConfigProvider, useEditorConfig } from "@blocklet/editor/lib/config";
6
+ import { EditorConfigProvider, useEditorConfig } from "@blocklet/editor-lite/lib/config";
7
7
  import { isEmptyContent } from "../lexical.mjs";
8
8
  import ShortcutPlugin from "./shortcut-plugin.mjs";
9
9
  import { AutoClearPlugin } from "./auto-clear-plugin.mjs";
@@ -1,6 +1,6 @@
1
1
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useLocaleContext } from "@arcblock/ux/lib/Locale/context";
3
- import { EditorHolderProvider } from "@blocklet/editor/lib/ext/EditorHolderPlugin";
3
+ import { EditorHolderProvider } from "@blocklet/editor-lite/lib/ext/EditorHolderPlugin";
4
4
  import { NavigateNext as NavigateNextIcon } from "@mui/icons-material";
5
5
  import { Divider } from "@mui/material";
6
6
  import Box from "@mui/material/Box";
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { Suspense } from "react";
3
3
  import Box from "@mui/material/Box";
4
4
  import { Skeleton } from "@mui/material";
5
- import { BlockletEditorViewer } from "@blocklet/editor/lib/blocklet-editor-viewer";
5
+ import { BlockletEditorViewer } from "@blocklet/editor-lite/lib/blocklet-editor-viewer";
6
6
  import { ViewMore } from "../view-more.mjs";
7
7
  import PostEdit from "../input/post-edit.mjs";
8
8
  const innerHeight = parseInt(String(window.innerHeight / 3), 10);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/discuss-kit-ux-lite",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -44,7 +44,7 @@
44
44
  "ufo": "^1.5.4",
45
45
  "unstated-next": "^1.1.0",
46
46
  "zustand": "^4.5.5",
47
- "@blocklet/editor-lite": "2.6.0"
47
+ "@blocklet/editor-lite": "2.6.1"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "@arcblock/did-connect-react": "^3.1.5",