@flowerforce/flower-core 3.1.2-beta.9 → 3.2.1

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,34 @@
1
+ ## 3.2.1 (2024-08-27)
2
+
3
+
4
+ ### 🩹 Fixes
5
+
6
+ - rulesOperators example fixed ([f1def97](https://github.com/flowerforce/flower/commit/f1def97))
7
+
8
+ ## 3.2.0 (2024-07-23)
9
+
10
+
11
+ ### 🚀 Features
12
+
13
+ - remove remote key in devtool ([f89abdc](https://github.com/flowerforce/flower/commit/f89abdc))
14
+
15
+ - Added the function to reset a form at a specific step or current step ([b17780f](https://github.com/flowerforce/flower/commit/b17780f))
16
+
17
+ - **devtool:** add sourcemap preview ([7882290](https://github.com/flowerforce/flower/commit/7882290))
18
+
19
+ - **Form:** add submitted status in form node ([fd2d69f](https://github.com/flowerforce/flower/commit/fd2d69f))
20
+
21
+
22
+ ### 🩹 Fixes
23
+
24
+ - remove global.window object ([81a10c5](https://github.com/flowerforce/flower/commit/81a10c5))
25
+
26
+ - restore documentation comments into d.ts ([d5677d9](https://github.com/flowerforce/flower/commit/d5677d9))
27
+
28
+ - reset form dirty and submitted ([2118442](https://github.com/flowerforce/flower/commit/2118442))
29
+
30
+ - reset form dirty ([#55](https://github.com/flowerforce/flower/pull/55))
31
+
1
32
  ## 3.1.1 (2024-06-11)
2
33
 
3
34
 
package/LICENSE CHANGED
@@ -1,15 +1,21 @@
1
- ISC License
1
+ MIT License
2
2
 
3
3
  Copyright (c) 2024 FlowerForce
4
4
 
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted, provided that the above
7
- copyright notice and this permission notice appear in all copies.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
- PERFORMANCE OF THIS SOFTWARE.
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.cjs.js CHANGED
@@ -847,43 +847,6 @@ exports.RulesModes = void 0;
847
847
  RulesModes["$and"] = "$and";
848
848
  RulesModes["$or"] = "$or";
849
849
  })(exports.RulesModes || (exports.RulesModes = {}));
850
- var RulesOperators;
851
- (function (RulesOperators) {
852
- RulesOperators["$exist"] = "$exist";
853
- RulesOperators["$eq"] = "$eq";
854
- RulesOperators["$ne"] = "$ne";
855
- RulesOperators["$gt"] = "$gt";
856
- RulesOperators["$gte"] = "$gte";
857
- RulesOperators["$lt"] = "$lt";
858
- RulesOperators["$lte"] = "$lte";
859
- RulesOperators["$strGt"] = "$strGt";
860
- RulesOperators["$strGte"] = "$strGte";
861
- RulesOperators["$strLt"] = "$strLt";
862
- RulesOperators["$strLte"] = "$strLte";
863
- RulesOperators["$in"] = "$in";
864
- RulesOperators["$nin"] = "$nin";
865
- RulesOperators["$all"] = "$all";
866
- RulesOperators["$regex"] = "$regex";
867
- })(RulesOperators || (RulesOperators = {}));
868
-
869
- exports.RulesOperators = void 0;
870
- (function (RulesOperators) {
871
- RulesOperators["$exist"] = "$exist";
872
- RulesOperators["$eq"] = "$eq";
873
- RulesOperators["$ne"] = "$ne";
874
- RulesOperators["$gt"] = "$gt";
875
- RulesOperators["$gte"] = "$gte";
876
- RulesOperators["$lt"] = "$lt";
877
- RulesOperators["$lte"] = "$lte";
878
- RulesOperators["$strGt"] = "$strGt";
879
- RulesOperators["$strGte"] = "$strGte";
880
- RulesOperators["$strLt"] = "$strLt";
881
- RulesOperators["$strLte"] = "$strLte";
882
- RulesOperators["$in"] = "$in";
883
- RulesOperators["$nin"] = "$nin";
884
- RulesOperators["$all"] = "$all";
885
- RulesOperators["$regex"] = "$regex";
886
- })(exports.RulesOperators || (exports.RulesOperators = {}));
887
850
 
888
851
  const devtoolState = {};
889
852
 
package/dist/index.esm.js CHANGED
@@ -845,44 +845,7 @@ var RulesModes;
845
845
  RulesModes["$and"] = "$and";
846
846
  RulesModes["$or"] = "$or";
847
847
  })(RulesModes || (RulesModes = {}));
848
- var RulesOperators$1;
849
- (function (RulesOperators) {
850
- RulesOperators["$exist"] = "$exist";
851
- RulesOperators["$eq"] = "$eq";
852
- RulesOperators["$ne"] = "$ne";
853
- RulesOperators["$gt"] = "$gt";
854
- RulesOperators["$gte"] = "$gte";
855
- RulesOperators["$lt"] = "$lt";
856
- RulesOperators["$lte"] = "$lte";
857
- RulesOperators["$strGt"] = "$strGt";
858
- RulesOperators["$strGte"] = "$strGte";
859
- RulesOperators["$strLt"] = "$strLt";
860
- RulesOperators["$strLte"] = "$strLte";
861
- RulesOperators["$in"] = "$in";
862
- RulesOperators["$nin"] = "$nin";
863
- RulesOperators["$all"] = "$all";
864
- RulesOperators["$regex"] = "$regex";
865
- })(RulesOperators$1 || (RulesOperators$1 = {}));
866
-
867
- var RulesOperators;
868
- (function (RulesOperators) {
869
- RulesOperators["$exist"] = "$exist";
870
- RulesOperators["$eq"] = "$eq";
871
- RulesOperators["$ne"] = "$ne";
872
- RulesOperators["$gt"] = "$gt";
873
- RulesOperators["$gte"] = "$gte";
874
- RulesOperators["$lt"] = "$lt";
875
- RulesOperators["$lte"] = "$lte";
876
- RulesOperators["$strGt"] = "$strGt";
877
- RulesOperators["$strGte"] = "$strGte";
878
- RulesOperators["$strLt"] = "$strLt";
879
- RulesOperators["$strLte"] = "$strLte";
880
- RulesOperators["$in"] = "$in";
881
- RulesOperators["$nin"] = "$nin";
882
- RulesOperators["$all"] = "$all";
883
- RulesOperators["$regex"] = "$regex";
884
- })(RulesOperators || (RulesOperators = {}));
885
848
 
886
849
  const devtoolState = {};
887
850
 
888
- export { CoreUtils, Emitter, FlowerCoreReducers, FlowerStateUtils, MatchRules, RulesModes, RulesOperators, FlowerCoreStateSelectors as Selectors, devtoolState };
851
+ export { CoreUtils, Emitter, FlowerCoreReducers, FlowerStateUtils, MatchRules, RulesModes, FlowerCoreStateSelectors as Selectors, devtoolState };
@@ -1,3 +1,4 @@
1
+ import { RulesOperators } from '../rules-matcher/interface';
1
2
  export type Rules<T> = {
2
3
  rules: Rules<T> | string | null | undefined | T;
3
4
  };
@@ -29,23 +30,6 @@ export declare enum RulesModes {
29
30
  $and = "$and",
30
31
  $or = "$or"
31
32
  }
32
- declare enum RulesOperators {
33
- $exist = "$exist",
34
- $eq = "$eq",
35
- $ne = "$ne",
36
- $gt = "$gt",
37
- $gte = "$gte",
38
- $lt = "$lt",
39
- $lte = "$lte",
40
- $strGt = "$strGt",
41
- $strGte = "$strGte",
42
- $strLt = "$strLt",
43
- $strLte = "$strLte",
44
- $in = "$in",
45
- $nin = "$nin",
46
- $all = "$all",
47
- $regex = "$regex"
48
- }
49
33
  type RulesValuesType<T> = {
50
34
  '$form.isValid': boolean;
51
35
  } & T;
@@ -1,21 +1,4 @@
1
1
  import { RulesByNodeId } from './CoreInterface';
2
- export declare enum RulesOperators {
3
- $exist = "$exist",
4
- $eq = "$eq",
5
- $ne = "$ne",
6
- $gt = "$gt",
7
- $gte = "$gte",
8
- $lt = "$lt",
9
- $lte = "$lte",
10
- $strGt = "$strGt",
11
- $strGte = "$strGte",
12
- $strLt = "$strLt",
13
- $strLte = "$strLte",
14
- $in = "$in",
15
- $nin = "$nin",
16
- $all = "$all",
17
- $regex = "$regex"
18
- }
19
2
  export interface StoreRoot<T extends Record<string, any>> {
20
3
  flower: {
21
4
  [x: string]: Flower<T>;
@@ -160,7 +160,7 @@ export interface RulesMatcherUtils {
160
160
  */
161
161
  getKeys: <T extends Record<string, any>>(rules?: T, options?: Record<string, any>) => string[] | null;
162
162
  }
163
- export declare enum OperatorsKeys {
163
+ export declare enum RulesOperators {
164
164
  $exists = "$exists",
165
165
  $eq = "$eq",
166
166
  $ne = "$ne",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowerforce/flower-core",
3
- "version": "3.1.2-beta.9",
3
+ "version": "3.2.1",
4
4
  "description": "Core functions for flowerJS",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,7 +20,7 @@
20
20
  "README.md",
21
21
  "CHANGELOG.md"
22
22
  ],
23
- "license": "ISC",
23
+ "license": "MIT",
24
24
  "peerDependencies": {
25
25
  "lodash": ">=4"
26
26
  },