sb3-types 0.1.10 → 0.1.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.
@@ -1,2 +1,2 @@
1
- import { d as inputtype_d_exports, h as shadow_d_exports } from "../inputtype-D62lawoJ.mjs";
1
+ import { m as shadow_d_exports, u as inputtype_d_exports } from "../inputtype-DoQnRd2F.mjs";
2
2
  export { inputtype_d_exports as InputType, shadow_d_exports as Shadow };
@@ -2,13 +2,13 @@ import { t as __exportAll } from "../chunk-DQk6qfdC.mjs";
2
2
 
3
3
  //#region enums/shadow.ts
4
4
  var shadow_exports = /* @__PURE__ */ __exportAll({
5
+ DiffBlock: () => DiffBlock,
5
6
  No: () => No,
6
- Obscured: () => Obscured,
7
- UnObscured: () => UnObscured
7
+ SameBlock: () => SameBlock
8
8
  });
9
- const UnObscured = 1;
9
+ const SameBlock = 1;
10
10
  const No = 2;
11
- const Obscured = 3;
11
+ const DiffBlock = 3;
12
12
 
13
13
  //#endregion
14
14
  //#region enums/inputtype.ts
@@ -19,14 +19,14 @@ var inputtype_exports = /* @__PURE__ */ __exportAll({
19
19
  Integer: () => Integer,
20
20
  List: () => List,
21
21
  Number: () => Number,
22
- PossiveInteger: () => PossiveInteger,
23
- PossiveNumber: () => PossiveNumber,
22
+ PositiveInteger: () => PositiveInteger,
23
+ PositiveNumber: () => PositiveNumber,
24
24
  String: () => String,
25
25
  Variable: () => Variable
26
26
  });
27
27
  const Number = 4;
28
- const PossiveNumber = 5;
29
- const PossiveInteger = 6;
28
+ const PositiveNumber = 5;
29
+ const PositiveInteger = 6;
30
30
  const Integer = 7;
31
31
  const Angle = 8;
32
32
  const Color = 9;
@@ -1,25 +1,25 @@
1
1
  declare namespace shadow_d_exports {
2
- export { All$1 as All, No, Obscured, UnObscured };
2
+ export { All$1 as All, DiffBlock, No, SameBlock };
3
3
  }
4
4
  /**
5
5
  * @module
6
6
  * Shadow type indicating the appearance of the shadow.
7
7
  */
8
8
  /** unobscured shadow */
9
- type UnObscured = 1;
10
- declare const UnObscured: UnObscured;
9
+ type SameBlock = 1;
10
+ declare const SameBlock: SameBlock;
11
11
  /** no shadow */
12
12
  type No = 2;
13
13
  declare const No: No;
14
14
  /** obscured shadow */
15
- type Obscured = 3;
16
- declare const Obscured: Obscured;
15
+ type DiffBlock = 3;
16
+ declare const DiffBlock: DiffBlock;
17
17
  /**
18
18
  * Shadow type indicating the appearance of the shadow.
19
19
  */
20
- type All$1 = UnObscured | No | Obscured;
20
+ type All$1 = SameBlock | No | DiffBlock;
21
21
  declare namespace inputtype_d_exports {
22
- export { All, Angle, Broadcast, Color, Integer, List, Number, PossiveInteger, PossiveNumber, String, Variable };
22
+ export { All, Angle, Broadcast, Color, Integer, List, Number, PositiveInteger, PositiveNumber, String, Variable };
23
23
  }
24
24
  /**
25
25
  * @module
@@ -29,11 +29,11 @@ declare namespace inputtype_d_exports {
29
29
  type Number = 4;
30
30
  declare const Number: Number;
31
31
  /** When accepting all positive numbers */
32
- type PossiveNumber = 5;
33
- declare const PossiveNumber: PossiveNumber;
32
+ type PositiveNumber = 5;
33
+ declare const PositiveNumber: PositiveNumber;
34
34
  /** When accepting all positive integers */
35
- type PossiveInteger = 6;
36
- declare const PossiveInteger: PossiveInteger;
35
+ type PositiveInteger = 6;
36
+ declare const PositiveInteger: PositiveInteger;
37
37
  /** When accepting all integers */
