@fileverse-dev/dsheet 1.0.81 → 1.0.83

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.
@@ -1,3 +1,7 @@
1
+ import { ERROR_MESSAGES_FLAG as ErrorMessagesFlagType, SERVICES_API_KEY as ServicesApiKeyType } from '@fileverse-dev/fortune-react';
2
+
3
+ export declare const ERROR_MESSAGES_FLAG: ErrorMessagesFlagType;
4
+ export declare const SERVICES_API_KEY: ServicesApiKeyType;
1
5
  export declare const DEFAULT_SHEET_DATA: {
2
6
  name: string;
3
7
  celldata: never[];
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { Sheet } from '@fileverse-dev/fortune-core';
3
- import { WorkbookInstance } from '@fileverse-dev/fortune-react';
2
+ import { Sheet, WorkbookInstance } from '@fileverse-dev/fortune-react';
4
3
  import { IndexeddbPersistence } from 'y-indexeddb';
5
4
  import { SheetUpdateData } from '../types';
6
5
 
@@ -1,5 +1,4 @@
1
- import { Sheet } from '@fileverse-dev/fortune-core';
2
- import { WorkbookInstance } from '@fileverse-dev/fortune-react';
1
+ import { Sheet, WorkbookInstance } from '@fileverse-dev/fortune-react';
3
2
 
4
3
  import * as Y from 'yjs';
5
4
  /**
@@ -1,4 +1,4 @@
1
- import { Sheet } from '@fileverse-dev/fortune-core';
1
+ import { Sheet } from '@fileverse-dev/fortune-react';
2
2
  import { SheetUpdateData } from '../types';
3
3
  import * as Y from 'yjs';
4
4
  export declare const useSheetData: (ydoc: Y.Doc | null, dsheetId: string, onChange?: (updateData: SheetUpdateData, encodedUpdate?: string) => void) => {
@@ -1,7 +1,6 @@
1
- import { Sheet, Cell } from '@fileverse-dev/fortune-core';
1
+ import { Sheet, WorkbookInstance, Cell } from '@fileverse-dev/fortune-react';
2
2
  import { RefObject } from 'react';
3
- import { WorkbookInstance } from '@fileverse-dev/fortune-react';
4
- import { ERROR_MESSAGES_FLAG } from '@fileverse-dev/formulajs/crypto-constants';
3
+ import { ERROR_MESSAGES_FLAG } from './constants/shared-constants';
5
4
 
6
5
  import * as Y from 'yjs';
7
6
  export interface SheetUpdateData {
@@ -75,7 +74,7 @@ export interface DsheetProps {
75
74
  export type BaseError = {
76
75
  message: string;
77
76
  functionName?: string;
78
- type: `${ERROR_MESSAGES_FLAG}`;
77
+ type: (typeof ERROR_MESSAGES_FLAG)[keyof typeof ERROR_MESSAGES_FLAG];
79
78
  };
80
79
  export type CustomError = BaseError & {
81
80
  type: typeof ERROR_MESSAGES_FLAG.CUSTOM;
@@ -1,5 +1,4 @@
1
- import { Cell } from '@fileverse-dev/fortune-core';
2
- import { WorkbookInstance } from '@fileverse-dev/fortune-react';
1
+ import { Cell, WorkbookInstance } from '@fileverse-dev/fortune-react';
3
2
  import { OnboardingHandlerType, DataBlockApiKeyHandlerType } from '../types';
4
3
 
5
4
  /**
@@ -1,4 +1,4 @@
1
- import { Sheet } from '@fileverse-dev/fortune-core';
1
+ import { Sheet } from '@fileverse-dev/fortune-react';
2
2
 
3
3
  /**
4
4
  * Compare two spreadsheets' cell data and images, checking if anything changed
@@ -1,5 +1,4 @@
1
- import { Sheet } from '@fileverse-dev/fortune-core';
2
- import { WorkbookInstance } from '@fileverse-dev/fortune-react';
1
+ import { Sheet, WorkbookInstance } from '@fileverse-dev/fortune-react';
3
2
  import * as Y from 'yjs';
4
3
  export declare const updateSheetData: (ydoc: Y.Doc | null, dsheetId: string, data: Sheet[], sheetEditor: WorkbookInstance | null, dataBlockCalcFunction?: {
5
4
  [key: string]: {