erudit 3.0.0-dev.5 → 3.0.0-dev.6

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 (46) hide show
  1. package/app/app.vue +1 -1
  2. package/app/components/aside/major/panes/nav/fnav/FNavFlags.vue +1 -1
  3. package/app/components/aside/minor/topic/TopicNav.vue +1 -1
  4. package/app/components/main/topic/MainTopic.vue +1 -1
  5. package/app/components/main/topic/TopicPartSwitch.vue +1 -1
  6. package/app/components/main/utils/ContentPopovers.vue +1 -1
  7. package/app/composables/contentRoute.ts +1 -1
  8. package/app/composables/externalApi.ts +1 -1
  9. package/app/public/favicon/article.svg +9 -9
  10. package/app/scripts/flag.ts +1 -1
  11. package/globalPath.ts +1 -1
  12. package/globals/bitran.ts +1 -1
  13. package/globals/content.ts +1 -1
  14. package/globals/contributor.ts +1 -1
  15. package/globals/erudit.ts +1 -1
  16. package/module/bitran.ts +2 -2
  17. package/module/config.ts +2 -2
  18. package/module/logger.ts +1 -1
  19. package/nuxt.config.ts +1 -40
  20. package/package.json +7 -4
  21. package/server/api/aside/minor/path.ts +1 -1
  22. package/server/plugin/bitran/content.ts +1 -1
  23. package/server/plugin/bitran/products/link.ts +1 -1
  24. package/server/plugin/build/jobs/content/generic.ts +2 -2
  25. package/server/plugin/build/jobs/content/type/group.ts +1 -1
  26. package/server/plugin/build/jobs/content/type/topic.ts +1 -1
  27. package/server/plugin/build/jobs/contributors.ts +2 -2
  28. package/server/plugin/build/jobs/nav.ts +6 -2
  29. package/server/plugin/content/absoluteId.ts +1 -1
  30. package/server/plugin/content/context.ts +5 -1
  31. package/server/plugin/db/entities/Content.ts +1 -1
  32. package/server/plugin/db/entities/Group.ts +1 -1
  33. package/server/plugin/db/entities/Topic.ts +1 -1
  34. package/server/plugin/global.ts +1 -1
  35. package/server/plugin/logger.ts +1 -1
  36. package/server/plugin/nav/node.ts +1 -1
  37. package/server/plugin/repository/content.ts +1 -1
  38. package/server/plugin/repository/topic.ts +1 -1
  39. package/shared/bitran/link/Link.vue +1 -1
  40. package/shared/bitran/link/target.ts +1 -1
  41. package/shared/bitran/location.ts +1 -1
  42. package/shared/content/data/base.ts +1 -1
  43. package/shared/content/data/type/topic.ts +1 -1
  44. package/shared/frontNav.ts +1 -1
  45. package/shared/icons.ts +1 -1
  46. package/shared/link.ts +1 -1
package/app/app.vue CHANGED
@@ -1,5 +1,5 @@
1
1
  <script lang="ts" setup>
2
- import { brandLogotype, brandColors } from 'erudit-cog/utils/brand';
2
+ import { brandLogotype, brandColors } from '@erudit-js/cog/utils/brand';
3
3
 
4
4
  import eruditConfig from '#erudit/config';
5
5
  import { version } from '@erudit/package.json';
@@ -1,5 +1,5 @@
1
1
  <script lang="ts" setup>
2
- import type { ContentFlag } from 'erudit-cog/schema';
2
+ import type { ContentFlag } from '@erudit-js/cog/schema';
3
3
  import { flagsData } from '@app/scripts/flag';
4
4
 
5
5
  defineProps<{ flags: Record<ContentFlag, boolean> }>();
@@ -1,5 +1,5 @@
1
1
  <script lang="ts" setup>
2
- import { topicParts, type TopicPart } from 'erudit-cog/schema';
2
+ import { topicParts, type TopicPart } from '@erudit-js/cog/schema';
3
3
 
