@mborecki/memory-game-react 0.4.0 → 0.4.2
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/memory-game-react",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
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/memory-game": "0.4.
|
|
21
|
+
"@mborecki/memory-game": "0.4.2"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"react": "^19.2.3"
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
/* eslint-disable */
|
|
9
9
|
|
|
10
|
-
import { type MatchedEvent, type MbMemoryGameCustomEvent } from "@mborecki/memory-game";
|
|
10
|
+
import { type ITile, type MatchedEvent, type MbMemoryGameCustomEvent } from "@mborecki/memory-game";
|
|
11
11
|
import { MbMemoryGame as MbMemoryGameElement, defineCustomElement as defineMbMemoryGame } from "@mborecki/memory-game/dist/components/mb-memory-game.js";
|
|
12
12
|
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
13
13
|
import { createComponent } from '@stencil/react-output-target/runtime';
|
|
@@ -15,7 +15,8 @@ import React from 'react';
|
|
|
15
15
|
|
|
16
16
|
export type MbMemoryGameEvents = {
|
|
17
17
|
onCompleted: EventName<CustomEvent<void>>,
|
|
18
|
-
onMatched: EventName<MbMemoryGameCustomEvent<MatchedEvent
|
|
18
|
+
onMatched: EventName<MbMemoryGameCustomEvent<MatchedEvent>>,
|
|
19
|
+
onSelect: EventName<MbMemoryGameCustomEvent<ITile>>
|
|
19
20
|
};
|
|
20
21
|
|
|
21
22
|
export const MbMemoryGame: StencilReactComponent<MbMemoryGameElement, MbMemoryGameEvents> = /*@__PURE__*/ createComponent<MbMemoryGameElement, MbMemoryGameEvents>({
|
|
@@ -25,7 +26,8 @@ export const MbMemoryGame: StencilReactComponent<MbMemoryGameElement, MbMemoryGa
|
|
|
25
26
|
react: React,
|
|
26
27
|
events: {
|
|
27
28
|
onCompleted: 'completed',
|
|
28
|
-
onMatched: 'matched'
|
|
29
|
+
onMatched: 'matched',
|
|
30
|
+
onSelect: 'select'
|
|
29
31
|
} as MbMemoryGameEvents,
|
|
30
32
|
defineCustomElement: defineMbMemoryGame
|
|
31
33
|
});
|