kritzel-react 0.0.37 → 0.0.39
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/README.md
CHANGED
|
@@ -5,15 +5,16 @@ Install the kritzel-react package.
|
|
|
5
5
|
npm i kritzel-react
|
|
6
6
|
```
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
import {
|
|
8
|
+
Import Kritzel components to use them in your template.
|
|
9
|
+
```jsx
|
|
10
|
+
import { KritzelEngine, KritzelControls } from 'kritzel-react'
|
|
11
11
|
|
|
12
12
|
function MyComponent() {
|
|
13
13
|
|
|
14
14
|
return (
|
|
15
15
|
<>
|
|
16
|
-
<
|
|
16
|
+
<KritzelEngine></KritzelEngine>
|
|
17
|
+
<KritzelControls></KritzelControls>
|
|
17
18
|
</>
|
|
18
19
|
)
|
|
19
20
|
}
|
|
@@ -1,39 +1,21 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { createComponent } from '@stencil/react-output-target/runtime';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
tagName: 'my-button',
|
|
10
|
-
elementClass: MyButtonElement,
|
|
4
|
+
import { KritzelControls as KritzelControlsElement, defineCustomElement as defineKritzelControls } from "../../../../kritzel-stencil/dist/components/kritzel-controls.js";
|
|
5
|
+
import { KritzelEngine as KritzelEngineElement, defineCustomElement as defineKritzelEngine } from "../../../../kritzel-stencil/dist/components/kritzel-engine.js";
|
|
6
|
+
export const KritzelControls = /*@__PURE__*/ createComponent({
|
|
7
|
+
tagName: 'kritzel-controls',
|
|
8
|
+
elementClass: KritzelControlsElement,
|
|
11
9
|
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
12
10
|
react: React,
|
|
13
11
|
events: {},
|
|
14
|
-
defineCustomElement:
|
|
12
|
+
defineCustomElement: defineKritzelControls
|
|
15
13
|
});
|
|
16
|
-
export const
|
|
17
|
-
tagName: '
|
|
18
|
-
elementClass:
|
|
14
|
+
export const KritzelEngine = /*@__PURE__*/ createComponent({
|
|
15
|
+
tagName: 'kritzel-engine',
|
|
16
|
+
elementClass: KritzelEngineElement,
|
|
19
17
|
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
20
18
|
react: React,
|
|
21
19
|
events: {},
|
|
22
|
-
defineCustomElement:
|
|
23
|
-
});
|
|
24
|
-
export const MyList = /*@__PURE__*/ createComponent({
|
|
25
|
-
tagName: 'my-list',
|
|
26
|
-
elementClass: MyListElement,
|
|
27
|
-
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
28
|
-
react: React,
|
|
29
|
-
events: {},
|
|
30
|
-
defineCustomElement: defineMyList
|
|
31
|
-
});
|
|
32
|
-
export const MyTitle = /*@__PURE__*/ createComponent({
|
|
33
|
-
tagName: 'my-title',
|
|
34
|
-
elementClass: MyTitleElement,
|
|
35
|
-
// @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
|
|
36
|
-
react: React,
|
|
37
|
-
events: {},
|
|
38
|
-
defineCustomElement: defineMyTitle
|
|
20
|
+
defineCustomElement: defineKritzelEngine
|
|
39
21
|
});
|
|
@@ -3,16 +3,10 @@
|
|
|
3
3
|
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
4
|
*/
|
|
5
5
|
import type { StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
type
|
|
11
|
-
export declare const
|
|
12
|
-
type MyComponentEvents = NonNullable<unknown>;
|
|
13
|
-
export declare const MyComponent: StencilReactComponent<MyComponentElement, MyComponentEvents>;
|
|
14
|
-
type MyListEvents = NonNullable<unknown>;
|
|
15
|
-
export declare const MyList: StencilReactComponent<MyListElement, MyListEvents>;
|
|
16
|
-
type MyTitleEvents = NonNullable<unknown>;
|
|
17
|
-
export declare const MyTitle: StencilReactComponent<MyTitleElement, MyTitleEvents>;
|
|
6
|
+
import { KritzelControls as KritzelControlsElement } from "../../../../kritzel-stencil/dist/components/kritzel-controls.js";
|
|
7
|
+
import { KritzelEngine as KritzelEngineElement } from "../../../../kritzel-stencil/dist/components/kritzel-engine.js";
|
|
8
|
+
type KritzelControlsEvents = NonNullable<unknown>;
|
|
9
|
+
export declare const KritzelControls: StencilReactComponent<KritzelControlsElement, KritzelControlsEvents>;
|
|
10
|
+
type KritzelEngineEvents = NonNullable<unknown>;
|
|
11
|
+
export declare const KritzelEngine: StencilReactComponent<KritzelEngineElement, KritzelEngineEvents>;
|
|
18
12
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kritzel-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.39",
|
|
4
4
|
"homepage": "https://gitlab.com/kasual1/kritzel#readme",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@stencil/react-output-target": "^0.7.4"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"kritzel-stencil": "^0.0.
|
|
23
|
+
"kritzel-stencil": "^0.0.39"
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|