@blockspoon/cert-badge-renderer 1.0.35 → 1.0.37

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,2 +1,2 @@
1
1
  import { ISvgProps } from "../../interface/index.js";
2
- export declare function createRibbonWing14({ mainColor, subColor, }: ISvgProps): string;
2
+ export declare function createRibbonWing15({ mainColor, subColor, }: ISvgProps): string;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createRibbonWing14 = createRibbonWing14;
4
- function createRibbonWing14({ mainColor = "#96A6B4", subColor = "#96A6B4", }) {
3
+ exports.createRibbonWing15 = createRibbonWing15;
4
+ function createRibbonWing15({ mainColor = "#96A6B4", subColor = "#96A6B4", }) {
5
5
  return `
6
6
  <svg
7
7
  width="100%"
@@ -1,2 +1,2 @@
1
1
  import { ISvgProps } from "../../interface/index.js";
2
- export declare function createRibbonWing14({ mainColor, subColor, }: ISvgProps): string;
2
+ export declare function createRibbonWing16({ mainColor, subColor, }: ISvgProps): string;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createRibbonWing14 = createRibbonWing14;
4
- function createRibbonWing14({ mainColor = "#96A6B4", subColor = "#96A6B4", }) {
3
+ exports.createRibbonWing16 = createRibbonWing16;
4
+ function createRibbonWing16({ mainColor = "#96A6B4", subColor = "#96A6B4", }) {
5
5
  return `
6
6
  <svg
7
7
  width="100%"
@@ -1,2 +1,2 @@
1
1
  import { ISvgProps } from "../../interface/index.js";
2
- export declare function createRibbonWing14({ mainColor, subColor, }: ISvgProps): string;
2
+ export declare function createRibbonWing17({ mainColor, subColor, }: ISvgProps): string;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createRibbonWing14 = createRibbonWing14;
4
- function createRibbonWing14({ mainColor = "#96A6B4", subColor = "#96A6B4", }) {
3
+ exports.createRibbonWing17 = createRibbonWing17;
4
+ function createRibbonWing17({ mainColor = "#96A6B4", subColor = "#96A6B4", }) {
5
5
  return `
6
6
  <svg
7
7
  width="100%"
@@ -61,6 +61,9 @@ import { createRibbonWing10 } from "./RibbonWing10.js";
61
61
  import { createRibbonWing11 } from "./RibbonWing11.js";
62
62
  import { createRibbonWing12 } from "./RibbonWing12.js";
63
63
  import { createRibbonWing14 } from "./RibbonWing14.js";
64
+ import { createRibbonWing15 } from "./RibbonWing15.js";
65
+ import { createRibbonWing16 } from "./RibbonWing16.js";
66
+ import { createRibbonWing17 } from "./RibbonWing17.js";
64
67
  import { createRibbonWing104 } from "./RibbonWing104.js";
65
68
  import { createRibbonWing105 } from "./RibbonWing105.js";
66
69
  import { createRibbonWing106 } from "./RibbonWing106.js";
@@ -128,6 +131,9 @@ declare const Ribbons: {
128
131
  RibbonWing11: typeof createRibbonWing11;
129
132
  RibbonWing12: typeof createRibbonWing12;
130
133
  RibbonWing14: typeof createRibbonWing14;
134
+ RibbonWing15: typeof createRibbonWing15;
135
+ RibbonWing16: typeof createRibbonWing16;
136
+ RibbonWing17: typeof createRibbonWing17;
131
137
  RibbonWing104: typeof createRibbonWing104;
132
138
  RibbonWing105: typeof createRibbonWing105;
133
139
  RibbonWing106: typeof createRibbonWing106;
@@ -63,6 +63,9 @@ const RibbonWing10_js_1 = require("./RibbonWing10.js");
63
63
  const RibbonWing11_js_1 = require("./RibbonWing11.js");
64
64
  const RibbonWing12_js_1 = require("./RibbonWing12.js");
65
65
  const RibbonWing14_js_1 = require("./RibbonWing14.js");
66
+ const RibbonWing15_js_1 = require("./RibbonWing15.js");
67
+ const RibbonWing16_js_1 = require("./RibbonWing16.js");
68
+ const RibbonWing17_js_1 = require("./RibbonWing17.js");
66
69
  const RibbonWing104_js_1 = require("./RibbonWing104.js");
67
70
  const RibbonWing105_js_1 = require("./RibbonWing105.js");
68
71
  const RibbonWing106_js_1 = require("./RibbonWing106.js");
@@ -132,6 +135,9 @@ const Ribbons = {
132
135
  RibbonWing11: RibbonWing11_js_1.createRibbonWing11,
133
136
  RibbonWing12: RibbonWing12_js_1.createRibbonWing12,
134
137
  RibbonWing14: RibbonWing14_js_1.createRibbonWing14,
138
+ RibbonWing15: RibbonWing15_js_1.createRibbonWing15,
139
+ RibbonWing16: RibbonWing16_js_1.createRibbonWing16,
140
+ RibbonWing17: RibbonWing17_js_1.createRibbonWing17,
135
141
  RibbonWing104: RibbonWing104_js_1.createRibbonWing104,
136
142
  RibbonWing105: RibbonWing105_js_1.createRibbonWing105,
137
143
  RibbonWing106: RibbonWing106_js_1.createRibbonWing106,
@@ -751,6 +751,18 @@ exports.ribbonTemplates = [
751
751
  id: "RibbonWing104",
752
752
  Component: index_js_2.default.RibbonWing104,
753
753
  },
754
+ {
755
+ id: "RibbonWing15",
756
+ Component: index_js_2.default.RibbonWing15,
757
+ },
758
+ {
759
+ id: "RibbonWing16",
760
+ Component: index_js_2.default.RibbonWing16,
761
+ },
762
+ {
763
+ id: "RibbonWing17",
764
+ Component: index_js_2.default.RibbonWing17,
765
+ },
754
766
  {
755
767
  id: "RibbonWing105",
756
768
  Component: index_js_2.default.RibbonWing105,
@@ -136,8 +136,8 @@ async function generateAchievementHTML(achievementInfo, options = {}) {
136
136
  : element.textAlign === "left"
137
137
  ? "flex-start"
138
138
  : "flex-end"};
139
- word-break: break-word;
140
- white-space: pre-wrap;
139
+ word-break: ${type === "badge" ? "break-word" : "normal"};
140
+ white-space: ${type === "badge" ? "pre" : "normal"};
141
141
  opacity: ${element.opacity || 1};
142
142
  `;
143
143
  if (element.controlType === "svg") {
@@ -136,8 +136,8 @@ async function generateDesignHTML(data, options = {}) {
136
136
  : element.textAlign === "left"
137
137
  ? "flex-start"
138
138
  : "flex-end"};
139
- word-break: break-word;
140
- white-space: pre-wrap;
139
+ word-break: ${isBadge ? "break-word" : "normal"};
140
+ white-space: ${isBadge ? "pre-wrap" : "normal"};
141
141
  opacity: ${element.opacity || 1};
142
142
  `;
143
143
  if (element.controlType === "svg") {
@@ -1,2 +1,2 @@
1
1
  import { ISvgProps } from "../../interface/index.js";
2
- export declare function createRibbonWing14({ mainColor, subColor, }: ISvgProps): string;
2
+ export declare function createRibbonWing15({ mainColor, subColor, }: ISvgProps): string;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createRibbonWing14 = createRibbonWing14;
4
- function createRibbonWing14({ mainColor = "#96A6B4", subColor = "#96A6B4", }) {
3
+ exports.createRibbonWing15 = createRibbonWing15;
4
+ function createRibbonWing15({ mainColor = "#96A6B4", subColor = "#96A6B4", }) {
5
5
  return `
6
6
  <svg
7
7
  width="100%"
@@ -1,2 +1,2 @@
1
1
  import { ISvgProps } from "../../interface/index.js";
2
- export declare function createRibbonWing14({ mainColor, subColor, }: ISvgProps): string;
2
+ export declare function createRibbonWing16({ mainColor, subColor, }: ISvgProps): string;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createRibbonWing14 = createRibbonWing14;
4
- function createRibbonWing14({ mainColor = "#96A6B4", subColor = "#96A6B4", }) {
3
+ exports.createRibbonWing16 = createRibbonWing16;
4
+ function createRibbonWing16({ mainColor = "#96A6B4", subColor = "#96A6B4", }) {
5
5
  return `
6
6
  <svg
7
7
  width="100%"
@@ -1,2 +1,2 @@
1
1
  import { ISvgProps } from "../../interface/index.js";
2
- export declare function createRibbonWing14({ mainColor, subColor, }: ISvgProps): string;
2
+ export declare function createRibbonWing17({ mainColor, subColor, }: ISvgProps): string;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createRibbonWing14 = createRibbonWing14;
4
- function createRibbonWing14({ mainColor = "#96A6B4", subColor = "#96A6B4", }) {
3
+ exports.createRibbonWing17 = createRibbonWing17;
4
+ function createRibbonWing17({ mainColor = "#96A6B4", subColor = "#96A6B4", }) {
5
5
  return `
6
6
  <svg
7
7
  width="100%"
@@ -61,6 +61,9 @@ import { createRibbonWing10 } from "./RibbonWing10.js";
61
61
  import { createRibbonWing11 } from "./RibbonWing11.js";
62
62
  import { createRibbonWing12 } from "./RibbonWing12.js";
63
63
  import { createRibbonWing14 } from "./RibbonWing14.js";
64
+ import { createRibbonWing15 } from "./RibbonWing15.js";
65
+ import { createRibbonWing16 } from "./RibbonWing16.js";
66
+ import { createRibbonWing17 } from "./RibbonWing17.js";
64
67
  import { createRibbonWing104 } from "./RibbonWing104.js";
65
68
  import { createRibbonWing105 } from "./RibbonWing105.js";
66
69
  import { createRibbonWing106 } from "./RibbonWing106.js";
@@ -128,6 +131,9 @@ declare const Ribbons: {
128
131
  RibbonWing11: typeof createRibbonWing11;
129
132
  RibbonWing12: typeof createRibbonWing12;
130
133
  RibbonWing14: typeof createRibbonWing14;
134
+ RibbonWing15: typeof createRibbonWing15;
135
+ RibbonWing16: typeof createRibbonWing16;
136
+ RibbonWing17: typeof createRibbonWing17;
131
137
  RibbonWing104: typeof createRibbonWing104;
132
138
  RibbonWing105: typeof createRibbonWing105;
133
139
  RibbonWing106: typeof createRibbonWing106;
@@ -63,6 +63,9 @@ const RibbonWing10_js_1 = require("./RibbonWing10.js");
63
63
  const RibbonWing11_js_1 = require("./RibbonWing11.js");
64
64
  const RibbonWing12_js_1 = require("./RibbonWing12.js");
65
65
  const RibbonWing14_js_1 = require("./RibbonWing14.js");
66
+ const RibbonWing15_js_1 = require("./RibbonWing15.js");
67
+ const RibbonWing16_js_1 = require("./RibbonWing16.js");
68
+ const RibbonWing17_js_1 = require("./RibbonWing17.js");
66
69
  const RibbonWing104_js_1 = require("./RibbonWing104.js");
67
70
  const RibbonWing105_js_1 = require("./RibbonWing105.js");
68
71
  const RibbonWing106_js_1 = require("./RibbonWing106.js");
@@ -132,6 +135,9 @@ const Ribbons = {
132
135
  RibbonWing11: RibbonWing11_js_1.createRibbonWing11,
133
136
  RibbonWing12: RibbonWing12_js_1.createRibbonWing12,
134
137
  RibbonWing14: RibbonWing14_js_1.createRibbonWing14,
138
+ RibbonWing15: RibbonWing15_js_1.createRibbonWing15,
139
+ RibbonWing16: RibbonWing16_js_1.createRibbonWing16,
140
+ RibbonWing17: RibbonWing17_js_1.createRibbonWing17,
135
141
  RibbonWing104: RibbonWing104_js_1.createRibbonWing104,
136
142
  RibbonWing105: RibbonWing105_js_1.createRibbonWing105,
137
143
  RibbonWing106: RibbonWing106_js_1.createRibbonWing106,
@@ -751,6 +751,18 @@ exports.ribbonTemplates = [
751
751
  id: "RibbonWing104",
752
752
  Component: index_js_2.default.RibbonWing104,
753
753
  },
754
+ {
755
+ id: "RibbonWing15",
756
+ Component: index_js_2.default.RibbonWing15,
757
+ },
758
+ {
759
+ id: "RibbonWing16",
760
+ Component: index_js_2.default.RibbonWing16,
761
+ },
762
+ {
763
+ id: "RibbonWing17",
764
+ Component: index_js_2.default.RibbonWing17,
765
+ },
754
766
  {
755
767
  id: "RibbonWing105",
756
768
  Component: index_js_2.default.RibbonWing105,
@@ -136,8 +136,8 @@ async function generateAchievementHTML(achievementInfo, options = {}) {
136
136
  : element.textAlign === "left"
137
137
  ? "flex-start"
138
138
  : "flex-end"};
139
- word-break: break-word;
140
- white-space: pre-wrap;
139
+ word-break: ${type === "badge" ? "break-word" : "normal"};
140
+ white-space: ${type === "badge" ? "pre" : "normal"};
141
141
  opacity: ${element.opacity || 1};
142
142
  `;
143
143
  if (element.controlType === "svg") {
@@ -136,8 +136,8 @@ async function generateDesignHTML(data, options = {}) {
136
136
  : element.textAlign === "left"
137
137
  ? "flex-start"
138
138
  : "flex-end"};
139
- word-break: break-word;
140
- white-space: pre-wrap;
139
+ word-break: ${isBadge ? "break-word" : "normal"};
140
+ white-space: ${isBadge ? "pre-wrap" : "normal"};
141
141
  opacity: ${element.opacity || 1};
142
142
  `;
143
143
  if (element.controlType === "svg") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockspoon/cert-badge-renderer",
3
- "version": "1.0.35",
3
+ "version": "1.0.37",
4
4
  "description": "Render certificate and badge designs from Kolleges achievement data into HTML, PNG, or Base64.",
5
5
  "main": "./dist/esm/index.js",
6
6
  "exports": {
@@ -187,7 +187,7 @@ export async function generateAchievementHTML(
187
187
  : "flex-end"
188
188
  };
189
189
  word-break: ${type === "badge" ? "break-word" : "normal"};
190
- white-space: ${type === "badge" ? "pre-wrap" : "normal"};
190
+ white-space: ${type === "badge" ? "pre" : "normal"};
191
191
  opacity: ${element.opacity || 1};
192
192
  `;
193
193