react-survey-builder 1.0.114 → 1.0.115

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/bundle.js CHANGED
@@ -1191,7 +1191,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
1191
1191
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1192
1192
 
1193
1193
  "use strict";
1194
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */ myContentXSS: () => (/* binding */ myContentXSS)\n/* harmony export */ });\n/* harmony import */ var xss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! xss */ \"./node_modules/xss/lib/index.js\");\n/* harmony import */ var xss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(xss__WEBPACK_IMPORTED_MODULE_0__);\n\nvar myxss = new (xss__WEBPACK_IMPORTED_MODULE_0___default().FilterXSS)({\n whiteList: {\n a: ['href', 'title', 'target'],\n u: [],\n br: [],\n b: [],\n i: [],\n ol: ['style'],\n ul: ['style'],\n li: [],\n p: ['style'],\n sub: [],\n sup: [],\n div: ['style'],\n em: [],\n strong: [],\n span: ['style'],\n ins: []\n }\n});\nvar myContentXSS = new (xss__WEBPACK_IMPORTED_MODULE_0___default().FilterXSS)({\n css: false,\n whiteList: {\n a: ['href', 'title', 'target', 'style', 'class'],\n abbr: [\"title\"],\n address: ['style', 'class'],\n area: [\"shape\", \"coords\", \"href\", \"alt\"],\n article: ['style', 'class'],\n aside: ['style', 'class'],\n b: [],\n big: [],\n blockquote: [\"cite\"],\n br: [],\n button: ['href', 'title', 'target', 'style', 'class', 'type'],\n caption: ['style', 'class'],\n center: [],\n cite: ['style', 'class'],\n code: ['style', 'class'],\n col: [\"align\", \"valign\", \"span\", \"width\"],\n colgroup: [\"align\", \"valign\", \"span\", \"width\"],\n dd: ['style', 'class'],\n del: [\"datetime\"],\n details: [\"open\"],\n div: ['style', 'class', 'id'],\n dl: ['style', 'class'],\n dt: ['style', 'class'],\n em: ['style', 'class'],\n figcaption: ['style', 'class'],\n figure: ['style', 'class'],\n font: [\"color\", \"size\", \"face\"],\n footer: ['style', 'class'],\n h1: ['style', 'class', 'id'],\n h2: ['style', 'class', 'id'],\n h3: ['style', 'class', 'id'],\n h4: ['style', 'class', 'id'],\n h5: ['style', 'class', 'id'],\n h6: ['style', 'class', 'id'],\n header: ['style', 'class'],\n hr: ['style', 'class'],\n i: ['style', 'class'],\n img: [\"src\", \"alt\", \"title\", \"width\", \"height\", \"loading\"],\n ins: [\"datetime\"],\n li: ['style', 'class'],\n mark: [],\n nav: ['style', 'class'],\n ol: ['style', 'class'],\n p: ['style', 'class'],\n pre: [],\n s: [],\n section: [],\n small: [],\n span: ['style', 'class'],\n strike: [],\n strong: [],\n sub: [],\n summary: [],\n sup: [],\n table: [\"width\", \"border\", \"align\", \"valign\"],\n tbody: [\"align\", \"valign\"],\n td: [\"width\", \"rowspan\", \"colspan\", \"align\", \"valign\"],\n tfoot: [\"align\", \"valign\"],\n th: [\"width\", \"rowspan\", \"colspan\", \"align\", \"valign\"],\n thead: [\"align\", \"valign\"],\n tr: [\"rowspan\", \"align\", \"valign\"],\n tt: ['style', 'class'],\n u: [],\n ul: ['style', 'class']\n },\n onIgnoreTagAttr: function onIgnoreTagAttr(tag, name, value, isWhiteAttr) {\n if (name.substr(0, 5) === \"data-\") {\n // escape its value using built-in escapeAttrValue function\n return name + '=\"' + xss__WEBPACK_IMPORTED_MODULE_0___default().escapeAttrValue(value) + '\"';\n }\n if (name.substr(0, 5) === \"aria-\") {\n // escape its value using built-in escapeAttrValue function\n return name + '=\"' + xss__WEBPACK_IMPORTED_MODULE_0___default().escapeAttrValue(value) + '\"';\n }\n }\n});\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (myxss);\n\n//# sourceURL=webpack://react-survey-builder/./src/survey-elements/myxss.js?");
1194
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */ myContentXSS: () => (/* binding */ myContentXSS)\n/* harmony export */ });\n/* harmony import */ var xss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! xss */ \"./node_modules/xss/lib/index.js\");\n/* harmony import */ var xss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(xss__WEBPACK_IMPORTED_MODULE_0__);\n\nvar myxss = new (xss__WEBPACK_IMPORTED_MODULE_0___default().FilterXSS)({\n whiteList: {\n a: ['href', 'title', 'target'],\n u: [],\n br: [],\n b: [],\n i: [],\n ol: ['style'],\n ul: ['style'],\n li: [],\n p: ['style'],\n sub: [],\n sup: [],\n div: ['style'],\n em: [],\n strong: [],\n span: ['style'],\n ins: []\n }\n});\nvar myContentXSS = new (xss__WEBPACK_IMPORTED_MODULE_0___default().FilterXSS)({\n css: false,\n whiteList: {\n a: ['href', 'title', 'target', 'style', 'class'],\n abbr: [\"title\"],\n address: ['style', 'class'],\n area: [\"shape\", \"coords\", \"href\", \"alt\"],\n article: ['style', 'class'],\n aside: ['style', 'class'],\n b: [],\n big: [],\n blockquote: [\"cite\"],\n br: [],\n button: ['href', 'title', 'target', 'style', 'class', 'type'],\n caption: ['style', 'class'],\n center: [],\n cite: ['style', 'class'],\n code: ['style', 'class'],\n col: [\"align\", \"valign\", \"span\", \"width\"],\n colgroup: [\"align\", \"valign\", \"span\", \"width\"],\n dd: ['style', 'class'],\n del: [\"datetime\"],\n details: [\"open\"],\n div: ['style', 'class', 'id'],\n dl: ['style', 'class'],\n dt: ['style', 'class'],\n em: ['style', 'class'],\n figcaption: ['style', 'class'],\n figure: ['style', 'class'],\n font: [\"color\", \"size\", \"face\"],\n footer: ['style', 'class'],\n h1: ['style', 'class', 'id'],\n h2: ['style', 'class', 'id'],\n h3: ['style', 'class', 'id'],\n h4: ['style', 'class', 'id'],\n h5: ['style', 'class', 'id'],\n h6: ['style', 'class', 'id'],\n header: ['style', 'class'],\n hr: ['style', 'class'],\n i: ['style', 'class'],\n img: [\"src\", \"alt\", \"title\", \"width\", \"height\", \"loading\", \"class\", \"style\"],\n ins: [\"datetime\"],\n li: ['style', 'class'],\n mark: [],\n nav: ['style', 'class'],\n ol: ['style', 'class'],\n p: ['style', 'class'],\n pre: [],\n s: [],\n section: [\"class\", \"style\"],\n small: [\"class\", \"style\"],\n span: ['style', 'class'],\n strike: [],\n strong: [],\n sub: [],\n summary: [],\n sup: [],\n table: [\"width\", \"border\", \"align\", \"valign\", \"class\", \"style\"],\n tbody: [\"align\", \"valign\", \"class\", \"style\"],\n td: [\"width\", \"rowspan\", \"colspan\", \"align\", \"valign\", \"class\", \"style\"],\n tfoot: [\"align\", \"valign\", \"class\", \"style\"],\n th: [\"width\", \"rowspan\", \"colspan\", \"align\", \"valign\", \"class\", \"style\"],\n thead: [\"align\", \"valign\", \"class\", \"style\"],\n tr: [\"rowspan\", \"align\", \"valign\", \"class\", \"style\"],\n tt: ['style', 'class'],\n u: [],\n ul: ['style', 'class']\n },\n onIgnoreTagAttr: function onIgnoreTagAttr(tag, name, value, isWhiteAttr) {\n if (name.substr(0, 5) === \"data-\") {\n // escape its value using built-in escapeAttrValue function\n return name + '=\"' + xss__WEBPACK_IMPORTED_MODULE_0___default().escapeAttrValue(value) + '\"';\n }\n if (name.substr(0, 5) === \"aria-\") {\n // escape its value using built-in escapeAttrValue function\n return name + '=\"' + xss__WEBPACK_IMPORTED_MODULE_0___default().escapeAttrValue(value) + '\"';\n }\n }\n});\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (myxss);\n\n//# sourceURL=webpack://react-survey-builder/./src/survey-elements/myxss.js?");
1195
1195
 
