@punica/editor 1.0.0 → 1.0.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.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { View, Extensions, Commands, Layout, KeyboardShortcuts, TimeServer, Statusbar } from './impl';
2
- export function create() {
3
- return {
2
+ export function initiliaze() {
3
+ window.punica = {
4
4
  version: '1.0.0',
5
5
  Layout,
6
6
  View,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punica/editor",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Punica Editor",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
@@ -1,4 +1,3 @@
1
- /// <reference path="punica.d.ts" />
2
1
  /// <reference path="punica.module.commands.d.ts" />
3
2
  /// <reference path="punica.module.dragDrop.d.ts" />
4
3
  /// <reference path="punica.module.extensions.d.ts" />
@@ -7,4 +6,15 @@
7
6
  /// <reference path="punica.module.statusbar.d.ts" />
8
7
  /// <reference path="punica.module.timeServer.d.ts" />
9
8
  /// <reference path="punica.module.view.d.ts" />
10
- /// <reference path="types.d.ts" />
9
+
10
+ declare module 'punica' {
11
+ export const version: string;
12
+ }
13
+
14
+ declare global {
15
+ interface Window {
16
+ punica: typeof punica;
17
+ }
18
+ }
19
+
20
+ export declare function initiliaze(): void;
@@ -1,3 +0,0 @@
1
- import { Commands } from 'punica';
2
- declare const commands: typeof Commands;
3
- export default commands;
@@ -1,31 +0,0 @@
1
- import { DragDrop } from 'punica';
2
- import { BaseListener } from '@punica/common';
3
- declare const calculateMutation: (point1: DragDrop.Point, point2: DragDrop.Point) => DragDrop.Point;
4
- declare const isTouchDevice: () => boolean;
5
- declare const eventType: () => DragDrop.Events;
6
- declare const setEventPosition: (event: MouseEvent) => DragDrop.PositionDetail;
7
- declare const getTranslate: (transform: string) => DragDrop.Point;
8
- declare class ServiceDragDrop extends BaseListener<DragDrop.DragDropEvents> implements DragDrop.IServiceDragDrop {
9
- #private;
10
- /**
11
- *
12
- * @param event
13
- */
14
- handleDragStart: (event: MouseEvent) => void;
15
- /**
16
- *
17
- * @param event
18
- */
19
- handleDragging: (event: MouseEvent) => void;
20
- /**
21
- *
22
- * @param event
23
- */
24
- handleDragStop: (event: MouseEvent) => void;
25
- /**
26
- *
27
- * @param element
28
- */
29
- constructor(element: HTMLElement);
30
- }
31
- export { ServiceDragDrop, calculateMutation, isTouchDevice, eventType, setEventPosition, getTranslate };
@@ -1,3 +0,0 @@
1
- import { Extensions } from 'punica';
2
- declare const extension: typeof Extensions;
3
- export default extension;
@@ -1,7 +0,0 @@
1
- export { default as View } from './view';
2
- export { default as Extensions } from './extensions';
3
- export { default as Commands } from './commands';
4
- export { default as Layout } from './layout';
5
- export { default as KeyboardShortcuts } from './keyboardShortcuts';
6
- export { default as TimeServer } from './timeServer';
7
- export { default as Statusbar } from './statusbar';
@@ -1,3 +0,0 @@
1
- import { KeyboardShortcuts } from 'punica';
2
- declare const keyboardShortcuts: typeof KeyboardShortcuts;
3
- export default keyboardShortcuts;
@@ -1,3 +0,0 @@
1
- import { Layout } from 'punica';
2
- declare const layout: typeof Layout;
3
- export default layout;
@@ -1,3 +0,0 @@
1
- import { Statusbar } from 'punica';
2
- declare const statusbar: typeof Statusbar;
3
- export default statusbar;
@@ -1,3 +0,0 @@
1
- import { TimeServer } from 'punica';
2
- declare const timeServerManager: typeof TimeServer;
3
- export default timeServerManager;
@@ -1,3 +0,0 @@
1
- import { View } from 'punica';
2
- declare const view: typeof View;
3
- export default view;
package/dist/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import * as punica from 'punica';
2
- export declare function create(): typeof punica;
package/types/punica.d.ts DELETED
@@ -1,3 +0,0 @@
1
- declare module 'punica' {
2
- export const version: string;
3
- }
package/types/types.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import * as punica from 'punica';
2
-
3
- declare global {
4
- interface Window {
5
- punica: typeof punica;
6
- }
7
- }