jamespot-react-core 1.1.180 → 1.1.181

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.
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export type MarkdownModalProps = {
3
+ onInsert: (html: string) => void;
4
+ open: boolean;
5
+ close: () => void;
6
+ };
7
+ export declare const MarkdownModal: ({ onInsert, open, close }: MarkdownModalProps) => React.JSX.Element;
@@ -5,4 +5,8 @@ export type JiaTextEnhanceQuery = {
5
5
  capability: JIACapabilities;
6
6
  text: string;
7
7
  };
8
- export declare const useAI: () => readonly [JiaTextEnhanceQuery | undefined, import("jamespot-react-components/build/src/components/Form/Input/JRCInputTinyMCERaw/extensions/JTinyMCEExtensions").TinyMCEExtension];
8
+ export declare const useAI: () => {
9
+ readonly query: JiaTextEnhanceQuery | undefined;
10
+ readonly ext: import("jamespot-react-components/build/src/components/Form/Input/JRCInputTinyMCERaw/extensions/JTinyMCEExtensions").TinyMCEExtension;
11
+ readonly isActive: any;
12
+ };
@@ -0,0 +1,8 @@
1
+ import { JTinyMCEExtensionsBuilders } from 'jamespot-react-components';
2
+ export declare const useMarkdownModal: () => {
3
+ open: boolean;
4
+ onInsert: (v: string) => void;
5
+ close: () => void;
6
+ ext: ReturnType<typeof JTinyMCEExtensionsBuilders.markdown>;
7
+ isActive?: boolean | undefined;
8
+ };
@@ -12,6 +12,7 @@ export declare const coreComponentsMapping: {
12
12
  readonly InputTinyMCEWithExt: "JRCInputTinyMCEWithExt";
13
13
  readonly ModalAudience: "ModalAudience";
14
14
  readonly TinyMCEAIModal: "AIModal";
15
+ readonly TinyMCEMarkdownModal: "MarkdownModal";
15
16
  readonly TwoColLayout: "TwoColLayout";
16
17
  readonly WidgetWrapperCore: "WidgetWrapperCore";
17
18
  readonly WidgetList: "WidgetList";
@@ -10,6 +10,7 @@ export { EditorsPortal } from '../components/editors/EditorsPortal';
10
10
  export { Empty } from '../components/Empty';
11
11
  export { JRCInputTinyMCEWithExt } from '../components/tinymce/JRCInputTinyMCEWithExt';
12
12
  export { JRCInputTinyMCEWithExtRaw } from '../components/tinymce/JRCInputTinyMCEWithExtRaw';
13
+ export { MarkdownModal } from '../components/tinymce/extension/MarkdownModal';
13
14
  export { ModalAudience } from '../components/modals/ModalAudience';
14
15
  export { TwoColLayout } from '../components/TwoColLayout';
15
16
  export { WidgetList } from '../components/widgets/WidgetList/WidgetList';
@@ -93,6 +93,7 @@ declare const _default: {
93
93
  readonly InputSelectRaw: "JRCInputSelectRaw";
94
94
  readonly InputText: "JRCInputText";
95
95
  readonly InputTextarea: "JRCInputTextarea";
96
+ readonly InputTextareaRaw: "JRCInputTextareaRaw";
96
97
  readonly InputPassword: "JRCInputPassword";
97
98
  readonly InputTextIconButton: "JRCInputTextIconButton";
98
99
  readonly InputTextRaw: "JRCInputTextRaw";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-core",
3
- "version": "1.1.180",
3
+ "version": "1.1.181",
4
4
  "description": "Jamespot React Core",
5
5
  "main": "./build/app.bundle.js",
6
6
  "types": "./build/src/App.d.ts",
@@ -54,8 +54,9 @@
54
54
  "@reduxjs/toolkit": "^1.9.0",
55
55
  "history": "^5.3.0",
56
56
  "jamespot-front-business": "^1.1.81",
57
- "jamespot-react-components": "^1.0.226",
58
- "jamespot-user-api": "^1.0.205",
57
+ "jamespot-react-components": "^1.0.229",
58
+ "jamespot-user-api": "^1.0.206",
59
+ "marked": "^15.0.3",
59
60
  "react": "^17.0.2",
60
61
  "react-dom": "^17.0.2",
61
62
  "react-hook-form": "^7.25.0",