lucid-extension-sdk 0.0.250 → 0.0.254

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.
@@ -69,9 +69,9 @@ export declare class ItemsPatchInexhaustive {
69
69
  }
70
70
  export declare class ItemsPatchExhaustive {
71
71
  items: Map<string, SerializedFields>;
72
- renamingMap?: Map<string, string | null> | undefined;
72
+ rekeyingMap?: Map<string, string | null> | undefined;
73
73
  errors?: Map<string, SerializedLucidDictionary> | undefined;
74
- constructor(items: Map<string, SerializedFields>, renamingMap?: Map<string, string | null> | undefined, errors?: Map<string, SerializedLucidDictionary> | undefined);
74
+ constructor(items: Map<string, SerializedFields>, rekeyingMap?: Map<string, string | null> | undefined, errors?: Map<string, SerializedLucidDictionary> | undefined);
75
75
  }
76
76
  export type ItemsPatch = {
77
77
  /**
@@ -90,7 +90,7 @@ export type SerializedItemsPatch = {
90
90
  'errors'?: Record<string, SerializedLucidDictionary>;
91
91
  } | {
92
92
  'exhaustiveItems': Record<string, SerializedFields>;
93
- 'renamingMap'?: Record<string, string | null>;
93
+ 'rekeyingMap'?: Record<string, string | null>;
94
94
  'errors'?: Record<string, SerializedLucidDictionary>;
95
95
  };
96
96
  export declare function serializeItemsPatch(patch: ItemsPatch): SerializedItemsPatch;
@@ -20,9 +20,9 @@ class ItemsPatchInexhaustive {
20
20
  }
21
21
  exports.ItemsPatchInexhaustive = ItemsPatchInexhaustive;
22
22
  class ItemsPatchExhaustive {
23
- constructor(items, renamingMap, errors) {
23
+ constructor(items, rekeyingMap, errors) {
24
24
  this.items = items;
25
- this.renamingMap = renamingMap;
25
+ this.rekeyingMap = rekeyingMap;
26
26
  this.errors = errors;
27
27
  }
28
28
  }
@@ -30,13 +30,13 @@ exports.ItemsPatchExhaustive = ItemsPatchExhaustive;
30
30
  function serializeErrors(errors) {
31
31
  return errors && { 'errors': (0, object_1.fromEntries)(errors) };
32
32
  }
33
- function serializeRenamingMap(renamingMap) {
34
- return renamingMap && { 'renamingMap': (0, object_1.fromEntries)(renamingMap) };
33
+ function serializeRekeyingMap(rekeyingMap) {
34
+ return rekeyingMap && { 'rekeyingMap': (0, object_1.fromEntries)(rekeyingMap) };
35
35
  }
36
36
  function serializeItemsPatch(patch) {
37
37
  var _a;
38
38
  if (patch instanceof ItemsPatchExhaustive) {
39
- return Object.assign(Object.assign({ 'exhaustiveItems': (0, object_1.fromEntries)(patch.items.entries()) }, serializeRenamingMap(patch.renamingMap)), serializeErrors(patch.errors));
39
+ return Object.assign(Object.assign({ 'exhaustiveItems': (0, object_1.fromEntries)(patch.items.entries()) }, serializeRekeyingMap(patch.rekeyingMap)), serializeErrors(patch.errors));
40
40
  }
41
41
  else {
42
42
  return Object.assign({ 'items': (0, object_1.fromEntries)(patch.items.entries()), 'itemsDeleted': (_a = patch.itemsDeleted) !== null && _a !== void 0 ? _a : [] }, serializeErrors(patch.errors));
@@ -18,7 +18,7 @@ export interface TextStyle {
18
18
  [TextMarkupNames.Underline]: boolean;
19
19
  [TextMarkupNames.Size]: number;
20
20
  [TextMarkupNames.Color]: string;
21
- [TextMarkupNames.HAlign]: 'left' | 'center' | 'right';
21
+ [TextMarkupNames.HAlign]: string;
22
22
  }
23
23
  export declare const isPartialTextStyle: (subject: unknown) => subject is Partial<import("../..").DestructureGuardedTypeObj<{
24
24
  font: typeof isString;
@@ -27,5 +27,5 @@ export declare const isPartialTextStyle: (subject: unknown) => subject is Partia
27
27
  underline: typeof isBoolean;
28
28
  size: typeof isNumber;
29
29
  color: typeof isString;
30
- align: (value: unknown) => value is "left" | "center" | "right";
30
+ align: typeof isString;
31
31
  }>>;
@@ -23,5 +23,5 @@ exports.isPartialTextStyle = (0, validators_1.partialObjectValidator)({
23
23
  [TextMarkupNames.Underline]: checks_1.isBoolean,
24
24
  [TextMarkupNames.Size]: checks_1.isNumber,
25
25
  [TextMarkupNames.Color]: checks_1.isString,
26
- [TextMarkupNames.HAlign]: (value) => value === 'left' || value === 'right' || value === 'center',
26
+ [TextMarkupNames.HAlign]: checks_1.isString,
27
27
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-extension-sdk",
3
- "version": "0.0.250",
3
+ "version": "0.0.254",
4
4
  "description": "Utility classes for writing Lucid Software editor extensions",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",