2021-12-25 23:39:34 +01:00
|
|
|
/*
|
|
|
|
* Copyright [2021] [wisemapping]
|
|
|
|
*
|
|
|
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
|
|
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
|
|
|
* "powered by wisemapping" text requirement on every single page;
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the license at
|
|
|
|
*
|
|
|
|
* http://www.wisemapping.org/license
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
2021-12-24 20:04:50 +01:00
|
|
|
import jquery from 'jquery';
|
2021-12-23 19:51:26 +01:00
|
|
|
import * as DesignerBuilder from './components/DesignerBuilder';
|
2021-12-04 01:11:17 +01:00
|
|
|
import Mindmap from './components/model/Mindmap';
|
|
|
|
import PersistenceManager from './components/PersistenceManager';
|
|
|
|
import Designer from './components/Designer';
|
|
|
|
import LocalStorageManager from './components/LocalStorageManager';
|
2022-01-25 19:10:40 +01:00
|
|
|
import RESTPersistenceManager from './components/RestPersistenceManager';
|
2022-02-21 03:50:03 +01:00
|
|
|
import MockPersistenceManager from './components/MockPersistenceManager';
|
2022-01-25 19:10:40 +01:00
|
|
|
import DesignerOptionsBuilder from './components/DesignerOptionsBuilder';
|
2022-01-26 07:33:39 +01:00
|
|
|
import ImageExporterFactory from './components/export/ImageExporterFactory';
|
|
|
|
import TextExporterFactory from './components/export/TextExporterFactory';
|
2022-03-21 20:02:37 +01:00
|
|
|
import TextImporterFactory from './components/import/TextImporterFactory';
|
2022-01-26 07:33:39 +01:00
|
|
|
import Exporter from './components/export/Exporter';
|
2022-03-21 20:02:37 +01:00
|
|
|
import Importer from './components/import/Importer';
|
2022-02-13 04:15:51 +01:00
|
|
|
import DesignerKeyboard from './components/DesignerKeyboard';
|
2022-02-25 17:51:05 +01:00
|
|
|
import EditorRenderMode from './components/EditorRenderMode';
|
2022-10-31 06:17:01 +01:00
|
|
|
import DesignerModel from './components/DesignerModel';
|
|
|
|
|
|
|
|
import SvgImageIcon from './components/SvgImageIcon';
|
2022-08-26 03:35:59 +02:00
|
|
|
|
|
|
|
import MindplotWebComponent, {
|
|
|
|
MindplotWebComponentInterface,
|
|
|
|
} from './components/MindplotWebComponent';
|
|
|
|
import LinkIcon from './components/LinkIcon';
|
|
|
|
import NoteIcon from './components/NoteIcon';
|
|
|
|
import Topic from './components/Topic';
|
|
|
|
|
|
|
|
import LinkModel from './components/model/LinkModel';
|
|
|
|
import NoteModel from './components/model/NoteModel';
|
|
|
|
|
|
|
|
import WidgetManager from './components/WidgetManager';
|
2022-01-26 07:33:39 +01:00
|
|
|
|
2022-07-09 03:34:52 +02:00
|
|
|
import { buildDesigner } from './components/DesignerBuilder';
|
2022-03-05 21:09:25 +01:00
|
|
|
|
2022-07-09 03:34:52 +02:00
|
|
|
import { $notify } from './components/widget/ToolbarNotifier';
|
2022-10-31 06:17:01 +01:00
|
|
|
import XMLSerializerFactory from './components/persistence/XMLSerializerFactory';
|
2021-12-04 01:11:17 +01:00
|
|
|
|
2022-10-31 06:17:01 +01:00
|
|
|
declare global {
|
|
|
|
// Todo: There are some global references that needs to be removed inside mindplot.
|
|
|
|
// eslint-disable-next-line vars-on-top, no-var
|
|
|
|
var designer: Designer;
|
|
|
|
}
|
2022-03-05 21:09:25 +01:00
|
|
|
|
2022-12-10 05:56:01 +01:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2022-01-31 01:05:22 +01:00
|
|
|
const globalAny: any = global;
|
|
|
|
globalAny.jQuery = jquery;
|
2022-08-26 03:35:59 +02:00
|
|
|
// WebComponent registration
|
|
|
|
// The if statement is the fix for doble registration problem. Can be deleted wen webapp-mindplot dependency be dead.
|
|
|
|
if (!customElements.get('mindplot-component')) {
|
|
|
|
customElements.define('mindplot-component', MindplotWebComponent);
|
|
|
|
}
|
2021-12-24 20:04:50 +01:00
|
|
|
|
2021-12-04 01:11:17 +01:00
|
|
|
export {
|
2021-12-27 20:42:32 +01:00
|
|
|
Mindmap,
|
|
|
|
Designer,
|
2022-10-31 06:17:01 +01:00
|
|
|
DesignerModel,
|
2021-12-27 20:42:32 +01:00
|
|
|
DesignerBuilder,
|
2022-01-25 19:10:40 +01:00
|
|
|
PersistenceManager,
|
|
|
|
RESTPersistenceManager,
|
2022-02-21 03:50:03 +01:00
|
|
|
MockPersistenceManager,
|
2022-01-25 19:10:40 +01:00
|
|
|
LocalStorageManager,
|
|
|
|
DesignerOptionsBuilder,
|
|
|
|
buildDesigner,
|
2022-02-25 17:51:05 +01:00
|
|
|
EditorRenderMode,
|
2022-01-26 07:33:39 +01:00
|
|
|
TextExporterFactory,
|
|
|
|
ImageExporterFactory,
|
2022-03-21 20:02:37 +01:00
|
|
|
TextImporterFactory,
|
2022-01-26 07:33:39 +01:00
|
|
|
Exporter,
|
2022-10-31 06:17:01 +01:00
|
|
|
SvgImageIcon,
|
2022-03-21 20:02:37 +01:00
|
|
|
Importer,
|
2022-01-25 19:10:40 +01:00
|
|
|
$notify,
|
2022-02-13 04:15:51 +01:00
|
|
|
DesignerKeyboard,
|
2022-08-26 03:35:59 +02:00
|
|
|
MindplotWebComponent,
|
|
|
|
MindplotWebComponentInterface,
|
|
|
|
LinkIcon,
|
|
|
|
LinkModel,
|
|
|
|
NoteIcon,
|
|
|
|
NoteModel,
|
|
|
|
WidgetManager,
|
|
|
|
Topic,
|
2022-10-31 06:17:01 +01:00
|
|
|
XMLSerializerFactory,
|
2021-12-29 17:38:37 +01:00
|
|
|
};
|