1196
1196
  /***/ }),
1197
1197
 
@@ -59,7 +59,7 @@ export var myContentXSS = new xss.FilterXSS({
59
59
  header: ['style', 'class'],
60
60
  hr: ['style', 'class'],
61
61
  i: ['style', 'class'],
62
- img: ["src", "alt", "title", "width", "height", "loading"],
62
+ img: ["src", "alt", "title", "width", "height", "loading", "class", "style"],
63
63
  ins: ["datetime"],
64
64
  li: ['style', 'class'],
65
65
  mark: [],
@@ -68,21 +68,21 @@ export var myContentXSS = new xss.FilterXSS({
68
68
  p: ['style', 'class'],
69
69
  pre: [],
70
70
  s: [],
71
- section: [],
72
- small: [],
71
+ section: ["class", "style"],
72
+ small: ["class", "style"],
73
73
  span: ['style', 'class'],
74
74
  strike: [],
75
75
  strong: [],
76
76
  sub: [],
77
77
  summary: [],
78
78
  sup: [],
79
- table: ["width", "border", "align", "valign"],
80
- tbody: ["align", "valign"],
81
- td: ["width", "rowspan", "colspan", "align", "valign"],
82
- tfoot: ["align", "valign"],
83
- th: ["width", "rowspan", "colspan", "align", "valign"],
84
- thead: ["align", "valign"],
85
- tr: ["rowspan", "align", "valign"],
79
+ table: ["width", "border", "align", "valign", "class", "style"],
80
+ tbody: ["align", "valign", "class", "style"],
81
+ td: ["width", "rowspan", "colspan", "align", "valign", "class", "style"],
82
+ tfoot: ["align", "valign", "class", "style"],
83
+ th: ["width", "rowspan", "colspan", "align", "valign", "class", "style"],
84
+ thead: ["align", "valign", "class", "style"],
85
+ tr: ["rowspan", "align", "valign", "class", "style"],
86
86
  tt: ['style', 'class'],
87
87
  u: [],
88
88
  ul: ['style', 'class']
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-survey-builder",
3
- "version": "1.0.114",
3
+ "version": "1.0.115",
4
4
  "description": "A complete survey builder for react.",
5
5
  "main": "lib/index.js",
6
6
  "types": "types/index.d.ts",