rj-editor 1.0.0 → 1.0.2

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.
Files changed (33) hide show
  1. package/README.md +156 -176
  2. package/dist/components/equation/EquationComponent.d.ts +1 -1
  3. package/dist/components/image/ImageComponent.d.ts +1 -1
  4. package/dist/components/rj-text-editor/RJTextEditor.types.d.ts +1 -1
  5. package/dist/components/rj-text-editor/createInitialConfig.d.ts +1 -1
  6. package/dist/components/toolbar/equation/utils.d.ts +2 -2
  7. package/dist/components/toolbar/image/utils.d.ts +3 -3
  8. package/dist/components/toolbar/insert/equation/EquationModal.d.ts +1 -1
  9. package/dist/components/toolbar/insert/equation/EquationPreview.d.ts +1 -1
  10. package/dist/constants/initialToolbarState.d.ts +1 -1
  11. package/dist/constants/insertEquationCommand.d.ts +1 -1
  12. package/dist/constants/insertImageCommand.d.ts +1 -1
  13. package/dist/constants/insertYouTubeCommand.d.ts +1 -1
  14. package/dist/i18n/I18nContext.d.ts +1 -1
  15. package/dist/i18n/RJEditorI18nContext.d.ts +1 -1
  16. package/dist/i18n/locales/en.d.ts +1 -1
  17. package/dist/i18n/locales/ru.d.ts +1 -1
  18. package/dist/i18n/locales/uz.d.ts +1 -1
  19. package/dist/i18n/mergeTranslations.d.ts +1 -1
  20. package/dist/index.d.ts +4 -4
  21. package/dist/nodes/EquationNode.d.ts +1 -1
  22. package/dist/nodes/ImageNode.d.ts +1 -1
  23. package/dist/nodes/YouTubeNode.d.ts +1 -1
  24. package/dist/rj-editor.css +1 -1
  25. package/dist/rj-editor.js +1577 -1562
  26. package/dist/rj-editor.umd.cjs +18 -18
  27. package/dist/slice/toolbarSlice.d.ts +1 -1
  28. package/dist/store/hooks.d.ts +2 -2
  29. package/dist/store/index.d.ts +1 -1
  30. package/dist/types/AppDispatch.d.ts +1 -1
  31. package/dist/types/RootState.d.ts +1 -1
  32. package/dist/utils/helpers/renderEquationToHtml.d.ts +1 -1
  33. package/package.json +2 -2
@@ -1,3 +1,3 @@
1
- import type { ToolbarState } from '@/types';
1
+ import type { ToolbarState } from '../types/index';
2
2
  export declare const setBlockFormats: import("@reduxjs/toolkit").ActionCreatorWithPayload<Pick<ToolbarState, "alignment" | "listType">, "toolbar/setBlockFormats">, setCanRedo: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "toolbar/setCanRedo">, setCanUndo: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "toolbar/setCanUndo">, setEquationFormats: import("@reduxjs/toolkit").ActionCreatorWithPayload<Pick<ToolbarState, "isEquationSelected" | "selectedEquation" | "selectedEquationDisplayMode" | "selectedEquationKey">, "toolbar/setEquationFormats">, setImageFormats: import("@reduxjs/toolkit").ActionCreatorWithPayload<Pick<ToolbarState, "isImageSelected" | "selectedImageAspectRatioLocked" | "selectedImageAlignment" | "selectedImageAltText" | "selectedImageBorderEnabled" | "selectedImageBorderRadius" | "selectedImageCaption" | "selectedImageHeight" | "selectedImageKey" | "selectedImageLinkUrl" | "selectedImageObjectFit" | "selectedImageRotation" | "selectedImageShadowEnabled" | "selectedImageTextWrap" | "selectedImageWidth">, "toolbar/setImageFormats">, setStyleFormats: import("@reduxjs/toolkit").ActionCreatorWithPayload<Pick<ToolbarState, "backgroundColor" | "fontFamily" | "fontSize" | "lineHeight" | "textColor">, "toolbar/setStyleFormats">, setTableFormats: import("@reduxjs/toolkit").ActionCreatorWithPayload<Pick<ToolbarState, "isInTable" | "selectedTableCellsCount" | "tableCellBackgroundColor" | "tableCellVerticalAlign" | "tableHasMergedCell">, "toolbar/setTableFormats">, setTextFormats: import("@reduxjs/toolkit").ActionCreatorWithPayload<Pick<ToolbarState, "isBold" | "isItalic" | "isStrikethrough" | "isSubscript" | "isSuperscript" | "isUnderline">, "toolbar/setTextFormats">;
3
3
  export declare const toolbarReducer: import("redux").Reducer<ToolbarState>;
@@ -1,6 +1,6 @@
1
1
  export declare const useAppDispatch: import("react-redux").UseDispatch<import("redux-thunk").ThunkDispatch<{
2
- toolbar: import("@/types").ToolbarState;
2
+ toolbar: import("../types/index").ToolbarState;
3
3
  }, undefined, import("redux").UnknownAction> & import("redux").Dispatch<import("redux").UnknownAction>>;
4
4
  export declare const useAppSelector: import("react-redux").UseSelector<{
5
- toolbar: import("@/types").ToolbarState;
5
+ toolbar: import("../types/index").ToolbarState;
6
6
  }>;
@@ -1,3 +1,3 @@
1
1
  export { createRJEditorStore, store } from './store';
2
- export type { AppDispatch, RootState } from '@/types';
2
+ export type { AppDispatch, RootState } from '../types/index';
3
3
  export { useAppDispatch, useAppSelector } from './hooks';
@@ -1,2 +1,2 @@
1
- import type { store } from '@/store/store';
1
+ import type { store } from '../store/store';
2
2
  export type AppDispatch = typeof store.dispatch;
@@ -1,2 +1,2 @@
1
- import type { store } from '@/store/store';
1
+ import type { store } from '../store/store';
2
2
  export type RootState = ReturnType<typeof store.getState>;
@@ -1,3 +1,3 @@
1
1
  import 'katex/contrib/mhchem';
2
- import type { EquationDisplayMode } from '@/types';
2
+ import type { EquationDisplayMode } from '../../types/index';
3
3
  export declare function renderEquationToHtml(equation: string, displayMode: EquationDisplayMode): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rj-editor",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "React rich text editor: toolbar tabs, table, image, link, YouTube, i18n, theme va Ant Design Form integratsiyasi.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -46,7 +46,7 @@
46
46
  ],
47
47
  "scripts": {
48
48
  "dev": "vite",
49
- "build": "vite build && tsc -p tsconfig.lib.json",
49
+ "build": "vite build && tsc -p tsconfig.lib.json && node scripts/fix-dts-aliases.mjs",
50
50
  "build:demo": "vite build --config vite.demo.config.ts",
51
51
  "lint": "eslint .",
52
52
  "preview": "vite preview"