@evlop/commons 1.0.225 → 1.0.226

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. package/dist/src/components/Svg.d.ts +2 -1
  2. package/dist/src/components/Svg.d.ts.map +1 -1
  3. package/dist/src/components/hoc/withCollection.d.ts +2 -1
  4. package/dist/src/components/hoc/withCollection.d.ts.map +1 -1
  5. package/dist/src/components/hoc/withCollectionRecord.d.ts +2 -1
  6. package/dist/src/components/hoc/withCollectionRecord.d.ts.map +1 -1
  7. package/dist/src/components/hoc/withSettings.native.d.ts +1 -1
  8. package/dist/src/components/hoc/withSettings.native.d.ts.map +1 -1
  9. package/dist/src/hooks/index.d.ts +0 -2
  10. package/dist/src/hooks/index.d.ts.map +1 -1
  11. package/dist/src/hooks/index.js +0 -2
  12. package/dist/src/hooks/index.js.map +1 -1
  13. package/dist/src/providers/DataSource.d.ts +1 -0
  14. package/dist/src/providers/DataSource.d.ts.map +1 -1
  15. package/dist/src/providers/DataSource.js.map +1 -1
  16. package/dist/src/providers/I18nProvider.d.ts +4 -1
  17. package/dist/src/providers/I18nProvider.d.ts.map +1 -1
  18. package/dist/src/providers/I18nProvider.js.map +1 -1
  19. package/dist/src/providers/Scope.d.ts +1 -0
  20. package/dist/src/providers/Scope.d.ts.map +1 -1
  21. package/dist/src/providers/Scope.js.map +1 -1
  22. package/dist/src/providers/Scopes.d.ts +1 -0
  23. package/dist/src/providers/Scopes.d.ts.map +1 -1
  24. package/dist/src/providers/Scopes.js.map +1 -1
  25. package/package.json +2 -2
  26. package/dist/src/hooks/useCollectionProvider.d.ts +0 -2
  27. package/dist/src/hooks/useCollectionProvider.d.ts.map +0 -1
  28. package/dist/src/hooks/useCollectionProvider.js +0 -20
  29. package/dist/src/hooks/useCollectionProvider.js.map +0 -1
  30. package/dist/src/hooks/useCollectionRecordProvider.d.ts +0 -3
  31. package/dist/src/hooks/useCollectionRecordProvider.d.ts.map +0 -1
  32. package/dist/src/hooks/useCollectionRecordProvider.js +0 -27
  33. package/dist/src/hooks/useCollectionRecordProvider.js.map +0 -1
@@ -1,6 +1,7 @@
1
+ import React from 'react';
1
2
  declare const Svg: ({ src, size }: {
2
3
  src: any;
3
4
  size?: number;
4
- }) => JSX.Element;
5
+ }) => React.JSX.Element;
5
6
  export default Svg;
6
7
  //# sourceMappingURL=Svg.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Svg.d.ts","sourceRoot":"","sources":["../../../src/components/Svg.tsx"],"names":[],"mappings":"AAaA,QAAA,MAAM,GAAG;;;iBAER,CAAC;AAEF,eAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"Svg.d.ts","sourceRoot":"","sources":["../../../src/components/Svg.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,QAAA,MAAM,GAAG;;;uBAER,CAAC;AAEF,eAAe,GAAG,CAAC"}
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  export declare function withCollection(collectionName: string): {
2
3
  ({ children }: {
3
4
  children: any;
4
- }): JSX.Element;
5
+ }): React.JSX.Element;
5
6
  routeName: string;
6
7
  path: string;
7
8
  pageName: string;
@@ -1 +1 @@
1
- {"version":3,"file":"withCollection.d.ts","sourceRoot":"","sources":["../../../../src/components/hoc/withCollection.tsx"],"names":[],"mappings":"AAKA,wBAAgB,cAAc,CAAC,cAAc,EAAE,MAAM;;;;;;;EAYpD"}
1
+ {"version":3,"file":"withCollection.d.ts","sourceRoot":"","sources":["../../../../src/components/hoc/withCollection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,wBAAgB,cAAc,CAAC,cAAc,EAAE,MAAM;;;;;;;EAYpD"}
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  export declare function withCollectionRecord(collectionName: string): {
2
3
  ({ children }: {
3
4
  children: any;
4
- }): JSX.Element;
5
+ }): React.JSX.Element;
5
6
  routeName: string;
6
7
  path: string;
7
8
  pageName: string;
