@mborecki/memory-game-react 0.3.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/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@mborecki/memory-game-react",
3
+ "version": "0.3.1",
4
+ "private": false,
5
+ "description": "",
6
+ "main": "src/index.ts",
7
+ "type": "module",
8
+ "keywords": [],
9
+ "author": "",
10
+ "license": "ISC",
11
+ "files": [
12
+ "src"
13
+ ],
14
+ "devDependencies": {
15
+ "@types/react": "^19.2.7",
16
+ "react": "^19.2.3",
17
+ "typescript": "5.9.3"
18
+ },
19
+ "dependencies": {
20
+ "@stencil/react-output-target": "^1.2.0",
21
+ "@mborecki/memory-game": "0.3.1"
22
+ },
23
+ "peerDependencies": {
24
+ "react": "^19.2.3"
25
+ }
26
+ }
@@ -0,0 +1,31 @@
1
+ 'use client';
2
+
3
+ /**
4
+ * This file was automatically generated by the Stencil React Output Target.
5
+ * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
6
+ */
7
+
8
+ /* eslint-disable */
9
+
10
+ import { type MatchedEvent, type MbMemoryGameCustomEvent } from "@mborecki/memory-game";
11
+ import { MbMemoryGame as MbMemoryGameElement, defineCustomElement as defineMbMemoryGame } from "@mborecki/memory-game/dist/components/mb-memory-game.js";
12
+ import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
13
+ import { createComponent } from '@stencil/react-output-target/runtime';
14
+ import React from 'react';
15
+
16
+ export type MbMemoryGameEvents = {
17
+ onCompleted: EventName<CustomEvent<void>>,
18
+ onMatched: EventName<MbMemoryGameCustomEvent<MatchedEvent>>
19
+ };
20
+
21
+ export const MbMemoryGame: StencilReactComponent<MbMemoryGameElement, MbMemoryGameEvents> = /*@__PURE__*/ createComponent<MbMemoryGameElement, MbMemoryGameEvents>({
22
+ tagName: 'mb-memory-game',
23
+ elementClass: MbMemoryGameElement,
24
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
25
+ react: React,
26
+ events: {
27
+ onCompleted: 'completed',
28
+ onMatched: 'matched'
29
+ } as MbMemoryGameEvents,
30
+ defineCustomElement: defineMbMemoryGame
31
+ });
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './generated/components';