Update to the latest version of @flatfile/sdk
(1.0.5), which adds mountUrl
and apiUrl
support.
Now available as optional @Input()
's (both are of type String)
<flatfile-button [token]="token"
[mountUrl]="mountUrl"
[apiUrl]="apiUrl">
Upload to Flafile
</flatfile-button>
This release utilizes the new flatfile/sdk which has numerous breaking changes. Read through the documentation (readme) and sample code provided here to see how you can upgrade your existing flatfile-button to this latest SDK.
The only thing REQUIRED now for <flatfile-button>
is the Input [token]
, which you must retrieve from your backend.
More information here
Minor release to bump base adapter version to fix minor bug there.
Fixed underlying @flatfile/adapter
package to fix this packages ability to work with older versions of Angular (such as v8).
Fix broken codesandbox link
Update to use the latest @flatfile/adapter
fixing build/compilation bugs for exports not publicly available, clean up default export usage, and redundant interfaces found in this package (using adapter base version now).
New feature @Input [mountUrl]=""
added.
Fix compatibility with older Angular v8 (and lower) + older TypeScript versions.
Fix onData bug when not present in user code.
Exported FlatfileCustomer
interface.
ISettings
and renamed to FlatfileSettings
.
Improved Flatfile configuration object to provide licenseKey | settings | customer
objects and type definitions.
Fixed import for FlatfileResults to come from @flatfile/angular library correctly.
Breaking Changes:
2-way binding for data, recordInit, recordChange removed.
2-way binding for data, recordInit, recordChange removed.
Methods have been renamed (to avoid confusion) and now need to be passed via 1-way binding, utilizing .bind(this)
which will ensure parent component classes context. (Incase users need to call internal methods/properties/etc from within their component class).
Previously:
[(data)]="onData"
[(recordInit)]="onRecordInit"
[(recordChange)]="onRecordChange"
Now, the methods have on
prepending the name, and are 1-way binding Input's.
[onData]="onData.bind(this)"
[onRecordInit]="onRecordInit.bind(this)"
[onRecordChange]="onRecordChange.bind(this)"