Refactored CMS packages to remove a circular dependency (#62)
This commit is contained in:
committed by
GitHub
parent
51a40b6d40
commit
d18f810c6e
@@ -1,3 +1,5 @@
|
||||
import React from 'react';
|
||||
|
||||
export function WordpressContentRenderer(props: { content: unknown }) {
|
||||
return <div dangerouslySetInnerHTML={{ __html: props.content as string }} />;
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
export * from './wp-client';
|
||||
export * from './wp-client';
|
||||
@@ -5,10 +5,16 @@ import type {
|
||||
WP_REST_API_Tag,
|
||||
} from 'wp-types';
|
||||
|
||||
import { Cms, CmsClient } from '@kit/cms';
|
||||
import { Cms, CmsClient } from '@kit/cms-types';
|
||||
|
||||
import GetTagsOptions = Cms.GetTagsOptions;
|
||||
|
||||
/**
|
||||
* Creates a new WordpressClient instance.
|
||||
*
|
||||
* @param {string} apiUrl - The URL of the Wordpress API.
|
||||
* @returns {WordpressClient} A new WordpressClient instance.
|
||||
*/
|
||||
export function createWordpressClient(
|
||||
apiUrl = process.env.WORDPRESS_API_URL as string,
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user