@inizioevoke/veeva-astroclm 1.0.2 → 1.1.1

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/README.md CHANGED
@@ -1,43 +1,263 @@
1
- # Astro Starter Kit: Minimal
1
+ # @inizioevoke/veeva-astroclm
2
2
 
3
- ```sh
4
- npm create astro@latest -- --template minimal
3
+ Scaffolding for an @inizioevoke/veeva-astroclm project — an [Astro](https://astro.build)-based framework for building Veeva CLM presentations.
4
+
5
+ Install in current directory
6
+ ```
7
+ npx --yes @inizioevoke/veeva-astroclm@latest
8
+ ```
9
+
10
+ Install in target directory
11
+ ```
12
+ npx --yes @inizioevoke/veeva-astroclm@latest [target]
13
+ ```
14
+
15
+ ## Templates
16
+
17
+ When run, the scaffolder prompts you to pick a template:
18
+
19
+ - **Standard template** (default) — includes `GlobalLayout`
20
+ - **Left nav template** — includes `GlobalLayout` and `LeftNavLayout`
21
+ - **Top nav template** — includes `GlobalLayout` and `TopNavLayout`
22
+ - **Empty template** — no layouts
23
+
24
+ Skip the prompt with the `--template` flag:
25
+ ```
26
+ npx --yes @inizioevoke/veeva-astroclm@latest [target] --template <name>
27
+ ```
28
+
29
+ Valid values: `standard`, `left-nav`, `top-nav`, `empty`.
30
+
31
+ ---
32
+
33
+ ## Project structure
34
+
35
+ ```
36
+ .
37
+ ├── astro.config.ts Astro config + env schema + pruneBuild integration
38
+ ├── veeva-config.ts Presentation metadata, slides, binder fields (created via veeva-config)
39
+ ├── veeva-metadata.js Browser-console script that bulk-updates Veeva PromoMats fields
40
+ ├── .env.development LOG_LEVEL, WEB_ENV, WEB_SCALING for `astro dev`
41
+ ├── .env.veeva-client BUILD_TARGET for client builds/deploys
42
+ ├── .env.veeva-client-training BUILD_TARGET + VEEVA_TRAINING for training builds
43
+ ├── .env.veeva-evoke BUILD_TARGET + VEEVA_ENV="evoke" for internal builds
44
+ ├── bin/create.js Scaffolder entry point
45
+ ├── tasks/
46
+ │ ├── page-manager.ts Interactive page scaffolder
47
+ │ ├── veeva-config.ts Interactive veeva-config.ts generator/updater
48
+ │ └── veeva-deploy.ts Deploys built output to Veeva
49
+ ├── public/shared/ Static assets served under /shared/
50
+ └── src/
51
+ ├── pages/ Astro route entries (one file per slide)
52
+ ├── contents/ Per-slide content modules imported by pages
53
+ ├── layouts/ GlobalLayout, LeftNavLayout, TopNavLayout, ...
54
+ ├── components/ Project components (content, isi, nav, ui)
55
+ ├── data/pages.tsx Page registry / nav data
56
+ ├── lib/{client,server}/ Shared client + server helpers (IVA config lives here)
57
+ ├── scss/ Shared SCSS (_mixins, _variables, ipads.scss)
58
+ └── shared/img/ Shared image assets
59
+ ```
60
+
61
+ ### Pages and contents
62
+
63
+ Each slide is split in two:
64
+
65
+ - [src/pages/\<name\>.astro](src/pages/) — thin Astro route that imports the content module.
66
+ - [src/contents/\<path\>/\<name\>.astro](src/contents/) — the actual slide (layout + markup), paired with a sibling `.scss` and `.ts`.
67
+
68
+ A page at `src/pages/about-moa.astro` typically imports from `src/contents/about/moa.astro`. The `page-manager` task (below) wires this up automatically.
69
+
70
+ ---
71
+
72
+ ## Development
73
+
74
+ Start the Astro dev server:
75
+ ```
76
+ npm run dev
77
+ ```
78
+
79
+ The root path `/` redirects to `/home/` (see [astro.config.ts](astro.config.ts)).
80
+
81
+ Dev env lives in `.env.development`. Useful knobs:
82
+ - `LOG_LEVEL` — `debug`, `info`, `warn`, `error`
83
+ - `WEB_ENV` — set to `production` to simulate a production build locally
84
+ - `WEB_SCALING` — when `true`, the resize script is included if `<ResizeScript />` is present in the layout
85
+
86
+ ---
87
+
88
+ ## Creating pages
89
+
90
+ ### Manual
91
+
92
+ Given a page path like `about/moa`:
93
+
94
+ 1. Create `src/pages/about-moa.astro`:
95
+ ```astro
96
+ ---
97
+ import Page from '@/contents/about/moa.astro';
98
+ ---
99
+ <Page />
100
+ ```
101
+ 2. Create `src/contents/about/moa.astro`:
102
+ ```astro
103
+ ---
104
+ import GlobalLayout from '@/layouts/GlobalLayout/GlobalLayout.astro';
105
+
106
+ import './moa.scss';
107
+ ---
108
+ <GlobalLayout>
109
+ <!-- slide content -->
110
+
111
+ <script>
112
+ import './moa';
113
+ </script>
114
+ </GlobalLayout>
115
+ ```
116
+ 3. Create empty `src/contents/about/moa.scss` and `src/contents/about/moa.ts`.
117
+ 4. If a [veeva-config.ts](veeva-config.ts) exists, add a corresponding entry to `presentation.slides` (see [Veeva config](#veeva-config) below).
118
+
119
+ ### Interactive
120
+
121
+ ```
122
+ npm run page-manager
5
123
  ```
6
124
 
7
- > 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
125
+ Prompts for the page path and layout, writes the four files above, and offers to add a slide entry to `veeva-config.ts`.
8
126
 
9
- ## 🚀 Project Structure
127
+ Bulk scaffold multiple pages at once by creating `_contents.yml` in the project root with a list of paths (see [_contents.yml.example](_contents.yml.example)) before running the task.
10
128
 
11
- Inside of your Astro project, you'll see the following folders and files:
129
+ > As an alternative, Claude Code users with the `evoke-page-manager` skill installed can ask Claude to create the page — the skill drives the same flow.
12
130
 
13
- ```text
14
- /
15
- ├── public/
16
- ├── src/
17
- │ └── pages/
18
- │ └── index.astro
19
- └── package.json
131
+ ---
132
+
133
+ ## Veeva config
134
+
135
+ [veeva-config.ts](veeva-config.ts) describes the presentation to Veeva: dimensions, iOS resolution, platform (`Salesforce` or `Vault`), disabled actions (`Swipe`, `Zoom`, etc.), binder fields, and the slide list. [tasks/veeva-deploy.ts](tasks/veeva-deploy.ts) and the build pipeline both consume it.
136
+
137
+ ### Creating it
138
+
139
+ ```
140
+ npm run veeva-config
141
+ ```
142
+
143
+ On first run, it prompts for product name, presentation name/ID, IVA dimensions (`1024 × 768`, `1366 × 1024`, `1376 × 1032`), iOS resolution, target platform, and which Veeva features to disable. It then writes `veeva-config.ts` to the project root with one slide entry per file in `src/pages/`.
144
+
145
+ ### Keeping it in sync
146
+
147
+ Re-run the same command to audit `veeva-config.ts` against `src/pages/`. It reports:
148
+ - **Missing slides** — pages in `src/pages/` with no entry in `slides`
149
+ - **Extraneous slides** — entries in `slides` whose `path` has no matching page
150
+
151
+ You can add missing slides, and remove or comment out extraneous ones.
152
+
153
+ ### Shape
154
+
155
+ ```ts
156
+ export default function ({ veevaEnv = 'client', isTraining = false }: IVeevaConfigArgs = {}): IVeevaConfig {
157
+ return {
158
+ dimensions: { width: 1366, height: 1024 },
159
+ presentation: {
160
+ externalId: 'PRD_3K9BW12X',
161
+ presentationId: 'my_presentation',
162
+ product: 'My Product',
163
+ name: 'My Presentation',
164
+ country: 'United States',
165
+ crmTarget: 'Salesforce',
166
+ // ...binderFields
167
+ slideSettings: {
168
+ mediaType: 'HTML',
169
+ disableActions: ['Swipe', 'Zoom'],
170
+ iosResolution: 'Default For Device'
171
+ },
172
+ slides: [
173
+ { path: 'home', title: 'Home', externalId: formatExtId('3K9BW12X') }
174
+ ]
175
+ }
176
+ };
177
+ }
20
178
  ```
