@flowerforce/flower-core 3.3.1-beta.1 → 4.0.1-beta.0

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.
Files changed (35) hide show
  1. package/dist/index.cjs.js +241 -271
  2. package/dist/index.esm.js +231 -270
  3. package/dist/src/constants/index.d.ts +5 -0
  4. package/dist/src/event-emitter/index.d.ts +1 -0
  5. package/dist/src/index.d.ts +6 -8
  6. package/dist/src/interfaces/CoreInterface.d.ts +23 -17
  7. package/dist/src/interfaces/ReducerInterface.d.ts +117 -99
  8. package/dist/src/{rules-matcher/interface.d.ts → interfaces/RulesMatcherInterface.d.ts} +1 -1
  9. package/dist/src/interfaces/SelectorsInterface.d.ts +21 -12
  10. package/dist/src/interfaces/Store.d.ts +2 -10
  11. package/dist/src/interfaces/UtilsInterface.d.ts +1 -1
  12. package/dist/src/interfaces/index.d.ts +3 -0
  13. package/dist/src/rules-matcher/RulesMatcher.d.ts +2 -0
  14. package/dist/src/rules-matcher/index.d.ts +2 -0
  15. package/dist/src/rules-matcher/utils.d.ts +2 -3
  16. package/dist/src/state-manager/index.d.ts +2 -0
  17. package/dist/src/state-manager/state-functions/FlowerCoreMergedReducers.d.ts +2 -0
  18. package/dist/src/state-manager/state-functions/FlowerCoreStateFunctions.d.ts +5 -0
  19. package/dist/src/state-manager/state-functions/FlowerDataStateFunctions.d.ts +13 -0
  20. package/dist/src/state-manager/state-functions/index.d.ts +4 -0
  21. package/dist/src/state-manager/state-selectors/FlowerCoreStateSelectors.d.ts +2 -0
  22. package/dist/src/state-manager/state-selectors/FlowerFormStateSelectors.d.ts +2 -0
  23. package/dist/src/state-manager/state-selectors/FlowerSelectorsMerged.d.ts +2 -0
  24. package/dist/src/state-manager/state-selectors/index.d.ts +4 -0
  25. package/dist/src/{FlowerCoreStateUtils.d.ts → utils/FlowerCoreStateUtils.d.ts} +2 -2
  26. package/dist/src/{CoreUtils.d.ts → utils/FlowerCoreUtils.d.ts} +1 -2
  27. package/dist/src/utils/FlowerFlowUtils.d.ts +3 -0
  28. package/dist/src/utils/FlowerFormCoreUtils.d.ts +2 -0
  29. package/dist/src/utils/index.d.ts +4 -0
  30. package/package.json +1 -1
  31. package/dist/src/FlowerCoreStateFunctions.d.ts +0 -5
  32. package/dist/src/FlowerCoreStateSelectors.d.ts +0 -2
  33. package/dist/src/RulesMatcher.d.ts +0 -5
  34. package/dist/src/devtoolState.d.ts +0 -2
  35. /package/dist/src/{Emitter.d.ts → event-emitter/Emitter.d.ts} +0 -0
@@ -0,0 +1,4 @@
1
+ export type { IFlowerSelectors, IFormSelectors } from '../../interfaces';
2
+ export { FlowerCoreStateBaseSelectors } from './FlowerCoreStateSelectors';
3
+ export { FlowerCoreStateDataSelectors } from './FlowerFormStateSelectors';
4
+ export { FlowerCoreStateSelectors } from './FlowerSelectorsMerged';
@@ -1,8 +1,8 @@
1
- import { CoreStateUtils } from './interfaces/UtilsInterface';
1
+ import { CoreStateUtils } from '../interfaces/UtilsInterface';
2
2
  export declare const FlowerStateUtils: CoreStateUtils;
3
3
  export declare const createFormData: (form: Record<string, any>) => {
4
4
  isSubmitted: any;
5
- isDirty: any;
5
+ isDirty: boolean;
6
6
  hasFocus: any;
7
7
  errors: any;
8
8
  customErrors: any;
@@ -1,5 +1,4 @@
1
- import { CoreUtilitiesFunctions } from './interfaces/CoreInterface';
2
- export declare const flattenRules: (ob: Record<string, any>) => Record<string, any>;
1
+ import { CoreUtilitiesFunctions } from '../interfaces/CoreInterface';
3
2
  /**
4
3
  * Defines a collection of utility functions for processing rules, nodes and graph-like structures
5
4
  */
@@ -0,0 +1,3 @@
1
+ import { FlowUtilitiesFunctions } from '../interfaces';
2
+ export declare const flattenRules: (ob: Record<string, any>) => Record<string, any>;
3
+ export declare const FlowUtils: FlowUtilitiesFunctions;
@@ -0,0 +1,2 @@
1
+ import { FormUtilitiesFunctions } from '../interfaces';
2
+ export declare const FormUtils: FormUtilitiesFunctions;
@@ -0,0 +1,4 @@
1
+ export * from './FlowerCoreStateUtils';
2
+ export * from './FlowerCoreUtils';
3
+ export * from './FlowerFlowUtils';
4
+ export * from './FlowerFormCoreUtils';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowerforce/flower-core",
3
- "version": "3.3.1-beta.1",
3
+ "version": "4.0.1-beta.0",
4
4
  "description": "Core functions for flowerJS",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,5 +0,0 @@
1
- import { ReducersFunctions } from './interfaces/ReducerInterface';
2
- /**
3
- * These functions are Redux reducers used in a Flux architecture for managing state transitions and updates in a Flower application.
4
- */
5
- export declare const FlowerCoreReducers: ReducersFunctions;
@@ -1,2 +0,0 @@
1
- import { ISelectors } from './interfaces/SelectorsInterface';
2
- export declare const FlowerCoreStateSelectors: ISelectors;
@@ -1,5 +0,0 @@
1
- import { FunctionRule } from './interfaces';
2
- export declare const MatchRules: {
3
- rulesMatcher: (rules?: Record<string, any> | Record<string, any>[] | FunctionRule, formValue?: Record<string, any>, apply?: boolean, options?: Record<string, any>) => boolean[];
4
- utils: import("./rules-matcher/interface").RulesMatcherUtils;
5
- };
@@ -1,2 +0,0 @@
1
- declare const devtoolState: {};
2
- export { devtoolState };