@prezly/theme-kit-nextjs 2.0.1-0 → 2.0.1-2
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.
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import type { DocumentProps } from 'next/document';
|
|
2
2
|
import Document from 'next/document';
|
|
3
|
-
|
|
3
|
+
import { Component } from 'react';
|
|
4
|
+
export declare class PrezlyThemeDocument extends Component<DocumentProps> {
|
|
5
|
+
static getInitialProps: typeof Document.getInitialProps;
|
|
4
6
|
getLocaleCode(): string;
|
|
5
7
|
render(): JSX.Element;
|
|
6
8
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import Document, { Head, Html, Main, NextScript } from "next/document.js";
|
|
2
|
+
import { Component } from 'react';
|
|
2
3
|
import { DEFAULT_LOCALE, getLocaleDirection, LocaleObject } from "../intl/index.js";
|
|
3
|
-
|
|
4
|
+
// Somehow extending the default Next Document class messes up with the ESM build of the package.
|
|
5
|
+
export class PrezlyThemeDocument extends Component {
|
|
6
|
+
static getInitialProps = Document.getInitialProps;
|
|
4
7
|
getLocaleCode() {
|
|
5
8
|
const {
|
|
6
9
|
newsroomContextProps
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.js","sourceRoot":"","sources":["../../src/components-nextjs/document.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"document.js","sourceRoot":"","sources":["../../src/components-nextjs/document.tsx"],"names":[],"mappings":";AACA,OAAO,QAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAG3E,iGAAiG;AACjG,MAAM,OAAO,mBAAoB,SAAQ,SAAwB;IAC7D,MAAM,CAAC,eAAe,GAAG,QAAQ,CAAC,eAAe,CAAC;IAElD,aAAa;QACT,MAAM,EACF,oBAAoB;QACpB,gDAAgD;UACnD,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,SAAsB,CAAC;QAE1D,oFAAoF;QACpF,kEAAkE;QAClE,MAAM,EAAE,UAAU,EAAE,GAAG,oBAAoB,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC;QAE9E,OAAO,UAAU,CAAC;IACtB,CAAC;IAED,MAAM;QACF,MAAM,MAAM,GAAG,YAAY,CAAC,WAAW,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC;QAC9D,6DAA6D;QAC7D,MAAM,SAAS,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;QAE7C,OAAO,CACH,MAAC,IAAI,IAAC,IAAI,EAAE,MAAM,CAAC,YAAY,EAAE,EAAE,GAAG,EAAE,SAAS,aAC7C,KAAC,IAAI,cACD,eAAM,IAAI,EAAC,WAAW,EAAC,OAAO,EAAE,MAAM,CAAC,YAAY,EAAE,GAAI,GAEtD,EACP,2BACI,KAAC,IAAI,KAAG,EACR,KAAC,UAAU,KAAG,IACX,IACJ,CACV,CAAC;IACN,CAAC"}
|