@ibodr/schema 0.1.10 → 0.1.12

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/dist/index.d.ts CHANGED
@@ -4663,11 +4663,11 @@ declare const scribbleValidator: T.ObjectValidator<DrScribble>;
4663
4663
 
4664
4664
  /**
4665
4665
  * The available visual background patterns that can be drawn behind the shapes
4666
- * on the canvas (e.g. a dotted grid, ruled notebook paper, a chalkboard texture, etc).
4666
+ * on the canvas (e.g. a dotted grid, ruled notebook paper, etc).
4667
4667
  *
4668
4668
  * @public
4669
4669
  */
4670
- declare const DR_BOARD_BACKGROUND_TYPES: readonly ["none", "dots", "grid", "hex-grid", "lined", "double-line", "double-line-slash", "checkered", "chalkboard"];
4670
+ declare const DR_BOARD_BACKGROUND_TYPES: readonly ["none", "dots", "grid", "hex-grid", "lined", "double-line", "double-line-slash", "checkered"];
4671
4671
  /**
4672
4672
  * The type of visual background pattern drawn behind the shapes on the canvas.
4673
4673
  *
@@ -4679,7 +4679,6 @@ declare const DR_BOARD_BACKGROUND_TYPES: readonly ["none", "dots", "grid", "hex-
4679
4679
  * - `double-line` - paired horizontal ruled lines, like handwriting practice paper
4680
4680
  * - `double-line-slash` - paired horizontal ruled lines with slanted guide lines
4681
4681
  * - `checkered` - a fine square grid, like squared notebook paper
4682
- * - `chalkboard` - a dark, textured chalkboard-style background
4683
4682
  *
4684
4683
  * @public
4685
4684
  */
package/dist/index.mjs CHANGED
@@ -1154,8 +1154,7 @@ var DR_BOARD_BACKGROUND_TYPES = [
1154
1154
  "lined",
1155
1155
  "double-line",
1156
1156
  "double-line-slash",
1157
- "checkered",
1158
- "chalkboard"
1157
+ "checkered"
1159
1158
  ];
1160
1159
  var shouldKeyBePreservedBetweenSessions = {
1161
1160
  // This object defines keys that should be preserved across calls to loadSnapshot()
@@ -1377,7 +1376,8 @@ var instanceVersions = createMigrationIds("com.draw.instance", {
1377
1376
  AddDuplicateProps: 24,
1378
1377
  RemoveCanMoveCamera: 25,
1379
1378
  AddCameraState: 26,
1380
- AddBackgroundType: 27
1379
+ AddBackgroundType: 27,
1380
+ RemoveChalkboardBackground: 28
1381
1381
  });
1382
1382
  var instanceMigrations = createRecordMigrationSequence({
1383
1383
  sequenceId: "com.draw.instance",
@@ -1642,6 +1642,16 @@ var instanceMigrations = createRecordMigrationSequence({
1642
1642
  down: ({ backgroundType: _, ...record }) => {
1643
1643
  return record;
1644
1644
  }
1645
+ },
1646
+ {
1647
+ id: instanceVersions.RemoveChalkboardBackground,
1648
+ up: (record) => {
1649
+ if (record.backgroundType === "chalkboard") {
1650
+ return { ...record, backgroundType: "none" };
1651
+ }
1652
+ return record;
1653
+ },
1654
+ down: (record) => record
1645
1655
  }
1646
1656
  ]
1647
1657
  });
@@ -4101,7 +4111,7 @@ function getSupportedLocale(locale) {
4101
4111
  // src/index.ts
4102
4112
  registerDrawLibraryVersion(
4103
4113
  "@ibodr/schema",
4104
- "0.1.10",
4114
+ "0.1.12",
4105
4115
  "esm"
4106
4116
  );
4107
4117