kritzel-react 0.0.21 → 0.0.38
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
|
@@ -1,11 +1,22 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
# Setup
|
|
2
|
+
|
|
3
|
+
Install the kritzel-react package.
|
|
4
|
+
```
|
|
5
|
+
npm i kritzel-react
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
Add MyList to your imports to use it in your component template.
|
|
9
|
+
```jsx
|
|
10
|
+
import { MyList } from 'kritzel-react'
|
|
11
|
+
|
|
12
|
+
function MyComponent() {
|
|
13
|
+
|
|
14
|
+
return (
|
|
15
|
+
<>
|
|
16
|
+
<MyList></MyList>
|
|
17
|
+
</>
|
|
18
|
+
)
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export default MyComponent
|
|
22
|
+
```
|
|
@@ -1,39 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { createComponent } from '@stencil/react-output-target/runtime';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export const MyButton = /*@__PURE__*/ createComponent({
|
|
9
|
-
tagName: 'my-button',
|
|
10
|
-
elementClass: MyButtonElement,
|
|
4
|
+
import { KritzelRenderer as KritzelRendererElement, defineCustomElement as defineKritzelRenderer } from "../../../../kritzel-stencil/dist/components/kritzel-renderer.js";
|
|
5
|
+
export const KritzelRenderer = /*@__PURE__*/ createComponent({
|
|
6
|
+
tagName: 'kritzel-renderer',
|
|
7
|
+
elementClass: KritzelRendererElement,
|
|
11
8
|
// @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
9
|
react: React,
|
|
13
10
|
events: {},
|
|
14
|
-
defineCustomElement:
|
|
15
|
-
});
|
|
16
|
-
export const MyComponent = /*@__PURE__*/ createComponent({
|
|
17
|
-
tagName: 'my-component',
|
|
18
|
-
elementClass: MyComponentElement,
|
|
19
|
-
// @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
|
-
react: React,
|
|
21
|
-
events: {},
|
|
22
|
-
defineCustomElement: defineMyComponent
|
|
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
|
|
11
|
+
defineCustomElement: defineKritzelRenderer
|
|
39
12
|
});
|
|
@@ -3,16 +3,7 @@
|
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
import { MyTitle as MyTitleElement } from "../../../../kritzel-stencil/dist/components/my-title.js";
|
|
10
|
-
type MyButtonEvents = NonNullable<unknown>;
|
|
11
|
-
export declare const MyButton: StencilReactComponent<MyButtonElement, MyButtonEvents>;
|
|
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 { KritzelRenderer as KritzelRendererElement } from "../../../../kritzel-stencil/dist/components/kritzel-renderer.js";
|
|
7
|
+
type KritzelRendererEvents = NonNullable<unknown>;
|
|
8
|
+
export declare const KritzelRenderer: StencilReactComponent<KritzelRendererElement, KritzelRendererEvents>;
|
|
18
9
|
export {};
|
package/package.json
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kritzel-react",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "> TODO: description",
|
|
5
|
-
"author": "kasual1 <seifertluk11@gmail.com>",
|
|
3
|
+
"version": "0.0.38",
|
|
6
4
|
"homepage": "https://gitlab.com/kasual1/kritzel#readme",
|
|
7
5
|
"license": "ISC",
|
|
8
6
|
"main": "dist/index.js",
|
|
@@ -22,7 +20,7 @@
|
|
|
22
20
|
"@stencil/react-output-target": "^0.7.4"
|
|
23
21
|
},
|
|
24
22
|
"peerDependencies": {
|
|
25
|
-
"kritzel-stencil": "^0.0.
|
|
23
|
+
"kritzel-stencil": "^0.0.38"
|
|
26
24
|
},
|
|
27
25
|
"repository": {
|
|
28
26
|
"type": "git",
|
|
@@ -36,9 +34,6 @@
|
|
|
36
34
|
"bump": "npm version patch",
|
|
37
35
|
"release": "npm publish"
|
|
38
36
|
},
|
|
39
|
-
"bugs": {
|
|
40
|
-
"url": "https://gitlab.com/kasual1/kritzel/issues"
|
|
41
|
-
},
|
|
42
37
|
"devDependencies": {
|
|
43
38
|
"@types/react": "^18.3.12",
|
|
44
39
|
"react": "^18.3.1",
|