@candulabs/core
Advanced tools
Comparing version 0.7.2 to 0.7.3-alpha.0
@@ -6,3 +6,3 @@ # Change Log | ||
## [0.7.2](https://github.com/candulabs/candu-sdk/tree/master/packages/candu-core/compare/v0.7.1-alpha.29...v0.7.2) (2021-05-28) | ||
## [0.7.3-alpha.0](https://github.com/candulabs/candu-sdk/tree/master/packages/candu-core/compare/v0.7.1...v0.7.3-alpha.0) (2021-07-26) | ||
@@ -15,3 +15,3 @@ **Note:** Version bump only for package @candulabs/core | ||
## [0.7.1](https://github.com/candulabs/candu-sdk/tree/master/packages/candu-core/compare/v0.7.1-alpha.29...v0.7.1) (2021-05-28) | ||
## [0.7.1](https://github.com/candulabs/candu-sdk/tree/master/packages/candu-core/compare/v0.7.1-alpha.21...v0.7.1) (2021-05-12) | ||
@@ -24,66 +24,2 @@ **Note:** Version bump only for package @candulabs/core | ||
## 0.7.1-alpha.29 (2021-05-26) | ||
**Note:** Version bump only for package @candulabs/core | ||
## 0.7.1-alpha.28 (2021-05-25) | ||
**Note:** Version bump only for package @candulabs/core | ||
## 0.7.1-alpha.27 (2021-05-25) | ||
**Note:** Version bump only for package @candulabs/core | ||
## 0.7.1-alpha.26 (2021-05-25) | ||
**Note:** Version bump only for package @candulabs/core | ||
## 0.7.1-alpha.25 (2021-05-21) | ||
**Note:** Version bump only for package @candulabs/core | ||
## 0.7.1-alpha.24 (2021-05-17) | ||
**Note:** Version bump only for package @candulabs/core | ||
## 0.7.1-alpha.23 (2021-05-13) | ||
**Note:** Version bump only for package @candulabs/core | ||
## 0.7.1-alpha.22 (2021-05-13) | ||
**Note:** Version bump only for package @candulabs/core | ||
## 0.7.1-alpha.21 (2021-05-10) | ||
@@ -90,0 +26,0 @@ |
@@ -7,6 +7,2 @@ export declare const API_BASE_URL: any; | ||
segmentMembership: string; | ||
segmentsDefinition: string; | ||
tutorialMetadata: string; | ||
tutorialDocuments: string; | ||
tutorialProdSocket: string; | ||
}; |
@@ -38,3 +38,2 @@ export interface AlertData { | ||
src: string; | ||
aspectRatio?: string; | ||
} | ||
@@ -41,0 +40,0 @@ export interface CheckListGroupData { |
import { CommitId } from './Hashes'; | ||
import { Document } from './Document'; | ||
import { PortalId, PortalSlug } from './Portal'; | ||
import { SegmentId, ClientToken } from '../eventing'; | ||
import { SegmentId } from '../eventing'; | ||
export declare type TutorialId = number; | ||
export declare type TutorialSlug = string; | ||
export declare type ContentType = 'Tutorial' | 'Portal' | 'Content'; | ||
export interface Metadata { | ||
slug?: TutorialSlug; | ||
clientToken: ClientToken; | ||
contentType: ContentType; | ||
} | ||
interface PortalTutorialInfo { | ||
@@ -14,0 +8,0 @@ id: PortalId; |
@@ -12,3 +12,2 @@ import { TutorialId, TutorialSlug } from './TutorialDocument'; | ||
name: string; | ||
folderId?: number; | ||
} |
@@ -5,7 +5,7 @@ import React, { Component } from 'preact/compat'; | ||
import { RootStore } from '../../store'; | ||
interface Props extends ProviderProps { | ||
export interface CanduProviderProps extends ProviderProps { | ||
/** The client token associated with the application we want to render */ | ||
clientToken: ClientToken; | ||
/** Children to be rendered below the provider. */ | ||
children: React.Component; | ||
children?: any; | ||
/** The userId of the customer you want to track. If not set an anonymous id will be used instead */ | ||
@@ -22,6 +22,5 @@ userId?: UserId; | ||
*/ | ||
export declare class CanduProvider extends Component<Props, RootStore> { | ||
constructor(props: Props); | ||
render(): React.JSX.Element; | ||
export declare class CanduProvider extends Component<CanduProviderProps, RootStore> { | ||
constructor(props: CanduProviderProps); | ||
render(): React.JSX.Element | null; | ||
} | ||
export {}; |
export * from './CanduProvider'; | ||
export * from './ProviderContext'; | ||
export * from './defaultProviderContext'; |
import React from 'preact/compat'; | ||
declare type MapStateToProps<S, IncomingProps, MapProps> = (state: S, ownProps: IncomingProps) => MapProps; | ||
export declare const connect: <State, IncomingProps, MapProps>(mapStateToProps: MapStateToProps<State, IncomingProps, MapProps>) => (WrappedComponent: React.Component<IncomingProps & MapProps, {}>) => { | ||
export declare const connect: <State, IncomingProps, MapProps>(mapStateToProps: MapStateToProps<State, IncomingProps, MapProps>) => (WrappedComponent: React.FunctionComponent<IncomingProps & MapProps>) => { | ||
new (props: any): { | ||
unsubscribes: never[]; | ||
unsubscribes: any[]; | ||
componentDidMount(): void; | ||
@@ -26,3 +26,3 @@ componentWillUnmount(): void; | ||
}; | ||
contextType: import("preact").Context<import("../store").RootStore>; | ||
contextType: import("preact").Context<import("..").RootStore>; | ||
displayName?: string | undefined; | ||
@@ -29,0 +29,0 @@ defaultProps?: any; |
@@ -1,3 +0,5 @@ | ||
export { CanduProvider } from './CanduProvider'; | ||
export { Tutorial } from './Tutorial'; | ||
export { Portal } from './Portal'; | ||
export { CanduProvider, CanduProviderProps, defaultProviderContext } from './CanduProvider'; | ||
export { TutorialDocument } from './TutorialDocument'; | ||
export { Content } from './Content'; | ||
export { ErrorBoundary } from './ErrorBoundary'; | ||
export { useEventing } from './hooks'; |
import React from 'preact/compat'; | ||
import { StyleguideProps } from '../../../types'; | ||
export declare const CheckList: ({ attributes: { children, ...attributes } }: StyleguideProps<null>) => React.JSX.Element; | ||
export declare const CheckList: ({ attributes: { children, ...attributes } }: StyleguideProps) => React.JSX.Element; |
@@ -9,3 +9,3 @@ import React from 'preact/compat'; | ||
*/ | ||
export declare const Flex: ({ attributes }: StyleguideProps<null>) => React.JSX.Element; | ||
export declare const Flex: ({ attributes }: StyleguideProps) => React.JSX.Element; | ||
/** | ||
@@ -17,2 +17,2 @@ * FlexItem flex child -> can position iteslf within container | ||
*/ | ||
export declare const FlexItem: ({ attributes }: StyleguideProps<null>) => React.JSX.Element; | ||
export declare const FlexItem: ({ attributes }: StyleguideProps) => React.JSX.Element; |
@@ -1,3 +0,3 @@ | ||
import React from 'preact/compat'; | ||
import { FunctionComponent } from 'preact/compat'; | ||
import { StyleguideProps } from '../../types'; | ||
export declare const HtmlComponent: (Component: any) => React.FunctionComponent<StyleguideProps<null>>; | ||
export declare const HtmlComponent: (Component: any) => FunctionComponent<StyleguideProps>; |
@@ -8,3 +8,3 @@ import React from 'preact/compat'; | ||
*/ | ||
export declare const List: ({ attributes, api }: StyleguideProps<null>) => React.JSX.Element; | ||
export declare const List: ({ attributes, api }: StyleguideProps) => React.JSX.Element; | ||
/** | ||
@@ -16,2 +16,2 @@ * A ListItem. | ||
*/ | ||
export declare const ListItem: ({ attributes }: StyleguideProps<null>) => React.JSX.Element; | ||
export declare const ListItem: ({ attributes }: StyleguideProps) => React.JSX.Element; |
import React from 'preact/compat'; | ||
import { PlayerData } from '../../../models'; | ||
import { StyleguideProps } from '../../types'; | ||
export declare const Player: ({ attributes: { width, height, src, ...otherAttributes }, }: StyleguideProps<PlayerData>) => React.JSX.Element; | ||
export declare const Player: ({ attributes: { width, height, src, aspectRatio, style, ...otherAttributes }, }: StyleguideProps<PlayerData>) => React.JSX.Element; |
@@ -8,2 +8,2 @@ import React from 'preact/compat'; | ||
*/ | ||
export declare const Spacing: ({ attributes }: StyleguideProps<null>) => React.JSX.Element; | ||
export declare const Spacing: ({ attributes }: StyleguideProps) => React.JSX.Element; |
@@ -1,3 +0,2 @@ | ||
import { TutorialMetadata } from '../models'; | ||
import { TutorialPublishedStates } from './types'; | ||
export declare const getContentState: (tutorial: TutorialMetadata) => TutorialPublishedStates; | ||
export declare const getContentState: (tutorial: any) => TutorialPublishedStates; |
@@ -10,4 +10,10 @@ interface Store { | ||
* We uses this object to know which stores we need to create. | ||
* | ||
* We must ensure we update STORES_VERSION when adding to STORES | ||
* | ||
* WARNING: The only type of upgrade we currently support is adding new stores | ||
* Modifications to options are unsupported | ||
*/ | ||
export declare const STORES_VERSION = 2; | ||
export declare const STORES: IndexedDBStores; | ||
export {}; |
@@ -10,2 +10,4 @@ import { DBValue } from './KeyValue'; | ||
private openDB; | ||
private getOptions; | ||
private hasKeyPath; | ||
save(value: Record<string, any>): void; | ||
@@ -12,0 +14,0 @@ load(key: string, callback: Function): void; |
@@ -24,3 +24,3 @@ /** Selectors */ | ||
/** Actions */ | ||
export interface Action extends Record<string, any> { | ||
export interface StoreAction extends Record<string, any> { | ||
type: string; | ||
@@ -33,3 +33,3 @@ storeName?: string; | ||
initialValue: State; | ||
reducer: (a: Action, state: State) => State; | ||
reducer: (a: StoreAction, state: State) => State; | ||
} | ||
@@ -46,3 +46,3 @@ export interface FluxProps<State> extends FluxBase<State> { | ||
actions: { | ||
[key: string]: (...args: any[]) => Action; | ||
[key: string]: (...args: any[]) => StoreAction; | ||
}; | ||
@@ -49,0 +49,0 @@ selectors: { |
@@ -1,10 +0,10 @@ | ||
import { Action, Flux, FluxSelector } from './createFlux'; | ||
import { StoreAction, Flux, FluxSelector } from './createFlux'; | ||
import { Store } from './createStore'; | ||
export interface RootStore { | ||
name: string; | ||
dispatch(action: Action): void; | ||
dispatch(action: StoreAction): void; | ||
getFluxState<State, Actions, Selectors>(flux: Flux<State>): State; | ||
getStore<State, Actions, Selectors>(flux: Flux<State> | string): Store<State>; | ||
getState(): Record<string, Store<any>>; | ||
registerFlux<State, Actions, Selectors>(...storesToSafeRegister: Flux<State>[]): RootStore; | ||
registerFlux(...storesToSafeRegister: Flux<any>[]): RootStore; | ||
register<State>(store: Store<State>): RootStore; | ||
@@ -11,0 +11,0 @@ remove<State>(substore: Store<State>): RootStore; |
@@ -1,3 +0,3 @@ | ||
import { Action, Flux } from './createFlux'; | ||
export declare type Dispatch = (action: Action) => any; | ||
import { StoreAction, Flux } from './createFlux'; | ||
export declare type Dispatch = (action: StoreAction) => any; | ||
export interface Store<State> { | ||
@@ -7,4 +7,4 @@ name: string; | ||
subscribe(listener: (s: object) => any): () => void; | ||
dispatch(action: Action): Store<State>; | ||
dispatch(action: StoreAction): Store<State>; | ||
} | ||
export declare function createStore<State>({ name, initialValue, reducer }: Flux<State>): Store<State>; |
@@ -1,1 +0,2 @@ | ||
export * from './tutorial'; | ||
export * from './stores'; | ||
export * from './initDocument'; |
import { RootStore } from '../store'; | ||
import { TutorialDocument } from '../models'; | ||
export declare function initDocument(tutorialDocument: TutorialDocument, rootStore: RootStore): void; | ||
import { TutorialDocumentType } from '../models'; | ||
export declare function initDocument(tutorialDocument: TutorialDocumentType, rootStore: RootStore): void; |
import { StateProviderInstance } from '../../state'; | ||
export declare const stateProvidersFlux: import("../../store").Flux<Record<string, StateProviderInstance<any>>>; | ||
declare type StateProviderState = Record<string, StateProviderInstance>; | ||
export declare const stateProvidersFlux: import("../../store").Flux<StateProviderState>; | ||
export {}; |
@@ -1,3 +0,5 @@ | ||
import { TutorialDocument } from '../../models'; | ||
import { TutorialDocumentType } from '../../models'; | ||
import { FetchState } from '../../store'; | ||
export declare const tutorialDocumentsFlux: import("../../store").Flux<Record<string, FetchState<TutorialDocument>>>; | ||
declare type TutorialDocumentsState = Record<string, FetchState<TutorialDocumentType>>; | ||
export declare const tutorialDocumentsFlux: import("../../store").Flux<TutorialDocumentsState>; | ||
export {}; |
@@ -5,2 +5,1 @@ export * from './logger'; | ||
export * from './NodeManager'; | ||
export * from './injectToWindow'; |
@@ -12,3 +12,3 @@ { | ||
}, | ||
"version": "0.7.2", | ||
"version": "0.7.3-alpha.0", | ||
"main": "dist/index.js", | ||
@@ -28,7 +28,7 @@ "module": "dist/index.es.js", | ||
"dependencies": { | ||
"@candulabs/eventing": "^0.7.2", | ||
"@candulabs/eventing": "^0.7.3-alpha.0", | ||
"dataloader": "^2.0.0", | ||
"setimmediate": "^1.0.5" | ||
}, | ||
"gitHead": "67798df8e8b70ba40c07a49dd4b90cc40ae3c791" | ||
"gitHead": "6e3b4584ec9c6e33043ba12d2a3a9b1635d9cd81" | ||
} |
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 too big to display
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
21
1000836
2575