@evlop/commons 1.0.224 → 1.0.226
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/components/Svg.d.ts +2 -1
- package/dist/src/components/Svg.d.ts.map +1 -1
- package/dist/src/components/hoc/withCollection.d.ts +2 -1
- package/dist/src/components/hoc/withCollection.d.ts.map +1 -1
- package/dist/src/components/hoc/withCollectionRecord.d.ts +2 -1
- package/dist/src/components/hoc/withCollectionRecord.d.ts.map +1 -1
- package/dist/src/components/hoc/withSettings.native.d.ts +1 -1
- package/dist/src/components/hoc/withSettings.native.d.ts.map +1 -1
- package/dist/src/constants/googleFonts/index.d.ts +4 -1
- package/dist/src/constants/googleFonts/index.d.ts.map +1 -1
- package/dist/src/constants/googleFonts/index.js +6 -1
- package/dist/src/constants/googleFonts/index.js.map +1 -1
- package/dist/src/hooks/index.d.ts +0 -2
- package/dist/src/hooks/index.d.ts.map +1 -1
- package/dist/src/hooks/index.js +0 -2
- package/dist/src/hooks/index.js.map +1 -1
- package/dist/src/providers/DataSource.d.ts +1 -0
- package/dist/src/providers/DataSource.d.ts.map +1 -1
- package/dist/src/providers/DataSource.js.map +1 -1
- package/dist/src/providers/I18nProvider.d.ts +4 -1
- package/dist/src/providers/I18nProvider.d.ts.map +1 -1
- package/dist/src/providers/I18nProvider.js.map +1 -1
- package/dist/src/providers/Scope.d.ts +1 -0
- package/dist/src/providers/Scope.d.ts.map +1 -1
- package/dist/src/providers/Scope.js.map +1 -1
- package/dist/src/providers/Scopes.d.ts +1 -0
- package/dist/src/providers/Scopes.d.ts.map +1 -1
- package/dist/src/providers/Scopes.js.map +1 -1
- package/dist/src/reducers/fonts.d.ts.map +1 -1
- package/dist/src/reducers/fonts.js +2 -6
- package/dist/src/reducers/fonts.js.map +1 -1
- package/package.json +2 -2
- package/dist/src/hooks/useCollectionProvider.d.ts +0 -2
- package/dist/src/hooks/useCollectionProvider.d.ts.map +0 -1
- package/dist/src/hooks/useCollectionProvider.js +0 -20
- package/dist/src/hooks/useCollectionProvider.js.map +0 -1
- package/dist/src/hooks/useCollectionRecordProvider.d.ts +0 -3
- package/dist/src/hooks/useCollectionRecordProvider.d.ts.map +0 -1
- package/dist/src/hooks/useCollectionRecordProvider.js +0 -27
- package/dist/src/hooks/useCollectionRecordProvider.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Svg.d.ts","sourceRoot":"","sources":["../../../src/components/Svg.tsx"],"names":[],"mappings":"
|
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 +1 @@
|
|
1
|
-
{"version":3,"file":"withCollection.d.ts","sourceRoot":"","sources":["../../../../src/components/hoc/withCollection.tsx"],"names":[],"mappings":"
|
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 +1 @@
|
|
1
|
-
{"version":3,"file":"withCollectionRecord.d.ts","sourceRoot":"","sources":["../../../../src/components/hoc/withCollectionRecord.tsx"],"names":[],"mappings":"
|
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,IAAI,KAAK,CAAC,yBAAyB,CAAC,eAAe,CAAC,iBAAiB,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,CAAA;AAE9J,oBAAY,cAAc,GAAG;IAAC,YAAY,EAAE,GAAG,EAAE,CAAC;IAAC,oBAAoB,EAAE,GAAG,EAAE,CAAA;CAAC,CAAC;AAEhF,eAAO,MAAM,YAAY,mBAAoB,cAAc,4LAkB1D,CAAA;AAGD,eAAO,MAAM,oBAAoB,mBAAkB,cAAc;eAAwG,GAAG;
|
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,IAAI,KAAK,CAAC,yBAAyB,CAAC,eAAe,CAAC,iBAAiB,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,CAAA;AAE9J,oBAAY,cAAc,GAAG;IAAC,YAAY,EAAE,GAAG,EAAE,CAAC;IAAC,oBAAoB,EAAE,GAAG,EAAE,CAAA;CAAC,CAAC;AAEhF,eAAO,MAAM,YAAY,mBAAoB,cAAc,4LAkB1D,CAAA;AAGD,eAAO,MAAM,oBAAoB,mBAAkB,cAAc;eAAwG,GAAG;uBAiB3K,CAAC;AAGF,eAAO,MAAM,WAAW,mBAzCqB,cAAc,4LAyCpB,CAAC;AACxC,eAAe,YAAY,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/constants/googleFonts/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/constants/googleFonts/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW;;;GAGrB,CAAC;AAEJ,eAAe,WAAW,CAAC"}
|
@@ -3,6 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.googleFonts = void 0;
|
6
7
|
const variants_min_json_1 = __importDefault(require("./variants.min.json"));
|
7
|
-
exports.
|
8
|
+
exports.googleFonts = variants_min_json_1.default.map(([family, variants]) => ({
|
9
|
+
family,
|
10
|
+
stylesheetUrl: `https://fonts.googleapis.com/css?family=${family.replace(/ /g, '+')}:${variants}`,
|
11
|
+
}));
|
12
|
+
exports.default = exports.googleFonts;
|
8
13
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/constants/googleFonts/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/constants/googleFonts/index.ts"],"names":[],"mappings":";;;;;;AAAA,4EAAqD;AAExC,QAAA,WAAW,GAAG,2BAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAC,EAAE,CAAA,CAAC;IACrE,MAAM;IACN,aAAa,EAAE,2CAA2C,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,IAAI,QAAQ,EAAE;CACpG,CAAC,CAAC,CAAC;AAEJ,kBAAe,mBAAW,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,
|
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"}
|
package/dist/src/hooks/index.js
CHANGED
@@ -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,
|
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"}
|
@@ -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;
|
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;
|
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
|
-
|
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,
|
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;
|
1
|
+
{"version":3,"file":"I18nProvider.js","sourceRoot":"","sources":["../../../src/providers/I18nProvider.tsx"],"names":[],"mappings":"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"}
|
@@ -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;
|
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;
|
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 +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;
|
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;
|
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"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../../src/reducers/fonts.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAE7C,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AACrE,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AACrE,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AAEnE,UAAU,IAAI;IACV,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;CACzB;
|
1
|
+
{"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../../src/reducers/fonts.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAE7C,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AACrE,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AACrE,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AAEnE,UAAU,IAAI;IACV,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;CACzB;AAGD,wBAAgB,gBAAgB,CAAC,KAAK,EAAC,IAAI,EAAE;;;EAK5C;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAC,IAAI,EAAE;;;EAK5C;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAC,IAAI,GAAG,MAAM;;;EAK9C;;AAgBD,wBA2CC"}
|
@@ -11,10 +11,6 @@ exports.ACTIVATE_FONT = 'REGISTER_FONT';
|
|
11
11
|
exports.LOAD_GOOGLE_FONTS_STARTED = 'LOAD_GOOGLE_FONTS_STARTED';
|
12
12
|
exports.LOAD_GOOGLE_FONTS_SUCCESS = 'LOAD_GOOGLE_FONTS_SUCCESS';
|
13
13
|
exports.LOAD_GOOGLE_FONTS_FAILED = 'LOAD_GOOGLE_FONTS_FAILED';
|
14
|
-
const googleFonts = googleFonts_1.default.map(([family, variants]) => ({
|
15
|
-
family,
|
16
|
-
stylesheetUrl: `https://fonts.googleapis.com/css?family=${family.replace(/ /g, '+')}:${variants}`,
|
17
|
-
}));
|
18
14
|
function registerWebFonts(fonts) {
|
19
15
|
return {
|
20
16
|
type: exports.REGISTER_WEB_FONTS,
|
@@ -40,10 +36,10 @@ let initialState = {
|
|
40
36
|
isLoading: false,
|
41
37
|
isGoogleFontsLoading: false,
|
42
38
|
isGoogleFontsLoaded: false,
|
43
|
-
googleFonts,
|
39
|
+
googleFonts: googleFonts_1.default,
|
44
40
|
appFonts: [],
|
45
41
|
webFonts: [
|
46
|
-
...
|
42
|
+
...googleFonts_1.default,
|
47
43
|
],
|
48
44
|
activeFonts: [],
|
49
45
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fonts.js","sourceRoot":"","sources":["../../../src/reducers/fonts.tsx"],"names":[],"mappings":";;;;;;AAAA,
|
1
|
+
{"version":3,"file":"fonts.js","sourceRoot":"","sources":["../../../src/reducers/fonts.tsx"],"names":[],"mappings":";;;;;;AAAA,2EAAmD;AAEtC,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AAC1C,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AAC1C,QAAA,aAAa,GAAG,eAAe,CAAC;AAEhC,QAAA,yBAAyB,GAAG,2BAA2B,CAAC;AACxD,QAAA,yBAAyB,GAAG,2BAA2B,CAAC;AACxD,QAAA,wBAAwB,GAAG,0BAA0B,CAAC;AAQnE,SAAgB,gBAAgB,CAAC,KAAY;IACzC,OAAO;QACH,IAAI,EAAE,0BAAkB;QACxB,KAAK;KACR,CAAC;AACN,CAAC;AALD,4CAKC;AAED,SAAgB,gBAAgB,CAAC,KAAY;IACzC,OAAO;QACH,IAAI,EAAE,0BAAkB;QACxB,KAAK;KACR,CAAC;AACN,CAAC;AALD,4CAKC;AAED,SAAgB,YAAY,CAAC,IAAkB;IAC3C,OAAO;QACH,IAAI,EAAE,qBAAa;QACnB,IAAI;KACP,CAAC;AACN,CAAC;AALD,oCAKC;AAGD,IAAI,YAAY,GAAO;IACnB,SAAS,EAAE,KAAK;IAChB,oBAAoB,EAAE,KAAK;IAC3B,mBAAmB,EAAE,KAAK;IAC1B,WAAW,EAAX,qBAAW;IACX,QAAQ,EAAC,EAAE;IACX,QAAQ,EAAC;QACL,GAAG,qBAAW;KACjB;IACD,WAAW,EAAC,EAAE;CACjB,CAAC;AAGF,kBAAe,CAAC,KAAK,GAAG,YAAY,EAAE,MAAM,EAAC,EAAE;IAC3C,QAAQ,MAAM,CAAC,IAAI,EAAE;QACjB,KAAK,0BAAkB,CAAC,CAAA;YACpB,uCACO,KAAK,KACR,QAAQ,EAAE;oBACN,GAAG,KAAK,CAAC,QAAQ;oBACjB,GAAG,MAAM,CAAC,KAAK;iBAClB,IACJ;SACJ;QAED,KAAK,0BAAkB,CAAC,CAAA;YACpB,uCACO,KAAK,KACR,QAAQ,EAAE;oBACN,GAAG,KAAK,CAAC,QAAQ;oBACjB,GAAG,MAAM,CAAC,KAAK;iBAClB,IACJ;SACJ;QACD,KAAK,qBAAa,CAAC,CAAA;YACf,IAAI,cAAc,GAAiB,MAAM,CAAC,IAAI,CAAC;YAE/C,IAAG,OAAO,cAAc,KAAK,QAAQ,EAAC;gBAClC,cAAc,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAA,EAAE,CAAA,CAAC,CAAC,MAAM,KAAK,cAAc,CAAC,CAAA;aACvE;YAED,IAAG,CAAC,cAAc,EAAC;gBACf,OAAO,KAAK,CAAC;aAChB;YAED,uCACO,KAAK,KACR,WAAW,EAAC;oBACR,GAAG,KAAK,CAAC,WAAW;oBACpB,cAAc;iBACjB,IACH;SACL;QACD;YACI,OAAO,KAAK,CAAC;KACpB;AACL,CAAC,CAAA"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@evlop/commons",
|
3
|
-
"version": "1.0.
|
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": "^
|
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 +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 +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"}
|