4
4
  import { injectAsideData } from '@app/scripts/aside/minor/state';
5
5
  import type { AsideMinorTopic } from '@shared/aside/minor';
@@ -1,5 +1,5 @@
1
1
  <script lang="ts" setup>
2
- import type { TopicPart } from 'erudit-cog/schema';
2
+ import type { TopicPart } from '@erudit-js/cog/schema';
3
3
  import { NO_ALIASES } from '@erudit-js/bitran-elements/aliases/shared';
4
4
 
5
5
  import eruditConfig from '#erudit/config';
@@ -1,5 +1,5 @@
1
1
  <script lang="ts" setup>
2
- import { topicParts, type TopicPart } from 'erudit-cog/schema';
2
+ import { topicParts, type TopicPart } from '@erudit-js/cog/schema';
3
3
 
4
4
  import type { TopicPartLinks } from '@erudit/shared/content/data/type/topic';
5
5
  import { TOPIC_PART_ICON } from '@erudit/shared/icons';
@@ -1,5 +1,5 @@
1
1
  <script lang="ts" setup>
2
- import type { ContentFlag } from 'erudit-cog/schema';
2
+ import type { ContentFlag } from '@erudit-js/cog/schema';
3
3
 
4
4
  import type { ContentGenericData } from '@shared/content/data/base';
5
5
 
@@ -1,4 +1,4 @@
1
- import type { ContentType, TopicPart } from 'erudit-cog/schema';
1
+ import type { ContentType, TopicPart } from '@erudit-js/cog/schema';
2
2
 
