@inizioevoke/veeva-astroclm 1.1.10 → 1.1.12

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`
@@ -21,12 +21,14 @@ Before using any free-text value (product name, presentation name, presentation
21
21
 
22
22
  Tell the user that some information is required to generate the config file. Gather **all** of the following before writing any files.
23
23
 
24
+ Before asking any questions, generate the 8-char random string used for the external ID (see [Generating IDs](#generating-ids)) and keep it. It is reused for the suggested Presentation ID in step 2 and for the external ID prefix in the output, so the two share the same random characters.
25
+
24
26
  Ask the free-text questions one at a time (steps 1–2). The predefined-option questions in step 3 are batched into a single `AskUserQuestion` call — that's intentional, since `AskUserQuestion` natively supports multiple questions per call. The Disable questions (step 4) are a separate `AskUserQuestion` call with three multi-select groups.
25
27
 
26
28
  Apply the [Clean input rule](#clean-input-rule) to every free-text value as you receive it.
27
29
 
28
30
  1. Ask for the `Product name` and `Presentation name` (one at a time).
29
- 2. Ask for the `Presentation ID`. Suggest a value derived from the cleaned `Presentation name`: lowercased, with any non-alphanumeric character replaced by `_`. Ask the user to confirm or enter a new value.
31
+ 2. Ask for the `Presentation ID`. Suggest a value derived from the cleaned `Presentation name`: lowercased, with any non-alphanumeric character replaced by `_`, followed by `_` and the pre-generated 8-char random string from the external ID, lowercased. Example: presentation `My Deck` with random string `3K9BW12X` → `my_deck_3k9bw12x`. Ask the user to confirm or enter a new value.
30
32
  3. Call `AskUserQuestion` with one call containing the following three questions in order (all single-select):
31
33
  - **Dimensions**
32
34
  - Question: Select the IVA dimensions
@@ -68,7 +70,7 @@ If `Other` is selected for `Dimensions`, `Resolution`, `Platform`, or any of the
68
70
 
69
71
  You will need two kinds of random IDs. Implement them inline with JavaScript/TypeScript logic or generate them yourself:
70
72
 
71
- - **External ID prefix**: First 3 chars of `product` (uppercased) + `_` + an 8-char alphanumeric random string (uppercase A–Z, 0–9). If the cleaned product name is shorter than 3 chars, right-pad with `_` to reach 3 chars before uppercasing.
73
+ - **External ID prefix**: First 3 chars of `product` (uppercased) + `_` + an 8-char alphanumeric random string (uppercase A–Z, 0–9). Generate the 8-char random string once, at the start (before asking questions), and reuse that same string here and in the suggested Presentation ID. If the cleaned product name is shorter than 3 chars, right-pad with `_` to reach 3 chars before uppercasing.
72
74
  Example: product `Velorixin` → `VEL_3K9BW12X`
73
75
  Example: product `Ox` → `OX__3K9BW12X`
74
76
  - **Per-slide ID**: An independent 8-char alphanumeric random string for each slide, unique within the set.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@inizioevoke/veeva-astroclm",
3
3
  "type": "module",
4
- "version": "1.1.10",
4
+ "version": "1.1.12",
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",
30
- "@inizioevoke/veeva-astroclm-core": "^1.4.9",
28
+ "@astrojs/preact": "^6.1.6",
29
+ "@inizioevoke/astro-core": "^3.4.0",
30
+ "@inizioevoke/veeva-astroclm-core": "^1.4.10",
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",
@@ -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;