@builder.io/react
Advanced tools
Comparing version 0.1.96-5 to 0.1.96-6
@@ -52,3 +52,3 @@ "use strict"; | ||
var _this = this; | ||
this.subscriptions.add(sdk_1.builder.queueGetContent(this.props.modelName).subscribe(function (matches) { | ||
this.subscriptions.add(sdk_1.builder.queueGetContent(this.props.modelName, this.props.options).subscribe(function (matches) { | ||
var match = matches && matches[0]; | ||
@@ -55,0 +55,0 @@ _this.setState({ |
@@ -147,3 +147,3 @@ "use strict"; | ||
return (react_1.default.createElement(builder_store_1.BuilderStoreContext.Provider, { value: this.state }, | ||
react_1.default.createElement(builder_content_component_1.BuilderContent, { contentLoaded: this.onContentLoaded, modelName: this.props.modelName || 'page' }, function (data) { | ||
react_1.default.createElement(builder_content_component_1.BuilderContent, { contentLoaded: this.onContentLoaded, options: this.props.options, modelName: this.props.modelName || 'page' }, function (data) { | ||
// TODO: loading option - maybe that is what the children is or component prop | ||
@@ -150,0 +150,0 @@ return (data && (react_1.default.createElement(react_1.default.Fragment, null, |
import React from 'react'; | ||
import { Subscription } from 'rxjs'; | ||
import { GetContentOptions } from '@builder.io/sdk'; | ||
export interface BuilderContentProps<ContentType> { | ||
@@ -7,2 +8,3 @@ contentLoaded?: (content: ContentType) => void; | ||
modelName: string; | ||
options?: GetContentOptions; | ||
children: (content: ContentType, loading: boolean) => React.ReactNode; | ||
@@ -9,0 +11,0 @@ } |
import React from 'react'; | ||
import { GetContentOptions } from '@builder.io/sdk'; | ||
export interface BuilderPageProps { | ||
modelName?: string; | ||
data?: any; | ||
options?: GetContentOptions; | ||
contentLoaded?: (data: any) => void; | ||
@@ -6,0 +8,0 @@ } |
{ | ||
"name": "@builder.io/react", | ||
"version": "0.1.96-5", | ||
"version": "0.1.96-6", | ||
"description": "", | ||
@@ -121,3 +121,3 @@ "keywords": [], | ||
"dependencies": { | ||
"@builder.io/sdk": "^0.1.47", | ||
"@builder.io/sdk": "^0.1.48", | ||
"core-js": "^2.5.7", | ||
@@ -124,0 +124,0 @@ "immer": "^1.7.2", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
3498505
24944
Updated@builder.io/sdk@^0.1.48