@appsemble/preact 0.30.14-test.5 → 0.32.1-test.14
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 +3 -3
- package/index.js +2 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#  Appsemble Preact SDK
|
|
2
2
|
|
|
3
3
|
> Build your own blocks using Preact
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@appsemble/preact)
|
|
6
|
-
[](https://gitlab.com/appsemble/appsemble/-/releases/0.32.1-test.14)
|
|
7
7
|
[](https://prettier.io)
|
|
8
8
|
|
|
9
9
|
## Table of Contents
|
|
@@ -97,5 +97,5 @@ export function MyButton({ name }: MyButtonProps): VNode {
|
|
|
97
97
|
|
|
98
98
|
## License
|
|
99
99
|
|
|
100
|
-
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.
|
|
100
|
+
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.32.1-test.14/LICENSE.md) ©
|
|
101
101
|
[Appsemble](https://appsemble.com)
|
package/index.js
CHANGED
|
@@ -2,6 +2,8 @@ import { jsx as _jsx } from "preact/jsx-runtime";
|
|
|
2
2
|
import { bootstrap as sdkBootstrap } from '@appsemble/sdk';
|
|
3
3
|
import { createContext, render } from 'preact';
|
|
4
4
|
import { useContext } from 'preact/hooks';
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error
|
|
6
|
+
// @ts-ignore 2345 argument of type is not assignable to parameter of type (strictNullChecks)
|
|
5
7
|
const Context = createContext(null);
|
|
6
8
|
/**
|
|
7
9
|
* Mount a Preact component returned by a bootstrap function in the shadow DOM of a block.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appsemble/preact",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.1-test.14",
|
|
4
4
|
"description": "Build your own blocks using Preact",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"app",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"type": "module",
|
|
28
28
|
"exports": {
|
|
29
|
-
".":
|
|
30
|
-
"./index.
|
|
31
|
-
"./index.
|
|
32
|
-
|
|
29
|
+
".": {
|
|
30
|
+
"ts-source": "./index.tsx",
|
|
31
|
+
"default": "./index.js"
|
|
32
|
+
},
|
|
33
33
|
"./README.md": "./README.md"
|
|
34
34
|
},
|
|
35
35
|
"files": [
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"test": "vitest"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@appsemble/sdk": "0.
|
|
45
|
+
"@appsemble/sdk": "0.32.1-test.14",
|
|
46
46
|
"preact": "^10"
|
|
47
47
|
}
|
|
48
48
|
}
|