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.cjs
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
require('material-design-icons-iconfont/dist/material-design-icons.css');
|
2
2
|
var React = require('react');
|
3
|
-
var config = require('@reactpreview/config');
|
4
3
|
var RSwitch = require('react-switch');
|
5
4
|
var reactNotifications = require('react-notifications');
|
6
5
|
require('react-notifications/lib/notifications.css');
|
@@ -204,22 +203,6 @@ var Button$1 = function Button(_ref) {
|
|
204
203
|
action: click
|
205
204
|
}) : null, /*#__PURE__*/React__default["default"].createElement("span", null, label));
|
206
205
|
};
|
207
|
-
config.preview(Button$1, {
|
208
|
-
example1: {
|
209
|
-
label: "OK",
|
210
|
-
raised: true,
|
211
|
-
action: function action() {
|
212
|
-
return alert('click');
|
213
|
-
}
|
214
|
-
},
|
215
|
-
example2: {
|
216
|
-
label: "CANCEL",
|
217
|
-
outlined: true,
|
218
|
-
action: function action() {
|
219
|
-
return alert('click');
|
220
|
-
}
|
221
|
-
}
|
222
|
-
});
|
223
206
|
|
224
207
|
/**
|
225
208
|
* Site Context
|
@@ -2306,7 +2289,8 @@ var FORMATS = {
|
|
2306
2289
|
NONE: '',
|
2307
2290
|
DATE: 'date',
|
2308
2291
|
EMAIL: 'email',
|
2309
|
-
HTML: 'HTML'
|
2292
|
+
HTML: 'HTML',
|
2293
|
+
URL: 'URL'
|
2310
2294
|
};
|
2311
2295
|
/**
|
2312
2296
|
* CHECK
|
@@ -2734,7 +2718,6 @@ var TabbedContentEditor = function TabbedContentEditor(_ref2) {
|
|
2734
2718
|
}
|
2735
2719
|
|
2736
2720
|
var sections = content.sections();
|
2737
|
-
console.log("TabbedContentEditor", sections);
|
2738
2721
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
2739
2722
|
className: "content-editor tabbed"
|
2740
2723
|
}, /*#__PURE__*/React__default["default"].createElement(Tabs, {
|
@@ -3006,7 +2989,10 @@ var StringEditor = function StringEditor(_ref6) {
|
|
3006
2989
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
3007
2990
|
className: "field-editor string-editor"
|
3008
2991
|
}, format === FORMATS.HTML ? /*#__PURE__*/React__default["default"].createElement(Editor, {
|
3009
|
-
|
2992
|
+
id: id,
|
2993
|
+
value: value,
|
2994
|
+
onChange: change,
|
2995
|
+
content: content
|
3010
2996
|
}) : null, format === FORMATS.DATE ? /*#__PURE__*/React__default["default"].createElement(TextField, {
|
3011
2997
|
outlined: outlined,
|
3012
2998
|
id: id,
|