cec-nuxt-lib 0.13.2 → 0.13.3

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cec-nuxt-lib",
3
3
  "configKey": "cec-nuxt-lib",
4
- "version": "0.13.2",
4
+ "version": "0.13.3",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "3.5.0"
@@ -2,7 +2,12 @@
2
2
  import { useState } from "#app";
3
3
  import { createRenderer, text } from "@contensis/canvas-html";
4
4
  const getCanvas = (data) => renderer({ data });
5
- const { toCamelCase } = useGrantFunded();
5
+ const toCamelCase = (str) => {
6
+ const arr = str.replace(/[^a-zA-Z0-9\s]/g, "").split(" ");
7
+ return arr.length === 1 ? arr[0] : arr.map(
8
+ (s, i) => !i ? s.toLowerCase() : `${s[0].toUpperCase()}${s.slice(1).toLowerCase()}`
9
+ ).join("");
10
+ };
6
11
  const page = useState("page");
7
12
  let canvasHtml;
8
13
  const props = defineProps({
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.13.2",
2
+ "version": "0.13.3",
3
3
  "name": "cec-nuxt-lib",
4
4
  "description": "Nuxt components and assets",
5
5
  "license": "MIT",