lucid-extension-sdk 0.0.251 → 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));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-extension-sdk",
3
- "version": "0.0.251",
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",