@appsemble/types 0.19.15 → 0.20.2

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 (2) hide show
  1. package/dist/index.d.ts +10 -1
  2. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -829,6 +829,15 @@ export interface BlockManifest {
829
829
  * If the block has no messages, this property is `null`.
830
830
  */
831
831
  languages: string[] | null;
832
+ /**
833
+ * Whether the block should be listed publicly
834
+ * for users who aren’t part of the block’s organization.
835
+ *
836
+ * - **`public`**: The block is visible for everyone.
837
+ * - **`unlisted`**: The block will only be visible if the user is
838
+ * logged in and is part of the block’s organization.
839
+ */
840
+ visibility?: 'public' | 'unlisted';
832
841
  /**
833
842
  * Whether action validation for wildcard action is skipped.
834
843
  */
@@ -1409,7 +1418,7 @@ export declare type SAMLStatus = 'badsignature' | 'emailconflict' | 'invalidrela
1409
1418
  *
1410
1419
  * This configuration is also passed to the Webpack configuration function as the `env` variable.
1411
1420
  */
1412
- export interface BlockConfig extends Pick<BlockManifest, 'actions' | 'description' | 'events' | 'layout' | 'longDescription' | 'messages' | 'name' | 'parameters' | 'version' | 'wildcardActions'> {
1421
+ export interface BlockConfig extends Pick<BlockManifest, 'actions' | 'description' | 'events' | 'layout' | 'longDescription' | 'messages' | 'name' | 'parameters' | 'version' | 'visibility' | 'wildcardActions'> {
1413
1422
  /**
1414
1423
  * The path to the webpack configuration file relative to the block project directory.
1415
1424
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/types",
3
- "version": "0.19.15",
3
+ "version": "0.20.2",
4
4
  "description": "TypeScript definitions reused within Appsemble internally",
5
5
  "keywords": [
6
6
  "app",
@@ -30,8 +30,8 @@
30
30
  "test": "jest"
31
31
  },
32
32
  "dependencies": {
33
- "@appsemble/sdk": "0.19.15",
34
- "@fortawesome/fontawesome-common-types": "^0.2.0",
33
+ "@appsemble/sdk": "0.20.2",
34
+ "@fortawesome/fontawesome-common-types": "^0.3.0",
35
35
  "jsonschema": "^1.0.0",
36
36
  "openapi-types": "^10.0.0",
37
37
  "type-fest": "^2.0.0"