diff --git a/app/[...path]/page.tsx b/app/[...path]/page.tsx new file mode 100644 index 00000000..3fecdcdd --- /dev/null +++ b/app/[...path]/page.tsx @@ -0,0 +1,23 @@ +import React from "react" + +import { fetcher } from "@/lib/graphql/fetchers/dpl-cms.fetcher" +import { GetPageByPathDocument, GetPageByPathQuery } from "@/lib/graphql/generated/dpl-cms/graphql" + +async function page(props: { params: Promise<{ path: string[] }> }) { + const params = await props.params + + const { path } = params + + const data = await fetcher(GetPageByPathDocument, { + path: path.join("/"), + })() + + return ( +
+ page +
{JSON.stringify(data, null, 2)}
+
+ ) +} + +export default page diff --git a/codegen.ts b/codegen.ts index a4bb69ba..1d235dc6 100644 --- a/codegen.ts +++ b/codegen.ts @@ -6,6 +6,7 @@ const { loadEnvConfig } = require("@next/env") loadEnvConfig(process.cwd()) +process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0" const config: CodegenConfig = { overwrite: true, generates: { @@ -15,7 +16,7 @@ const config: CodegenConfig = { schema: { [`${process.env.NEXT_PUBLIC_GRAPHQL_SCHEMA_ENDPOINT_DPL_CMS}`]: { headers: { - Authorization: `Basic ${process.env.GRAPHQL_SCHEMA_ENDPOINT_BASIC_TOKEN_DPL_CMS}`, + Authorization: `Basic ${process.env.NEXT_PUBLIC_GRAPHQL_BASIC_TOKEN_DPL_CMS}`, }, }, }, diff --git a/lib/graphql/generated/dpl-cms/graphql.tsx b/lib/graphql/generated/dpl-cms/graphql.tsx index 55fdbd3b..db6beef7 100644 --- a/lib/graphql/generated/dpl-cms/graphql.tsx +++ b/lib/graphql/generated/dpl-cms/graphql.tsx @@ -150,22 +150,22 @@ export type MediaDocument = MediaInterface & { created: DateTime; /** The Universally Unique IDentifier (UUID). */ id: Scalars['ID']['output']; - /** Sprog */ + /** Language */ langcode: Language; - /** Fil */ + /** File */ mediaFile: File; - /** Navn */ + /** Name */ name: Scalars['String']['output']; /** Alternativ URL */ path: Scalars['String']['output']; - /** Publiceret */ + /** Published */ status: Scalars['Boolean']['output']; }; /** Entity type media. */ export type MediaImage = MediaInterface & { __typename?: 'MediaImage'; - /** Bruges til fotokreditering og info om copyright. Vises som regel ved siden af billedet. */ + /** Used for public credit and copyright information. Will usually be displayed along with the media. */ byline?: Maybe; /** The time the media item was last edited. */ changed: DateTime; @@ -173,21 +173,20 @@ export type MediaImage = MediaInterface & { created: DateTime; /** The Universally Unique IDentifier (UUID). */ id: Scalars['ID']['output']; - /** Sprog */ + /** Language */ langcode: Language; /** - * Du kan indstille et fokuspunkt ved at klikke på forhåndsvisningen af - * billedet og flytte det hvide mål.

Ved at indstille et fokuspunkt - * fortæller du systemet, hvilken del af billedet der skal være i fokus, når - * det beskæres.

Brug funktionen "forhåndsvisning" til at se, - * hvordan dit billede vil blive beskåret på tværs af billedstil. + * You can set a focal point, by clicking on the preview on the image, moving the + * white target.

By setting a focal point, you tell the system which + * part of the image to keep in focus when it gets cropped.

