@candulabs/core
Advanced tools
Comparing version 0.8.10 to 0.8.11
@@ -6,2 +6,77 @@ # Change Log | ||
## [0.8.11](https://github.com/candulabs/candu-sdk/tree/master/packages/candu-core/compare/v0.8.11-alpha.7...v0.8.11) (2021-10-18) | ||
**Note:** Version bump only for package @candulabs/core | ||
## 0.8.11-alpha.7 (2021-10-15) | ||
**Note:** Version bump only for package @candulabs/core | ||
## 0.8.11-alpha.6 (2021-10-13) | ||
**Note:** Version bump only for package @candulabs/core | ||
## 0.8.11-alpha.5 (2021-10-08) | ||
**Note:** Version bump only for package @candulabs/core | ||
## 0.8.11-alpha.4 (2021-10-08) | ||
**Note:** Version bump only for package @candulabs/core | ||
## 0.8.11-alpha.3 (2021-10-05) | ||
**Note:** Version bump only for package @candulabs/core | ||
## 0.8.11-alpha.2 (2021-10-04) | ||
### Reverts | ||
* Revert "[TEXT-525] Removes SDK defaults on images" ([d735233](https://github.com/candulabs/candu-sdk/tree/master/packages/candu-core/commit/d73523326b2e9b4e7a6eaa15316ac725a0967389)) | ||
## 0.8.11-alpha.1 (2021-10-01) | ||
**Note:** Version bump only for package @candulabs/core | ||
## 0.8.11-alpha.0 (2021-09-30) | ||
**Note:** Version bump only for package @candulabs/core | ||
## [0.8.10](https://github.com/candulabs/candu-sdk/tree/master/packages/candu-core/compare/v0.8.10-alpha.0...v0.8.10) (2021-09-30) | ||
@@ -8,0 +83,0 @@ |
import { RootStore } from '../store'; | ||
import { CacheDocument } from './stores'; | ||
import { ContentProps } from '../inputValidation'; | ||
import { ClientToken, SegmentId, Slug } from '../models'; | ||
interface ContentResourceFetch { | ||
clientToken: ClientToken; | ||
slug: Slug; | ||
segmentIds?: SegmentId[]; | ||
rootStore: RootStore; | ||
cacheResult?: CacheDocument; | ||
} | ||
export declare const fetchContentResource: ({ clientToken, slug, segmentIds, rootStore, cacheResult, }: ContentResourceFetch) => void; | ||
export declare function content(props: ContentProps, rootStore: RootStore): void; | ||
export {}; |
@@ -0,5 +1,12 @@ | ||
/// <reference types="lodash" /> | ||
import { FetchState } from '../../store'; | ||
import { ContentDocument } from '../../models'; | ||
import { ContentDocument, Slug } from '../../models'; | ||
declare type ContentState = Record<string, FetchState<ContentDocument>>; | ||
export interface CacheDocument extends ContentDocument { | ||
slug: Slug; | ||
cache: boolean; | ||
segmentSlugId: string; | ||
} | ||
export declare const mapToSlug: ((documents: CacheDocument[]) => Record<string, CacheDocument>) & import("lodash").MemoizedFunction; | ||
export declare const contentFlux: import("../../store").Flux<ContentState>; | ||
export {}; |
import { FunctionComponent } from 'preact/compat'; | ||
import { AlertData, BadgeData, ButtonData, CodeData, EmbedPortalData, EmbedTutorialData, IFrameData, ImageData, LinkData, PlayerData } from '../../models'; | ||
import { AlertData, BadgeData, ButtonData, CodeData, Data, EmbedPortalData, EmbedTutorialData, IFrameData, ImageData, LinkData, PlayerData } from '../../models'; | ||
import { DocumentApi } from '../../styleguide'; | ||
@@ -16,2 +16,3 @@ declare type AdditionalProps<T> = T extends null ? {} : T; | ||
api: DocumentApi; | ||
nodeCustomData?: Data; | ||
}; | ||
@@ -18,0 +19,0 @@ export declare type StyleguideComponent<T = null> = FunctionComponent<StyleguideProps<T>>; |
interface Store { | ||
name: string; | ||
options: IDBObjectStoreParameters; | ||
indexes: Partial<IDBIndex>[]; | ||
} | ||
@@ -12,8 +13,5 @@ declare type IndexedDBStores = Record<string, Store>; | ||
* 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_VERSION = 4; | ||
export declare const STORES: IndexedDBStores; | ||
export {}; |
@@ -10,7 +10,8 @@ import { DBValue } from './KeyValue'; | ||
private openDB; | ||
private createIndexes; | ||
private getOptions; | ||
private hasKeyPath; | ||
save(value: Record<string, any>): void; | ||
load(key: string, callback: Function): void; | ||
loadAll(callback: Function): void; | ||
load(key: string, callback: (result: T) => void): void; | ||
loadAll(callback: (result: T[]) => void): void; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { Document, EditorNode, TrackingIdentifiers, AlertData, BadgeData, ButtonData, EmbedPortalData, EmbedTutorialData, ImageData, LinkData, PlayerData, CheckListItemData, CheckListGroupData, Variable, IFrameData } from '../models'; | ||
import { Document, EditorNode, TrackingIdentifiers, AlertData, BadgeData, ButtonData, EmbedPortalData, EmbedTutorialData, ImageData, LinkData, PlayerData, CheckListItemData, CheckListGroupData, Variable, IFrameData, Data } from '../models'; | ||
import { PortalProps, TutorialProps } from '../inputValidation'; | ||
@@ -73,3 +73,4 @@ import { StateProviderInstances } from '../state'; | ||
variables?: Record<string, Variable>; | ||
nodeCustomData?: Data; | ||
}; | ||
export {}; |
@@ -7,3 +7,5 @@ /** | ||
indexedDB: null; | ||
performance: null; | ||
performance: { | ||
now: () => number; | ||
}; | ||
fetch: () => Promise<{ | ||
@@ -13,2 +15,9 @@ ok: Response['ok']; | ||
}>; | ||
MutationObserver: { | ||
new (): { | ||
observe(): any; | ||
disconnect(): any; | ||
takeRecords(): any; | ||
}; | ||
}; | ||
}; | ||
@@ -18,3 +27,5 @@ export declare const getWindow: () => { | ||
indexedDB: null; | ||
performance: null; | ||
performance: { | ||
now: () => number; | ||
}; | ||
fetch: () => Promise<{ | ||
@@ -24,2 +35,9 @@ ok: Response['ok']; | ||
}>; | ||
MutationObserver: { | ||
new (): { | ||
observe(): any; | ||
disconnect(): any; | ||
takeRecords(): any; | ||
}; | ||
}; | ||
} | (Window & typeof globalThis); |
@@ -12,3 +12,3 @@ { | ||
}, | ||
"version": "0.8.10", | ||
"version": "0.8.11", | ||
"main": "dist/index.js", | ||
@@ -30,3 +30,3 @@ "module": "dist/index.es.js", | ||
"dependencies": { | ||
"@candulabs/eventing": "^0.8.10", | ||
"@candulabs/eventing": "^0.8.11", | ||
"dataloader": "^2.0.0", | ||
@@ -37,3 +37,3 @@ "preact": "10.5.13", | ||
}, | ||
"gitHead": "62ca39ac4201369a954c8df8f14f99231c01a3e3" | ||
"gitHead": "fdab2ef306b382ab9d399d4caef5b00cad274979" | ||
} |
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
608447
206
3978
Updated@candulabs/eventing@^0.8.11