@evlop/commons 1.0.174 → 1.0.176
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/constants/i18ninstance.js +1 -1
- package/dist/src/constants/i18ninstance.js.map +1 -1
- package/dist/src/reducers/index.d.ts +0 -1
- package/dist/src/reducers/index.d.ts.map +1 -1
- package/dist/src/reducers/index.js +0 -2
- package/dist/src/reducers/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/src/components/Dropable.d.ts +0 -3
- package/dist/src/components/Dropable.d.ts.map +0 -1
- package/dist/src/components/Dropable.js +0 -39
- package/dist/src/components/Dropable.js.map +0 -1
@@ -9,7 +9,7 @@ exports.i18nInstance = i18next_1.default.createInstance();
|
|
9
9
|
exports.i18nInstance.init({
|
10
10
|
compatibilityJSON: "v3",
|
11
11
|
lng: "en",
|
12
|
-
fallbackLng: ['en', 'EN'],
|
12
|
+
fallbackLng: ['default', 'en', 'EN'],
|
13
13
|
defaultNS: "common",
|
14
14
|
interpolation: {
|
15
15
|
escapeValue: false,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"i18ninstance.js","sourceRoot":"","sources":["../../../src/constants/i18ninstance.ts"],"names":[],"mappings":";;;;;;AAAA,sDAA8B;AAEjB,QAAA,YAAY,GAAG,iBAAO,CAAC,cAAc,EAAE,CAAC;AACrD,oBAAY,CAAC,IAAI,CAAC;IACd,iBAAiB,EAAE,IAAI;IACvB,GAAG,EAAE,IAAI;IACT,WAAW,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC;
|
1
|
+
{"version":3,"file":"i18ninstance.js","sourceRoot":"","sources":["../../../src/constants/i18ninstance.ts"],"names":[],"mappings":";;;;;;AAAA,sDAA8B;AAEjB,QAAA,YAAY,GAAG,iBAAO,CAAC,cAAc,EAAE,CAAC;AACrD,oBAAY,CAAC,IAAI,CAAC;IACd,iBAAiB,EAAE,IAAI;IACvB,GAAG,EAAE,IAAI;IACT,WAAW,EAAE,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC;IACpC,SAAS,EAAE,QAAQ;IACnB,aAAa,EAAC;QACV,WAAW,EAAE,KAAK;KACrB;IACD,KAAK,EAAC;QACF,WAAW,EAAE,KAAK;KACrB;CACJ,CAAC,CAAC;AAEH,kBAAe,oBAAY,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/reducers/index.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/reducers/index.tsx"],"names":[],"mappings":"AAmBA,eAAO,MAAM,eAAe,KAAyB,CAAC;AACtD,eAAO,MAAM,iBAAiB,KAA2B,CAAC;AAC1D,eAAO,MAAM,qBAAqB,KAAgC,CAAC;AACnE,eAAO,MAAM,eAAe,KAAyB,CAAC;AACtD,eAAO,MAAM,iBAAiB,KAA2B,CAAC;AAC1D,eAAO,MAAM,gBAAgB,KAA2B,CAAC;AAEzD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBpB,CAAC;AAEF,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAE1B,eAAe,QAAQ,CAAC"}
|
@@ -14,7 +14,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
14
|
};
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
16
16
|
exports.reducers = exports.domainCollection = exports.layoutsCollection = exports.menusCollection = exports.collectionsCollection = exports.pluginsCollection = exports.pagesCollection = void 0;
|
17
|
-
const redux_form_1 = require("redux-form");
|
18
17
|
const redux_rest_1 = require("@mukti107/redux-rest");
|
19
18
|
const config_1 = __importDefault(require("./config"));
|
20
19
|
const components_1 = __importDefault(require("./components"));
|
@@ -45,7 +44,6 @@ exports.reducers = {
|
|
45
44
|
domains: exports.domainCollection.reducer,
|
46
45
|
layouts: exports.layoutsCollection.reducer,
|
47
46
|
adminMenus: adminMenus_1.default,
|
48
|
-
form: redux_form_1.reducer,
|
49
47
|
user: user_1.default,
|
50
48
|
session: session_1.default,
|
51
49
|
context: context_1.default,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/reducers/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/reducers/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAuD;AACvD,sDAA8B;AAC9B,8DAAsC;AACtC,wDAAgC;AAChC,wDAAgC;AAChC,kDAA0B;AAC1B,sDAA8B;AAC9B,oDAA4B;AAC5B,sDAA8B;AAC9B,oEAA4C;AAC5C,oDAA4B;AAC5B,oDAA4B;AAC5B,oDAA4B;AAC5B,8DAAsC;AACtC,8DAAsC;AACtC,8DAAsC;AAEtC,MAAM,cAAc,GAAG,8BAAiB,CAAC;AAE5B,QAAA,eAAe,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;AACzC,QAAA,iBAAiB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;AAC7C,QAAA,qBAAqB,GAAG,cAAc,CAAC,aAAa,CAAC,CAAC;AACtD,QAAA,eAAe,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;AACzC,QAAA,iBAAiB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;AAC7C,QAAA,gBAAgB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;AAE5C,QAAA,QAAQ,GAAG;IACpB,KAAK,EAAL,eAAK;IACL,KAAK,EAAE,uBAAe,CAAC,OAAO;IAC9B,OAAO,EAAE,yBAAiB,CAAC,OAAO;IAClC,OAAO,EAAE,wBAAgB,CAAC,OAAO;IACjC,OAAO,EAAE,yBAAiB,CAAC,OAAO;IAClC,UAAU,EAAV,oBAAU;IACV,IAAI,EAAJ,cAAI;IACJ,OAAO,EAAP,iBAAO;IACP,OAAO,EAAP,iBAAO;IACP,UAAU,EAAV,oBAAU;IACV,UAAU,EAAV,oBAAU;IACV,UAAU,EAAV,oBAAU;IACV,KAAK,EAAL,eAAK;IACL,KAAK,EAAL,eAAK;IACL,MAAM,EAAN,gBAAM;IACN,MAAM,EAAN,gBAAM;IACN,MAAM,EAAN,gBAAM;IACN,aAAa,EAAb,uBAAa;IACb,KAAK,EAAL,eAAK;CACR,CAAC;AAEF,+CAA6B;AAC7B,+CAA6B;AAC7B,+CAA6B;AAC7B,+CAA6B;AAC7B,2CAAyB;AACzB,4CAA0B;AAC1B,0CAAwB;AACxB,0CAAwB;AACxB,0CAAwB;AACxB,0CAAwB;AACxB,2CAAyB;AACzB,kDAAgC;AAChC,2CAAyB;AACzB,yCAAuB;AACvB,4CAA0B;AAE1B,kBAAe,gBAAQ,CAAC"}
|
package/package.json
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Dropable.d.ts","sourceRoot":"","sources":["../../../src/components/Dropable.tsx"],"names":[],"mappings":";AAiCA,wBAaW"}
|
@@ -1,39 +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
|
-
const react_1 = __importDefault(require("react"));
|
7
|
-
const styled_components_1 = __importDefault(require("styled-components"));
|
8
|
-
const react_dnd_1 = require("react-dnd");
|
9
|
-
const constants_1 = require("../constants");
|
10
|
-
const DropableContainer = styled_components_1.default.div && styled_components_1.default.div(({ theme }) => ({
|
11
|
-
display: 'none',
|
12
|
-
transition: 'all 0.25s',
|
13
|
-
height: 'auto',
|
14
|
-
backgroundColor: theme.adminPrimaryColor,
|
15
|
-
border: '2px dashed #17559b',
|
16
|
-
color: '#fff',
|
17
|
-
padding: 20,
|
18
|
-
}), ({ canDrop }) => canDrop && {
|
19
|
-
display: 'block',
|
20
|
-
opacity: 0,
|
21
|
-
}, ({ canDrop, isOver }) => canDrop && isOver && {
|
22
|
-
visibility: 'visible',
|
23
|
-
opacity: 1,
|
24
|
-
});
|
25
|
-
const Dropable = ({ isOver, canDrop, connectDropTarget }) => {
|
26
|
-
return connectDropTarget(react_1.default.createElement("div", { style: { paddingBottom: 200 } },
|
27
|
-
react_1.default.createElement(DropableContainer, { canDrop: canDrop, isOver: isOver }, "Drag here and release to add selected component here")));
|
28
|
-
};
|
29
|
-
exports.default = react_dnd_1.DropTarget(() => [constants_1.TYPE_COMPONENT], {
|
30
|
-
drop(props, monitor) {
|
31
|
-
props.onDrop(monitor.getItem());
|
32
|
-
},
|
33
|
-
}, (connect, monitor) => ({
|
34
|
-
connectDropTarget: connect.dropTarget(),
|
35
|
-
isDragging: false,
|
36
|
-
isOver: monitor.isOver(),
|
37
|
-
canDrop: monitor.canDrop(),
|
38
|
-
}))(Dropable);
|
39
|
-
//# sourceMappingURL=Dropable.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Dropable.js","sourceRoot":"","sources":["../../../src/components/Dropable.tsx"],"names":[],"mappings":";;;;;AAAA,kDAAyB;AACzB,0EAAsC;AACtC,yCAAsC;AACtC,4CAA4C;AAE5C,MAAM,iBAAiB,GAAG,2BAAM,CAAC,GAAG,IAAI,2BAAM,CAAC,GAAG,CAAC,CAAC,EAAC,KAAK,EAAC,EAAC,EAAE,CAAA,CAAC;IACvD,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,WAAW;IACvB,MAAM,EAAE,MAA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