@inizioevoke/veeva-astroclm 1.0.0

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.
Files changed (67) hide show
  1. package/.claude/settings.local.json +10 -0
  2. package/.claude/skills/evoke-analytics-auditor/SKILL.md +509 -0
  3. package/.claude/skills/evoke-astro-core/SKILL.md +395 -0
  4. package/.claude/skills/evoke-page-manager/SKILL.md +75 -0
  5. package/.claude/skills/evoke-veeva-config-manager/SKILL.md +17 -0
  6. package/.claude/skills/evoke-veeva-config-manager/create.md +189 -0
  7. package/.claude/skills/evoke-veeva-config-manager/manage.md +48 -0
  8. package/.editorconfig +12 -0
  9. package/.env.development +3 -0
  10. package/.env.veeva-client +1 -0
  11. package/.env.veeva-client-training +2 -0
  12. package/.env.veeva-evoke +4 -0
  13. package/README.md +43 -0
  14. package/_contents.yml.example +6 -0
  15. package/astro.config.ts +36 -0
  16. package/package.json +40 -0
  17. package/public/astroclm.png +0 -0
  18. package/public/favicon.png +0 -0
  19. package/public/shared/salesforce.js +2586 -0
  20. package/public/shared/vault.js +2417 -0
  21. package/src/components/content/readme.md +1 -0
  22. package/src/components/isi/ISIContent.tsx +137 -0
  23. package/src/components/isi/_isi.scss +22 -0
  24. package/src/components/nav/MainNav/MainNav.astro +20 -0
  25. package/src/components/nav/MainNav/MainNav.tsx +36 -0
  26. package/src/components/nav/NavList.tsx +66 -0
  27. package/src/components/ui/Button.astro +19 -0
  28. package/src/components/ui/Image.astro +36 -0
  29. package/src/components/ui/IvaConsole/IvaConsole.astro +12 -0
  30. package/src/components/ui/IvaConsole/IvaConsole.scss +62 -0
  31. package/src/components/ui/IvaConsole/IvaConsole.ts +144 -0
  32. package/src/components/ui/Link.astro +39 -0
  33. package/src/components/ui/Link.tsx +36 -0
  34. package/src/components/ui/NavLink.astro +46 -0
  35. package/src/components/ui/NavLink.tsx +41 -0
  36. package/src/components/ui/VeevaControls/VeevaControls.astro +48 -0
  37. package/src/components/ui/VeevaControls/VeevaControls.scss +145 -0
  38. package/src/components/ui/VeevaLink.astro +36 -0
  39. package/src/data/pages.tsx +50 -0
  40. package/src/env.d.ts +14 -0
  41. package/src/lib/client/context.ts +45 -0
  42. package/src/lib/client/main.ts +54 -0
  43. package/src/lib/client/readme.md +1 -0
  44. package/src/lib/client/swipe-nav.ts +35 -0
  45. package/src/lib/client/utils.ts +58 -0
  46. package/src/lib/server/readme.md +1 -0
  47. package/src/lib/server/screen.ts +10 -0
  48. package/src/middleware.ts.bak +12 -0
  49. package/src/scss/_mixins.scss +1 -0
  50. package/src/scss/_variables.scss +6 -0
  51. package/src/scss/ipads.scss +89 -0
  52. package/src/shared/img/veeva/veeva-action.png +0 -0
  53. package/src/shared/img/veeva/veeva-desktop-action.png +0 -0
  54. package/src/shared/img/veeva/veeva-desktop-navigation.png +0 -0
  55. package/src/shared/img/veeva/veeva-desktop-next.png +0 -0
  56. package/src/shared/img/veeva/veeva-desktop-previous.png +0 -0
  57. package/src/shared/img/veeva/veeva-highlighter.png +0 -0
  58. package/src/shared/img/veeva/veeva-history-back.png +0 -0
  59. package/src/shared/img/veeva/veeva-history-forward.png +0 -0
  60. package/src/shared/img/veeva/veeva-navigation.png +0 -0
  61. package/src/shared/img/veeva/veeva-reactions.png +0 -0
  62. package/tasks/page-manager.ts +4 -0
  63. package/tasks/util.ts +7 -0
  64. package/tasks/veeva-config.ts +4 -0
  65. package/tasks/veeva-deploy.ts +21 -0
  66. package/tsconfig.json +23 -0
  67. package/veeva-metadata.js +461 -0