38
38
  type Integer = 7;
39
39
  declare const Integer: Integer;
@@ -65,6 +65,6 @@ declare const Variable: Variable;
65
65
  type List = 13;
66
66
  declare const List: List;
67
67
  /** Primitive type identifiers. */
68
- type All = Number | PossiveNumber | PossiveInteger | Integer | Angle | Color | String | Broadcast | Variable | List;
68
+ type All = Number | PositiveNumber | PositiveInteger | Integer | Angle | Color | String | Broadcast | Variable | List;
69
69
  //#endregion
70
- export { List as a, PossiveNumber as c, inputtype_d_exports as d, No as f, shadow_d_exports as h, Integer as i, String as l, UnObscured as m, Broadcast as n, Number as o, Obscured as p, Color as r, PossiveInteger as s, Angle as t, Variable as u };
70
+ export { List as a, String as c, DiffBlock as d, No as f, Integer as i, Variable as l, shadow_d_exports as m, Broadcast as n, Number as o, SameBlock as p, Color as r, PositiveNumber as s, Angle as t, inputtype_d_exports as u };
package/dist/mod.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as List$1, c as PossiveNumber, f as No, i as Integer, l as String, m as UnObscured, n as Broadcast, o as Number, p as Obscured, r as Color, s as PossiveInteger, t as Angle, u as Variable } from "./inputtype-D62lawoJ.mjs";
1
+ import { a as List$1, c as String, d as DiffBlock, f as No, i as Integer, l as Variable, n as Broadcast, o as Number, p as SameBlock, r as Color, s as PositiveNumber, t as Angle } from "./inputtype-DoQnRd2F.mjs";
2
2
 
3
3
  //#region primitive.d.ts
4
4
  /**
@@ -6,7 +6,7 @@ import { a as List$1, c as PossiveNumber, f as No, i as Integer, l as String, m
6
6
  */
7
7
  interface NumPrimitive {
8
8
  /** Primitive type identifier. */
9
- 0: Number | PossiveNumber | PossiveInteger | Integer | Angle;
9
+ 0: Number | PositiveNumber | PositiveNumber | Integer | Angle;
10
10
  /** The value of the number primitive, which can be a string or a number. */
11
11
  1: string | number;
12
12
  }
@@ -305,6 +305,7 @@ interface Block {
305
305
  y?: number;
306
306
  /**
307
307
  * Mutation data for the block
308
+ * A special block is used to hold data.
308
309
  */
309
310
  mutation?: Mutation;
310
311
  }
@@ -457,7 +458,7 @@ type InputPrimitiveOrReference = InputPrimitive | /* blockId */string;
457
458
  * The input value held by the block
458
459
  * @related
459
460
  */
460
- type Input = [UnObscured | No, InputPrimitiveOrReference] | [Obscured, InputPrimitiveOrReference, InputPrimitiveOrReference];
461
+ type Input = [SameBlock | No, InputPrimitiveOrReference] | [DiffBlock, InputPrimitiveOrReference, InputPrimitiveOrReference];
461
462
  /**
462
463
  * look {@link Block.fields}
463
464
  */
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "sb3-types",
3
3
  "module": "index.ts",
4
4
  "type": "module",
5
- "version": "0.1.10",
5
+ "version": "0.1.14",
6
6
  "files": [
7
7
  "dist",
8
8
  "LICENSE",
@@ -22,6 +22,8 @@
22
22
  "publish:jsr": "jsr publish",
23
23
  "format": "biome format",
24
24
  "lint": "biome lint",
25
+ "check:ts": "tsc --noEmit",
26
+ "check": "bun run lint && bun run check:ts",
25
27
  "format:fix": "biome format --fix"
26
28
  },
27
29
  "devDependencies": {
@@ -32,5 +34,8 @@
32
34
  },
33
35
  "peerDependencies": {
34
36
  "typescript": "^5.0.0"
37
+ },
38
+ "repository": {
39
+ "url": "https://github.com/pnsk-lab/sb3-types"
35
40
  }
36
41
  }