@inizioevoke/veeva-astroclm 1.1.9 → 1.1.11

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.
@@ -135,13 +135,14 @@ import { FlipCard } from '@inizioevoke/astro-core';
135
135
  ```
136
136
 
137
137
  Slots: `front`, `back`, `trigger`, `front-trigger`, `back-trigger`
138
- Props: `width?`, `height?`, plus any `div` HTML attributes
138
+ Props: `width?`, `height?`, `animation?` (default `true`; `false` = instant swap), `flipped?` (initial state, default `false`), plus any `div` HTML attributes
139
139
 
140
140
  **Client-side JS** (in a `<script>` block):
141
141
  ```ts
142
142
  import type { EvoFlipCardElement } from '@inizioevoke/astro-core/lib/FlipCard';
143
143
  const card = document.querySelector('evo-flip-card') as EvoFlipCardElement;
144
144
  card.toggle(); // or flipFront() / flipBack()
145
+ card.disableAnimation(); // or enableAnimation() / card.animation = false
145
146
  ```
146
147
 
147
148
  > For full CSS variable list and JS API details → read `docs/components/FlipCard.md`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@inizioevoke/veeva-astroclm",
3
3
  "type": "module",
4
- "version": "1.1.9",
4
+ "version": "1.1.11",
5
5
  "bin": "./bin/create.js",
6
6
  "scripts": {
7
7
  "start": "astro dev",
@@ -25,14 +25,14 @@
25
25
  "page-manager": "npx tsx ./tasks/page-manager.ts"
26
26
  },
27
27
  "dependencies": {
28
- "@astrojs/preact": "^6.1.2",
29
- "@inizioevoke/astro-core": "^3.3.3",
28
+ "@astrojs/preact": "^6.1.6",
29
+ "@inizioevoke/astro-core": "^3.4.0",
30
30
  "@inizioevoke/veeva-astroclm-core": "^1.4.9",
31
31
  "@inizioevoke/veeva-clmjs": "^1.0.1",
32
32
  "@inizioevoke/veeva-iva": "^1.4.1",
33
- "astro": "^7.4.7",
33
+ "astro": "^7.4.12",
34
34
  "preact": "^11.2.0",
35
- "sass": "^1.108.0"
35
+ "sass": "^1.108.2"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@astrojs/check": "^0.9.12",
@@ -83,7 +83,7 @@
83
83
 
84
84
  #veeva-reactions {
85
85
  left: 16px;
86
- top: 54px;
86
+ top: 68px;
87
87
  width: 12px;
88
88
  height: 88px;
89
89
 
@@ -98,6 +98,11 @@
98
98
  bottom: 30px;
99
99
  width: 34px;
100
100
  height: 30px;
101
+
102
+ .vault-crm & {
103
+ left: 10px;
104
+ bottom: 12px;
105
+ }
101
106
 
102
107
  img {
103
108
  width: 34px;
@@ -22,7 +22,8 @@ const bodyClass: (string | undefined)[] = [
22
22
  `target-${BUILD_TARGET}`,
23
23
  BUILD_TARGET === 'web' ? `web-${WEB_ENV}` : undefined,
24
24
  BUILD_TARGET === 'web' && WEB_SCALING ? 'web-scaling' : undefined,
25
- cssClass
25
+ cssClass,
26
+ VEEVA_PLATFORM === 'vault' ? 'vault-crm' : 'veeva-crm'
26
27
  ];
27
28
 
28
29
  const pathname = Astro.url.pathname;
@@ -97,6 +97,9 @@ a {
97
97
  outline: none;
98
98
  }
99
99
  }
100
+ button {
101
+ cursor: pointer;
102
+ }
100
103
 
101
104
  @for $i from 1 to 6 {
102
105
  h#{$i}, .h#{$i} {
@@ -56,3 +56,10 @@ export function pagePath(): string | undefined {
56
56
  export function veevaZip(): string | undefined {
57
57
  return document.querySelector('meta[property="veeva:zip"]')?.getAttribute('content') ?? undefined;
58
58
  }
59
+
60
+ export function pagePathToZip(path: string): string {
61
+ return `${path.replace(/\//g,'')}.zip`;
62
+ }
63
+ export function zipToPagePath(zip: string): string {
64
+ return `/${zip.replace(/\.zip$/, '')}/`;
65
+ }