@@ -0,0 +1,48 @@
1
+ # veeva-manage-config
2
+
3
+ Audit `veeva-config.ts` against `src/pages/` to keep slides in sync with the actual pages in the project.
4
+
5
+ ## Step 1 — Discover pages and slides
6
+
7
+ Run in parallel:
8
+
9
+ 1. List all `.astro` files in `src/pages/`:
10
+ ```bash
11
+ ls src/pages/*.astro 2>/dev/null
12
+ ```
13
+ Extract the `path` for each: filename without the `.astro` extension (e.g. `some-page-name`).
14
+
15
+ 2. Read `veeva-config.ts` from the project root and extract the `path` property from each entry in `presentation.slides`.
16
+
17
+ ## Step 2 — Compare
18
+
19
+ Identify:
20
+ - **Missing slides** — pages in `src/pages/` that have no matching entry in `slides`
21
+ - **Extraneous slides** — entries in `slides` whose `path` has no matching file in `src/pages/`
22
+
23
+ If everything is in sync, tell the user and stop.
24
+
25
+ ## Step 3 — Resolve missing slides
26
+
27
+ For each missing slide, ask the user: "No slide entry found for `<path>`. Add it to `veeva-config.ts`?"
28
+
29
+ If yes, add a new slide object to the `slides` array following the same pattern from `create.md`:
30
+ - `path` = the page filename without `.astro`
31
+ - `title` = title-case by splitting on `-`, capitalising each part, joining with a space
32
+ - `externalId` = `formatExtId('<SLIDE_ID>')` where `<SLIDE_ID>` is a new unique 8-char uppercase alphanumeric string, different from all existing slide IDs in the file
33
+
34
+ Generate the ID with:
35
+ ```bash
36
+ node -e "const a='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ';let r='';for(let i=0;i<8;i++)r+=a[Math.floor(Math.random()*36)];console.log(r)"
37
+ ```
38
+
39
+ ## Step 4 — Resolve extraneous slides
40
+
41
+ For each extraneous slide, ask the user: "Slide entry `<path>` has no matching page. Remove it or comment it out?"
42
+
43
+ - **Remove** — delete the slide object from the array entirely
44
+ - **Comment out** — wrap the slide object in a block comment: `/* { path: '...', ... } */`
45
+
46
+ ## Step 5 — Write the file
47
+
48
+ If any changes were made, write the updated `veeva-config.ts` and tell the user what was added, removed, or commented out.
package/.editorconfig ADDED
@@ -0,0 +1,12 @@
1
+ # EditorConfig is awesome: https://EditorConfig.org
2
+
3
+ # top-most EditorConfig file
4
+ root = true
5
+
6
+ [*]
7
+ indent_style = space
8
+ indent_size = 2
9
+ end_of_line = lf
10
+ charset = utf-8
11
+ trim_trailing_whitespace = false
12
+ insert_final_newline = false
@@ -0,0 +1,3 @@
1
+ # WEB_ENV="production"
2
+ # WEB_SCALING="true" # When this is true the resize script will be included if the <ResizeScript /> component is in the layout
3
+ LOG_LEVEL="debug"
@@ -0,0 +1 @@
1
+ BUILD_TARGET="veeva"
@@ -0,0 +1,2 @@
1
+ BUILD_TARGET="veeva"
2
+ VEEVA_TRAINING="true"
@@ -0,0 +1,4 @@
1
+ BUILD_TARGET="veeva"
2
+ VEEVA_ENV="evoke"
3
+ # LOG_LEVEL="debug"
4
+ # LOG_OUTPUT="screen"
package/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # Astro Starter Kit: Minimal
2
+
3
+ ```sh
4
+ npm create astro@latest -- --template minimal
5
+ ```
6
+
7
+ > 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
8
+
9
+ ## 🚀 Project Structure
10
+
11
+ Inside of your Astro project, you'll see the following folders and files:
12
+
13
+ ```text
14
+ /
15
+ ├── public/
16
+ ├── src/
17
+ │ └── pages/
18
+ │ └── index.astro
19
+ └── package.json
20
+ ```
21
+
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.
23
+
24
+ There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
25
+
26
+ Any static assets, like images, can be placed in the `public/` directory.
27
+
28
+ ## 🧞 Commands
29
+
30
+ All commands are run from the root of the project, from a terminal:
31
+
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 |
40
+
41
+ ## 👀 Want to learn more?
42
+
43
+ Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
@@ -0,0 +1,6 @@
1
+ # This file provides the page manager console app's bulk create task
2
+ # with the content paths that it should create.
3
+ # This file can be deleted after the content is created.
4
+ - home
5
+ - about
6
+ - about/moa
@@ -0,0 +1,36 @@
1
+ import { defineConfig } from 'astro/config';
2
+ import preact from '@astrojs/preact';
3
+ import { schema } from '@inizioevoke/veeva-astroclm-core/env';
4
+ import { pruneBuild } from '@inizioevoke/astro-core/integrations';
5
+
6
+ const {
7
+ BUILD_TARGET,
8
+ VEEVA_ENV, VEEVA_PLATFORM, VEEVA_TRAINING,
9
+ WEB_ENV, WEB_SCALING,
10
+ LOG_LEVEL, LOG_OUTPUT, LOG_TIME
11
+ } = schema;
12
+
13
+ // https://astro.build/config
14
+ export default defineConfig({
15
+ devToolbar: {
16
+ enabled: false
17
+ },
18
+ build: {
19
+ assets: 'shared'
20
+ },
21
+ redirects: {
22
+ '/': '/home/'
23
+ },
24
+ env: {
25
+ schema: {
26
+ BUILD_TARGET,
27
+ LOG_LEVEL, LOG_OUTPUT, LOG_TIME,
28
+ VEEVA_ENV, VEEVA_PLATFORM, VEEVA_TRAINING,
29
+ WEB_ENV, WEB_SCALING
30
+ }
31
+ },
32
+ integrations: [
33
+ preact(),
34
+ pruneBuild()
35
+ ]
36
+ });
package/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "@inizioevoke/veeva-astroclm",
3
+ "type": "module",
4
+ "version": "1.0.0",
5
+ "scripts": {
6
+ "start": "astro dev",
7
+ "dev": "astro dev",
8
+ "build": "astro build",
9
+ "preview": "astro preview",
10
+ "deploy": "npx tsx ./tasks/veeva-deploy.ts",
11
+ "build-client": "npm run build -- --mode veeva-client",
12
+ "build-client-training": "npm run build -- --mode veeva-client-training",
13
+ "build-evoke": "npm run build -- --mode veeva-evoke",
14
+ "deploy-client": "npm run deploy -- --mode veeva-client",
15
+ "deploy-client-training": "npm run deploy -- --mode veeva-client-training",
16
+ "deploy-evoke": "npm run deploy -- --mode veeva-evoke",
17
+ "veeva": "npm run build-client && npm run deploy-client",
18
+ "veeva-csv": "npm run deploy-client -- --csvOnly",
19
+ "veeva-training": "npm run build-client-training && npm run deploy-client-training",
20
+ "veeva-training-csv": "npm run deploy-client-training -- --csvOnly",
21
+ "veeva-evoke": "npm run build-evoke && npm run deploy-evoke",
22
+ "veeva-evoke-csv": "npm run deploy-evoke -- --csvOnly",
23
+ "veeva-config": "npx tsx ./tasks/veeva-config.ts",
24
+ "page-manager": "npx tsx ./tasks/page-manager.ts"
25
+ },
26
+ "dependencies": {
27
+ "@astrojs/preact": "^6.0.5",
28
+ "@inizioevoke/astro-core": "^3.3.1",
29
+ "@inizioevoke/veeva-astroclm-core": "^1.3.8",
30
+ "@inizioevoke/veeva-clmjs": "^1.0.1",
31
+ "@inizioevoke/veeva-iva": "^1.3.1",
32
+ "astro": "^7.3.4",
33
+ "preact": "^10.29.7",
34
+ "sass": "^1.101.3"
35
+ },
36
+ "devDependencies": {
37
+ "@types/node": "^26.1.1",
38
+ "tsx": "^4.23.1"
39
+ }
40
+ }
Binary file
Binary file