@@ -1 +1 @@
1
- {"version":3,"file":"withCollectionRecord.d.ts","sourceRoot":"","sources":["../../../../src/components/hoc/withCollectionRecord.tsx"],"names":[],"mappings":"AAMA,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,MAAM;;;;;;;EAc1D"}
1
+ {"version":3,"file":"withCollectionRecord.d.ts","sourceRoot":"","sources":["../../../../src/components/hoc/withCollectionRecord.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,MAAM;;;;;;;EAc1D"}
@@ -12,7 +12,7 @@ export declare type SettingOptions = {
12
12
  export declare const withSettings: (settingOptions: SettingOptions) => <P extends Object>(BaseComponent: React.ComponentType<P>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<React.PropsWithChildren<P & ModalProps>> & React.RefAttributes<any>>;
13
13
  export declare const withModelPropsLoader: (settingOptions: SettingOptions) => <P extends Object>(BaseComponent: React.ComponentType<P>) => (props: P & ModalProps & {
14
14
  _innerRef: any;
15
- }) => JSX.Element;
15
+ }) => React.JSX.Element;
16
16
  export declare const withToolbar: (settingOptions: SettingOptions) => <P extends Object>(BaseComponent: React.ComponentType<P>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<React.PropsWithChildren<P & ModalProps>> & React.RefAttributes<any>>;
17
17
  export default withSettings;
18
18
  //# sourceMappingURL=withSettings.native.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"withSettings.native.d.ts","sourceRoot":"","sources":["../../../../src/components/hoc/withSettings.native.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAc,iBAAiB,EAAE,eAAe,EAAE,aAAa,EAAW,MAAM,OAAO,CAAC;AAGtG,aAAK,UAAU,GAAG;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAE7E,oBAAY,qBAAqB,CAAC,CAAC,SAAS,MAAM,I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pB,CAAC;AACxC,eAAe,YAAY,CAAC"}
@@ -12,9 +12,7 @@ export * from './useUrl';
12
12
  export * from './useFocus';
13
13
  export * from './useFonts';
14
14
  export * from './useCollection';
15
- export * from './useCollectionProvider';
16
15
  export * from './useCollectionRecord';
17
- export * from './useCollectionRecordProvider';
18
16
  export * from './useComponentConfigProps';
19
17
  export * from './useLayoutEditor';
20
18
  export * from './useMenuItems';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.tsx"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.tsx"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC"}
@@ -24,9 +24,7 @@ __exportStar(require("./useUrl"), exports);
24
24
  __exportStar(require("./useFocus"), exports);
25
25
  __exportStar(require("./useFonts"), exports);
26
26
  __exportStar(require("./useCollection"), exports);
27
- __exportStar(require("./useCollectionProvider"), exports);
28
27
  __exportStar(require("./useCollectionRecord"), exports);
29
- __exportStar(require("./useCollectionRecordProvider"), exports);
30
28
  __exportStar(require("./useComponentConfigProps"), exports);
31
29
  __exportStar(require("./useLayoutEditor"), exports);
32
30
  __exportStar(require("./useMenuItems"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA+B;AAC/B,yDAAuC;AACvC,8CAA4B;AAC5B,kDAAgC;AAChC,4CAA0B;AAC1B,6CAA2B;AAC3B,qDAAmC;AACnC,gDAA8B;AAC9B,6CAA2B;AAC3B,mDAAiC;AACjC,2CAAyB;AACzB,6CAA2B;AAC3B,6CAA2B;AAC3B,kDAAgC;AAChC,0DAAwC;AACxC,wDAAsC;AACtC,gEAA8C;AAC9C,4DAA0C;AAC1C,oDAAkC;AAClC,iDAA+B;AAC/B,gDAA8B;AAC9B,4CAA0B;AAC1B,8CAA4B;AAC5B,kDAAgC;AAChC,8CAA4B;AAC5B,sDAAoC;AACpC,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA+B;AAC/B,yDAAuC;AACvC,8CAA4B;AAC5B,kDAAgC;AAChC,4CAA0B;AAC1B,6CAA2B;AAC3B,qDAAmC;AACnC,gDAA8B;AAC9B,6CAA2B;AAC3B,mDAAiC;AACjC,2CAAyB;AACzB,6CAA2B;AAC3B,6CAA2B;AAC3B,kDAAgC;AAChC,wDAAsC;AACtC,4DAA0C;AAC1C,oDAAkC;AAClC,iDAA+B;AAC/B,gDAA8B;AAC9B,4CAA0B;AAC1B,8CAA4B;AAC5B,kDAAgC;AAChC,8CAA4B;AAC5B,sDAAoC;AACpC,kDAAgC"}
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  interface DatasourceProps {
3
3
  name: string;
4
4
  dataSource: any;
5
+ children: React.ReactNode;
5
6
  }
6
7
  export declare const DataSource: React.FunctionComponent<DatasourceProps>;
7
8
  export default DataSource;
@@ -1 +1 @@
1
- {"version":3,"file":"DataSource.d.ts","sourceRoot":"","sources":["../../../src/providers/DataSource.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAKvC,UAAU,eAAe;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,GAAG,CAAC;CACnB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAK/D,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"DataSource.d.ts","sourceRoot":"","sources":["../../../src/providers/DataSource.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAKvC,UAAU,eAAe;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,GAAG,CAAC;IAChB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAK/D,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DataSource.js","sourceRoot":"","sources":["../../../src/providers/DataSource.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAuC;AAEvC,oCAAyC;AACzC,oDAA4B;AAOrB,MAAM,UAAU,GAA6C,CAAC,EAAC,IAAI,EAAE,UAAU,EAAG,QAAQ,EAAC,EAAE,EAAE;IAClG,MAAM,IAAI,GAAG,qBAAa,CAAC,UAAU,CAAC,CAAC;IACvC,OAAO,CACH,8BAAC,eAAK,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,IAAG,QAAQ,CAAS,CACrD,CAAC;AACN,CAAC,CAAC;AALW,QAAA,UAAU,cAKrB;AAEF,kBAAe,kBAAU,CAAC"}
1
+ {"version":3,"file":"DataSource.js","sourceRoot":"","sources":["../../../src/providers/DataSource.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAuC;AAEvC,oCAAyC;AACzC,oDAA4B;AAQrB,MAAM,UAAU,GAA6C,CAAC,EAAC,IAAI,EAAE,UAAU,EAAG,QAAQ,EAAC,EAAE,EAAE;IAClG,MAAM,IAAI,GAAG,qBAAa,CAAC,UAAU,CAAC,CAAC;IACvC,OAAO,CACH,8BAAC,eAAK,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,IAAG,QAAQ,CAAS,CACrD,CAAC;AACN,CAAC,CAAC;AALW,QAAA,UAAU,cAKrB;AAEF,kBAAe,kBAAU,CAAC"}
@@ -1,4 +1,7 @@
1
1
  import React from 'react';
2
- export declare const I18nProvider: React.FC;
2
+ interface I18nProviderProps {
3
+ children: React.ReactNode;
4
+ }
5
+ export declare const I18nProvider: React.FC<I18nProviderProps>;
3
6
  export default I18nProvider;
4
7
  //# sourceMappingURL=I18nProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"I18nProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/I18nProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAOvE,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAiDhC,CAAA;AAED,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"I18nProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/I18nProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAOvE,UAAU,iBAAiB;IACvB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAiDpD,CAAA;AAED,eAAe,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"I18nProvider.js","sourceRoot":"","sources":["../../../src/providers/I18nProvider.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAyC;AACzC,+CAAuE;AACvE,6CAAqD;AACrD,6EAAqD;AACrD,kDAA+C;AAC/C,0CAA8C;AAC9C,mCAAwC;AAEjC,MAAM,YAAY,GAAa,CAAC,EAAC,QAAQ,EAAC,EAAE,EAAE;IACnD,MAAM,QAAQ,GAAG,yBAAW,EAAE,CAAC;IAC/B,MAAM,aAAa,GAAG,qBAAS,CAAC,MAAM,CAAC,CAAC;IAExC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,gBAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAEnD,MAAM,QAAQ,GAAG,yBAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;IAC1D,MAAM,WAAW,GAAG,mBAAW,CAAC,CAAC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AO,GAAE,EAAE;YACP,sBAAY,CAAC,GAAG,CAAC,OAAO,EAAE,uBAAuB,CAAC,CAAA;YAClD,sBAAY,CAAC,GAAG,CAAC,SAAS,EAAE,uBAAuB,CAAC,CAAA;QACtD,CAAC,CAAC;IACR,CAAC,EAAE,CAAC,yBAAyB,CAAC,CAAC,CAAC;IAEhC,iBAAS,CAAC,GAAG,EAAE;QACb,gBAAO,CAAC,aAAa,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,EAAE,CAC1C,sBAAY,CAAC,YAAY,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC,CACtD,CAAC;QACF,yBAAyB,EAAE,CAAC;IAC9B,CAAC,EAAE,CAAC,aAAa,EAAE,yBAAyB,CAAC,CAAC,CAAC;IAE/C,MAAM,SAAS,GAAG,eAAO,CAAC,GAAE,EAAE,CAAA,CAAC,EAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAC,CAAC,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;IAE7E,OAAO,CAAC,8BAAC,qBAAa,IAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAE,SAAS,IAC5C,QAAQ,CACG,CAAC,CAAC;AACtB,CAAC,CAAA;AAjDY,QAAA,YAAY,gBAiDxB;AAED,kBAAe,oBAAY,CAAC"}
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  interface ScopeProps {
3
3
  name: string;
4
4
  value: any;
5
+ children: React.ReactNode;
5
6
  }
6
7
  /**
7
8
  * @description use is to provide single scopes name and value
@@ -1 +1 @@
1
- {"version":3,"file":"Scope.d.ts","sourceRoot":"","sources":["../../../src/providers/Scope.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgB,MAAM,OAAO,CAAC;AAIrC,UAAU,UAAU;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,GAAG,CAAC;CACd;AAED;;GAEG;AACH,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAerD,CAAC;AAEF,eAAO,MAAM,aAAa,qCAAQ,CAAC;AAEnC,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Scope.d.ts","sourceRoot":"","sources":["../../../src/providers/Scope.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgB,MAAM,OAAO,CAAC;AAIrC,UAAU,UAAU;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,GAAG,CAAC;IACX,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED;;GAEG;AACH,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAerD,CAAC;AAEF,eAAO,MAAM,aAAa,qCAAQ,CAAC;AAEnC,eAAe,KAAK,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Scope.js","sourceRoot":"","sources":["../../../src/providers/Scope.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAqC;AACrC,0CAAyC;AACzC,oCAAkC;AAOlC;;GAEG;AACI,MAAM,KAAK,GAAwC,CAAC,EAAC,IAAI,EAAE,KAAK,EAAG,QAAQ,EAAC,EAAE,EAAE;IACnF,MAAM,KAAK,GAAG,gBAAQ,EAAE,CAAC;IAEzB,MAAM,QAAQ,GAAG,eAAO,CAAC,GAAE,EAAE,CAAA,iCAElB,KAAK,KACR,CAAC,IAAI,CAAC,EAAE,KAAK,IAEpB,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;IAEzB,OAAO,CACH,8BAAC,uBAAY,IAAC,KAAK,EAAE,QAAQ,IACxB,QAAQ,CACE,CAClB,CAAC;AACN,CAAC,CAAC;AAfW,QAAA,KAAK,SAehB;AAEW,QAAA,aAAa,GAAG,aAAK,CAAC;AAEnC,kBAAe,aAAK,CAAC"}
1
+ {"version":3,"file":"Scope.js","sourceRoot":"","sources":["../../../src/providers/Scope.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAqC;AACrC,0CAAyC;AACzC,oCAAkC;AAQlC;;GAEG;AACI,MAAM,KAAK,GAAwC,CAAC,EAAC,IAAI,EAAE,KAAK,EAAG,QAAQ,EAAC,EAAE,EAAE;IACnF,MAAM,KAAK,GAAG,gBAAQ,EAAE,CAAC;IAEzB,MAAM,QAAQ,GAAG,eAAO,CAAC,GAAE,EAAE,CAAA,iCAElB,KAAK,KACR,CAAC,IAAI,CAAC,EAAE,KAAK,IAEpB,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;IAEzB,OAAO,CACH,8BAAC,uBAAY,IAAC,KAAK,EAAE,QAAQ,IACxB,QAAQ,CACE,CAClB,CAAC;AACN,CAAC,CAAC;AAfW,QAAA,KAAK,SAehB;AAEW,QAAA,aAAa,GAAG,aAAK,CAAC;AAEnC,kBAAe,aAAK,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  interface ScopesProps {
3
3
  values: Object;
4
+ children: React.ReactNode;
4
5
  }
5
6
  /**
6
7
  * @description use is to provide multiple scopes
@@ -1 +1 @@
1
- {"version":3,"file":"Scopes.d.ts","sourceRoot":"","sources":["../../../src/providers/Scopes.tsx"],"names":[],"mappings":"AACA,OAAO,KAAgB,MAAM,OAAO,CAAC;AAIrC,UAAU,WAAW;IACjB,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAUvD,CAAC;AAEF,eAAO,MAAM,cAAc,sCAAS,CAAC;AAErC,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Scopes.d.ts","sourceRoot":"","sources":["../../../src/providers/Scopes.tsx"],"names":[],"mappings":"AACA,OAAO,KAAgB,MAAM,OAAO,CAAC;AAIrC,UAAU,WAAW;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED;;GAEG;AACH,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAUvD,CAAC;AAEF,eAAO,MAAM,cAAc,sCAAS,CAAC;AAErC,eAAe,MAAM,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Scopes.js","sourceRoot":"","sources":["../../../src/providers/Scopes.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAgC;AAChC,+CAAqC;AACrC,0CAAyC;AACzC,oCAAkC;AAMlC;;GAEG;AACI,MAAM,MAAM,GAAyC,CAAC,EAAC,MAAM,EAAE,QAAQ,EAAC,EAAE,EAAE;IAC/E,MAAM,KAAK,GAAG,gBAAQ,EAAE,CAAC;IAEzB,MAAM,QAAQ,GAAG,eAAO,CAAC,GAAE,EAAE,CAAC,eAAM,CAAC,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;IAE1E,OAAO,CACH,8BAAC,uBAAY,IAAC,KAAK,EAAE,QAAQ,IACxB,QAAQ,CACE,CAClB,CAAC;AACN,CAAC,CAAC;AAVW,QAAA,MAAM,UAUjB;AAEW,QAAA,cAAc,GAAG,cAAM,CAAC;AAErC,kBAAe,cAAM,CAAC"}
1
+ {"version":3,"file":"Scopes.js","sourceRoot":"","sources":["../../../src/providers/Scopes.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAgC;AAChC,+CAAqC;AACrC,0CAAyC;AACzC,oCAAkC;AAOlC;;GAEG;AACI,MAAM,MAAM,GAAyC,CAAC,EAAC,MAAM,EAAE,QAAQ,EAAC,EAAE,EAAE;IAC/E,MAAM,KAAK,GAAG,gBAAQ,EAAE,CAAC;IAEzB,MAAM,QAAQ,GAAG,eAAO,CAAC,GAAE,EAAE,CAAC,eAAM,CAAC,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;IAE1E,OAAO,CACH,8BAAC,uBAAY,IAAC,KAAK,EAAE,QAAQ,IACxB,QAAQ,CACE,CAClB,CAAC;AACN,CAAC,CAAC;AAVW,QAAA,MAAM,UAUjB;AAEW,QAAA,cAAc,GAAG,cAAM,CAAC;AAErC,kBAAe,cAAM,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evlop/commons",
3
- "version": "1.0.225",
3
+ "version": "1.0.226",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "peerDependencies": {
@@ -36,7 +36,7 @@
36
36
  "@types/jest": "^26.0.23",
37
37
  "@types/lodash": "^4.14.168",
38
38
  "@types/node": "^15.0.2",
39
- "@types/react": "^16.14.0",
39
+ "@types/react": "^18.3.12",
40
40
  "@types/react-native": "^0.67.8",
41
41
  "@types/uuid": "^8.3.4",
42
42
  "axios": "^0.27.2",
@@ -1,2 +0,0 @@
1
- export declare const useCollectionProvider: (collectionName: any, options?: {}) => import("../classes").Collection;
2
- //# sourceMappingURL=useCollectionProvider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useCollectionProvider.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCollectionProvider.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,qBAAqB,wEAajC,CAAC"}
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useCollectionProvider = void 0;
4
- const change_case_1 = require("change-case");
5
- const react_1 = require("react");
6
- const react_redux_1 = require("react-redux");
7
- const reducers_1 = require("../reducers");
8
- const useCollection_1 = require("./useCollection");
9
- const useCollectionProvider = (collectionName, options = {}) => {
10
- const collection = useCollection_1.useCollection(collectionName, options);
11
- const key = react_1.useMemo(() => change_case_1.constantCase(collectionName), [collectionName]);
12
- const dispatch = react_redux_1.useDispatch();
13
- react_1.useEffect(() => {
14
- dispatch(reducers_1.updateContext(key, collection));
15
- return () => reducers_1.resetContext(key);
16
- }, [collection]);
17
- return collection;
18
- };
19
- exports.useCollectionProvider = useCollectionProvider;
20
- //# sourceMappingURL=useCollectionProvider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useCollectionProvider.js","sourceRoot":"","sources":["../../../src/hooks/useCollectionProvider.tsx"],"names":[],"mappings":";;;AAAA,6CAA2C;AAC3C,iCAAqD;AACrD,6CAA0C;AAC1C,0CAA0D;AAC1D,mDAAgD;AAEzC,MAAM,qBAAqB,GAAG,CAAE,cAAc,EAAE,OAAO,GAAG,EAAE,EAAE,EAAE;IACnE,MAAM,UAAU,GAAG,6BAAa,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IAC1D,MAAM,GAAG,GAAG,eAAO,CAAC,GAAE,EAAE,CAAA,0BAAY,CAAC,cAAc,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC;IACxE,MAAM,QAAQ,GAAG,yBAAW,EAAE,CAAC;IAE/B,iBAAS,CAAC,GAAE,EAAE;QACV,QAAQ,CACJ,wBAAa,CAAC,GAAG,EAAE,UAAU,CAAC,CACjC,CAAC;QACF,OAAO,GAAE,EAAE,CAAC,uBAAY,CAAC,GAAG,CAAC,CAAA;IACjC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;IAEjB,OAAO,UAAU,CAAC;AACtB,CAAC,CAAC;AAbW,QAAA,qBAAqB,yBAahC"}
@@ -1,3 +0,0 @@
1
- export declare const useCollectionRecordProvider: (collectionName: any, paramName?: string) => any;
2
- export declare const useRecordFromCollection: (collectionName: any, paramName?: string) => any;
3
- //# sourceMappingURL=useCollectionRecordProvider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useCollectionRecordProvider.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCollectionRecordProvider.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,2BAA2B,kDAkBvC,CAAC;AAEF,eAAQ,MAAM,uBAAuB,kDAA8B,CAAC"}
@@ -1,27 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.useRecordFromCollection = exports.useCollectionRecordProvider = void 0;
7
- const change_case_1 = require("change-case");
8
- const pluralize_1 = __importDefault(require("pluralize"));
9
- const react_1 = require("react");
10
- const react_redux_1 = require("react-redux");
11
- const reducers_1 = require("../reducers");
12
- const useCollectionRecord_1 = require("./useCollectionRecord");
13
- const useParams_1 = require("./useParams");
14
- const useCollectionRecordProvider = (collectionName, paramName = 'slug') => {
15
- const dispatch = react_redux_1.useDispatch();
16
- const { [paramName]: param } = useParams_1.useParams();
17
- const record = useCollectionRecord_1.useCollectionRecord(collectionName, param);
18
- const key = change_case_1.constantCase(pluralize_1.default.singular(collectionName));
19
- react_1.useEffect(() => {
20
- dispatch(reducers_1.updateContext(key, record));
21
- return () => reducers_1.resetContext(key);
22
- }, [key, record, dispatch]);
23
- return record;
24
- };
25
- exports.useCollectionRecordProvider = useCollectionRecordProvider;
26
- exports.useRecordFromCollection = exports.useCollectionRecordProvider;
27
- //# sourceMappingURL=useCollectionRecordProvider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useCollectionRecordProvider.js","sourceRoot":"","sources":["../../../src/hooks/useCollectionRecordProvider.tsx"],"names":[],"mappings":";;;;;;AAAA,6CAA2C;AAC3C,0DAAkC;AAClC,iCAAkC;AAClC,6CAA0C;AAC1C,0CAA0D;AAC1D,+DAA4D;AAC5D,2CAAwC;AAEjC,MAAM,2BAA2B,GAAG,CAAE,cAAc,EAAE,SAAS,GAAG,MAAM,EAAE,EAAE;IAC/E,MAAM,QAAQ,GAAG,yBAAW,EAAE,CAAC;IAE/B,MAAM,EAAC,CAAC,SAAS,CAAC,EAAE,KAAK,EAAC,GAAG,qBAAS,EAAE,CAAC;IAEzC,MAAM,MAAM,GAAG,yCAAmB,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;IAE1D,MAAM,GAAG,GAAG,0BAAY,CAAC,mBAAS,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC;IAG7D,iBAAS,CAAC,GAAE,EAAE;QACV,QAAQ,CACJ,wBAAa,CAAC,GAAG,EAAE,MAAM,CAAC,CAC7B,CAAC;QACF,OAAO,GAAE,EAAE,CAAC,uBAAY,CAAC,GAAG,CAAC,CAAA;IACjC,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;IAE5B,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC;AAlBW,QAAA,2BAA2B,+BAkBtC;AAEY,QAAA,uBAAuB,GAAG,mCAA2B,CAAC"}