@qrvey/utils 1.16.0-25 → 1.16.0-27

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.
@@ -1,3 +1,3 @@
1
1
  export * from "./gridStrategy";
2
- export { updateFixedElementWidth } from "./fixed";
2
+ export { updateFixedElementWidth, findFixedAvailablePositions } from "./fixed";
3
3
  export { updateResponsiveElementColSpan } from "./responsive";
@@ -14,9 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.updateResponsiveElementColSpan = exports.updateFixedElementWidth = void 0;
17
+ exports.updateResponsiveElementColSpan = exports.findFixedAvailablePositions = exports.updateFixedElementWidth = void 0;
18
18
  __exportStar(require("./gridStrategy"), exports);
19
19
  var fixed_1 = require("./fixed");
20
20
  Object.defineProperty(exports, "updateFixedElementWidth", { enumerable: true, get: function () { return fixed_1.updateFixedElementWidth; } });
21
+ Object.defineProperty(exports, "findFixedAvailablePositions", { enumerable: true, get: function () { return fixed_1.findFixedAvailablePositions; } });
21
22
  var responsive_1 = require("./responsive");
22
23
  Object.defineProperty(exports, "updateResponsiveElementColSpan", { enumerable: true, get: function () { return responsive_1.updateResponsiveElementColSpan; } });
@@ -3,7 +3,9 @@
3
3
  * @param domain Qrvey domain
4
4
  * @param root0 Optional parameters
5
5
  * @param root0.styleId Optional styleId for the style tag
6
+ * @param root0.nonce Optional nonce attribute for csp.
6
7
  */
7
- export declare function loadDefaultQrveyFonts(domain: string, { styleId: _styleId }?: {
8
+ export declare function loadDefaultQrveyFonts(domain: string, { styleId: _styleId, nonce }?: {
8
9
  styleId?: string;
10
+ nonce?: string;
9
11
  }): void;
@@ -7,8 +7,9 @@ exports.loadDefaultQrveyFonts = void 0;
7
7
  * @param domain Qrvey domain
8
8
  * @param root0 Optional parameters
9
9
  * @param root0.styleId Optional styleId for the style tag
10
+ * @param root0.nonce Optional nonce attribute for csp.
10
11
  */
11
- function loadDefaultQrveyFonts(domain, { styleId: _styleId } = {}) {
12
+ function loadDefaultQrveyFonts(domain, { styleId: _styleId, nonce } = {}) {
12
13
  if (!domain)
13
14
  return;
14
15
  const styleId = _styleId !== null && _styleId !== void 0 ? _styleId : "qrvey-font-styles";
@@ -18,6 +19,7 @@ function loadDefaultQrveyFonts(domain, { styleId: _styleId } = {}) {
18
19
  return;
19
20
  // Import new styles
20
21
  const style = document.createElement("style");
22
+ style.nonce = nonce;
21
23
  style.id = styleId;
22
24
  style.textContent = `
23
25
  @import url('${domain}/cdn/fonts/Roboto/roboto.css');
@@ -1,3 +1,3 @@
1
1
  export * from "./gridStrategy";
2
- export { updateFixedElementWidth } from "./fixed";
2
+ export { updateFixedElementWidth, findFixedAvailablePositions } from "./fixed";
3
3
  export { updateResponsiveElementColSpan } from "./responsive";
@@ -1,3 +1,3 @@
1
1
  export * from "./gridStrategy";
2
- export { updateFixedElementWidth } from "./fixed";
2
+ export { updateFixedElementWidth, findFixedAvailablePositions } from "./fixed";
3
3
  export { updateResponsiveElementColSpan } from "./responsive";
@@ -3,7 +3,9 @@
3
3
  * @param domain Qrvey domain
4
4
  * @param root0 Optional parameters
5
5
  * @param root0.styleId Optional styleId for the style tag
6
+ * @param root0.nonce Optional nonce attribute for csp.
6
7
  */
7
- export declare function loadDefaultQrveyFonts(domain: string, { styleId: _styleId }?: {
8
+ export declare function loadDefaultQrveyFonts(domain: string, { styleId: _styleId, nonce }?: {
8
9
  styleId?: string;
10
+ nonce?: string;
9
11
  }): void;
@@ -4,8 +4,9 @@
4
4
  * @param domain Qrvey domain
5
5
  * @param root0 Optional parameters
6
6
  * @param root0.styleId Optional styleId for the style tag
7
+ * @param root0.nonce Optional nonce attribute for csp.
7
8
  */
8
- export function loadDefaultQrveyFonts(domain, { styleId: _styleId } = {}) {
9
+ export function loadDefaultQrveyFonts(domain, { styleId: _styleId, nonce } = {}) {
9
10
  if (!domain)
10
11
  return;
11
12
  const styleId = _styleId !== null && _styleId !== void 0 ? _styleId : "qrvey-font-styles";
@@ -15,6 +16,7 @@ export function loadDefaultQrveyFonts(domain, { styleId: _styleId } = {}) {
15
16
  return;
16
17
  // Import new styles
17
18
  const style = document.createElement("style");
19
+ style.nonce = nonce;
18
20
  style.id = styleId;
19
21
  style.textContent = `
20
22
  @import url('${domain}/cdn/fonts/Roboto/roboto.css');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qrvey/utils",
3
- "version": "1.16.0-25",
3
+ "version": "1.16.0-27",
4
4
  "description": "Helper, Utils for all Qrvey Projects",
5
5
  "homepage": "https://bitbucket.org/qrvey/qrvey_utils/wiki/Home",
6
6
  "main": "dist/index.js",