@plait/core 0.12.1 → 0.13.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plait/core",
3
- "version": "0.12.1",
3
+ "version": "0.13.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.2.2",
6
6
  "@angular/core": "^15.2.2"
@@ -0,0 +1,46 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ import { ModifierKeys } from '../test-element';
9
+ /**
10
+ * Creates a browser MouseEvent with the specified options.
11
+ * @docs-private
12
+ */
13
+ export declare function createMouseEvent(type: string, clientX?: number, clientY?: number, offsetX?: number, offsetY?: number, button?: number, modifiers?: ModifierKeys): MouseEvent;
14
+ /**
15
+ * Creates a browser `PointerEvent` with the specified options. Pointer events
16
+ * by default will appear as if they are the primary pointer of their type.
17
+ * https://www.w3.org/TR/pointerevents2/#dom-pointerevent-isprimary.
18
+ *
19
+ * For example, if pointer events for a multi-touch interaction are created, the non-primary
20
+ * pointer touches would need to be represented by non-primary pointer events.
21
+ *
22
+ * @docs-private
23
+ */
24
+ export declare function createPointerEvent(type: string, clientX?: number, clientY?: number, offsetX?: number, offsetY?: number, options?: PointerEventInit): PointerEvent;
25
+ /**
26
+ * Creates a browser TouchEvent with the specified pointer coordinates.
27
+ * @docs-private
28
+ */
29
+ export declare function createTouchEvent(type: string, pageX?: number, pageY?: number, clientX?: number, clientY?: number): UIEvent;
30
+ /**
31
+ * Creates a keyboard event with the specified key and modifiers.
32
+ * @docs-private
33
+ */
34
+ export declare function createKeyboardEvent(type: string, keyCode?: number, key?: string, modifiers?: ModifierKeys): KeyboardEvent;
35
+ /**
36
+ * Creates a fake event object with any desired event type.
37
+ * @docs-private
38
+ */
39
+ export declare function createFakeEvent(type: string, bubbles?: boolean, cancelable?: boolean, composed?: boolean): Event;
40
+ export declare function createModModifierKeys(): {
41
+ meta: boolean;
42
+ control?: undefined;
43
+ } | {
44
+ control: boolean;
45
+ meta?: undefined;
46
+ };
@@ -0,0 +1 @@
1
+ export * from './event-objects';
@@ -1 +1,2 @@
1
1
  export * from './core';
2
+ export * from './fake-events';
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.io/license
7
+ */
8
+ /** Modifier keys that may be held while typing. */
9
+ export interface ModifierKeys {
10
+ control?: boolean;
11
+ alt?: boolean;
12
+ shift?: boolean;
13
+ meta?: boolean;
14
+ }
@@ -0,0 +1 @@
1
+ export declare const IS_MAC: boolean;
@@ -0,0 +1,3 @@
1
+ export * from './common';
2
+ export * from './foreign';
3
+ export * from './environment';
package/utils/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  export * from './board';
2
- export * from './dom/common';
3
- export * from './dom/foreign';
2
+ export * from './dom';
4
3
  export * from './environment';
5
4
  export * from './helper';
6
5
  export * from './history';