@erudit-js/core 4.0.0-dev.4 → 4.0.0-dev.5

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/brand.js CHANGED
@@ -1,9 +1,9 @@
1
- export const brandLogotype = `
2
- ███████╗██████╗ ██╗ ██╗██████╗ ██╗████████╗
3
- ██╔════╝██╔══██╗██║ ██║██╔══██╗██║╚══██╔══╝
4
- █████╗ ██████╔╝██║ ██║██║ ██║██║ ██║
5
- ██╔══╝ ██╔══██╗██║ ██║██║ ██║██║ ██║
6
- ███████╗██║ ██║╚██████╔╝██████╔╝██║ ██║
7
- ╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝
1
+ export const brandLogotype = `
2
+ ███████╗██████╗ ██╗ ██╗██████╗ ██╗████████╗
3
+ ██╔════╝██╔══██╗██║ ██║██╔══██╗██║╚══██╔══╝
4
+ █████╗ ██████╔╝██║ ██║██║ ██║██║ ██║
5
+ ██╔══╝ ██╔══██╗██║ ██║██║ ██║██║ ██║
6
+ ███████╗██║ ██║╚██████╔╝██████╔╝██║ ██║
7
+ ╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝
8
8
  `;
9
9
  export const brandColors = ['#4aa44c', '#1278b9'];
@@ -19,16 +19,16 @@ export function globalContributorsObject(contributorIds) {
19
19
  return contributors;
20
20
  }
21
21
  export function globalContributorsTypes(contributors) {
22
- return `import type { GlobalContributorTypeguard } from '@erudit-js/core/contributor';
23
-
24
- export {};
25
-
26
- declare global {
27
- const $CONTRIBUTOR: {
22
+ return `import type { GlobalContributorTypeguard } from '@erudit-js/core/contributor';
23
+
24
+ export {};
25
+
26
+ declare global {
27
+ const $CONTRIBUTOR: {
28
28
  ${Object.keys(contributors)
29
29
  .map((contributorId) => ` ${contributorId}: GlobalContributorTypeguard;`)
30
- .join('\n')}
31
- };
32
- }
30
+ .join('\n')}
31
+ };
32
+ }
33
33
  `;
34
34
  }
@@ -1,4 +1,5 @@
1
1
  import type { Nuxt } from '@nuxt/schema';
2
+ import type { NitroConfig } from 'nitropack';
2
3
  import type { EruditIndexPage } from './indexPage.js';
3
4
  import type { EruditSponsors } from '../sponsor.js';
4
5
  import type { EruditAdsBanners } from './ads.js';
@@ -14,7 +15,6 @@ import type { EruditContributors } from '../contributor.js';
14
15
  export interface EruditConfig {
15
16
  language?: EruditLanguage;
16
17
  debug?: EruditDebug;
17
- contentTargets?: string[];
18
18
  analytics?: EruditAnalytics;
19
19
  ads?: EruditAdsBanners;
20
20
  site?: EruditSite;
@@ -30,5 +30,12 @@ export interface EruditConfig {
30
30
  * Erudit uses Nuxt under the hood.
31
31
  * Use this to alter Nuxt configuration.
32
32
  */
33
- nuxtAugmentations?: [(nuxt: Nuxt) => Promise<void> | void];
33
+ nuxtAugmentations?: [
34
+ ({ nuxt, nitro, projectPath, eruditPath, }: {
35
+ nuxt: Nuxt;
36
+ nitro: NitroConfig;
37
+ projectPath: string;
38
+ eruditPath: string;
39
+ }) => Promise<void> | void
40
+ ];
34
41
  }
@@ -7,18 +7,6 @@ export type EruditSiteFaviconResolved = Partial<{
7
7
  default: string;
8
8
  } & Exclude<Record<ContentType, string>, 'topic'> & Record<TopicPart, string>>;
9
9
  export type EruditSite = Partial<{
10
- /**
11
- * `https://en.erudit.io/base-url/article/my-article`
12
- *
13
- * Origin URL: `https://en.erudit.io/`
14
- */
15
- originUrl: string;
16
- /**
17
- * `https://en.erudit.io/base-url/article/my-article`
18
- *
19
- * Base URL: `/base-url/`
20
- */
21
- baseUrl: string;
22
10
  title: string;
23
11
  short: string | false;
24
12
  /**
@@ -5,6 +5,5 @@ export const proseLinkTypes = [
5
5
  // 'anonymousUnique' TODO! Passing anonymous uniques directly to the <A> tag
6
6
  ];
7
7
  export function isProseLinkType(value) {
8
- return (typeof value === 'string' &&
9
- proseLinkTypes.includes(value));
8
+ return (typeof value === 'string' && proseLinkTypes.includes(value));
10
9
  }
package/package.json CHANGED
@@ -1,26 +1,26 @@
1
1
  {
2
- "name": "@erudit-js/core",
3
- "version": "4.0.0-dev.4",
4
- "type": "module",
5
- "description": "Erudit core essentials",
6
- "exports": {
7
- ".": {},
8
- "./*": {
9
- "import": "./dist/*.js",
10
- "types": "./dist/*.d.ts"
11
- }
12
- },
13
- "files": [
14
- "dist"
15
- ],
16
- "license": "MIT",
17
- "scripts": {
18
- "build": "rm -rf dist && bun tsc --project ./tsconfig.src.json",
19
- "test": "bun vitest run",
20
- "prepack": "bun run build"
21
- },
22
- "dependencies": {
23
- "@jsprose/core": "^1.0.0",
24
- "gradient-string": "^3.0.0"
2
+ "name": "@erudit-js/core",
3
+ "version": "4.0.0-dev.5",
4
+ "type": "module",
5
+ "description": "Erudit core essentials",
6
+ "exports": {
7
+ ".": {},
8
+ "./*": {
9
+ "import": "./dist/*.js",
10
+ "types": "./dist/*.d.ts"
25
11
  }
12
+ },
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "license": "MIT",
17
+ "scripts": {
18
+ "build": "rm -rf dist && bun tsc --project ./tsconfig.src.json",
19
+ "test": "bun vitest run",
20
+ "prepack": "bun run build"
21
+ },
22
+ "dependencies": {
23
+ "@jsprose/core": "^1.0.0",
24
+ "gradient-string": "^3.0.0"
25
+ }
26
26
  }