@aprovan/bobbin 0.1.0-dev.6bd527d → 0.1.0-dev.879ed82

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.
@@ -9,8 +9,8 @@
9
9
  CLI Target: es2022
10
10
  CLI Cleaning output folder
11
11
  ESM Build start
12
- ESM dist/index.js 122.01 KB
13
- ESM ⚡️ Build success in 901ms
14
12
  DTS Build start
15
- DTS ⚡️ Build success in 8242ms
16
- DTS dist/index.d.ts 11.11 KB
13
+ ESM dist/index.js 126.23 KB
14
+ ESM ⚡️ Build success in 1071ms
15
+ DTS ⚡️ Build success in 10483ms
16
+ DTS dist/index.d.ts 12.07 KB
package/dist/index.d.ts CHANGED
@@ -226,6 +226,19 @@ declare function generateId(): string;
226
226
  declare function getElementPath(el: HTMLElement): string;
227
227
  declare function getElementXPath(el: HTMLElement): string;
228
228
 
229
+ declare function deduplicateChanges(changes: Change[], originalStates: Map<string, Map<string, string>>): Change[];
230
+
231
+ declare function isChangeType(value: unknown): value is ChangeType;
232
+ declare function isChange(value: unknown): value is Change;
233
+ declare function isStyleChange(value: unknown): value is StyleChange;
234
+ declare function isTextChange(value: unknown): value is TextChange;
235
+ declare function isMoveChange(value: unknown): value is MoveChange;
236
+ declare function isSelectedElement(value: unknown): value is SelectedElement;
237
+ declare function isAnnotation(value: unknown): value is Annotation;
238
+ declare function isDesignTokens(value: unknown): value is DesignTokens;
239
+ declare function isBobbinState(value: unknown): value is BobbinState;
240
+ declare function isBobbinChangeset(value: unknown): value is BobbinChangeset;
241
+
229
242
  declare const colors: {
230
243
  slate: {
231
244
  50: string;
@@ -399,4 +412,4 @@ declare const boxShadow: Record<string, string>;
399
412
 
400
413
  declare const defaultTokens: DesignTokens;
401
414
 
402
- export { type Annotation, Bobbin, type BobbinActions, type BobbinChangeset, type BobbinComponentProps, type BobbinProps, type BobbinState, type Change, type ChangeType, type DesignTokens, type MoveChange, type SelectedElement, type StyleChange, type TextChange, borderRadius, borderWidth, boxShadow, colors, defaultTokens, fontFamily, fontSize, fontWeight, generateId, getElementPath, getElementXPath, letterSpacing, lineHeight, parseYAMLChangeset, serializeChangesToYAML, spacing, useBobbin, useChangeTracker, useClipboard, useElementSelection };
415
+ export { type Annotation, Bobbin, type BobbinActions, type BobbinChangeset, type BobbinComponentProps, type BobbinProps, type BobbinState, type Change, type ChangeType, type DesignTokens, type MoveChange, type SelectedElement, type StyleChange, type TextChange, borderRadius, borderWidth, boxShadow, colors, deduplicateChanges, defaultTokens, fontFamily, fontSize, fontWeight, generateId, getElementPath, getElementXPath, isAnnotation, isBobbinChangeset, isBobbinState, isChange, isChangeType, isDesignTokens, isMoveChange, isSelectedElement, isStyleChange, isTextChange, letterSpacing, lineHeight, parseYAMLChangeset, serializeChangesToYAML, spacing, useBobbin, useChangeTracker, useClipboard, useElementSelection };