@candulabs/core
Advanced tools
Comparing version 0.8.13 to 0.8.14
@@ -6,2 +6,26 @@ # Change Log | ||
## [0.8.14](https://github.com/candulabs/candu-sdk/tree/master/packages/candu-core/compare/v0.8.14-alpha.1...v0.8.14) (2021-10-25) | ||
**Note:** Version bump only for package @candulabs/core | ||
## 0.8.14-alpha.1 (2021-10-22) | ||
**Note:** Version bump only for package @candulabs/core | ||
## 0.8.14-alpha.0 (2021-10-20) | ||
**Note:** Version bump only for package @candulabs/core | ||
## [0.8.13](https://github.com/candulabs/candu-sdk/tree/master/packages/candu-core/compare/v0.8.13-alpha.0...v0.8.13) (2021-10-20) | ||
@@ -8,0 +32,0 @@ |
import { ProviderProps } from '../inputValidation'; | ||
import { RootStore } from '../store'; | ||
import { PackageInfo } from '..'; | ||
import { PackageInfo } from '../models'; | ||
export interface InitProps extends ProviderProps { | ||
@@ -10,5 +10,5 @@ /** SDK Info passed by js/react/cdn SDK, clients should not normally pass it */ | ||
traits: Record<string, unknown>; | ||
options: import("..").CanduClientOptions; | ||
options: import("../models").CanduClientOptions; | ||
styleguide: Partial<import("../preact/types").Styleguide>; | ||
userId: import("..").UserId; | ||
userId: import("../models").UserId; | ||
clientToken: string; | ||
@@ -15,0 +15,0 @@ hmac?: string | undefined; |
@@ -1,2 +0,2 @@ | ||
import React, { Component } from 'preact/compat'; | ||
import { FunctionComponent } from 'preact/compat'; | ||
import { ProviderProps } from '../../inputValidation'; | ||
@@ -12,4 +12,2 @@ import { RootStore } from '../../store'; | ||
*/ | ||
export declare class CanduProvider extends Component<CanduProviderProps> { | ||
render(): React.JSX.Element | null; | ||
} | ||
export declare const CanduProvider: FunctionComponent<CanduProviderProps>; |
@@ -8,5 +8,5 @@ import React from 'preact/compat'; | ||
clientToken: ClientToken; | ||
documentDefinition: DocumentDefinitionType; | ||
documentDefinition?: DocumentDefinitionType; | ||
} | ||
export declare const RenderedContent: ({ documentDefinition, slug, trackingIdentifiers, styleguide, eventing, clientToken, }: RenderedContentProps) => React.JSX.Element | null; | ||
export {}; |
export { DocumentDefinition } from './DocumentDefinition'; | ||
export { RenderedDocument } from './RenderedDocument'; | ||
export { RenderedDocument, DocumentProps } from './RenderedDocument'; |
export { CanduProvider, CanduProviderProps, defaultProviderContext } from './CanduProvider'; | ||
export { DocumentDefinition as TutorialDocument, DocumentDefinition } from './DocumentDefinition'; | ||
export { DocumentDefinition as TutorialDocument, DocumentDefinition, DocumentProps, } from './DocumentDefinition'; | ||
export { Content } from './Content'; | ||
@@ -7,1 +7,2 @@ export { ErrorBoundary } from './ErrorBoundary'; | ||
export { connect } from './connect'; | ||
export { render, createElement } from 'preact/compat'; |
@@ -1,2 +0,2 @@ | ||
import { DBValue } from '../../storage'; | ||
import { LocalStorageKeyValue } from '../../storage'; | ||
import { RootStore } from '../../store'; | ||
@@ -8,3 +8,3 @@ import { StateResolver, CanduState, ResolverOptions, StateResolverType } from '../../models'; | ||
options: ResolverOptions<R>; | ||
cache: DBValue; | ||
cache: LocalStorageKeyValue<any>; | ||
abstract retrieve(rootStore: RootStore, providerId: string): Promise<S>; | ||
@@ -11,0 +11,0 @@ abstract update(rootStore: RootStore, providerId: string, update: Partial<S>): Promise<S>; |
export interface KeyValue<T = any> { | ||
load(key: string, callback?: Function): T | null; | ||
load(key: string): T | null; | ||
save(key: string, value: T): void; | ||
} | ||
export interface DBValue<T = any> { | ||
load(key: string, callback?: Function): T | null; | ||
loadAll(callback?: Function): T | null; | ||
load(key: string, callback: Function): T | null; | ||
loadAll(callback: Function): T | null; | ||
save(value: T): void; | ||
} |
@@ -12,3 +12,3 @@ { | ||
}, | ||
"version": "0.8.13", | ||
"version": "0.8.14", | ||
"main": "dist/index.js", | ||
@@ -30,3 +30,3 @@ "module": "dist/index.es.js", | ||
"dependencies": { | ||
"@candulabs/eventing": "^0.8.13", | ||
"@candulabs/eventing": "^0.8.14", | ||
"dataloader": "^2.0.0", | ||
@@ -37,3 +37,3 @@ "preact": "10.5.13", | ||
}, | ||
"gitHead": "2a30fa26eeb69f0eb21a7deb96b9cc8ee049087f" | ||
"gitHead": "3f035233fcd9c3e358744429a8ad702c6fa96a49" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
605871
3939
Updated@candulabs/eventing@^0.8.14