Use the + * "preview" function, to see how your image will be cropped across image styles. */ mediaImage: Image; - /** Navn */ + /** Name */ name: Scalars['String']['output']; /** Alternativ URL */ path: Scalars['String']['output']; - /** Publiceret */ + /** Published */ status: Scalars['Boolean']['output']; }; @@ -199,13 +198,13 @@ export type MediaInterface = { created: DateTime; /** The Universally Unique IDentifier (UUID). */ id: Scalars['ID']['output']; - /** Sprog */ + /** Language */ langcode: Language; - /** Navn */ + /** Name */ name: Scalars['String']['output']; /** Alternativ URL */ path: Scalars['String']['output']; - /** Publiceret */ + /** Published */ status: Scalars['Boolean']['output']; }; @@ -221,15 +220,15 @@ export type MediaVideo = MediaInterface & { created: DateTime; /** The Universally Unique IDentifier (UUID). */ id: Scalars['ID']['output']; - /** Sprog */ + /** Language */ langcode: Language; - /** URL til video */ + /** Remote video URL */ mediaOembedVideo: Scalars['String']['output']; - /** Navn */ + /** Name */ name: Scalars['String']['output']; /** Alternativ URL */ path: Scalars['String']['output']; - /** Publiceret */ + /** Published */ status: Scalars['Boolean']['output']; }; @@ -240,19 +239,19 @@ export type Mutation = { _: Scalars['Boolean']['output']; }; -/** Brug artikler til nyhedspræget indhold med en begrænset levetid. */ +/** Use articles for news-worthy content, that does not get updated regularly. */ export type NodeArticle = NodeInterface & { __typename?: 'NodeArticle'; - /** Bibliotek */ + /** Branch */ branch?: Maybe; /** - * Oplys en canonical URL hvis indholdet i artiklen er kopieret fra en anden - * hjemmeside (fx kopieret fra et andet biblioteks hjemmeside). Dette hjælper - * med at signalere til søgemaskiner at kilden til indholdet er den - * specificerede side, og sikrer at den originale kilde krediteres. + * Please provide a canonical URL if this content has been duplicated from other + * websites. This helps signal to search engines that the preferred source of + * this content is the specified canonical URL, preventing potential duplicate + * content issues and ensuring proper attribution to the original source. */ canonicalUrl?: Maybe; - /** Kategorier */ + /** Categories */ categories?: Maybe; /** Tidspunktet hvor indholdselementet sidst blev redigeret. */ changed: DateTime; @@ -260,9 +259,9 @@ export type NodeArticle = NodeInterface & { created: DateTime; /** The Universally Unique IDentifier (UUID). */ id: Scalars['ID']['output']; - /** Sprog */ + /** Language */ langcode: Language; - /** Overskriv forfatter */ + /** Override author */ overrideAuthor?: Maybe; /** Paragraphs */ paragraphs?: Maybe>; @@ -273,26 +272,58 @@ export type NodeArticle = NodeInterface & { /** Publication date */ publicationDate: DateTime; /** - * Som standard er forfatteren sat til den Drupal-bruger, der ejer indholdet.

Hvis du ønsker at tilsidesætte dette med din egen tekst, kan du + * By default, the author is set to the Drupal user that owns the content.

If you want to override this, with a manual text, you can check this. */ showOverrideAuthor?: Maybe; - /** Publiceret */ + /** Published */ status: Scalars['Boolean']['output']; /** Klæbrig */ sticky: Scalars['Boolean']['output']; - /** Manchet */ + /** Subtitle */ subtitle?: Maybe; /** Tags */ tags?: Maybe>; /** - * Teaserfelterne bruges til cards som blikfang for indholdet. Hvis der ikke er - * valgt et teaserbillede, vil teksten vises i stedet. + * The teaser fields are used for the card of display.
If no image has been + * selected, the text will be shown instead:




*/ teaserImage?: Maybe; - /** Teasertekst */ + /** Teaser text */ teaserText?: Maybe; - /** Titel */ + /** Title */ + title: Scalars['String']['output']; +}; + +/** + * GO pages will be used for various types of content, which does not belong to + * either an article page or an category page. Some examples could be the + * frontpage, info pages, etc. + */ +export type NodeGoPage = NodeInterface & { + __typename?: 'NodeGoPage'; + /** Tidspunktet hvor indholdselementet sidst blev redigeret. */ + changed: DateTime; + /** The date and time that the content was created. */ + created: DateTime; + /** The Universally Unique IDentifier (UUID). */ + id: Scalars['ID']['output']; + /** Language */ + langcode: Language; + /** Paragraphs */ + paragraphs?: Maybe>; + /** Alternativ URL */ + path: Scalars['String']['output']; + /** Forfremmet til forside */ + promote: Scalars['Boolean']['output']; + /** Publication date */ + publicationDate: DateTime; + /** Published */ + status: Scalars['Boolean']['output']; + /** Klæbrig */ + sticky: Scalars['Boolean']['output']; + /** Title */ title: Scalars['String']['output']; }; @@ -304,29 +335,29 @@ export type NodeInterface = { created: DateTime; /** The Universally Unique IDentifier (UUID). */ id: Scalars['ID']['output']; - /** Sprog */ + /** Language */ langcode: Language; /** Alternativ URL */ path: Scalars['String']['output']; /** Forfremmet til forside */ promote: Scalars['Boolean']['output']; - /** Publiceret */ + /** Published */ status: Scalars['Boolean']['output']; /** Klæbrig */ sticky: Scalars['Boolean']['output']; - /** Titel */ + /** Title */ title: Scalars['String']['output']; }; /** Entity type node. */ -export type NodeUnion = NodeArticle; +export type NodeUnion = NodeArticle | NodeGoPage; /** Entity type paragraph. */ export type ParagraphAccordion = ParagraphInterface & { __typename?: 'ParagraphAccordion'; - /** Accordion beskrivelse */ + /** Accordion description */ accordionDescription?: Maybe; - /** Accordion titel */ + /** Accordion title */ accordionTitle: Text; /** The time that the Paragraph was created. */ created: DateTime; @@ -334,7 +365,7 @@ export type ParagraphAccordion = ParagraphInterface & { id: Scalars['ID']['output']; /** The paragraphs entity language code. */ langcode: Language; - /** Publiceret */ + /** Published */ status: Scalars['Boolean']['output']; }; @@ -353,13 +384,13 @@ export type ParagraphBanner = ParagraphInterface & { id: Scalars['ID']['output']; /** The paragraphs entity language code. */ langcode: Language; - /** Publiceret */ + /** Published */ status: Scalars['Boolean']['output']; /** Underlined title */ underlinedTitle?: Maybe; }; -/** Vis automatisk alt indhold, som refererer til dit valgte brødkrumme element. */ +/** Automatically display all content that is referencing your chosen breadcrumb item. */ export type ParagraphBreadcrumbChildren = ParagraphInterface & { __typename?: 'ParagraphBreadcrumbChildren'; /** The time that the Paragraph was created. */ @@ -368,7 +399,7 @@ export type ParagraphBreadcrumbChildren = ParagraphInterface & { id: Scalars['ID']['output']; /** The paragraphs entity language code. */ langcode: Language; - /** Publiceret */ + /** Published */ status: Scalars['Boolean']['output']; }; @@ -379,13 +410,13 @@ export type ParagraphCardGridAutomatic = ParagraphInterface & { created: DateTime; /** If nothing is selected, all will be chosen. */ filterBranches?: Maybe>; - /** Filter efter kategorier */ + /** Filter by categories */ filterCategories?: Maybe>; /** Condition type */ filterCondType: Scalars['String']['output']; /** If nothing is selected, all will be chosen. */ filterContentTypes?: Maybe>; - /** Filter efter tags */ + /** Filter by tags */ filterTags?: Maybe>; /** The Universally Unique IDentifier (UUID). */ id: Scalars['ID']['output']; @@ -393,9 +424,9 @@ export type ParagraphCardGridAutomatic = ParagraphInterface & { langcode: Language; /** More link */ moreLink?: Maybe; - /** Publiceret */ + /** Published */ status: Scalars['Boolean']['output']; - /** Titel */ + /** Title */ title?: Maybe; }; @@ -404,32 +435,35 @@ export type ParagraphCardGridManual = ParagraphInterface & { __typename?: 'ParagraphCardGridManual'; /** The time that the Paragraph was created. */ created: DateTime; - /** Indhold */ - gridContent?: Maybe>; + /** Content */ + gridContent?: Maybe>; /** The Universally Unique IDentifier (UUID). */ id: Scalars['ID']['output']; /** The paragraphs entity language code. */ langcode: Language; /** More link */ moreLink?: Maybe; - /** Publiceret */ + /** Published */ status: Scalars['Boolean']['output']; - /** Overskrift */ + /** Title */ title?: Maybe; }; +/** Content */ +export type ParagraphCardGridManualGridContentUnion = NodeArticle | NodeGoPage; + /** Entity type paragraph. */ export type ParagraphContentSlider = ParagraphInterface & { __typename?: 'ParagraphContentSlider'; - /** Indhold */ - contentReferences?: Maybe>; + /** Contents */ + contentReferences?: Maybe>; /** The time that the Paragraph was created. */ created: DateTime; /** The Universally Unique IDentifier (UUID). */ id: Scalars['ID']['output']; /** The paragraphs entity language code. */ langcode: Language; - /** Publiceret */ + /** Published */ status: Scalars['Boolean']['output']; /** deprecated */ title?: Maybe; @@ -456,7 +490,7 @@ export type ParagraphContentSliderAutomatic = ParagraphInterface & { id: Scalars['ID']['output']; /** The paragraphs entity language code. */ langcode: Language; - /** Publiceret */ + /** Published */ status: Scalars['Boolean']['output']; /** deprecated */ title?: Maybe; @@ -464,18 +498,21 @@ export type ParagraphContentSliderAutomatic = ParagraphInterface & { underlinedTitle?: Maybe; }; -/** Denne paragraph viser en liste af arrangementer filtreret på kategori, tags og filialer. */ +/** Contents */ +export type ParagraphContentSliderContentReferencesUnion = NodeArticle | NodeGoPage; + +/** This paragraph displays a generated a list of events, based on specified filters for tags, categories and branches. */ export type ParagraphFilteredEventList = ParagraphInterface & { __typename?: 'ParagraphFilteredEventList'; /** The time that the Paragraph was created. */ created: DateTime; - /** Tilføj enhver forgrening, du vil inkludere */ + /** If nothing is selected, all will be chosen. */ filterBranches?: Maybe>; - /** Tilføj en kategori, du vil inkludere */ + /** Add a category you want to include */ filterCategories?: Maybe>; /** Condition type */ filterCondType: Scalars['String']['output']; - /** Tilføj et tag, du vil inkludere */ + /** Add a tag you want to include */ filterTags?: Maybe>; /** The Universally Unique IDentifier (UUID). */ id: Scalars['ID']['output']; @@ -487,12 +524,29 @@ export type ParagraphFilteredEventList = ParagraphInterface & { * enough results based on your selected filters. */ maxItemAmount: Scalars['String']['output']; - /** Publiceret */ + /** Published */ status: Scalars['Boolean']['output']; - /** Titel */ + /** Title */ title?: Maybe; }; +/** Enter the URL for the video you want to include. */ +export type ParagraphGoVideo = ParagraphInterface & { + __typename?: 'ParagraphGoVideo'; + /** The time that the Paragraph was created. */ + created: DateTime; + /** Embed video */ + embedVideo?: Maybe; + /** Title */ + goVideoTitle?: Maybe; + /** The Universally Unique IDentifier (UUID). */ + id: Scalars['ID']['output']; + /** The paragraphs entity language code. */ + langcode: Language; + /** Published */ + status: Scalars['Boolean']['output']; +}; + /** Entity type paragraph. */ export type ParagraphInterface = { /** The time that the Paragraph was created. */ @@ -501,31 +555,72 @@ export type ParagraphInterface = { id: Scalars['ID']['output']; /** The paragraphs entity language code. */ langcode: Language; - /** Publiceret */ + /** Published */ status: Scalars['Boolean']['output']; }; -/** Dette afsnit vil vise en liste over arrangementer, der er manuelt valgt. */ +/** This paragraph will show a list of events that are manually selected. */ export type ParagraphManualEventList = ParagraphInterface & { __typename?: 'ParagraphManualEventList'; /** The time that the Paragraph was created. */ created: DateTime; - /** Arrangementer */ + /** Events */ events?: Maybe>; /** The Universally Unique IDentifier (UUID). */ id: Scalars['ID']['output']; /** The paragraphs entity language code. */ langcode: Language; - /** Publiceret */ + /** Published */ status: Scalars['Boolean']['output']; - /** Titel */ + /** Title */ title?: Maybe; }; -/** En basal, formateret brødtekst */ +/** A grid representation of recommended materials, based on a CQL search string. */ +export type ParagraphMaterialGridAutomatic = ParagraphInterface & { + __typename?: 'ParagraphMaterialGridAutomatic'; + /** + * Determines the amount of materials that will be shown, based on the CQL + * string.

Obs: If for example a CQL string has 11 results, and an + * editor chooses 12. The list will display 8 instead of 11, since the grid + * should be able to increment by 4. + */ + amountOfMaterials: Scalars['Int']['output']; + /** The time that the Paragraph was created. */ + created: DateTime; + /** The Universally Unique IDentifier (UUID). */ + id: Scalars['ID']['output']; + /** The paragraphs entity language code. */ + langcode: Language; + /** This is the optional description for the material grid.
Leave blank if you do not want a description. */ + materialGridDescription?: Maybe; + /** The title for the material grid. Leave this blank if you do not want a title. */ + materialGridTitle?: Maybe; + /** Published */ + status: Scalars['Boolean']['output']; +}; + +/** A grid displaying a list of recommended materials selected manually. */ +export type ParagraphMaterialGridManual = ParagraphInterface & { + __typename?: 'ParagraphMaterialGridManual'; + /** The time that the Paragraph was created. */ + created: DateTime; + /** The Universally Unique IDentifier (UUID). */ + id: Scalars['ID']['output']; + /** The paragraphs entity language code. */ + langcode: Language; + /** This is the optional description for the material grid.
Leave blank if you do not want a description. */ + materialGridDescription?: Maybe; + /** The title for the material grid. Leave this blank if you do not want a title. */ + materialGridTitle?: Maybe; + /** Published */ + status: Scalars['Boolean']['output']; +}; + +/** A basic, formatted body of text. */ export type ParagraphTextBody = ParagraphInterface & { __typename?: 'ParagraphTextBody'; - /** Brødtekst */ + /** Body */ body?: Maybe; /** The time that the Paragraph was created. */ created: DateTime; @@ -533,12 +628,27 @@ export type ParagraphTextBody = ParagraphInterface & { id: Scalars['ID']['output']; /** The paragraphs entity language code. */ langcode: Language; - /** Publiceret */ + /** Published */ status: Scalars['Boolean']['output']; }; /** Entity type paragraph. */ -export type ParagraphUnion = ParagraphAccordion | ParagraphBanner | ParagraphBreadcrumbChildren | ParagraphCardGridAutomatic | ParagraphCardGridManual | ParagraphContentSlider | ParagraphContentSliderAutomatic | ParagraphFilteredEventList | ParagraphManualEventList | ParagraphTextBody; +export type ParagraphUnion = ParagraphAccordion | ParagraphBanner | ParagraphBreadcrumbChildren | ParagraphCardGridAutomatic | ParagraphCardGridManual | ParagraphContentSlider | ParagraphContentSliderAutomatic | ParagraphFilteredEventList | ParagraphGoVideo | ParagraphManualEventList | ParagraphMaterialGridAutomatic | ParagraphMaterialGridManual | ParagraphTextBody | ParagraphVideo; + +/** Enter the URL for the video you want to include. */ +export type ParagraphVideo = ParagraphInterface & { + __typename?: 'ParagraphVideo'; + /** The time that the Paragraph was created. */ + created: DateTime; + /** Embed video */ + embedVideo?: Maybe; + /** The Universally Unique IDentifier (UUID). */ + id: Scalars['ID']['output']; + /** The paragraphs entity language code. */ + langcode: Language; + /** Published */ + status: Scalars['Boolean']['output']; +}; /** The schema's entry-point for queries. */ export type Query = { @@ -549,6 +659,10 @@ export type Query = { info: SchemaInformation; /** Load a NodeArticle entity by id */ nodeArticle?: Maybe; + /** Load a NodeGoPage entity by id */ + nodeGoPage?: Maybe; + /** Load a Route by path. */ + route?: Maybe; }; @@ -559,6 +673,70 @@ export type QueryNodeArticleArgs = { revision?: InputMaybe; }; + +/** The schema's entry-point for queries. */ +export type QueryNodeGoPageArgs = { + id: Scalars['ID']['input']; + langcode?: InputMaybe; + revision?: InputMaybe; +}; + + +/** The schema's entry-point for queries. */ +export type QueryRouteArgs = { + langcode?: InputMaybe; + path: Scalars['String']['input']; +}; + +/** Routes represent incoming requests that resolve to content. */ +export type Route = { + /** Whether this route is internal or external. */ + internal: Scalars['Boolean']['output']; + /** URL of this route. */ + url: Scalars['String']['output']; +}; + +/** A list of possible entities that can be returned by URL. */ +export type RouteEntityUnion = NodeArticle | NodeGoPage; + +/** Route outside of this website. */ +export type RouteExternal = Route & { + __typename?: 'RouteExternal'; + /** Whether this route is internal or external. */ + internal: Scalars['Boolean']['output']; + /** URL of this route. */ + url: Scalars['String']['output']; +}; + +/** Route within this website. */ +export type RouteInternal = Route & { + __typename?: 'RouteInternal'; + /** Breadcrumb links for this route. */ + breadcrumbs?: Maybe>; + /** Content assigned to this route. */ + entity?: Maybe; + /** Whether this route is internal or external. */ + internal: Scalars['Boolean']['output']; + /** URL of this route. */ + url: Scalars['String']['output']; +}; + +/** Redirect to another URL with status. */ +export type RouteRedirect = Route & { + __typename?: 'RouteRedirect'; + /** Whether this route is internal or external. */ + internal: Scalars['Boolean']['output']; + /** Utility prop. Always true for redirects. */ + redirect: Scalars['Boolean']['output']; + /** Suggested status for redirect. Eg 301. */ + status: Scalars['Int']['output']; + /** URL of this route. */ + url: Scalars['String']['output']; +}; + +/** Route types that can exist in the system. */ +export type RouteUnion = RouteExternal | RouteInternal | RouteRedirect; + /** Schema information provided by the system. */ export type SchemaInformation = { __typename?: 'SchemaInformation'; @@ -592,9 +770,9 @@ export type TermBreadcrumbStructure = TermInterface & { __typename?: 'TermBreadcrumbStructure'; /** Datoen hvor termen senest blev redigeret. */ changed: DateTime; - /** Titlen, der vises over listen af refereret indhold. Vil ikke blive vist, hvis der ikke vises nogen børn. */ + /** The title that is shown above the list of referenced content. Will not be shown, if there are no children displayed. */ childrenTitle?: Maybe; - /** Indhold der linkes til */ + /** Content */ content: NodeUnion; /** Beskrivelse */ description: Text; @@ -602,17 +780,17 @@ export type TermBreadcrumbStructure = TermInterface & { id: Scalars['ID']['output']; /** Term sprogkode. */ langcode: Language; - /** Navn */ + /** Name */ name: Scalars['String']['output']; /** Denne terms overordnede termer. */ parent?: Maybe; /** Alternativ URL */ path: Scalars['String']['output']; - /** Vis en automatisk liste med indhold, som refererer til dette brødkrumme element, på denne side. */ + /** Should a list of contents that reference this breadcrumb, be shown automatically on this page? */ showChildren?: Maybe; /** If this is checked, the children teasers will be expanded with possible subtitle descriptions. */ showChildrenSubtitles?: Maybe; - /** Publiceret */ + /** Published */ status: Scalars['Boolean']['output']; /** Vægten af denne term i forhold til andre termer. */ weight: Scalars['Int']['output']; @@ -629,13 +807,13 @@ export type TermCategories = TermInterface & { id: Scalars['ID']['output']; /** Term sprogkode. */ langcode: Language; - /** Navn */ + /** Name */ name: Scalars['String']['output']; /** Denne terms overordnede termer. */ parent?: Maybe; /** Alternativ URL */ path: Scalars['String']['output']; - /** Publiceret */ + /** Published */ status: Scalars['Boolean']['output']; /** Vægten af denne term i forhold til andre termer. */ weight: Scalars['Int']['output']; @@ -651,19 +829,19 @@ export type TermInterface = { id: Scalars['ID']['output']; /** Term sprogkode. */ langcode: Language; - /** Navn */ + /** Name */ name: Scalars['String']['output']; /** Denne terms overordnede termer. */ parent?: Maybe; /** Alternativ URL */ path: Scalars['String']['output']; - /** Publiceret */ + /** Published */ status: Scalars['Boolean']['output']; /** Vægten af denne term i forhold til andre termer. */ weight: Scalars['Int']['output']; }; -/** This is for adding types of opening hours, e.g. "open" or "Telephone time" */ +/** Kategorier af åbningstider, f.eks. "Åbent" eller "Telefontid" */ export type TermOpeningHoursCategories = TermInterface & { __typename?: 'TermOpeningHoursCategories'; /** Datoen hvor termen senest blev redigeret. */ @@ -674,13 +852,36 @@ export type TermOpeningHoursCategories = TermInterface & { id: Scalars['ID']['output']; /** Term sprogkode. */ langcode: Language; - /** Navn */ + /** Name */ name: Scalars['String']['output']; /** Denne terms overordnede termer. */ parent?: Maybe; /** Alternativ URL */ path: Scalars['String']['output']; - /** Publiceret */ + /** Published */ + status: Scalars['Boolean']['output']; + /** Vægten af denne term i forhold til andre termer. */ + weight: Scalars['Int']['output']; +}; + +/** Screens to display content on */ +export type TermScreenName = TermInterface & { + __typename?: 'TermScreenName'; + /** Datoen hvor termen senest blev redigeret. */ + changed: DateTime; + /** Beskrivelse */ + description: Text; + /** The Universally Unique IDentifier (UUID). */ + id: Scalars['ID']['output']; + /** Term sprogkode. */ + langcode: Language; + /** Name */ + name: Scalars['String']['output']; + /** Denne terms overordnede termer. */ + parent?: Maybe; + /** Alternativ URL */ + path: Scalars['String']['output']; + /** Published */ status: Scalars['Boolean']['output']; /** Vægten af denne term i forhold til andre termer. */ weight: Scalars['Int']['output']; @@ -697,20 +898,20 @@ export type TermTags = TermInterface & { id: Scalars['ID']['output']; /** Term sprogkode. */ langcode: Language; - /** Navn */ + /** Name */ name: Scalars['String']['output']; /** Denne terms overordnede termer. */ parent?: Maybe; /** Alternativ URL */ path: Scalars['String']['output']; - /** Publiceret */ + /** Published */ status: Scalars['Boolean']['output']; /** Vægten af denne term i forhold til andre termer. */ weight: Scalars['Int']['output']; }; /** Entity type taxonomy_term. */ -export type TermUnion = TermBreadcrumbStructure | TermCategories | TermOpeningHoursCategories | TermTags | TermWebformEmailCategories; +export type TermUnion = TermBreadcrumbStructure | TermCategories | TermOpeningHoursCategories | TermScreenName | TermTags | TermWebformEmailCategories; /** List of email categories used for sending webform submissions. Each category is associated with an email address. */ export type TermWebformEmailCategories = TermInterface & { @@ -725,13 +926,13 @@ export type TermWebformEmailCategories = TermInterface & { id: Scalars['ID']['output']; /** Term sprogkode. */ langcode: Language; - /** Navn */ + /** Name */ name: Scalars['String']['output']; /** Denne terms overordnede termer. */ parent?: Maybe; /** Alternativ URL */ path: Scalars['String']['output']; - /** Publiceret */ + /** Published */ status: Scalars['Boolean']['output']; /** Vægten af denne term i forhold til andre termer. */ weight: Scalars['Int']['output']; @@ -796,13 +997,20 @@ export type GetArticleQueryVariables = Exact<{ }>; -export type GetArticleQuery = { __typename?: 'Query', nodeArticle?: { __typename?: 'NodeArticle', title: string, subtitle?: string | null, paragraphs?: Array<{ __typename: 'ParagraphAccordion' } | { __typename: 'ParagraphBanner' } | { __typename: 'ParagraphBreadcrumbChildren' } | { __typename: 'ParagraphCardGridAutomatic' } | { __typename: 'ParagraphCardGridManual' } | { __typename: 'ParagraphContentSlider' } | { __typename: 'ParagraphContentSliderAutomatic' } | { __typename: 'ParagraphFilteredEventList' } | { __typename: 'ParagraphManualEventList' } | { __typename: 'ParagraphTextBody', body?: { __typename?: 'Text', value?: string | null } | null }> | null } | null }; +export type GetArticleQuery = { __typename?: 'Query', nodeArticle?: { __typename?: 'NodeArticle', title: string, subtitle?: string | null, paragraphs?: Array<{ __typename: 'ParagraphAccordion' } | { __typename: 'ParagraphBanner' } | { __typename: 'ParagraphBreadcrumbChildren' } | { __typename: 'ParagraphCardGridAutomatic' } | { __typename: 'ParagraphCardGridManual' } | { __typename: 'ParagraphContentSlider' } | { __typename: 'ParagraphContentSliderAutomatic' } | { __typename: 'ParagraphFilteredEventList' } | { __typename: 'ParagraphGoVideo' } | { __typename: 'ParagraphManualEventList' } | { __typename: 'ParagraphMaterialGridAutomatic' } | { __typename: 'ParagraphMaterialGridManual' } | { __typename: 'ParagraphTextBody', body?: { __typename?: 'Text', value?: string | null } | null } | { __typename: 'ParagraphVideo' }> | null } | null }; export type GetDplCmsConfigurationQueryVariables = Exact<{ [key: string]: never; }>; export type GetDplCmsConfigurationQuery = { __typename?: 'Query', dplConfiguration?: { __typename?: 'DplConfiguration', unilogin?: { __typename?: 'UniloginConfiguration', unilogin_api_url?: string | null, unilogin_api_wellknown_url?: string | null, unilogin_api_client_id?: string | null, unilogin_api_client_secret?: string | null } | null } | null }; +export type GetPageByPathQueryVariables = Exact<{ + path: Scalars['String']['input']; +}>; + + +export type GetPageByPathQuery = { __typename?: 'Query', route?: { __typename?: 'RouteExternal' } | { __typename?: 'RouteInternal', entity?: { __typename?: 'NodeArticle' } | { __typename?: 'NodeGoPage', paragraphs?: Array<{ __typename?: 'ParagraphAccordion' } | { __typename?: 'ParagraphBanner' } | { __typename?: 'ParagraphBreadcrumbChildren' } | { __typename?: 'ParagraphCardGridAutomatic' } | { __typename?: 'ParagraphCardGridManual' } | { __typename?: 'ParagraphContentSlider' } | { __typename?: 'ParagraphContentSliderAutomatic' } | { __typename?: 'ParagraphFilteredEventList' } | { __typename: 'ParagraphGoVideo', id: string, goVideoTitle?: string | null, status: boolean, created: { __typename?: 'DateTime', timestamp: unknown }, embedVideo?: { __typename?: 'MediaDocument' } | { __typename?: 'MediaImage' } | { __typename?: 'MediaVideo', id: string, mediaOembedVideo: string, name: string, path: string } | null, langcode: { __typename?: 'Language', name?: string | null } } | { __typename?: 'ParagraphManualEventList' } | { __typename?: 'ParagraphMaterialGridAutomatic' } | { __typename?: 'ParagraphMaterialGridManual' } | { __typename?: 'ParagraphTextBody' } | { __typename?: 'ParagraphVideo' }> | null } | null } | { __typename?: 'RouteRedirect' } | null }; + export const GetArticleDocument = ` @@ -912,3 +1120,77 @@ useSuspenseGetDplCmsConfigurationQuery.getKey = (variables?: GetDplCmsConfigurat useGetDplCmsConfigurationQuery.fetcher = (variables?: GetDplCmsConfigurationQueryVariables, options?: RequestInit['headers']) => fetcher(GetDplCmsConfigurationDocument, variables, options); + +export const GetPageByPathDocument = ` + query getPageByPath($path: String!) { + route(path: $path) { + ... on RouteInternal { + entity { + ... on NodeGoPage { + paragraphs { + ... on ParagraphGoVideo { + __typename + id + created { + timestamp + } + goVideoTitle + embedVideo { + ... on MediaVideo { + id + mediaOembedVideo + name + path + } + } + langcode { + name + } + status + } + } + } + } + } + } +} + `; + +export const useGetPageByPathQuery = < + TData = GetPageByPathQuery, + TError = unknown + >( + variables: GetPageByPathQueryVariables, + options?: Omit, 'queryKey'> & { queryKey?: UseQueryOptions['queryKey'] } + ) => { + + return useQuery( + { + queryKey: ['getPageByPath', variables], + queryFn: fetcher(GetPageByPathDocument, variables), + ...options + } + )}; + +useGetPageByPathQuery.getKey = (variables: GetPageByPathQueryVariables) => ['getPageByPath', variables]; + +export const useSuspenseGetPageByPathQuery = < + TData = GetPageByPathQuery, + TError = unknown + >( + variables: GetPageByPathQueryVariables, + options?: Omit, 'queryKey'> & { queryKey?: UseSuspenseQueryOptions['queryKey'] } + ) => { + + return useSuspenseQuery( + { + queryKey: ['getPageByPathSuspense', variables], + queryFn: fetcher(GetPageByPathDocument, variables), + ...options + } + )}; + +useSuspenseGetPageByPathQuery.getKey = (variables: GetPageByPathQueryVariables) => ['getPageByPathSuspense', variables]; + + +useGetPageByPathQuery.fetcher = (variables: GetPageByPathQueryVariables, options?: RequestInit['headers']) => fetcher(GetPageByPathDocument, variables, options); diff --git a/lib/graphql/queries/page.dpl-cms.graphql b/lib/graphql/queries/page.dpl-cms.graphql new file mode 100644 index 00000000..e01170e7 --- /dev/null +++ b/lib/graphql/queries/page.dpl-cms.graphql @@ -0,0 +1,32 @@ +query getPageByPath($path: String!) { + route(path: $path) { + ... on RouteInternal { + entity { + ... on NodeGoPage { + paragraphs { + ... on ParagraphGoVideo { + __typename + id + created { + timestamp + } + goVideoTitle + embedVideo { + ... on MediaVideo { + id + mediaOembedVideo + name + path + } + } + langcode { + name + } + status + } + } + } + } + } + } +} diff --git a/package.json b/package.json index d43783e1..5a36403f 100644 --- a/package.json +++ b/package.json @@ -5,19 +5,19 @@ "type": "module", "scripts": { "build-storybook": "storybook build", - "build": "next build", + "build": "NODE_EXTRA_CA_CERTS=\"$(mkcert -CAROOT)/rootCA.pem\" next build", "ci-check": "yarn typecheck && yarn lint && yarn format:check && yarn test:unit:once", "codegen:all-rest-services": "orval", "codegen:covers": "rm -rf src/lib/rest/cover-service-api/generated/model/*.* && orval --project coverService", - "codegen:graphql": "graphql-codegen --require tsconfig-paths/register --config codegen.ts", + "codegen:graphql": "NODE_TLS_REJECT_UNAUTHORIZED=0 graphql-codegen --require tsconfig-paths/register --config codegen.ts", "codegen:publizon": "rm -rf lib/rest/publizon-api/generated/model/*.* && orval --project publizonAdapter", - "dev:https": "next dev --experimental-https", - "dev": "next dev", + "dev:https": "NODE_TLS_REJECT_UNAUTHORIZED=0 next dev --experimental-https", + "dev": "NODE_EXTRA_CA_CERTS=\"$(mkcert -CAROOT)/rootCA.pem\" next dev", "format:check": "prettier --check .", "format:write": "prettier --write .", "lint": "next lint", "start:with-server-source-maps": "NODE_OPTIONS='--enable-source-maps=true' next start", - "start": "next start", + "start": "NODE_EXTRA_CA_CERTS=\"$(mkcert -CAROOT)/rootCA.pem\" next start", "storybook": "storybook dev -p 6006", "test:accessibility": "test-storybook", "test:unit:once": "vitest run", @@ -43,7 +43,7 @@ "iron-session": "^8.0.3", "lodash": "^4.17.21", "lucide-react": "^0.446.0", - "next": "15.0.3", + "next": "^15.1.0", "next-drupal": "^2.0.0-beta.0", "openid-client": "^6.1.3", "react": "^19.0.0", diff --git a/yarn.lock b/yarn.lock index 8025bc5c..c4127b48 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2870,6 +2870,11 @@ resolved "https://registry.yarnpkg.com/@next/env/-/env-15.0.3.tgz#a2e9bf274743c52b74d30f415f3eba750d51313a" integrity sha512-t9Xy32pjNOvVn2AS+Utt6VmyrshbpfUMhIjFO60gI58deSo/KgLOp31XZ4O+kY/Is8WAGYwA5gR7kOb1eORDBA== +"@next/env@15.1.2": + version "15.1.2" + resolved "https://registry.yarnpkg.com/@next/env/-/env-15.1.2.tgz#fa36e47bbaa33b9ecac228aa786bb05bbc15351c" + integrity sha512-Hm3jIGsoUl6RLB1vzY+dZeqb+/kWPZ+h34yiWxW0dV87l8Im/eMOwpOA+a0L78U0HM04syEjXuRlCozqpwuojQ== + "@next/eslint-plugin-next@15.0.3": version "15.0.3" resolved "https://registry.yarnpkg.com/@next/eslint-plugin-next/-/eslint-plugin-next-15.0.3.tgz#ce953098036d462f6901e423cc6445fc165b78c4" @@ -2882,70 +2887,70 @@ resolved "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.2.15.tgz" integrity sha512-Rvh7KU9hOUBnZ9TJ28n2Oa7dD9cvDBKua9IKx7cfQQ0GoYUwg9ig31O2oMwH3wm+pE3IkAQ67ZobPfEgurPZIA== -"@next/swc-darwin-arm64@15.0.3": - version "15.0.3" - resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-15.0.3.tgz#4c40c506cf3d4d87da0204f4cccf39e6bdc46a71" - integrity sha512-s3Q/NOorCsLYdCKvQlWU+a+GeAd3C8Rb3L1YnetsgwXzhc3UTWrtQpB/3eCjFOdGUj5QmXfRak12uocd1ZiiQw== +"@next/swc-darwin-arm64@15.1.2": + version "15.1.2" + resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-15.1.2.tgz#822265999fc76f828f4c671a5ef861b8e2c5213e" + integrity sha512-b9TN7q+j5/7+rGLhFAVZiKJGIASuo8tWvInGfAd8wsULjB1uNGRCj1z1WZwwPWzVQbIKWFYqc+9L7W09qwt52w== "@next/swc-darwin-x64@14.2.15": version "14.2.15" resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-14.2.15.tgz#b7baeedc6a28f7545ad2bc55adbab25f7b45cb89" integrity sha512-5TGyjFcf8ampZP3e+FyCax5zFVHi+Oe7sZyaKOngsqyaNEpOgkKB3sqmymkZfowy3ufGA/tUgDPPxpQx931lHg== -"@next/swc-darwin-x64@15.0.3": - version "15.0.3" - resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-15.0.3.tgz#8e06cacae3dae279744f9fbe88dea679ec2c1ca3" - integrity sha512-Zxl/TwyXVZPCFSf0u2BNj5sE0F2uR6iSKxWpq4Wlk/Sv9Ob6YCKByQTkV2y6BCic+fkabp9190hyrDdPA/dNrw== +"@next/swc-darwin-x64@15.1.2": + version "15.1.2" + resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-15.1.2.tgz#78d277bce3d35c6e8d9ad423b6f5b0031aa9a1e2" + integrity sha512-caR62jNDUCU+qobStO6YJ05p9E+LR0EoXh1EEmyU69cYydsAy7drMcOlUlRtQihM6K6QfvNwJuLhsHcCzNpqtA== "@next/swc-linux-arm64-gnu@14.2.15": version "14.2.15" resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.2.15.tgz#fa13c59d3222f70fb4cb3544ac750db2c6e34d02" integrity sha512-3Bwv4oc08ONiQ3FiOLKT72Q+ndEMyLNsc/D3qnLMbtUYTQAmkx9E/JRu0DBpHxNddBmNT5hxz1mYBphJ3mfrrw== -"@next/swc-linux-arm64-gnu@15.0.3": - version "15.0.3" - resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-15.0.3.tgz#c144ad1f21091b9c6e1e330ecc2d56188763191d" - integrity sha512-T5+gg2EwpsY3OoaLxUIofmMb7ohAUlcNZW0fPQ6YAutaWJaxt1Z1h+8zdl4FRIOr5ABAAhXtBcpkZNwUcKI2fw== +"@next/swc-linux-arm64-gnu@15.1.2": + version "15.1.2" + resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-15.1.2.tgz#4d48c8c37da869b0fdbb51f3f3f71df7a3b6b1bb" + integrity sha512-fHHXBusURjBmN6VBUtu6/5s7cCeEkuGAb/ZZiGHBLVBXMBy4D5QpM8P33Or8JD1nlOjm/ZT9sEE5HouQ0F+hUA== "@next/swc-linux-arm64-musl@14.2.15": version "14.2.15" resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.2.15.tgz#30e45b71831d9a6d6d18d7ac7d611a8d646a17f9" integrity sha512-k5xf/tg1FBv/M4CMd8S+JL3uV9BnnRmoe7F+GWC3DxkTCD9aewFRH1s5rJ1zkzDa+Do4zyN8qD0N8c84Hu96FQ== -"@next/swc-linux-arm64-musl@15.0.3": - version "15.0.3" - resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-15.0.3.tgz#3ccb71c6703bf421332f177d1bb0e10528bc73a2" - integrity sha512-WkAk6R60mwDjH4lG/JBpb2xHl2/0Vj0ZRu1TIzWuOYfQ9tt9NFsIinI1Epma77JVgy81F32X/AeD+B2cBu/YQA== +"@next/swc-linux-arm64-musl@15.1.2": + version "15.1.2" + resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-15.1.2.tgz#0efbaffc2bc3fad4a6458c91b1655b0c3d509577" + integrity sha512-9CF1Pnivij7+M3G74lxr+e9h6o2YNIe7QtExWq1KUK4hsOLTBv6FJikEwCaC3NeYTflzrm69E5UfwEAbV2U9/g== "@next/swc-linux-x64-gnu@14.2.15": version "14.2.15" resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.2.15.tgz#5065db17fc86f935ad117483f21f812dc1b39254" integrity sha512-kE6q38hbrRbKEkkVn62reLXhThLRh6/TvgSP56GkFNhU22TbIrQDEMrO7j0IcQHcew2wfykq8lZyHFabz0oBrA== -"@next/swc-linux-x64-gnu@15.0.3": - version "15.0.3" - resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-15.0.3.tgz#b90aa9b07001b4000427c35ab347a9273cbeebb3" - integrity sha512-gWL/Cta1aPVqIGgDb6nxkqy06DkwJ9gAnKORdHWX1QBbSZZB+biFYPFti8aKIQL7otCE1pjyPaXpFzGeG2OS2w== +"@next/swc-linux-x64-gnu@15.1.2": + version "15.1.2" + resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-15.1.2.tgz#fcdb19e2a7602f85f103190539d0cf42eca7f217" + integrity sha512-tINV7WmcTUf4oM/eN3Yuu/f8jQ5C6AkueZPKeALs/qfdfX57eNv4Ij7rt0SA6iZ8+fMobVfcFVv664Op0caCCg== "@next/swc-linux-x64-musl@14.2.15": version "14.2.15" resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.2.15.tgz#3c4a4568d8be7373a820f7576cf33388b5dab47e" integrity sha512-PZ5YE9ouy/IdO7QVJeIcyLn/Rc4ml9M2G4y3kCM9MNf1YKvFY4heg3pVa/jQbMro+tP6yc4G2o9LjAz1zxD7tQ== -"@next/swc-linux-x64-musl@15.0.3": - version "15.0.3" - resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-15.0.3.tgz#0ac9724fb44718fc97bfea971ac3fe17e486590e" - integrity sha512-QQEMwFd8r7C0GxQS62Zcdy6GKx999I/rTO2ubdXEe+MlZk9ZiinsrjwoiBL5/57tfyjikgh6GOU2WRQVUej3UA== +"@next/swc-linux-x64-musl@15.1.2": + version "15.1.2" + resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-15.1.2.tgz#06b09f1712498dd5c61fac10c56a09535469b4c4" + integrity sha512-jf2IseC4WRsGkzeUw/cK3wci9pxR53GlLAt30+y+B+2qAQxMw6WAC3QrANIKxkcoPU3JFh/10uFfmoMDF9JXKg== "@next/swc-win32-arm64-msvc@14.2.15": version "14.2.15" resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.2.15.tgz#fb812cc4ca0042868e32a6a021da91943bb08b98" integrity sha512-2raR16703kBvYEQD9HNLyb0/394yfqzmIeyp2nDzcPV4yPjqNUG3ohX6jX00WryXz6s1FXpVhsCo3i+g4RUX+g== -"@next/swc-win32-arm64-msvc@15.0.3": - version "15.0.3" - resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-15.0.3.tgz#932437d4cf27814e963ba8ae5f033b4421fab9ca" - integrity sha512-9TEp47AAd/ms9fPNgtgnT7F3M1Hf7koIYYWCMQ9neOwjbVWJsHZxrFbI3iEDJ8rf1TDGpmHbKxXf2IFpAvheIQ== +"@next/swc-win32-arm64-msvc@15.1.2": + version "15.1.2" + resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-15.1.2.tgz#63159223241ff45e8df76b24fc979bbb933c74df" + integrity sha512-wvg7MlfnaociP7k8lxLX4s2iBJm4BrNiNFhVUY+Yur5yhAJHfkS8qPPeDEUH8rQiY0PX3u/P7Q/wcg6Mv6GSAA== "@next/swc-win32-ia32-msvc@14.2.15": version "14.2.15" @@ -2957,10 +2962,10 @@ resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.2.15.tgz#18d68697002b282006771f8d92d79ade9efd35c4" integrity sha512-SzqGbsLsP9OwKNUG9nekShTwhj6JSB9ZLMWQ8g1gG6hdE5gQLncbnbymrwy2yVmH9nikSLYRYxYMFu78Ggp7/g== -"@next/swc-win32-x64-msvc@15.0.3": - version "15.0.3" - resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-15.0.3.tgz#940a6f7b370cdde0cc67eabe945d9e6d97e0be9f" - integrity sha512-VNAz+HN4OGgvZs6MOoVfnn41kBzT+M+tB+OK4cww6DNyWS6wKaDpaAm/qLeOUbnMh0oVx1+mg0uoYARF69dJyA== +"@next/swc-win32-x64-msvc@15.1.2": + version "15.1.2" + resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-15.1.2.tgz#6e6b33b1d725c0e98fa76773fe437fb02ad6540b" + integrity sha512-D3cNA8NoT3aWISWmo7HF5Eyko/0OdOO+VagkoJuiTk7pyX3P/b+n8XA/MYvyR+xSVcbKn68B1rY9fgqjNISqzQ== "@nodelib/fs.scandir@2.1.5": version "2.1.5" @@ -4314,12 +4319,12 @@ resolved "https://registry.yarnpkg.com/@swc/counter/-/counter-0.1.3.tgz#cc7463bd02949611c6329596fccd2b0ec782b0e9" integrity sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ== -"@swc/helpers@0.5.13": - version "0.5.13" - resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.5.13.tgz#33e63ff3cd0cade557672bd7888a39ce7d115a8c" - integrity sha512-UoKGxQ3r5kYI9dALKJapMmuK+1zWM/H17Z1+iwnNmzcJRnfFuevZs375TA5rW31pu4BS4NoSy1fRsexDXfWn5w== +"@swc/helpers@0.5.15": + version "0.5.15" + resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.5.15.tgz#79efab344c5819ecf83a43f3f9f811fc84b516d7" + integrity sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g== dependencies: - tslib "^2.4.0" + tslib "^2.8.0" "@swc/helpers@0.5.5": version "0.5.5" @@ -10041,29 +10046,6 @@ next-test-api-route-handler@^4.0.12: cookie "^1.0.1" core-js "^3.38.1" -next@15.0.3: - version "15.0.3" - resolved "https://registry.yarnpkg.com/next/-/next-15.0.3.tgz#804f5b772e7570ef1f088542a59860914d3288e9" - integrity sha512-ontCbCRKJUIoivAdGB34yCaOcPgYXr9AAkV/IwqFfWWTXEPUgLYkSkqBhIk9KK7gGmgjc64B+RdoeIDM13Irnw== - dependencies: - "@next/env" "15.0.3" - "@swc/counter" "0.1.3" - "@swc/helpers" "0.5.13" - busboy "1.6.0" - caniuse-lite "^1.0.30001579" - postcss "8.4.31" - styled-jsx "5.1.6" - optionalDependencies: - "@next/swc-darwin-arm64" "15.0.3" - "@next/swc-darwin-x64" "15.0.3" - "@next/swc-linux-arm64-gnu" "15.0.3" - "@next/swc-linux-arm64-musl" "15.0.3" - "@next/swc-linux-x64-gnu" "15.0.3" - "@next/swc-linux-x64-musl" "15.0.3" - "@next/swc-win32-arm64-msvc" "15.0.3" - "@next/swc-win32-x64-msvc" "15.0.3" - sharp "^0.33.5" - "next@^13.4 || ^14": version "14.2.15" resolved "https://registry.npmjs.org/next/-/next-14.2.15.tgz" @@ -10087,6 +10069,29 @@ next@15.0.3: "@next/swc-win32-ia32-msvc" "14.2.15" "@next/swc-win32-x64-msvc" "14.2.15" +next@^15.1.0: + version "15.1.2" + resolved "https://registry.yarnpkg.com/next/-/next-15.1.2.tgz#305d093a9f3d6900b53fa4abb5b213264b22047c" + integrity sha512-nLJDV7peNy+0oHlmY2JZjzMfJ8Aj0/dd3jCwSZS8ZiO5nkQfcZRqDrRN3U5rJtqVTQneIOGZzb6LCNrk7trMCQ== + dependencies: + "@next/env" "15.1.2" + "@swc/counter" "0.1.3" + "@swc/helpers" "0.5.15" + busboy "1.6.0" + caniuse-lite "^1.0.30001579" + postcss "8.4.31" + styled-jsx "5.1.6" + optionalDependencies: + "@next/swc-darwin-arm64" "15.1.2" + "@next/swc-darwin-x64" "15.1.2" + "@next/swc-linux-arm64-gnu" "15.1.2" + "@next/swc-linux-arm64-musl" "15.1.2" + "@next/swc-linux-x64-gnu" "15.1.2" + "@next/swc-linux-x64-musl" "15.1.2" + "@next/swc-win32-arm64-msvc" "15.1.2" + "@next/swc-win32-x64-msvc" "15.1.2" + sharp "^0.33.5" + nimma@0.2.2: version "0.2.2" resolved "https://registry.npmjs.org/nimma/-/nimma-0.2.2.tgz" @@ -12606,7 +12611,7 @@ tslib@^1.14.1: resolved "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== -tslib@^2.0.0, tslib@^2.0.1, tslib@^2.0.3, tslib@^2.1.0, tslib@^2.4.0: +tslib@^2.0.0, tslib@^2.0.1, tslib@^2.0.3, tslib@^2.1.0, tslib@^2.4.0, tslib@^2.8.0: version "2.8.1" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.8.1.tgz#612efe4ed235d567e8aba5f2a5fab70280ade83f" integrity sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==