@pdg/react-form 1.1.9 → 1.1.10
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.
|
@@ -3,6 +3,8 @@ import { PFormTextEditorProps as Props, PFormTextEditorCommands } from './PFormT
|
|
|
3
3
|
import './PFormTextEditor.scss';
|
|
4
4
|
type PFormTextEditorType = typeof PFormTextEditor & {
|
|
5
5
|
apiKey: string;
|
|
6
|
+
onOpenWindow?: () => void;
|
|
7
|
+
onCloseWindow?: () => void;
|
|
6
8
|
};
|
|
7
9
|
declare const PFormTextEditor: React.ForwardRefExoticComponent<Props & React.RefAttributes<PFormTextEditorCommands>>;
|
|
8
10
|
declare const _default: PFormTextEditorType;
|
package/dist/index.esm.js
CHANGED
|
@@ -3865,10 +3865,14 @@ PFormRating.displayName = 'PFormRating';var getFinalValue$8 = function (value) {
|
|
|
3865
3865
|
}, onInit: function (evt, editor) {
|
|
3866
3866
|
editorRef.current = editor;
|
|
3867
3867
|
editor.on('OpenWindow', function () {
|
|
3868
|
+
var _a, _b;
|
|
3868
3869
|
onOpenWindow === null || onOpenWindow === void 0 ? void 0 : onOpenWindow();
|
|
3870
|
+
(_b = (_a = PFormTextEditor).onOpenWindow) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
3869
3871
|
});
|
|
3870
3872
|
editor.on('CloseWindow', function () {
|
|
3873
|
+
var _a, _b;
|
|
3871
3874
|
onCloseWindow === null || onCloseWindow === void 0 ? void 0 : onCloseWindow();
|
|
3875
|
+
(_b = (_a = PFormTextEditor).onCloseWindow) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
3872
3876
|
});
|
|
3873
3877
|
setTimeout(function () { return setInitialized(true); }, 10);
|
|
3874
3878
|
}, onEditorChange: handleEditorChange, onKeyDown: handleKeyDown, onFocus: function () { return setFocused(initFocused || true); }, onBlur: function () { return setFocused(initFocused || false); } })) }));
|
package/dist/index.js
CHANGED
|
@@ -3865,10 +3865,14 @@ PFormRating.displayName = 'PFormRating';var getFinalValue$8 = function (value) {
|
|
|
3865
3865
|
}, onInit: function (evt, editor) {
|
|
3866
3866
|
editorRef.current = editor;
|
|
3867
3867
|
editor.on('OpenWindow', function () {
|
|
3868
|
+
var _a, _b;
|
|
3868
3869
|
onOpenWindow === null || onOpenWindow === void 0 ? void 0 : onOpenWindow();
|
|
3870
|
+
(_b = (_a = PFormTextEditor).onOpenWindow) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
3869
3871
|
});
|
|
3870
3872
|
editor.on('CloseWindow', function () {
|
|
3873
|
+
var _a, _b;
|
|
3871
3874
|
onCloseWindow === null || onCloseWindow === void 0 ? void 0 : onCloseWindow();
|
|
3875
|
+
(_b = (_a = PFormTextEditor).onCloseWindow) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
3872
3876
|
});
|
|
3873
3877
|
setTimeout(function () { return setInitialized(true); }, 10);
|
|
3874
3878
|
}, onEditorChange: handleEditorChange, onKeyDown: handleKeyDown, onFocus: function () { return setFocused(initFocused || true); }, onBlur: function () { return setFocused(initFocused || false); } })) }));
|