ywana-core8 0.0.184 → 0.0.188
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/dist/index.cjs +6 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +6 -20
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +10 -23
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentEditor.js +1 -3
- package/src/domain/ContentType.js +2 -1
- package/src/html/button.js +1 -15
package/dist/index.umd.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
(function (global, factory) {
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('material-design-icons-iconfont/dist/material-design-icons.css'), require('react'), require('
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'material-design-icons-iconfont/dist/material-design-icons.css', 'react', '
|
4
|
-
(global = global || self, factory(global.ywanaCore8 = {}, null, global.react, global.
|
5
|
-
})(this, (function (exports, materialDesignIcons_css, React,
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('material-design-icons-iconfont/dist/material-design-icons.css'), require('react'), require('react-switch'), require('react-notifications'), require('react-notifications/lib/notifications.css'), require('deep-equal'), require('resumablejs')) :
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'material-design-icons-iconfont/dist/material-design-icons.css', 'react', 'react-switch', 'react-notifications', 'react-notifications/lib/notifications.css', 'deep-equal', 'resumablejs'], factory) :
|
4
|
+
(global = global || self, factory(global.ywanaCore8 = {}, null, global.react, global.reactSwitch, global.reactNotifications, null, global.deepEqual, global.resumablejs));
|
5
|
+
})(this, (function (exports, materialDesignIcons_css, React, RSwitch, reactNotifications, notifications_css, equal, ResumableJS) {
|
6
6
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
7
7
|
|
8
8
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
@@ -200,22 +200,6 @@
|
|
200
200
|
action: click
|
201
201
|
}) : null, /*#__PURE__*/React__default["default"].createElement("span", null, label));
|
202
202
|
};
|
203
|
-
config.preview(Button$1, {
|
204
|
-
example1: {
|
205
|
-
label: "OK",
|
206
|
-
raised: true,
|
207
|
-
action: function action() {
|
208
|
-
return alert('click');
|
209
|
-
}
|
210
|
-
},
|
211
|
-
example2: {
|
212
|
-
label: "CANCEL",
|
213
|
-
outlined: true,
|
214
|
-
action: function action() {
|
215
|
-
return alert('click');
|
216
|
-
}
|
217
|
-
}
|
218
|
-
});
|
219
203
|
|
220
204
|
/**
|
221
205
|
* Site Context
|
@@ -2302,7 +2286,8 @@
|
|
2302
2286
|
NONE: '',
|
2303
2287
|
DATE: 'date',
|
2304
2288
|
EMAIL: 'email',
|
2305
|
-
HTML: 'HTML'
|
2289
|
+
HTML: 'HTML',
|
2290
|
+
URL: 'URL'
|
2306
2291
|
};
|
2307
2292
|
/**
|
2308
2293
|
* CHECK
|
@@ -2730,7 +2715,6 @@
|
|
2730
2715
|
}
|
2731
2716
|
|
2732
2717
|
var sections = content.sections();
|
2733
|
-
console.log("TabbedContentEditor", sections);
|
2734
2718
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
2735
2719
|
className: "content-editor tabbed"
|
2736
2720
|
}, /*#__PURE__*/React__default["default"].createElement(Tabs, {
|
@@ -3002,7 +2986,10 @@
|
|
3002
2986
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
3003
2987
|
className: "field-editor string-editor"
|
3004
2988
|
}, format === FORMATS.HTML ? /*#__PURE__*/React__default["default"].createElement(Editor, {
|
3005
|
-
|
2989
|
+
id: id,
|
2990
|
+
value: value,
|
2991
|
+
onChange: change,
|
2992
|
+
content: content
|
3006
2993
|
}) : null, format === FORMATS.DATE ? /*#__PURE__*/React__default["default"].createElement(TextField, {
|
3007
2994
|
outlined: outlined,
|
3008
2995
|
id: id,
|