@mborecki/crossword-react 0.2.1 → 0.3.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": "@mborecki/crossword-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@stencil/react-output-target": "^1.2.0",
|
|
21
|
-
"@mborecki/crossword": "0.
|
|
21
|
+
"@mborecki/crossword": "0.3.0"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"react": "^19.2.3"
|
|
@@ -8,17 +8,17 @@
|
|
|
8
8
|
/* eslint-disable */
|
|
9
9
|
|
|
10
10
|
import { MbCrossword as MbCrosswordElement, defineCustomElement as defineMbCrossword } from "@mborecki/crossword/dist/components/mb-crossword.js";
|
|
11
|
-
import type { StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
11
|
+
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
12
12
|
import { createComponent } from '@stencil/react-output-target/runtime';
|
|
13
13
|
import React from 'react';
|
|
14
14
|
|
|
15
|
-
export type MbCrosswordEvents =
|
|
15
|
+
export type MbCrosswordEvents = { onClueSelected: EventName<CustomEvent<string>> };
|
|
16
16
|
|
|
17
17
|
export const MbCrossword: StencilReactComponent<MbCrosswordElement, MbCrosswordEvents> = /*@__PURE__*/ createComponent<MbCrosswordElement, MbCrosswordEvents>({
|
|
18
18
|
tagName: 'mb-crossword',
|
|
19
19
|
elementClass: MbCrosswordElement,
|
|
20
20
|
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
21
21
|
react: React,
|
|
22
|
-
events: {} as MbCrosswordEvents,
|
|
22
|
+
events: { onClueSelected: 'clueSelected' } as MbCrosswordEvents,
|
|
23
23
|
defineCustomElement: defineMbCrossword
|
|
24
24
|
});
|