lucid-extension-sdk
Advanced tools
Comparing version 0.0.282 to 0.0.283
@@ -75,5 +75,6 @@ import { SemanticCollection } from '../core/data/datasource/semanticcollection'; | ||
rekeyingMap?: Map<string, string | null> | undefined; | ||
fieldNamesChanged?: Map<string, string> | undefined; | ||
errors?: Map<string, SerializedLucidDictionary> | undefined; | ||
private readonly _brand; | ||
constructor(items: Map<string, SerializedFields>, rekeyingMap?: Map<string, string | null> | undefined, errors?: Map<string, SerializedLucidDictionary> | undefined); | ||
constructor(items: Map<string, SerializedFields>, rekeyingMap?: Map<string, string | null> | undefined, fieldNamesChanged?: Map<string, string> | undefined, errors?: Map<string, SerializedLucidDictionary> | undefined); | ||
} | ||
@@ -98,2 +99,3 @@ export type ItemsPatch = { | ||
'rekeyingMap'?: Record<string, string | null>; | ||
'fieldNamesChanged'?: Record<string, string>; | ||
'errors'?: Record<string, SerializedLucidDictionary>; | ||
@@ -100,0 +102,0 @@ }; |
@@ -25,5 +25,6 @@ "use strict"; | ||
class ItemsPatchExhaustive { | ||
constructor(items, rekeyingMap, errors) { | ||
constructor(items, rekeyingMap, fieldNamesChanged, errors) { | ||
this.items = items; | ||
this.rekeyingMap = rekeyingMap; | ||
this.fieldNamesChanged = fieldNamesChanged; | ||
this.errors = errors; | ||
@@ -40,6 +41,9 @@ this._brand = ItemsPatchExhaustive; | ||
} | ||
function serializeFieldNamesChanged(fieldNamesChanged) { | ||
return fieldNamesChanged && { 'fieldNamesChanged': (0, object_1.fromEntries)(fieldNamesChanged) }; | ||
} | ||
function serializeItemsPatch(patch) { | ||
var _a; | ||
if (patch instanceof ItemsPatchExhaustive) { | ||
return Object.assign(Object.assign({ 'exhaustiveItems': (0, object_1.fromEntries)(patch.items.entries()) }, serializeRekeyingMap(patch.rekeyingMap)), serializeErrors(patch.errors)); | ||
return Object.assign(Object.assign(Object.assign({ 'exhaustiveItems': (0, object_1.fromEntries)(patch.items.entries()) }, serializeRekeyingMap(patch.rekeyingMap)), serializeFieldNamesChanged(patch.fieldNamesChanged)), serializeErrors(patch.errors)); | ||
} | ||
@@ -46,0 +50,0 @@ else { |
{ | ||
"name": "lucid-extension-sdk", | ||
"version": "0.0.282", | ||
"version": "0.0.283", | ||
"description": "Utility classes for writing Lucid Software editor extensions", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
784592
18104