pangea-lib 1.10.2 → 1.10.4

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/main.es.js CHANGED
@@ -14055,7 +14055,43 @@ const bI = (c, a) => {
14055
14055
  PgaIcon: hI,
14056
14056
  PgaSelect: NI
14057
14057
  }, Symbol.toStringTag, { value: "Module" }));
14058
- function kI(c) {
14058
+ function kI(c, a, e = "animate__") {
14059
+ return new Promise((r) => {
14060
+ const i = `${e}${a}`, f = document.querySelector(c);
14061
+ if (f) {
14062
+ f.classList.add(`${e}animated`, i);
14063
+ const s = (l) => {
14064
+ l.stopPropagation(), f == null || f.classList.remove(`${e}animated`, i), r("Animation ended");
14065
+ };
14066
+ f.addEventListener("animationend", s, { once: !0 });
14067
+ }
14068
+ });
14069
+ }
14070
+ const wI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14071
+ __proto__: null,
14072
+ animateCSS: kI
14073
+ }, Symbol.toStringTag, { value: "Module" }));
14074
+ function AI(c) {
14075
+ if (!c)
14076
+ return !1;
14077
+ let a = c;
14078
+ const e = ["http://", "https://"];
14079
+ for (const r of e)
14080
+ if (c.startsWith(r)) {
14081
+ a = c.replace(r, "");
14082
+ break;
14083
+ }
14084
+ return a = a.replace(/:(\d*)$/, ""), window.location.href.includes(a);
14085
+ }
14086
+ const yI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14087
+ __proto__: null,
14088
+ isCurrentUrl: AI
14089
+ }, Symbol.toStringTag, { value: "Module" })), BI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14090
+ __proto__: null,
14091
+ animationHelpers: wI,
14092
+ urlHelpers: yI
14093
+ }, Symbol.toStringTag, { value: "Module" }));
14094
+ function PI(c) {
14059
14095
  const a = E3;
14060
14096
  if (c) {
14061
14097
  for (const e in E3)
@@ -14072,19 +14108,20 @@ function kI(c) {
14072
14108
  }
14073
14109
  return a;
14074
14110
  }
14075
- function wI(c) {
14111
+ function FI(c) {
14076
14112
  const a = document.querySelector(":root");
14077
14113
  for (const e in c) {
14078
14114
  const r = c[e];
14079
14115
  a.style.setProperty(`--pga${e.charAt(0).toUpperCase()}${e.slice(1)}Color`, r);
14080
14116
  }
14081
14117
  }
14082
- const yI = (c, a) => {
14083
- const e = kI(a);
14084
- wI(e.colors), Object.entries(SI).forEach(([r, i]) => {
14118
+ const qI = (c, a) => {
14119
+ const e = PI(a);
14120
+ FI(e.colors), Object.entries(SI).forEach(([r, i]) => {
14085
14121
  c.component(r, i);
14086
14122
  });
14087
14123
  };
14088
14124
  export {
14089
- yI as default
14125
+ qI as default,
14126
+ BI as heleprs
14090
14127
  };
@@ -0,0 +1 @@
1
+ export declare function animateCSS(element: string, animation: string, prefix?: string): Promise<unknown>;
@@ -0,0 +1,2 @@
1
+ export * as animationHelpers from './animation';
2
+ export * as urlHelpers from './url';
@@ -0,0 +1 @@
1
+ export declare function isCurrentUrl(url: string): boolean;
@@ -1,5 +1,7 @@
1
1
  import { App } from 'vue';
2
2
  import { PangeaOptions } from './types/pangea-options';
3
3
 
4
+ import * as heleprs from './helpers';
4
5
  declare const _default: (app: App, userOptions?: PangeaOptions) => void;
5
6
  export default _default;
7
+ export { heleprs };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-lib",
3
- "version": "1.10.2",
4
3
  "description": "",
4
+ "version": "1.10.4",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
@@ -15,7 +15,8 @@
15
15
  "import": "./dist/main.es.js",
16
16
  "types": "./dist/types/main.d.ts"
17
17
  },
18
- "./style.css": "./dist/style.css"
18
+ "./style.css": "./dist/style.css",
19
+ "./package.json": "./package.json"
19
20
  },
20
21
  "types": "./dist/types/main.d.ts",
21
22
  "scripts": {