tenara-ui-components 0.3.62 → 0.3.63
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/components/atoms/RichText/index.d.ts +2 -2
- package/dist/components/atoms/RichText/index.d.ts.map +1 -1
- package/dist/components/atoms/RichText/replacers/downloadReplacer.d.ts +19 -0
- package/dist/components/atoms/RichText/replacers/downloadReplacer.d.ts.map +1 -0
- package/dist/components/atoms/RichText/replacers/index.d.ts +5 -0
- package/dist/components/atoms/RichText/replacers/index.d.ts.map +1 -1
- package/dist/components/atoms/RichText/replacers/sectionReplacer.d.ts +38 -0
- package/dist/components/atoms/RichText/replacers/sectionReplacer.d.ts.map +1 -0
- package/dist/components/atoms/RichText/replacers/subscribeReplacer.d.ts +28 -0
- package/dist/components/atoms/RichText/replacers/subscribeReplacer.d.ts.map +1 -0
- package/dist/components/atoms/RichText/replacers/videoReplacer.d.ts +9 -3
- package/dist/components/atoms/RichText/replacers/videoReplacer.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/pages/primax/IndividualPost/IndividualPost.d.ts +2 -27
- package/dist/components/pages/primax/IndividualPost/IndividualPost.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.esm.css +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,6 +2,6 @@ export { RichText } from './RichText';
|
|
|
2
2
|
export type { RichTextProps } from './RichText';
|
|
3
3
|
export { EnhancedRichText } from './EnhancedRichText';
|
|
4
4
|
export type { EnhancedRichTextProps } from './EnhancedRichText';
|
|
5
|
-
export { createVideoReplacer } from './replacers';
|
|
6
|
-
export type { RichTextReplacer, VideoReplacerOptions } from './replacers';
|
|
5
|
+
export { createVideoReplacer, createSubscribeReplacer, createDownloadReplacer, createSectionReplacer, } from './replacers';
|
|
6
|
+
export type { RichTextReplacer, VideoReplacerOptions, DownloadReplacerOptions, SectionReplacerOptions, } from './replacers';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/RichText/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAEhE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/RichText/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAEhE,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,gBAAgB,EAChB,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { RichTextReplacer } from './types';
|
|
2
|
+
import type { ButtonLinkProps } from '@/components/atoms/ButtonLink';
|
|
3
|
+
export interface DownloadReplacerOptions {
|
|
4
|
+
/** Button variant to use for download links. Defaults to 'general'. */
|
|
5
|
+
buttonType?: ButtonLinkProps['buttonType'];
|
|
6
|
+
/** Button size. Defaults to 'md'. */
|
|
7
|
+
size?: ButtonLinkProps['size'];
|
|
8
|
+
/** Dark mode. Defaults to false. */
|
|
9
|
+
darkMode?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Creates a replacer that transforms download links into ButtonLink components.
|
|
13
|
+
*
|
|
14
|
+
* Matches:
|
|
15
|
+
* - `<a download="...">` elements directly
|
|
16
|
+
* - `<div data-section="download">` wrappers (finds the <a download> inside)
|
|
17
|
+
*/
|
|
18
|
+
export declare function createDownloadReplacer(options?: DownloadReplacerOptions): RichTextReplacer;
|
|
19
|
+
//# sourceMappingURL=downloadReplacer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"downloadReplacer.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/RichText/replacers/downloadReplacer.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAErE,MAAM,WAAW,uBAAuB;IACtC,uEAAuE;IACvE,UAAU,CAAC,EAAE,eAAe,CAAC,YAAY,CAAC,CAAC;IAC3C,qCAAqC;IACrC,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC/B,oCAAoC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAiCD;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,GAAE,uBAA4B,GAAG,gBAAgB,CAsC9F"}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
export type { RichTextReplacer } from './types';
|
|
2
2
|
export { createVideoReplacer } from './videoReplacer';
|
|
3
3
|
export type { VideoReplacerOptions } from './videoReplacer';
|
|
4
|
+
export { createSubscribeReplacer } from './subscribeReplacer';
|
|
5
|
+
export { createDownloadReplacer } from './downloadReplacer';
|
|
6
|
+
export type { DownloadReplacerOptions } from './downloadReplacer';
|
|
7
|
+
export { createSectionReplacer } from './sectionReplacer';
|
|
8
|
+
export type { SectionReplacerOptions } from './sectionReplacer';
|
|
4
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/RichText/replacers/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,YAAY,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/RichText/replacers/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,YAAY,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,YAAY,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,YAAY,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { RichTextReplacer } from './types';
|
|
3
|
+
export interface SectionReplacerOptions {
|
|
4
|
+
/** Override the default summary heading text */
|
|
5
|
+
summaryHeading?: string;
|
|
6
|
+
/** Override the bullet list icon */
|
|
7
|
+
bulletIcon?: React.ReactNode;
|
|
8
|
+
/** Dark mode for rendered components */
|
|
9
|
+
darkMode?: boolean;
|
|
10
|
+
/** Published/time-to-read string displayed alongside the byline */
|
|
11
|
+
published?: string;
|
|
12
|
+
/** ISO date for the <time> datetime attribute */
|
|
13
|
+
dateTime?: string;
|
|
14
|
+
/** About section heading. Defaults to 'About Primax'. */
|
|
15
|
+
aboutHeading?: string;
|
|
16
|
+
/** Whether content is currently gated (affects gated-video rendering) */
|
|
17
|
+
gated?: boolean;
|
|
18
|
+
/** Callback to scroll to gate form when locked video is clicked */
|
|
19
|
+
onGatedVideoClick?: () => void;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Creates a replacer that transforms `<div data-section="...">` elements
|
|
23
|
+
* from Strapi CMS into their corresponding styled components.
|
|
24
|
+
*
|
|
25
|
+
* Supported sections:
|
|
26
|
+
* - `author` — Styled meta byline with published time
|
|
27
|
+
* - `summary` — Heading + Paragraph
|
|
28
|
+
* - `bullet-list` — Title + BulletList with sparkle icons
|
|
29
|
+
* - `about` — About section with heading + paragraph
|
|
30
|
+
* - `author-bio` — Author component
|
|
31
|
+
* - `footnotes` — Parses footnote markers and content into Footnote component
|
|
32
|
+
* - `gated-video` — VideoPlayer with lock overlay when gated
|
|
33
|
+
*
|
|
34
|
+
* Sections that rely on RichText CSS inheritance (no replacer needed):
|
|
35
|
+
* - `content` — Raw HTML styled by .rich-text CSS
|
|
36
|
+
*/
|
|
37
|
+
export declare function createSectionReplacer(options?: SectionReplacerOptions): RichTextReplacer;
|
|
38
|
+
//# sourceMappingURL=sectionReplacer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sectionReplacer.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/RichText/replacers/sectionReplacer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAgBhD,MAAM,WAAW,sBAAsB;IACrC,gDAAgD;IAChD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oCAAoC;IACpC,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,wCAAwC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yDAAyD;IACzD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yEAAyE;IACzE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,mEAAmE;IACnE,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;CAChC;AAiCD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,GAAE,sBAA2B,GAAG,gBAAgB,CAuC5F"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { RichTextReplacer } from './types';
|
|
2
|
+
import type { SubscribeProps } from '@/components/molecules/primax/Subscribe';
|
|
3
|
+
/**
|
|
4
|
+
* Creates a replacer that transforms `<div data-component="subscribe"></div>`
|
|
5
|
+
* sentinel elements into a Subscribe component.
|
|
6
|
+
*
|
|
7
|
+
* This allows a single body content HTML string to include a subscribe form
|
|
8
|
+
* at any position, rather than splitting content into two separate props.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* import { EnhancedRichText, createSubscribeReplacer } from '@/components/atoms/RichText';
|
|
13
|
+
*
|
|
14
|
+
* const subscribeReplacer = createSubscribeReplacer({
|
|
15
|
+
* heading: 'Sign up for updates',
|
|
16
|
+
* fields: [{ name: 'email', label: 'Email', type: 'email' }],
|
|
17
|
+
* submitLabel: 'SUBMIT',
|
|
18
|
+
* onSubmit: (data) => console.log(data),
|
|
19
|
+
* });
|
|
20
|
+
*
|
|
21
|
+
* <EnhancedRichText
|
|
22
|
+
* content={`<p>First part...</p><div data-component="subscribe"></div><p>Second part...</p>`}
|
|
23
|
+
* replacers={[subscribeReplacer, videoReplacer]}
|
|
24
|
+
* />
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare function createSubscribeReplacer(subscribeProps: SubscribeProps): RichTextReplacer;
|
|
28
|
+
//# sourceMappingURL=subscribeReplacer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscribeReplacer.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/RichText/replacers/subscribeReplacer.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAE9E;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,uBAAuB,CAAC,cAAc,EAAE,cAAc,GAAG,gBAAgB,CAgBxF"}
|
|
@@ -12,9 +12,15 @@ export interface VideoReplacerOptions {
|
|
|
12
12
|
videoPlayerProps?: Partial<VideoPlayerProps>;
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
* Creates a replacer that transforms
|
|
16
|
-
*
|
|
17
|
-
*
|
|
15
|
+
* Creates a replacer that transforms video elements into VideoPlayer components.
|
|
16
|
+
*
|
|
17
|
+
* Matches:
|
|
18
|
+
* - `<video>` elements directly
|
|
19
|
+
* - `<div data-section="video">` wrappers (finds the <video> inside)
|
|
20
|
+
* - Elements with `data-wistia-id` attribute
|
|
21
|
+
*
|
|
22
|
+
* Extracts src from `<source>` children, the video element's `src` attribute,
|
|
23
|
+
* or Wistia embed ID. Uses the `poster` attribute as thumbnail.
|
|
18
24
|
*/
|
|
19
25
|
export declare function createVideoReplacer(options?: VideoReplacerOptions): RichTextReplacer;
|
|
20
26
|
//# sourceMappingURL=videoReplacer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"videoReplacer.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/RichText/replacers/videoReplacer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAE3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,MAAM,WAAW,oBAAoB;IACnC,gDAAgD;IAChD,YAAY,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;IAChD,2BAA2B;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;CAC9C;
|
|
1
|
+
{"version":3,"file":"videoReplacer.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/RichText/replacers/videoReplacer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAE3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,MAAM,WAAW,oBAAoB;IACnC,gDAAgD;IAChD,YAAY,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;IAChD,2BAA2B;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;CAC9C;AA6CD;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,GAAE,oBAAyB,GAAG,gBAAgB,CAiDxF"}
|
|
@@ -21,7 +21,7 @@ export { Icon } from './atoms/Icon';
|
|
|
21
21
|
export { RichText } from './atoms/RichText';
|
|
22
22
|
export { EnhancedRichText } from './atoms/RichText';
|
|
23
23
|
export type { EnhancedRichTextProps } from './atoms/RichText';
|
|
24
|
-
export { createVideoReplacer } from './atoms/RichText';
|
|
24
|
+
export { createVideoReplacer, createSubscribeReplacer, createDownloadReplacer, createSectionReplacer, } from './atoms/RichText';
|
|
25
25
|
export type { RichTextReplacer, VideoReplacerOptions } from './atoms/RichText';
|
|
26
26
|
export { Paragraph } from './atoms/Paragraph';
|
|
27
27
|
export { BulletList } from './atoms/BulletList';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,sCAAsC,CAAC;AAG9C,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAGjE,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACjH,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,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AM,oBAAoB,CAAC;AAChD,YAAY,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,YAAY,EAAE,aAAa,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAG7F,cAAc,WAAW,CAAC"}
|
|
@@ -1,18 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { BulletListProps } from '@/components/atoms/BulletList';
|
|
3
|
-
import type { ButtonLinkProps } from '@/components/atoms/ButtonLink';
|
|
4
2
|
import type { RichTextProps } from '@/components/atoms/RichText';
|
|
5
3
|
import type { RichTextReplacer } from '@/components/atoms/RichText';
|
|
6
|
-
import type { FootnoteProps } from '@/components/atoms/Footnote';
|
|
7
|
-
import type { AuthorProps } from '@/components/atoms/Author';
|
|
8
|
-
import type { VideoPlayerProps } from '@/components/molecules/VideoPlayer';
|
|
9
4
|
import type { SubscribeProps } from '@/components/molecules/primax/Subscribe';
|
|
10
5
|
import type { SideBarProps } from '@/components/molecules/primax/SideBar';
|
|
11
6
|
import './IndividualPost.scss';
|
|
12
7
|
export interface IndividualPostMeta {
|
|
13
|
-
/** ISO date for the <time> datetime attribute ("2025-01-15") */
|
|
14
8
|
dateTime?: string;
|
|
15
|
-
/** Formatted display string for time/date ("5 Mins | 01-15-25") */
|
|
16
9
|
published?: string;
|
|
17
10
|
authorName?: string;
|
|
18
11
|
authorTitle?: string;
|
|
@@ -20,31 +13,13 @@ export interface IndividualPostMeta {
|
|
|
20
13
|
export interface IndividualPostProps {
|
|
21
14
|
title: string;
|
|
22
15
|
meta?: IndividualPostMeta;
|
|
23
|
-
|
|
24
|
-
bulletList?: BulletListProps & {
|
|
25
|
-
title?: string;
|
|
26
|
-
};
|
|
27
|
-
primaryButton?: ButtonLinkProps;
|
|
28
|
-
firstBodyContent?: RichTextProps;
|
|
29
|
-
secondBodyContent?: RichTextProps;
|
|
30
|
-
/** Inline subscribe form rendered between body sections (non-gated pages) */
|
|
16
|
+
bodyContent?: RichTextProps;
|
|
31
17
|
subscribe?: SubscribeProps;
|
|
32
|
-
/** Gate form rendered above main content (only displays when gated prop is true) */
|
|
33
18
|
gateForm?: SubscribeProps;
|
|
34
|
-
/** Video configuration for gated video variant — video is blocked until the gate is lifted */
|
|
35
|
-
gatedVideo?: Pick<VideoPlayerProps, 'src' | 'thumbnail' | 'alt' | 'aspectRatio'>;
|
|
36
|
-
footnotes?: FootnoteProps;
|
|
37
|
-
author?: AuthorProps;
|
|
38
|
-
about?: {
|
|
39
|
-
heading?: string;
|
|
40
|
-
content: string;
|
|
41
|
-
};
|
|
42
19
|
sidebar?: SideBarProps;
|
|
43
20
|
replacers?: RichTextReplacer[];
|
|
44
|
-
/** When true,
|
|
21
|
+
/** When true, content below the gate point is hidden behind a gradient overlay */
|
|
45
22
|
gated?: boolean;
|
|
46
|
-
beforeContent?: React.ReactNode;
|
|
47
|
-
afterContent?: React.ReactNode;
|
|
48
23
|
className?: string;
|
|
49
24
|
}
|
|
50
25
|
export declare const IndividualPost: React.FC<IndividualPostProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IndividualPost.d.ts","sourceRoot":"","sources":["../../../../../src/components/pages/primax/IndividualPost/IndividualPost.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"IndividualPost.d.ts","sourceRoot":"","sources":["../../../../../src/components/pages/primax/IndividualPost/IndividualPost.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAW5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAE9E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,uBAAuB,CAAC;AAI/B,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,SAAS,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC/B,kFAAkF;IAClF,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAyDD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAkKxD,CAAC"}
|