@bfwk/document-model
Advanced tools
Comparing version 0.9.1 to 0.9.2
@@ -6,12 +6,13 @@ # Change Log | ||
## [0.9.1](https://github.com/salesforce/builder-framework/compare/v0.9.0...v0.9.1) (2022-04-22) | ||
## [0.9.2](https://github.com/salesforce/builder-framework/compare/v0.9.1...v0.9.2) (2022-04-27) | ||
**Note:** Version bump only for package @bfwk/document-model | ||
### Bug Fixes | ||
* **ruleBuilder:** Interaction issues for complex nested components @W-10874733 [@testfix](https://github.com/testfix)@ ([#442](https://github.com/salesforce/builder-framework/issues/442)) ([c05151b](https://github.com/salesforce/builder-framework/commit/c05151badfa1058eafcd50d6fa767a0ac5e6fa92)) | ||
## [0.9.2](https://github.com/salesforce/builder-framework/compare/v0.9.1...v0.9.2) (2022-04-27) | ||
**Note:** Version bump only for package @bfwk/document-model | ||
@@ -18,0 +19,0 @@ ## [0.6.7](https://git.soma.salesforce.com/BuilderFramework/builder-framework/compare/v0.6.6...v0.6.7) (2021-04-05) |
@@ -35,2 +35,3 @@ import { ConnectionManager } from '@bfwk/utils'; | ||
sendMessage(type: string, data?: any): void; | ||
diff(document: ACTDocument<ClientModelNormalizedNode>, oldDocument: ACTDocument<ClientModelNormalizedNode>): DiffResult; | ||
processDeleted(deletedArray: string[]): void; | ||
@@ -40,5 +41,4 @@ processAdded(addedMap: DiffMap, currDoc: ACTDocument<ClientModelNormalizedNode>, isModelLoad: boolean): void; | ||
processChanged(changedMap: DiffMap): void; | ||
convertAddMapToTrees(addMap: DiffMap, doc: ACTDocument<ClientModelNormalizedNode>): ClientModelNodeTree[]; | ||
} | ||
export declare function computeArrayMove<T = any>(oldArray: T[], newArray: T[]): T | null; | ||
export declare function diff(document: ACTDocument<ClientModelNormalizedNode>, oldDocument: ACTDocument<ClientModelNormalizedNode>): DiffResult; | ||
export declare function convertAddMapToTrees(addMap: DiffMap, doc: ACTDocument<ClientModelNormalizedNode>): ClientModelNodeTree[]; |
@@ -1,2 +0,2 @@ | ||
import { Action, Reducer, Mutator, MutatorMap, PartConfig, TopLevelReducer } from '@bfwk/store'; | ||
import { Mutator, MutatorMap, PartConfig } from '@bfwk/store'; | ||
import { Command, ShortcutRegistration } from '@bfwk/command'; | ||
@@ -7,3 +7,3 @@ import { InstrumentationService } from '@bfwk/instrumentation'; | ||
import { ParametricSelector, Selector } from '@bfwk/sf-selector'; | ||
import { DocumentModel, Document } from './model'; | ||
import { Document, DocumentModel } from './model'; | ||
import { RedoCommand, UndoCommand } from './commands/index'; | ||
@@ -35,17 +35,2 @@ interface SelectorMap { | ||
} | ||
/** | ||
* Create a Redux Reducer function given an initial state and a list of mutators; | ||
* The reducer is wrapped in undoable | ||
* @param {Object} initialState | ||
* @param {Mutator[]} mutators | ||
* @returns {Function} Reducer for a redux-like store | ||
*/ | ||
export declare function createReducerFromDocumentMutators(initialState: Document, mutators: MutatorMap, errorHandler: ErrorHandler, undoRedoExcludedActions?: string[]): TopLevelReducer; | ||
/** | ||
* Reduce the document of the model | ||
* @param document Current state of Model | ||
* @param reducer Redux-like Reducer for document | ||
* @param action Redux-like action | ||
*/ | ||
export declare function reduceDocument(document: Document, reducer: Reducer, action: Action, errorHandler: ErrorHandler): Document; | ||
export {}; |
{ | ||
"name": "@bfwk/document-model", | ||
"version": "0.9.1", | ||
"description": "Lightning Builder Framework - Document Model", | ||
"type": "module", | ||
"main": "dist/index.js", | ||
"typings": "dist/types/index.d.ts", | ||
"files": [ | ||
"dist/types", | ||
"index.xml" | ||
], | ||
"author": "", | ||
"license": "MIT", | ||
"npm2lwc": { | ||
"metaXml": "./index.xml" | ||
}, | ||
"scripts": { | ||
"clean": "rm -rf dist/ build/", | ||
"build:ts": "tsc", | ||
"build:target:lwc": "rollup -c ../../../scripts/rollup/rollup-esNext.config.js", | ||
"build": "yarn build:ts && yarn build:target:lwc", | ||
"watch": "watch -p 'src/**/*.ts' -c 'yarn build'", | ||
"lint": "eslint 'src/**/*.{js,ts}'", | ||
"test": "jest", | ||
"test:coverage": "jest --coverage" | ||
}, | ||
"dependencies": { | ||
"@bfwk/command": "0.9.1", | ||
"@bfwk/data-service": "0.9.1", | ||
"@bfwk/error-handler": "0.9.1", | ||
"@bfwk/instrumentation": "0.9.1", | ||
"@bfwk/pub-sub": "0.9.1", | ||
"@bfwk/sf-selector": "0.9.1", | ||
"@bfwk/store": "0.9.1", | ||
"@bfwk/undo-redo": "0.9.1", | ||
"@bfwk/utils": "0.9.1", | ||
"@lwc/wire-service": "2.12.1" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^25.2.3", | ||
"jest": "^26.0.1", | ||
"watch-cli": "^0.2.3" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
"name": "@bfwk/document-model", | ||
"version": "0.9.2", | ||
"description": "Lightning Builder Framework - Document Model", | ||
"type": "module", | ||
"main": "dist/index.js", | ||
"typings": "dist/types/index.d.ts", | ||
"files": [ | ||
"dist/types", | ||
"index.xml" | ||
], | ||
"author": "", | ||
"license": "MIT", | ||
"npm2lwc": { | ||
"metaXml": "./index.xml" | ||
}, | ||
"scripts": { | ||
"clean": "rm -rf dist/ build/", | ||
"build:ts": "tsc", | ||
"build:target:lwc": "rollup -c ../../../scripts/rollup/rollup-esNext.config.js", | ||
"build": "yarn build:ts && yarn build:target:lwc", | ||
"watch": "watch -p 'src/**/*.ts' -c 'yarn build'", | ||
"lint": "eslint 'src/**/*.{js,ts}'", | ||
"test": "jest", | ||
"test:coverage": "jest --coverage" | ||
}, | ||
"dependencies": { | ||
"@bfwk/command": "0.9.2", | ||
"@bfwk/data-service": "0.9.2", | ||
"@bfwk/error-handler": "0.9.2", | ||
"@bfwk/instrumentation": "0.9.2", | ||
"@bfwk/pub-sub": "0.9.2", | ||
"@bfwk/sf-selector": "0.9.2", | ||
"@bfwk/store": "0.9.2", | ||
"@bfwk/undo-redo": "0.9.2", | ||
"@bfwk/utils": "0.9.2", | ||
"@lwc/wire-service": "2.12.1" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^25.2.3", | ||
"jest": "^26.0.1", | ||
"watch-cli": "^0.2.3" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
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
144001
54
3082
+ Added@bfwk/command@0.9.2(transitive)
+ Added@bfwk/data-service@0.9.2(transitive)
+ Added@bfwk/error-handler@0.9.2(transitive)
+ Added@bfwk/instrumentation@0.9.2(transitive)
+ Added@bfwk/pub-sub@0.9.2(transitive)
+ Added@bfwk/sf-selector@0.9.2(transitive)
+ Added@bfwk/store@0.9.2(transitive)
+ Added@bfwk/undo-redo@0.9.2(transitive)
+ Added@bfwk/utils@0.9.2(transitive)
- Removed@bfwk/command@0.9.1(transitive)
- Removed@bfwk/data-service@0.9.1(transitive)
- Removed@bfwk/error-handler@0.9.1(transitive)
- Removed@bfwk/instrumentation@0.9.1(transitive)
- Removed@bfwk/pub-sub@0.9.1(transitive)
- Removed@bfwk/sf-selector@0.9.1(transitive)
- Removed@bfwk/store@0.9.1(transitive)
- Removed@bfwk/undo-redo@0.9.1(transitive)
- Removed@bfwk/utils@0.9.1(transitive)
Updated@bfwk/command@0.9.2
Updated@bfwk/data-service@0.9.2
Updated@bfwk/error-handler@0.9.2
Updated@bfwk/instrumentation@0.9.2
Updated@bfwk/pub-sub@0.9.2
Updated@bfwk/sf-selector@0.9.2
Updated@bfwk/store@0.9.2
Updated@bfwk/undo-redo@0.9.2
Updated@bfwk/utils@0.9.2