@appsemble/preact 0.34.9 → 0.34.10

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,9 +1,9 @@
1
- # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.34.9/config/assets/logo.svg) Appsemble Preact SDK
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.34.10/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.34.9/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.34.9)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.34.10/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.34.10)
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.34.9/LICENSE.md) ©
100
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.34.10/LICENSE.md) ©
101
101
  [Appsemble](https://appsemble.com)
package/index.d.ts CHANGED
@@ -6,6 +6,7 @@ export interface BlockProps extends BootstrapParams {
6
6
  */
7
7
  ready: () => void;
8
8
  }
9
+ export declare const Context: import("preact").Context<BlockProps>;
9
10
  /**
10
11
  * Mount a Preact component returned by a bootstrap function in the shadow DOM of a block.
11
12
  *
package/index.js CHANGED
@@ -4,7 +4,7 @@ import { createContext, render } from 'preact';
4
4
  import { useContext } from 'preact/hooks';
5
5
  // eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error
6
6
  // @ts-ignore 2345 argument of type is not assignable to parameter of type (strictNullChecks)
7
- const Context = createContext(null);
7
+ export const Context = createContext(null);
8
8
  /**
9
9
  * Mount a Preact component returned by a bootstrap function in the shadow DOM of a block.
10
10
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/preact",
3
- "version": "0.34.9",
3
+ "version": "0.34.10",
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.34.9",
45
+ "@appsemble/sdk": "0.34.10",
46
46
  "preact": "^10"
47
47
  }
48
48
  }