21
179
 
22
- Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
180
+ The exported function receives `{ veevaEnv, isTraining }` from the deploy task and conditionally shapes the config (e.g. appending `_TRN` to IDs for training, swapping binder fields for `evoke` builds).
181
+
182
+ > As an alternative, Claude Code users with the `evoke-veeva-config-manager` skill installed can ask Claude to create or sync the config.
183
+
184
+ ---
185
+
186
+ ## Building
187
+
188
+ Three build targets are available, each binds to a different `.env.*` file via `--mode`:
189
+
190
+ | Script | Mode | Env file | Purpose |
191
+ |---|---|---|---|
192
+ | `npm run build-client` | `veeva-client` | `.env.veeva-client` | Production build for the client's Veeva org |
193
+ | `npm run build-client-training` | `veeva-client-training` | `.env.veeva-client-training` | Training variant (`VEEVA_TRAINING=true`) |
194
+ | `npm run build-evoke` | `veeva-evoke` | `.env.veeva-evoke` | Internal Evoke build (`VEEVA_ENV=evoke`) |
195
+
196
+ `npm run build` runs an untargeted Astro build. Preview any build with `npm run preview`.
197
+
198
+ Supported env vars (schema defined in [astro.config.ts](astro.config.ts)):
199
+ - `BUILD_TARGET` — `veeva` for Veeva builds
200
+ - `VEEVA_ENV` — `client` (default) or `evoke`
201
+ - `VEEVA_PLATFORM` — override the config's target platform
202
+ - `VEEVA_TRAINING` — `true` for training builds
203
+ - `WEB_ENV`, `WEB_SCALING` — web-mode knobs
204
+ - `LOG_LEVEL`, `LOG_OUTPUT`, `LOG_TIME` — logging
205
+
206
+ The `pruneBuild` integration from [@inizioevoke/astro-core](https://www.npmjs.com/package/@inizioevoke/astro-core) removes unused assets from the build output.
23
207
 
24
- There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
208
+ ---
25
209
 
26
- Any static assets, like images, can be placed in the `public/` directory.
210
+ ## Deploying to Veeva
211
+
212
+ ```
213
+ npm run deploy-client # client org
214
+ npm run deploy-client-training # client training
215
+ npm run deploy-evoke # evoke internal
216
+ ```
217
+
218
+ Each runs [tasks/veeva-deploy.ts](tasks/veeva-deploy.ts), which reads the matching `.env.*` and uploads the build output to Veeva.
219
+
220
+ Combined build + deploy shortcuts:
221
+ ```
222
+ npm run veeva # build-client + deploy-client
223
+ npm run veeva-training # build-client-training + deploy-client-training
224
+ npm run veeva-evoke # build-evoke + deploy-evoke
225
+ ```
226
+
227
+ CSV-only variants (push the slide manifest without re-uploading the HTML):
228
+ ```
229
+ npm run veeva-csv
230
+ npm run veeva-training-csv
231
+ npm run veeva-evoke-csv
232
+ ```
233
+
234
+ ### Bulk-updating Veeva metadata
235
+
236
+ After a deploy, you often need to update metadata on each uploaded slide in Veeva PromoMats (expiration dates, CRM sharing settings, approved material relationships, lifecycle status). [veeva-metadata.js](veeva-metadata.js) is a browser-console script for this:
237
+
238
+ 1. Open the presentation in Veeva PromoMats in Chrome.
239
+ 2. Edit the `data` object at the top of the file (expiration dates, CRM sharing teams, approved material codes, status, etc.).
240
+ 3. Paste the whole script into DevTools and run it. It walks every slide, applies the metadata, and advances through the lifecycle.
241
+
242
+ ---
243
+
244
+ ## Analytics
245
+
246
+ Click tracking is handled by [@inizioevoke/veeva-iva](https://www.npmjs.com/package/@inizioevoke/veeva-iva), configured in `src/lib/client/` (typically via `IVA.configure(...)` or `IVA.init(...)`). Tracked elements emit `console.debug` lines in the form:
247
+
248
+ ```
249
+ DEBUG: track {slide: 'home', type: 'button', name: 'button_cta_learn_more'}
250
+ ```
27
251
 
28
- ## 🧞 Commands
252
+ To audit coverage, start `npm run dev`, visit each page, click every tracked element (`[data-evotrk]`, `<a>`, `<button>`, etc.), and record the emitted events.
29
253
 
30
- All commands are run from the root of the project, from a terminal:
254
+ > As an alternative, Claude Code users with the `evoke-analytics-auditor` skill installed can ask Claude to run the audit — it drives a Playwright browser through every page and writes a Markdown + CSV report of tracking events, ambiguous events, errors, warnings, and logs.
31
255
 
32
- | Command | Action |
33
- | :------------------------ | :----------------------------------------------- |
34
- | `npm install` | Installs dependencies |
35
- | `npm run dev` | Starts local dev server at `localhost:4321` |
36
- | `npm run build` | Build your production site to `./dist/` |
37
- | `npm run preview` | Preview your build locally, before deploying |
38
- | `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
39
- | `npm run astro -- --help` | Get help using the Astro CLI |
256
+ ---
40
257
 
41
- ## 👀 Want to learn more?
258
+ ## Related packages
42
259
 
43
- Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
260
+ - [@inizioevoke/astro-core](https://www.npmjs.com/package/@inizioevoke/astro-core) — Carousel, FlipCard, Modal, PdfViewer, RightISI, Tabs, Zoom components; swipe/pinch gesture helpers; `pruneBuild` and `relativeLinks` build integrations.
261
+ - [@inizioevoke/veeva-astroclm-core](https://www.npmjs.com/package/@inizioevoke/veeva-astroclm-core) — the CLM runtime; hosts the `pageManager`, `veevaConfigManager`, and `deploy` task implementations.
262
+ - [@inizioevoke/veeva-iva](https://www.npmjs.com/package/@inizioevoke/veeva-iva) — IVA integration (click tracking, navigation hooks).
263
+ - [@inizioevoke/veeva-clmjs](https://www.npmjs.com/package/@inizioevoke/veeva-clmjs) — Veeva CLM JS runtime.
package/bin/create.js CHANGED
@@ -1,11 +1,59 @@
1
1
  #!/usr/bin/env node
2
2
  import { cpSync, existsSync, mkdirSync, readFileSync, readdirSync, writeFileSync } from 'node:fs'
3
3
  import { basename, dirname, join, resolve, sep } from 'node:path'
4
+ import { createInterface } from 'node:readline/promises'
5
+ import { stdin, stdout } from 'node:process'
4
6
  import { fileURLToPath } from 'node:url'
5
7
 
6
8
  const templateRoot = resolve(dirname(fileURLToPath(import.meta.url)), '..')
7
9
 
8
- const targetArg = process.argv[2]
10
+ const TEMPLATES = {
11
+ standard: { label: 'Standard template', layouts: ['GlobalLayout'] },
12
+ 'left-nav': { label: 'Left nav template', layouts: ['GlobalLayout', 'LeftNavLayout'] },
13
+ 'top-nav': { label: 'Top nav template', layouts: ['GlobalLayout', 'TopNavLayout'] },
14
+ empty: { label: 'Empty template', layouts: [] },
15
+ }
16
+
17
+ const args = process.argv.slice(2)
18
+ let templateArg
19
+ let targetArg
20
+ for (let i = 0; i < args.length; i++) {
21
+ const a = args[i]
22
+ if (a === '--template' || a === '-t') {
23
+ templateArg = args[++i]
24
+ } else if (a.startsWith('--template=')) {
25
+ templateArg = a.slice('--template='.length)
26
+ } else if (!targetArg) {
27
+ targetArg = a
28
+ }
29
+ }
30
+
31
+ async function promptTemplate() {
32
+ const keys = Object.keys(TEMPLATES)
33
+ const rl = createInterface({ input: stdin, output: stdout })
34
+ console.log('Select a template:')
35
+ keys.forEach((k, i) => console.log(` ${i + 1}) ${TEMPLATES[k].label}`))
36
+ const answer = (await rl.question('Choice [1]: ')).trim()
37
+ rl.close()
38
+ if (!answer) return 'standard'
39
+ const index = Number(answer) - 1
40
+ if (Number.isInteger(index) && keys[index]) return keys[index]
41
+ if (TEMPLATES[answer]) return answer
42
+ console.error(`Unknown template: ${answer}`)
43
+ process.exit(1)
44
+ }
45
+
46
+ let template
47
+ if (templateArg) {
48
+ if (!TEMPLATES[templateArg]) {
49
+ console.error(`Unknown template: ${templateArg}. Valid: ${Object.keys(TEMPLATES).join(', ')}`)
50
+ process.exit(1)
51
+ }
52
+ template = templateArg
53
+ } else {
54
+ template = await promptTemplate()
55
+ }
56
+
9
57
  const targetDir = targetArg ? resolve(process.cwd(), targetArg) : process.cwd()
10
58
 
11
59
  if (existsSync(targetDir) && readdirSync(targetDir).length > 0) {
@@ -15,13 +63,19 @@ if (existsSync(targetDir) && readdirSync(targetDir).length > 0) {
15
63
  mkdirSync(targetDir, { recursive: true })
16
64
 
17
65
  const skipTopLevel = new Set(['bin', 'node_modules', '.git', 'package-lock.json'])
66
+ const includedLayouts = new Set(TEMPLATES[template].layouts)
18
67
 
19
68
  cpSync(templateRoot, targetDir, {
20
69
  recursive: true,
21
70
  filter: (src) => {
22
71
  const rel = src.slice(templateRoot.length).replace(/^[\\/]/, '')
23
72
  if (!rel) return true
24
- return !skipTopLevel.has(rel.split(sep)[0])
73
+ const parts = rel.split(sep)
74
+ if (skipTopLevel.has(parts[0])) return false
75
+ if (parts[0] === 'src' && parts[1] === 'layouts' && parts[2]) {
76
+ return includedLayouts.has(parts[2])
77
+ }
78
+ return true
25
79
  },
26
80
  })
27
81
 
@@ -35,5 +89,5 @@ pkg.name = basename(targetDir)
35
89
  delete pkg.bin
36
90
  writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + '\n')
37
91
 
38
- console.log(`Scaffolded ${pkg.name} in ${targetDir}`)
92
+ console.log(`Scaffolded ${pkg.name} (${TEMPLATES[template].label}) in ${targetDir}`)
39
93
  console.log(`Next: cd ${targetArg ?? '.'} && npm install`)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@inizioevoke/veeva-astroclm",
3
3
  "type": "module",
4
- "version": "1.0.2",
4
+ "version": "1.1.1",
5
5
  "bin": "./bin/create.js",
6
6
  "scripts": {
7
7
  "start": "astro dev",
@@ -25,17 +25,25 @@
25
25
  "page-manager": "npx tsx ./tasks/page-manager.ts"
26
26
  },
27
27
  "dependencies": {
28
- "@astrojs/preact": "^6.0.5",
28
+ "@astrojs/preact": "^6.0.6",
29
29
  "@inizioevoke/astro-core": "^3.3.1",
30
- "@inizioevoke/veeva-astroclm-core": "^1.3.8",
30
+ "@inizioevoke/veeva-astroclm-core": "^1.4.2",
31
31
  "@inizioevoke/veeva-clmjs": "^1.0.1",
32
- "@inizioevoke/veeva-iva": "^1.3.1",
33
- "astro": "^7.3.4",
34
- "preact": "^10.29.7",
35
- "sass": "^1.101.3"
32
+ "@inizioevoke/veeva-iva": "^1.3.2",
33
+ "astro": "^7.3.8",
34
+ "preact": "^10.29.8",
35
+ "sass": "^1.105.1"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/node": "^26.1.1",
39
39
  "tsx": "^4.23.1"
40
+ },
41
+ "allowScripts": {
42
+ "@inizioevoke/astro-core": true,
43
+ "@inizioevoke/veeva-astroclm-core": true,
44
+ "@parcel/watcher": true,
45
+ "esbuild": true,
46
+ "fsevents": true,
47
+ "puppeteer": true
40
48
  }
41
49
  }
@@ -0,0 +1,62 @@
1
+ ---
2
+ import { BUILD_TARGET, VEEVA_PLATFORM, WEB_ENV, WEB_SCALING } from "astro:env/client";
3
+ import VeevaControls from "@components/ui/VeevaControls/VeevaControls.astro";
4
+ import IvaConsole from "@components/ui/IvaConsole/IvaConsole.astro";
5
+ import { ModalOverlay } from "@inizioevoke/astro-core/Modal";
6
+ import PlatformScript from '@inizioevoke/veeva-astroclm-core/PlatformScript';
7
+ import ResizeScript from '@inizioevoke/veeva-astroclm-core/ResizeScript';
8
+
9
+ import { urlToId, pathToSlideZip, flattenPath } from '@inizioevoke/veeva-astroclm-core/lib';
10
+ import { SCREEN_WIDTH, SCREEN_HEIGHT } from '@lib/server/screen';
11
+
12
+ import './GlobalLayout.scss';
13
+
14
+ interface Props extends GlobalLayoutProps {};
15
+
16
+ const {
17
+ title,
18
+ 'class': cssClass
19
+ } = Astro.props;
20
+
21
+ const bodyClass: (string | undefined)[] = [
22
+ `target-${BUILD_TARGET}`,
23
+ BUILD_TARGET === 'web' ? `web-${WEB_ENV}` : undefined,
24
+ BUILD_TARGET === 'web' && WEB_SCALING ? 'web-scaling' : undefined,
25
+ cssClass
26
+ ];
27
+
28
+ const pathname = Astro.url.pathname;
29
+ ---
30
+ <html lang="en">
31
+ <head>
32
+ <meta charset="UTF-8" />
33
+ <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=5,user-scalable=yes" />
34
+ <title>{title}</title>
35
+ <link rel="icon" href="/favicon.png" type="image/png">
36
+ <meta property="evotrk:id" content={urlToId(Astro.url)} />
37
+ <meta property="page:id" content={flattenPath(pathname)} />
38
+ <meta property="page:path" content={pathname} />
39
+ <meta property="veeva:zip" content={pathToSlideZip(pathname)} />
40
+ <PlatformScript />
41
+ <slot name="meta" />
42
+ <slot name="cssvars" />
43
+ <slot name="styles" />
44
+ { BUILD_TARGET === 'veeva' && <script is:inline src={`/shared/${VEEVA_PLATFORM}.js`}></script>}
45
+ </head>
46
+ <body class:list={bodyClass}>
47
+ <div class="body-outer">
48
+ <div class="body-wrapper scaling-wrapper">
49
+ <ResizeScript width={SCREEN_WIDTH} height={SCREEN_HEIGHT} />
50
+ <slot />
51
+ { BUILD_TARGET === 'web' && WEB_ENV !== "production" && <VeevaControls reactions={false} /> }
52
+ <ModalOverlay />
53
+ </div>
54
+ </div>
55
+
56
+ <IvaConsole />
57
+
58
+ <script>
59
+ import '@lib/client/main';
60
+ </script>
61
+ </body>
62
+ </html>
@@ -0,0 +1,261 @@
1
+ @use "../../scss/variables" as vars;
2
+ @use "sass:list";
3
+ @use "sass:map";
4
+ @use "sass:math";
5
+
6
+ :root {
7
+ --screen-width: #{vars.$screen-width};
8
+ --screen-height: #{vars.$screen-height};
9
+ --body-wrapper-padding-top: 1rem;
10
+ --body-wrapper-padding-right: 1rem;
11
+ --body-wrapper-padding-bottom: 1rem;
12
+ --body-wrapper-padding-left: 1rem;
13
+
14
+ --white: #ffffff;
15
+ --dark-gray: #1c1c25;
16
+ --black: #000000;
17
+
18
+ --font-header: sans-serif;
19
+ --font-copy: sans-serif;
20
+
21
+ --color-header: black;
22
+ --color-copy: black;
23
+ --color-link: blue;
24
+
25
+
26
+ --evo-modal-viewport-width: var(--screen-width);
27
+ --evo-modal-viewport-height: var(--screen-height);
28
+ }
29
+ * {
30
+ box-sizing: border-box;
31
+ }
32
+
33
+ body {
34
+ margin: 0;
35
+ padding: 0;
36
+ font-size: 16px;
37
+ line-height: normal;
38
+ font-family: var(--font-copy);
39
+ font-style: normal;
40
+ font-weight: 400;
41
+ color: var(--color-copy);
42
+ background-color: var(--dark-gray);
43
+
44
+ // center web viewport dimensions are larger than the IVA dimensions
45
+ @media screen and (min-width: #{vars.$screen-width + 1px}) and (min-height: #{vars.$screen-height + 1px}) {
46
+ .body-outer {
47
+ display: flex;
48
+ justify-content: center;
49
+ align-items: center;
50
+ width: 100vw;
51
+ height: 100vh;
52
+
53
+ .body-wrapper {
54
+ margin: 0 auto;
55
+ }
56
+ }
57
+ }
58
+
59
+ &.scaled { // scaled by script
60
+ overflow: hidden;
61
+ width: 100vw;
62
+ height: 100vh;
63
+ .scaling-wrapper {
64
+ margin: unset;
65
+ transform-origin: left top;
66
+ overflow: hidden;
67
+ }
68
+ }
69
+ }
70
+
71
+ .body-wrapper {
72
+ position: relative;
73
+ width: var(--screen-width);
74
+ height: var(--screen-height);
75
+ margin: auto;
76
+ padding: var(--body-wrapper-padding-top) var(--body-wrapper-padding-right) var(--body-wrapper-padding-bottom) var(--body-wrapper-padding-left);
77
+ background-color: gray;
78
+ }
79
+
80
+ a {
81
+ color: var(--color-link);
82
+ cursor: pointer;
83
+ text-decoration: underline;
84
+ &:visited {
85
+ color: var(--color-link);
86
+ outline: none;
87
+ }
88
+ }
89
+
90
+ @for $i from 1 to 6 {
91
+ h#{$i}, .h#{$i} {
92
+ font-family: sans-serif;
93
+ font-style: normal;
94
+ line-height: normal;
95
+ font-weight: 700;
96
+ margin: 0 auto 1rem auto;
97
+ }
98
+ }
99
+ h1, .h1 {
100
+ font-size: 2rem;
101
+ }
102
+
103
+ h2, .h2 {
104
+ font-size: 1.5rem;
105
+ }
106
+
107
+ h3, .h3 {
108
+ font-size: 1.25rem;
109
+ }
110
+
111
+ h4, .h4 {
112
+ font-size: 1.1rem;
113
+ }
114
+
115
+ h5, .h5 {
116
+ font-size: 1rem;
117
+ }
118
+
119
+ h6, .h6 {
120
+ font-size: 0.9rem;
121
+ }
122
+
123
+ p {
124
+ margin: 0 auto;
125
+ font-weight: 400;
126
+ color: var(--black);
127
+ }
128
+
129
+ sup {
130
+ font-size: 50%;
131
+ top: -0.79em;
132
+ }
133
+
134
+ sub {
135
+ vertical-align: baseline;
136
+ position: relative;
137
+ top: 0em;
138
+ }
139
+
140
+ .underline {
141
+ text-decoration: underline;
142
+ }
143
+
144
+
145
+ // font weights (weight-100 - weight-900)
146
+ @for $i from 1 to 9 {
147
+ .weight-#{$i}00 {
148
+ font-weight: #{$i}00;
149
+ }
150
+ }
151
+
152
+ // .footnote {
153
+ // &.hanging-footnote {
154
+ // position: relative;
155
+ // padding-left: 5px;
156
+ // span.hang {
157
+ // display: block;
158
+ // border: 0px solid red;
159
+ // position: absolute;
160
+ // top: 0;
161
+ // left: 0;
162
+ // width: 4px;
163
+ // height: 100%;
164
+ // sup {
165
+ // top: 3px;
166
+ // }
167
+ // }
168
+ // }
169
+ // }
170
+
171
+ // Color Classes
172
+ .white {
173
+ color: var(--white);
174
+ }
175
+
176
+ .black {
177
+ color: var(--black);
178
+ }
179
+
180
+
181
+ // GRID STYLES - Mimics bootstrap without using bootstrap
182
+
183
+ // Grid tokens
184
+ // $container-width: 1366px;
185
+ $container-padding-x: 64px;
186
+
187
+ $gutter: 24px;
188
+ $gutter-half: math.div($gutter, 2);
189
+
190
+ // Container
191
+ .container {
192
+ width: #{vars.$screen-width}; // $container-width;
193
+ margin: 0 auto;
194
+ padding-left: $container-padding-x;
195
+ padding-right: $container-padding-x;
196
+ }
197
+
198
+ // Row
199
+ .row {
200
+ display: flex;
201
+ flex-wrap: wrap;
202
+ // cancel the column padding so outer edges don't gain +12px
203
+ margin-left: -$gutter-half;
204
+ margin-right: -$gutter-half;
205
+ }
206
+
207
+ // Column base
208
+ [class^="col-"] {
209
+ flex: 0 0 auto;
210
+ box-sizing: border-box;
211
+ padding-left: $gutter-half;
212
+ padding-right: $gutter-half;
213
+ // IMPORTANT: allow nested .row to expand inside
214
+ min-width: 0;
215
+ }
216
+
217
+ // widths
218
+ @for $i from 1 through 12 {
219
+ .col-#{$i} {
220
+ width: math.div($i * 100%, 12);
221
+ }
222
+ }
223
+
224
+ // offsets
225
+ @for $i from 1 through 11 {
226
+ .offset-#{$i} {
227
+ margin-left: math.div($i * 100%, 12);
228
+ }
229
+ }
230
+
231
+ // More bootstrap like helper classes
232
+
233
+ .text-start {
234
+ text-align: left;
235
+ }
236
+
237
+ .text-center {
238
+ text-align: center;
239
+ }
240
+
241
+ .text-end {
242
+ text-align: right;
243
+ }
244
+
245
+
246
+ // @inizioevoke/astro-core
247
+ .evo-tab-container {
248
+ .evo-tab {
249
+ background-color: #cccccc;
250
+ &.evo-tab-active {
251
+ background-color: white;
252
+ border-bottom-color: white;
253
+ }
254
+ }
255
+ }
256
+
257
+ evo-modal {
258
+ evo-scroll-container {
259
+ --evo-scroll-container-track-vert-top: 32px;
260
+ }
261
+ }
@@ -0,0 +1,38 @@
1
+ ---
2
+ import GlobalLayout from "@layouts/GlobalLayout/GlobalLayout.astro";
3
+ import BottomISI from '@inizioevoke/astro-core/BottomISI';
4
+ import Image from "@components/ui/Image.astro";
5
+ import MainNav from "@components/nav/MainNav/MainNav.astro";
6
+
7
+ import bgIE from '@shared/img/bg-ie.jpg';
8
+
9
+ import './LeftNavLayout.scss';
10
+
11
+ interface Props extends GlobalLayoutProps {}
12
+ const {
13
+ ...rest
14
+ } = Astro.props;
15
+ ---
16
+ <GlobalLayout {...rest}>
17
+ <slot name="meta" slot="meta" />
18
+ <slot name="cssvars" slot="cssvars" />
19
+ <slot name="styles" slot="styles" />
20
+
21
+ <div class="layout-left">
22
+ <div class="logo"><Image src={bgIE} width={200} /></div>
23
+ <MainNav url={Astro.url} />
24
+ </div>
25
+ <div class="layout-right">
26
+ <main>
27
+ <slot />
28
+ </main>
29
+ <BottomISI>
30
+ <slot name="partial-isi" slot="partial-isi" />
31
+ </BottomISI>
32
+ </div>
33
+ <footer>
34
+ <slot name="footer" />
35
+ </footer>
36
+
37
+ <slot name="modals" />
38
+ </GlobalLayout>
@@ -0,0 +1,75 @@
1
+ @use "../../scss/variables" as vars;
2
+ :root {
3
+ --isi-height: 150px;
4
+ }
5
+ .body-wrapper {
6
+ display: flex;
7
+ justify-content: flex-start;
8
+
9
+ --main-nav-width: 200px;
10
+
11
+ .layout-left {
12
+ padding-top: calc(#{vars.$veeva-controls-height} - var(--body-wrapper-padding-top));
13
+ .logo {
14
+
15
+ }
16
+ nav#main-nav {
17
+ width: var(--main-nav-width);
18
+ a {
19
+ display: block;
20
+ text-decoration: none;
21
+ color: white;
22
+ }
23
+ ul {
24
+ margin: 0;
25
+ padding: 0;
26
+
27
+ li {
28
+ margin: 0 0 0.5rem 0;
29
+ padding: 0;
30
+ list-style: none;
31
+
32
+ &:has(> a[data-current="true"]) {
33
+ > a {
34
+ background-color: rgba(255,255,255,0.30);
35
+ }
36
+ }
37
+ }
38
+ }
39
+ > ul {
40
+ > li {
41
+ &:has(> ul > li > a[data-current="true"]) {
42
+ background-color: rgba(255,255,255,0.15);
43
+ }
44
+ > ul {
45
+ display: none;
46
+ }
47
+ &:has(a[data-current="true"]) {
48
+ > ul {
49
+ display: block;
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ .layout-right {
57
+ width: calc(var(--screen-width) - var(--body-wrapper-padding-left) - var(--body-wrapper-padding-right));
58
+ margin: 0 0 0 1rem;
59
+ color: black;
60
+ background-color: white;
61
+
62
+ main {
63
+ width: 100%;
64
+ height: calc(100% - var(--isi-height));
65
+ padding: 1rem;
66
+ h1 {
67
+ margin-top: 0;
68
+ }
69
+ }
70
+ evo-isi {
71
+ --evo-isi-expanded-height: calc(1024px - 2rem);
72
+ --evo-isi-collapsed-height: var(--isi-height);
73
+ }
74
+ }
75
+ }
@@ -0,0 +1,51 @@
1
+ ---
2
+ import GlobalLayout from "@layouts/GlobalLayout/GlobalLayout.astro";
3
+ import Image from "@components/ui/Image.astro";
4
+ import MainNav from "@components/nav/MainNav/MainNav.astro";
5
+
6
+ import bgIE from '@shared/img/bg-ie.jpg';
7
+
8
+ import './TopNavLayout.scss';
9
+
10
+ interface Props extends GlobalLayoutProps {}
11
+ const {
12
+ ...rest
13
+ } = Astro.props;
14
+ ---
15
+ <GlobalLayout {...rest}>
16
+ <slot name="meta" slot="meta" />
17
+ <slot name="cssvars" slot="cssvars" />
18
+ <slot name="styles" slot="styles" />
19
+
20
+ <section class="layout-nav-container">
21
+ <div class="container">
22
+ <div class="row">
23
+ <div class="col-12">
24
+ <div class="row">
25
+ <div class="col-3">
26
+ <div class="logo-container">
27
+ <div class="logo"><Image src={bgIE} alt="" width={200} /></div>
28
+ </div>
29
+ </div>
30
+ <div class="col-9">
31
+ <MainNav url={Astro.url} />
32
+ </div>
33
+ </div>
34
+ </div>
35
+ </div>
36
+ </div>
37
+ </section>
38
+
39
+ <section class="layout-content-container">
40
+ <main>
41
+ <slot />
42
+ </main>
43
+ <slot name="isi-content" />
44
+ </section>
45
+
46
+ <footer>
47
+ <slot name="footer" />
48
+ </footer>
49
+
50
+ <slot name="modals" />
51
+ </GlobalLayout>
@@ -0,0 +1,102 @@
1
+ @use "../../scss/variables" as vars;
2
+
3
+ :root {
4
+ --isi-height: 146px;
5
+ --main-nav-height: 123px;
6
+ }
7
+ .body-wrapper {
8
+ --main-nav-width: 100%;
9
+ .layout-nav-container {
10
+ // padding-top: calc(
11
+ // #{vars.$veeva-controls-height} - var(--body-wrapper-padding-top)
12
+ // );
13
+ height: var(--main-nav-height);
14
+ padding: 40px 0 16px 0;
15
+ background: var(--yellow);
16
+ .logo-container {
17
+ display: flex;
18
+ justify-content: flex-start;
19
+ align-items: flex-end;
20
+ height: 100%;
21
+ svg {
22
+
23
+ }
24
+ }
25
+ nav#main-nav {
26
+ width: var(--main-nav-width);
27
+ height: 100%;
28
+ ul {
29
+ margin: 0;
30
+ padding: 0;
31
+ height: 100%;
32
+ display: flex;
33
+ justify-content: space-between;
34
+ align-items: center;
35
+
36
+ li {
37
+ margin: 0;
38
+ padding: 0;
39
+ list-style: none;
40
+ a {
41
+ text-decoration: none;
42
+ font-size: 13px;
43
+ font-weight: 700;
44
+ line-height: 17px;
45
+ display: flex;
46
+ align-items: center;
47
+ justify-content: center;
48
+ text-align: center;
49
+ padding: 22px 6px;
50
+ width: 86px;
51
+ height: 54px;
52
+ border: 1px solid var(--purple);
53
+ border-radius: 0 9px;
54
+ }
55
+
56
+ &:has(> a[data-current="true"]) {
57
+ > a {
58
+ background: var(--white);
59
+ }
60
+ }
61
+ }
62
+ }
63
+ > ul {
64
+ > li {
65
+ &:has(> ul > li > a[data-current="true"]) {
66
+ background: var(--white);
67
+ }
68
+ > ul {
69
+ display: none;
70
+ }
71
+ &:has(a[data-current="true"]) {
72
+ > ul {
73
+ display: block;
74
+ }
75
+ }
76
+ }
77
+ }
78
+ }
79
+ }
80
+ .layout-content-container {
81
+ // width: calc(
82
+ // var(--screen-width) - var(--body-wrapper-padding-left) - var(
83
+ // --body-wrapper-padding-right
84
+ // )
85
+ // );
86
+ display: flex;
87
+ justify-content: space-between;
88
+ flex-direction: column;
89
+ width: 100%;
90
+ height: calc(100% - var(--main-nav-height));
91
+ color: var(--black);
92
+
93
+ main {
94
+ width: 100%;
95
+ height: calc(100% - var(--isi-height));
96
+ }
97
+ #isi {
98
+ // height: var(--isi-height);
99
+ height: 146px;
100
+ }
101
+ }
102
+ }
@@ -1,10 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "mcp__plugin_playwright_playwright__browser_snapshot",
5
- "mcp__plugin_playwright_playwright__browser_click",
6
- "mcp__plugin_playwright_playwright__browser_wait_for",
7
- "mcp__plugin_playwright_playwright__browser_console_messages"
8
- ]
9
- }
10
- }