@m2s2/vue-lib 2.5.1 → 2.5.2

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/index79.cjs CHANGED
@@ -1,5 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=[{label:"Heading 2",icon:"H2",prefix:"## "},{label:"Heading 3",icon:"H3",prefix:"### "},{label:"Bold",icon:"B",wrap:["**","**"]},{label:"Italic",icon:"I",wrap:["*","*"]},{label:"Inline code",icon:"`",wrap:["`","`"]},{label:"Code block",icon:"{ }",block:"\n```\n\n```\n"},{label:"Blockquote",icon:"❝",prefix:"> "},{label:"Link",icon:"⇗",wrap:["[","](url)"]},{label:"Image",icon:"⬚",block:`![alt text](image-url)
2
- `},{label:"Bullet list",icon:"•–",prefix:"- "},{label:"Numbered list",icon:"1.",prefix:"1. "},{label:"Divider",icon:"—",block:`
3
- ---
4
-
5
- `}];exports.BLOG_EDITOR_TOOLBAR=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function i(e){return t.test(e.trim())}exports.EMAIL_REGEX=t;exports.validateEmail=i;
package/dist/index79.mjs CHANGED
@@ -1,21 +1,8 @@
1
- const l = [
2
- { label: "Heading 2", icon: "H2", prefix: "## " },
3
- { label: "Heading 3", icon: "H3", prefix: "### " },
4
- { label: "Bold", icon: "B", wrap: ["**", "**"] },
5
- { label: "Italic", icon: "I", wrap: ["*", "*"] },
6
- { label: "Inline code", icon: "`", wrap: ["`", "`"] },
7
- { label: "Code block", icon: "{ }", block: "\n```\n\n```\n" },
8
- { label: "Blockquote", icon: "❝", prefix: "> " },
9
- { label: "Link", icon: "⇗", wrap: ["[", "](url)"] },
10
- { label: "Image", icon: "⬚", block: `![alt text](image-url)
11
- ` },
12
- { label: "Bullet list", icon: "•–", prefix: "- " },
13
- { label: "Numbered list", icon: "1.", prefix: "1. " },
14
- { label: "Divider", icon: "—", block: `
15
- ---
16
-
17
- ` }
18
- ];
1
+ const s = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
2
+ function e(t) {
3
+ return s.test(t.trim());
4
+ }
19
5
  export {
20
- l as BLOG_EDITOR_TOOLBAR
6
+ s as EMAIL_REGEX,
7
+ e as validateEmail
21
8
  };
package/dist/index80.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),o={key:0,class:"social-icon",viewBox:"0 0 98 96",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",fill:"currentColor"},n={key:1,class:"social-icon",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",fill:"currentColor"},r={key:2,class:"social-icon",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",fill:"currentColor"},i={key:3,class:"social-icon",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",fill:"currentColor"},c=e.defineComponent({__name:"SocialIcon",props:{type:{}},setup(l){return(s,t)=>l.type==="github"?(e.openBlock(),e.createElementBlock("svg",o,[...t[0]||(t[0]=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z"},null,-1)])])):l.type==="linkedin"?(e.openBlock(),e.createElementBlock("svg",n,[...t[1]||(t[1]=[e.createElementVNode("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"},null,-1)])])):l.type==="twitter"?(e.openBlock(),e.createElementBlock("svg",r,[...t[2]||(t[2]=[e.createElementVNode("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.747l7.73-8.835L1.254 2.25H8.08l4.253 5.622 5.91-5.622Zm-1.161 17.52h1.833L7.084 4.126H5.117z"},null,-1)])])):l.type==="email"?(e.openBlock(),e.createElementBlock("svg",i,[...t[3]||(t[3]=[e.createElementVNode("path",{d:"M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z"},null,-1)])])):e.createCommentVNode("",!0)}});module.exports=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function l(e,t){return e==="all"?"All":t[e]??e}exports.getStatusLabel=l;
package/dist/index80.mjs CHANGED
@@ -1,53 +1,6 @@
1
- import { defineComponent as i, openBlock as l, createElementBlock as o, createElementVNode as n, createCommentVNode as r } from "vue";
2
- const s = {
3
- key: 0,
4
- class: "social-icon",
5
- viewBox: "0 0 98 96",
6
- xmlns: "http://www.w3.org/2000/svg",
7
- "aria-hidden": "true",
8
- fill: "currentColor"
9
- }, c = {
10
- key: 1,
11
- class: "social-icon",
12
- viewBox: "0 0 24 24",
13
- xmlns: "http://www.w3.org/2000/svg",
14
- "aria-hidden": "true",
15
- fill: "currentColor"
16
- }, d = {
17
- key: 2,
18
- class: "social-icon",
19
- viewBox: "0 0 24 24",
20
- xmlns: "http://www.w3.org/2000/svg",
21
- "aria-hidden": "true",
22
- fill: "currentColor"
23
- }, a = {
24
- key: 3,
25
- class: "social-icon",
26
- viewBox: "0 0 24 24",
27
- xmlns: "http://www.w3.org/2000/svg",
28
- "aria-hidden": "true",
29
- fill: "currentColor"
30
- }, u = /* @__PURE__ */ i({
31
- __name: "SocialIcon",
32
- props: {
33
- type: {}
34
- },
35
- setup(t) {
36
- return (v, e) => t.type === "github" ? (l(), o("svg", s, [...e[0] || (e[0] = [
37
- n("path", {
38
- "fill-rule": "evenodd",
39
- "clip-rule": "evenodd",
40
- d: "M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z"
41
- }, null, -1)
42
- ])])) : t.type === "linkedin" ? (l(), o("svg", c, [...e[1] || (e[1] = [
43
- n("path", { d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" }, null, -1)
44
- ])])) : t.type === "twitter" ? (l(), o("svg", d, [...e[2] || (e[2] = [
45
- n("path", { d: "M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.747l7.73-8.835L1.254 2.25H8.08l4.253 5.622 5.91-5.622Zm-1.161 17.52h1.833L7.084 4.126H5.117z" }, null, -1)
46
- ])])) : t.type === "email" ? (l(), o("svg", a, [...e[3] || (e[3] = [
47
- n("path", { d: "M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z" }, null, -1)
48
- ])])) : r("", !0);
49
- }
50
- });
1
+ function r(e, l) {
2
+ return e === "all" ? "All" : l[e] ?? e;
3
+ }
51
4
  export {
52
- u as default
5
+ r as getStatusLabel
53
6
  };
package/dist/index81.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index80.cjs");module.exports=e;
1
+ "use strict";const e=require("./index75.cjs");module.exports=e;
package/dist/index81.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import f from "./index80.mjs";
1
+ import f from "./index75.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m2s2/vue-lib",
3
- "version": "2.5.1",
3
+ "version": "2.5.2",
4
4
  "description": "Vue 3 component library by M²S² Engineering Group.",
5
5
  "author": "M²S² Engineering Group <contact@m2s2.io>",
6
6
  "license": "MIT",
@@ -44,6 +44,9 @@
44
44
  "build:storybook": "storybook build -o ../../dist/storybook/vue"
45
45
  },
46
46
  "dependencies": {
47
+ "@m2s2/models": "2.4.1",
48
+ "@m2s2/tokens": "2.2.2",
49
+ "@m2s2/utils": "1.0.0",
47
50
  "marked": "^17.0.0"
48
51
  },
49
52
  "peerDependencies": {