@storyblok/js
Advanced tools
Comparing version 3.1.0-next.1 to 3.1.0-next.2
@@ -0,5 +1,5 @@ | ||
import { type SbRichTextOptions as stdSbRichTextOptions } from "@storyblok/richtext"; | ||
import { SbSDKOptions, StoryblokBridgeConfigV2, ISbStoryData, SbInitResult, ISbRichtext, StoryblokComponentType, SbRichTextOptions } from "./types"; | ||
import { RichtextResolver } from "storyblok-js-client"; | ||
import { type SbRichTextOptions as stdSbRichTextOptions } from "@storyblok/richtext"; | ||
export declare const useStoryblokBridge: <T extends StoryblokComponentType<string> = any>(id: Number, cb: (newStory: ISbStoryData<T>) => void, options?: StoryblokBridgeConfigV2) => void; | ||
export declare const useStoryblokBridge: <T extends StoryblokComponentType<string> = any>(id: number, cb: (newStory: ISbStoryData<T>) => void, options?: StoryblokBridgeConfigV2) => void; | ||
export declare const storyblokInit: (pluginOptions?: SbSDKOptions) => SbInitResult; | ||
@@ -18,3 +18,3 @@ export declare const isRichTextEmpty: (data?: ISbRichtext) => boolean; | ||
*/ | ||
export type newSbRichTextOptions = stdSbRichTextOptions; | ||
export type newSbRichTextOptions<T = string, S = (tag: string, attrs: Record<string, any>, text: string) => T> = stdSbRichTextOptions<T, S>; | ||
export { BlockTypes, MarkTypes, richTextResolver, TextTypes, type SbRichTextDocumentNode, type SbRichTextNodeTypes, type SbRichTextNode, type SbRichTextResolvers, type SbRichTextNodeResolver, type SbRichTextImageOptimizationOptions, } from "@storyblok/richtext"; |
{ | ||
"name": "@storyblok/js", | ||
"version": "3.1.0-next.1", | ||
"version": "3.1.0-next.2", | ||
"description": "SDK to integrate Storyblok into your project using JavaScript.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/storyblok-js.js", |
@@ -34,2 +34,3 @@ <div align="center"> | ||
## Kickstart a new project | ||
Are you eager to dive into coding? **[Follow these steps to kickstart a new project with Storyblok and a JavaScript frontend framework](https://www.storyblok.com/technologies?utm_source=github.com&utm_medium=readme&utm_campaign=storyblok-js)**, and get started in just a few minutes! | ||
@@ -148,3 +149,3 @@ | ||
resolveRelations: ["Article.author"], | ||
resolveLinks: "url" | ||
resolveLinks: "url", | ||
}); | ||
@@ -151,0 +152,0 @@ ``` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
82462
1308
296