@appsemble/preact 0.35.20 → 0.36.2-test.0

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.
Files changed (3) hide show
  1. package/README.md +3 -3
  2. package/index.js +2 -1
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
- # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.35.20/config/assets/logo.svg) Appsemble Preact SDK
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.36.2-test.0/config/assets/logo.svg) Appsemble Preact SDK
2
2
 
3
3
  > Build your own blocks using Preact
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@appsemble/preact)](https://www.npmjs.com/package/@appsemble/preact)
6
- [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.35.20/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.35.20)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.36.2-test.0/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.36.2-test.0)
7
7
  [![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](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.35.20/LICENSE.md) ©
100
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.36.2-test.0/LICENSE.md) ©
101
101
  [Appsemble](https://appsemble.com)
package/index.js CHANGED
@@ -2,7 +2,7 @@ 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
5
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
6
6
  // @ts-ignore 2345 argument of type is not assignable to parameter of type (strictNullChecks)
7
7
  export const Context = createContext(null);
8
8
  /**
@@ -32,6 +32,7 @@ export function bootstrap(Component) {
32
32
  * @returns The wrapper component.
33
33
  * @deprecated Use `useBlock()` instead.
34
34
  */
35
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
35
36
  export function withBlock(Component) {
36
37
  return (props) => (_jsx(Context.Consumer, { children: (values) => _jsx(Component, { ...props, ...values }) }));
37
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/preact",
3
- "version": "0.35.20",
3
+ "version": "0.36.2-test.0",
4
4
  "description": "Build your own blocks using Preact",
5
5
  "keywords": [
6
6
  "app",
@@ -42,7 +42,7 @@
42
42
  "test": "vitest"
43
43
  },
44
44
  "peerDependencies": {
45
- "@appsemble/sdk": "0.35.20",
45
+ "@appsemble/sdk": "0.36.2-test.0",
46
46
  "preact": "^10"
47
47
  }
48
48
  }