3
3
  interface ContentRouteBase {
4
4
  type: ContentType;
@@ -1,4 +1,4 @@
1
- import type { EruditConfigDebug } from 'erudit-cog/schema';
1
+ import type { EruditConfigDebug } from '@erudit-js/cog/schema';
2
2
 
3
3
  import eruditConfig from '#erudit/config';
4
4
 
@@ -1,10 +1,10 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
2
- <defs>
3
- <linearGradient id="gradient" x1="75" y1="423" x2="437" y2="61" gradientUnits="userSpaceOnUse">
4
- <stop offset="0" stop-color="#4aa44c"/>
5
- <stop offset="1" stop-color="#1278b9"/>
6
- </linearGradient>
7
- </defs>
8
- <circle fill="url(#gradient)" cx="256" cy="256" r="256"/>
9
- <path fill="white" d="M372.4,179.3h-232.8c-6.6,0-12-5.4-12-12v-26.3c0-6.6,5.4-12,12-12h232.8c6.6,0,12,5.4,12,12v26.3c0,6.6-5.4,12-12,12ZM384.4,269.2v-26.3c0-6.6-5.4-12-12-12h-232.8c-6.6,0-12,5.4-12,12v26.3c0,6.6,5.4,12,12,12h232.8c6.6,0,12-5.4,12-12ZM384.4,371v-26.3c0-6.6-5.4-12-12-12h-232.8c-6.6,0-12,5.4-12,12v26.3c0,6.6,5.4,12,12,12h232.8c6.6,0,12-5.4,12-12Z"/>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
2
+ <defs>
3
+ <linearGradient id="gradient" x1="75" y1="423" x2="437" y2="61" gradientUnits="userSpaceOnUse">
4
+ <stop offset="0" stop-color="#4aa44c"/>
5
+ <stop offset="1" stop-color="#1278b9"/>
6
+ </linearGradient>
7
+ </defs>
8
+ <circle fill="url(#gradient)" cx="256" cy="256" r="256"/>
9
+ <path fill="white" d="M372.4,179.3h-232.8c-6.6,0-12-5.4-12-12v-26.3c0-6.6,5.4-12,12-12h232.8c6.6,0,12,5.4,12,12v26.3c0,6.6-5.4,12-12,12ZM384.4,269.2v-26.3c0-6.6-5.4-12-12-12h-232.8c-6.6,0-12,5.4-12,12v26.3c0,6.6,5.4,12,12,12h232.8c6.6,0,12-5.4,12-12ZM384.4,371v-26.3c0-6.6-5.4-12-12-12h-232.8c-6.6,0-12,5.4-12,12v26.3c0,6.6,5.4,12,12,12h232.8c6.6,0,12-5.4,12-12Z"/>
10
10
  </svg>
@@ -1,5 +1,5 @@
1
1
  import type { MyIconName } from '#my-icons';
2
- import type { ContentFlag } from 'erudit-cog/schema';
2
+ import type { ContentFlag } from '@erudit-js/cog/schema';
3
3
 
4
4
  interface FlagData {
5
5
  icon: MyIconName;
package/globalPath.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { fileURLToPath } from 'node:url';
2
- import { resolvePaths } from 'erudit-cog/kit';
2
+ import { resolvePaths } from '@erudit-js/cog/kit';
3
3
 
4
4
  export const ERUDIT_DIR = resolvePaths(fileURLToPath(import.meta.url), '..');
5
5
  export const PROJECT_DIR = process.env.ERUDIT_PROJECT_DIR as string;
package/globals/bitran.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { defineBitranConfig, defineBitranElement } from 'erudit-cog/schema';
1
+ import { defineBitranConfig, defineBitranElement } from '@erudit-js/cog/schema';
2
2
  export { defineBitranConfig, defineBitranElement };
@@ -3,7 +3,7 @@ import type {
3
3
  ContentReferences,
4
4
  GroupConfig,
5
5
  TopicConfig,
6
- } from 'erudit-cog/schema';
6
+ } from '@erudit-js/cog/schema';
7
7
 
8
8
  export function defineBook(book: Partial<BookConfig>) {
9
9
  return book;
@@ -1,4 +1,4 @@
1
- import type { ContributorConfig } from 'erudit-cog/schema';
1
+ import type { ContributorConfig } from '@erudit-js/cog/schema';
2
2
 
3
3
  export function defineContributor(contributor: Partial<ContributorConfig>) {
4
4
  return contributor;
package/globals/erudit.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { EruditConfig } from 'erudit-cog/schema';
1
+ import type { EruditConfig } from '@erudit-js/cog/schema';
2
2
 
3
3
  export function defineEruditConfig(eruditConfig: Partial<EruditConfig>) {
4
4
  return eruditConfig;
package/module/bitran.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { addTemplate } from 'nuxt/kit';
2
2
  import type { Nuxt } from 'nuxt/schema';
3
- import type { EruditBitranConfig } from 'erudit-cog/schema';
3
+ import type { EruditBitranConfig } from '@erudit-js/cog/schema';
4
4
 
5
5
  import { eruditEndNuxtPath, projectPath } from '@erudit/globalPath';
6
6
  import { logger } from '@erudit/module/logger';
@@ -22,7 +22,7 @@ export async function setupBitranConfig(_nuxt: Nuxt) {
22
22
  filename: templateFilename,
23
23
  write: true,
24
24
  getContents: () => `
25
- import type { EruditBitranConfig } from 'erudit-cog/schema';
25
+ import type { EruditBitranConfig } from '@erudit-js/cog/schema';
26
26
  ${config ? `import bitranConfig from '${projectPath('bitran')}';` : ''}
27
27
  export default ${config ? 'bitranConfig' : '{}'} as Partial<EruditBitranConfig>;
28
28
  `,
package/module/config.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { addTemplate } from 'nuxt/kit';
2
2
  import type { Nuxt } from 'nuxt/schema';
3
- import type { EruditConfig } from 'erudit-cog/schema';
3
+ import type { EruditConfig } from '@erudit-js/cog/schema';
4
4
 
5
5
  import { eruditEndNuxtPath, projectPath } from '@erudit/globalPath';
6
6
  import { logger } from '@erudit/module/logger';
@@ -22,7 +22,7 @@ export async function setupEruditConfig(_nuxt: Nuxt) {
22
22
  filename: templateFilename,
23
23
  write: true,
24
24
  getContents: () => `
25
- import type { EruditConfig } from 'erudit-cog/schema';
25
+ import type { EruditConfig } from '@erudit-js/cog/schema';
26
26
  export default ${JSON.stringify(config, null, ' ')} as Partial<EruditConfig>;
27
27
  `,
28
28
  });
package/module/logger.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createConsola } from 'consola';
2
- import { brandColorTitle } from 'erudit-cog/utils/brandNode';
2
+ import { brandColorTitle } from '@erudit-js/cog/utils/brandNode';
3
3
 
4
4
  const tag = brandColorTitle + ' Module';
5
5
 
package/nuxt.config.ts CHANGED
@@ -1,5 +1,3 @@
1
- //import { elementPackages } from '@erudit-js/bitran-elements';
2
-
3
1
  import { eruditPath, projectPath } from './globalPath';
4
2
 
5
3
  export default defineNuxtConfig({
@@ -24,29 +22,11 @@ export default defineNuxtConfig({
24
22
  include: [eruditPath('**/*'), projectPath('**/*')],
25
23
  },
26
24
  },
27
- // modulesDir: [
28
- // 'D:/code/erudit-js/erudit/node_modules',
29
- // 'D:/code/erudit-js/bitran-elements/node_modules',
30
- // ],
31
25
  build: {
32
26
  transpile: [
33
27
  'yaml',
34
28
  '@bitran-js/renderer-vue',
35
29
  '@erudit-js/bitran-elements',
36
- // '@bitran-js/renderer-vue',
37
- // // '@erudit-js/bitran-elements',
38
- // // '@erudit-js/bitran-elements/heading/renderer',
39
- // 'yaml',
40
- //...elementPackages,
41
- // (ctx) => (ctx.isClient ? 'slugify' : false),
42
- // 'katex',
43
- // '@bitran-js/core',
44
- // '@bitran-js/transpiler',
45
- // '@bitran-js/renderer-vue',
46
- // '@erudit-js/bitran-elements',
47
- // '@erudit-js/bitran-elements/heading/shared',
48
- // '@erudit-js/bitran-elements/heading/transpiler',
49
- // '@erudit-js/bitran-elements/heading/renderer',
50
30
  ],
51
31
  },
52
32
  ignore: [
@@ -104,26 +84,7 @@ export default defineNuxtConfig({
104
84
  vite: {
105
85
  optimizeDeps: {
106
86
  noDiscovery: true,
107
- include: [
108
- 'yaml',
109
- '@floating-ui/vue',
110
- // '@bitran-js/core',
111
- // '@bitran-js/transpiler',
112
- // // '@bitran-js/renderer-vue',
113
- // // '@erudit-js/bitran-elements',
114
- // 'gradient-string',
115
- // '@floating-ui/vue',
116
- // 'yaml',
117
- // //
118
- //...elementPackages,
119
- // '@bitran-js/core',
120
- // '@bitran-js/transpiler',
121
- // '@bitran-js/renderer-vue',
122
- // '@erudit-js/bitran-elements',
123
- // '@erudit-js/bitran-elements/heading/shared',
124
- // '@erudit-js/bitran-elements/heading/transpiler',
125
- // '@erudit-js/bitran-elements/heading/renderer',
126
- ],
87
+ include: ['yaml', '@floating-ui/vue'],
127
88
  },
128
89
  server: { fs: { strict: false } },
129
90
  css: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "erudit",
3
- "version": "3.0.0-dev.5",
3
+ "version": "3.0.0-dev.6",
4
4
  "type": "module",
5
5
  "description": "🤓 CMS for perfect educational sites.",
6
6
  "license": "MIT",
@@ -10,19 +10,22 @@
10
10
  "url": "git+https://github.com/erudit-js/erudit.git",
11
11
  "directory": "packages/erudit"
12
12
  },
13
+ "peerDependencies": {
14
+ "@erudit-js/bitran-elements": "3.0.0-dev.6"
15
+ },
13
16
  "dependencies": {
14
17
  "@bitran-js/core": "1.0.0-dev.8",
15
18
  "@bitran-js/renderer-vue": "1.0.0-dev.8",
16
19
  "@bitran-js/transpiler": "1.0.0-dev.8",
17
- "@erudit-js/bitran-elements": "1.0.0-dev.6",
20
+ "@erudit-js/cli": "3.0.0-dev.6",
21
+ "@erudit-js/cog": "3.0.0-dev.6",
18
22
  "@floating-ui/vue": "^1.1.6",
19
23
  "chalk": "^5.4.1",
20
24
  "chokidar": "^4.0.3",
21
25
  "consola": "^3.4.0",
22
- "erudit-cli": "3.0.0-dev.5",
23
- "erudit-cog": "3.0.0-dev.5",
24
26
  "glob": "^11.0.1",
25
27
  "image-size": "^1.2.0",
28
+ "jiti": "^2.4.2",
26
29
  "nuxt": "3.15.4",
27
30
  "nuxt-my-icons": "1.0.2",
28
31
  "sass": "^1.85.1",
@@ -1,4 +1,4 @@
1
- import { isTopicPart } from 'erudit-cog/schema';
1
+ import { isTopicPart } from '@erudit-js/cog/schema';
2
2
 
3
3
  import type { AsideMinorContent, AsideMinorTopic } from '@shared/aside/minor';
4
4
  import { getBitranToc } from '@erudit/server/plugin/bitran/toc';
@@ -1,4 +1,4 @@
1
- import { isTopicPart, type TopicPart } from 'erudit-cog/schema';
1
+ import { isTopicPart, type TopicPart } from '@erudit-js/cog/schema';
2
2
  import { createPreRenderData, type PreRenderData } from '@bitran-js/transpiler';
3
3
  import { BlockNode, BlocksNode } from '@bitran-js/core';
4
4
  import { type BitranContent } from '@bitran-js/renderer-vue';
@@ -1,4 +1,4 @@
1
- import { isTopicPart } from 'erudit-cog/schema';
1
+ import { isTopicPart } from '@erudit-js/cog/schema';
2
2
 
3
3
  import { DbUnique } from '@server/db/entities/Unique';
4
4
  import { ERUDIT_SERVER } from '@server/global';
@@ -7,8 +7,8 @@ import {
7
7
  type ContentConfig,
8
8
  type ContentReferences,
9
9
  type ContentType,
10
- } from 'erudit-cog/schema';
11
- import { resolvePaths } from 'erudit-cog/kit';
10
+ } from '@erudit-js/cog/schema';
11
+ import { resolvePaths } from '@erudit-js/cog/kit';
12
12
 
13
13
  import { PROJECT_DIR } from '#erudit/globalPaths';
14
14
  import { stress } from '@erudit/utils/stress';
@@ -1,5 +1,5 @@
1
1
  import { readFileSync } from 'node:fs';
2
- import type { GroupConfig } from 'erudit-cog/schema';
2
+ import type { GroupConfig } from '@erudit-js/cog/schema';
3
3
 
4
4
  import { DbGroup } from '@server/db/entities/Group';
5
5
  import { ERUDIT_SERVER } from '@erudit/server/plugin/global';
@@ -1,5 +1,5 @@
1
1
  import { existsSync, readFileSync } from 'node:fs';
2
- import { topicParts, type TopicPart } from 'erudit-cog/schema';
2
+ import { topicParts, type TopicPart } from '@erudit-js/cog/schema';
3
3
 
4
4
  import { ERUDIT_SERVER } from '@server/global';
5
5
  import { DbTopic } from '@server/db/entities/Topic';
@@ -2,8 +2,8 @@ import { readFileSync } from 'node:fs';
2
2
  import { globSync } from 'glob';
3
3
  import path from 'node:path';
4
4
  import chalk from 'chalk';
5
- import { resolvePaths } from 'erudit-cog/kit';
6
- import type { ContributorConfig } from 'erudit-cog/schema';
5
+ import { resolvePaths } from '@erudit-js/cog/kit';
6
+ import type { ContributorConfig } from '@erudit-js/cog/schema';
7
7
 
8
8
  import { PROJECT_DIR } from '#erudit/globalPaths';
9
9
  import { stress } from '@erudit/utils/stress';
@@ -1,7 +1,11 @@
1
1
  import { globSync } from 'glob';
2
2
  import chalk from 'chalk';
3
- import { resolvePaths } from 'erudit-cog/kit';
4
- import { contentTypes, topicParts, type ContentType } from 'erudit-cog/schema';
3
+ import { resolvePaths } from '@erudit-js/cog/kit';
4
+ import {
5
+ contentTypes,
6
+ topicParts,
7
+ type ContentType,
8
+ } from '@erudit-js/cog/schema';
5
9
 
6
10
  import { PROJECT_DIR } from '#erudit/globalPaths';
7
11
  import { stress } from '@erudit/utils/stress';
@@ -1,4 +1,4 @@
1
- import { isTopicPart } from 'erudit-cog/schema';
1
+ import { isTopicPart } from '@erudit-js/cog/schema';
2
2
 
3
3
  import {
4
4
  parseBitranLocation,
@@ -1,4 +1,8 @@
1
- import { isContentType, isTopicPart, type TopicPart } from 'erudit-cog/schema';
1
+ import {
2
+ isContentType,
3
+ isTopicPart,
4
+ type TopicPart,
5
+ } from '@erudit-js/cog/schema';
2
6
 
3
7
  import { ERUDIT_SERVER } from '@server/global';
4
8
  import { getIdsUp, isSkipId } from '@server/nav/utils';
@@ -4,7 +4,7 @@ import type {
4
4
  ContentReferences,
5
5
  ContentSeo,
6
6
  ContentType,
7
- } from 'erudit-cog/schema';
7
+ } from '@erudit-js/cog/schema';
8
8
 
9
9
  import type { ImageData } from '@erudit/shared/image';
10
10
 
@@ -1,5 +1,5 @@
1
1
  import { Column, Entity, PrimaryColumn } from 'typeorm';
2
- import type { GroupType } from 'erudit-cog/schema';
2
+ import type { GroupType } from '@erudit-js/cog/schema';
3
3
 
4
4
  @Entity('group')
5
5
  export class DbGroup {
@@ -1,5 +1,5 @@
1
1
  import { Column, Entity, PrimaryColumn } from 'typeorm';
2
- import type { TopicPart } from 'erudit-cog/schema';
2
+ import type { TopicPart } from '@erudit-js/cog/schema';
3
3
 
4
4
  @Entity('topic')
5
5
  export class DbTopic {
@@ -1,5 +1,5 @@
1
1
  import type { DataSource } from 'typeorm';
2
- import type { EruditBitranConfig, EruditConfig } from 'erudit-cog/schema';
2
+ import type { EruditBitranConfig, EruditConfig } from '@erudit-js/cog/schema';
3
3
 
4
4
  import type { EruditPhrases } from '@shared/types/language';
5
5
  import type { NavNode, RootNavNode } from '@server/nav/node';
@@ -1,6 +1,6 @@
1
1
  import chalk from 'chalk';
2
2
  import { createConsola } from 'consola';
3
- import { brandColorTitle } from 'erudit-cog/utils/brandNode';
3
+ import { brandColorTitle } from '@erudit-js/cog/utils/brandNode';
4
4
 
5
5
  import eruditConfig from '#erudit/config';
6
6
 
@@ -1,4 +1,4 @@
1
- import type { ContentType } from 'erudit-cog/schema';
1
+ import type { ContentType } from '@erudit-js/cog/schema';
2
2
 
3
3
  export interface NavNode {
4
4
  type: ContentType;
@@ -1,4 +1,4 @@
1
- import type { ContentType } from 'erudit-cog/schema';
1
+ import type { ContentType } from '@erudit-js/cog/schema';
2
2
  import { Like } from 'typeorm';
3
3
 
4
4
  import { ERUDIT_SERVER } from '@server/global';
@@ -1,4 +1,4 @@
1
- import type { TopicPart } from 'erudit-cog/schema';
1
+ import type { TopicPart } from '@erudit-js/cog/schema';
2
2
 
3
3
  import { ERUDIT_SERVER } from '@server/global';
4
4
  import { DbTopic } from '@server/db/entities/Topic';
@@ -1,6 +1,6 @@
1
1
  <script lang="ts" setup>
2
2
  import type { ElementProps } from '@bitran-js/renderer-vue';
3
- import { isContentType, isTopicPart } from 'erudit-cog/schema';
3
+ import { isContentType, isTopicPart } from '@erudit-js/cog/schema';
4
4
 
5
5
  import { CONTENT_TYPE_ICON, ICON, TOPIC_PART_ICON } from '@erudit/shared/icons';
6
6
  import type { LinkSchema } from './shared';
@@ -1,4 +1,4 @@
1
- import { isTopicPart } from 'erudit-cog/schema';
1
+ import { isTopicPart } from '@erudit-js/cog/schema';
2
2
  import { tryReplaceAlias } from '@erudit-js/bitran-elements/aliases/shared';
3
3
 
4
4
  import type { BitranContext } from '@shared/bitran/context';
@@ -1,4 +1,4 @@
1
- import { isTopicPart } from 'erudit-cog/schema';
1
+ import { isTopicPart } from '@erudit-js/cog/schema';
2
2
 
3
3
  export const bitranLocationTypes = {
4
4
  article: true,
@@ -4,7 +4,7 @@ import type {
4
4
  ContentSeo,
5
5
  ContentType,
6
6
  TopicPart,
7
- } from 'erudit-cog/schema';
7
+ } from '@erudit-js/cog/schema';
8
8
 
9
9
  import type { Context } from '@shared/content/context';
10
10
  import type { PreviousNext } from '@shared/content/previousNext';
@@ -1,4 +1,4 @@
1
- import type { TopicPart } from 'erudit-cog/schema';
1
+ import type { TopicPart } from '@erudit-js/cog/schema';
2
2
 
3
3
  import type { ContentBaseData } from '../base';
4
4
 
@@ -1,4 +1,4 @@
1
- import type { ContentFlag, TopicPart } from 'erudit-cog/schema';
1
+ import type { ContentFlag, TopicPart } from '@erudit-js/cog/schema';
2
2
 
3
3
  export type FrontNavType = 'book' | 'topic' | 'separator' | 'folder';
4
4
 
package/shared/icons.ts CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  isTopicPart,
4
4
  type ContentType,
5
5
  type TopicPart,
6
- } from 'erudit-cog/schema';
6
+ } from '@erudit-js/cog/schema';
7
7
 
8
8
  import type { MyIconName } from '#my-icons';
9
9
  import type { BitranLocation } from './bitran/location';
package/shared/link.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { ContentType, TopicPart } from 'erudit-cog/schema';
1
+ import type { ContentType, TopicPart } from '@erudit-js/cog/schema';
2
2
  import type { BitranLocation } from './bitran/location';
3
3
 
4
4
  export function createBitranLocationLink(location: BitranLocation) {