This project adheres to Semantic Versioning.
- Upgrade dependencies, including solid-client and solid-client-authn
- Add
FileUploadcomponent.
- Change build target from commonjs to umd, to fix webpack issues
- Fix missing code snippets in storybook
- Fix dependencies to work with React 17
-
useFilehook added. -
Tablenow takes an optionalemptyStateComponentto be rendered if no rows are present. -
TableColumnnow takes an optionalsortFnsorting function used to sort that column. -
The following components now take an optional
loadingComponentto be rendered while fetching data:ValueTextLinkImageVideo
-
When it is not passed, the components render a default message instead.
-
If
null, the default message won't be rendered. -
The following components now take an optional
errorComponentto be rendered in case of error:ValueTextLink
-
When it is not passed, the components render a default message instead.
-
DatasetProviderstill receives this now asloadingComponent. -
CombinedProvidernow receives this prop and passes it down to theDatasetProvider.
loadinginDatasetProvideris now deprecated and replaced withloadingComponentto match the rest of the components.loadingcan still be used inDatasetProviderbut may be removed in a future major release.
The following sections document changes that have been released already:
- The
Valuecomponent now handles the case wheredatetime-localis unsupported by the browser and renders two inputs with typedateandtimeinstead. - Updated @inrupt/solid-client-authn-browser, which was causing an issue where
SessionContext'ssessionRequestInProgressproperty would not be set tofalseproperly in some cases.
- The
SessionProvidercomponent now accepts additional variables to enable logging back in on refresh.
- Updated all dependencies, including @inrupt/solid-client from 1.3.0 to 1.6.1, and @inrupt/solid-client-authn-browser from 1.5.1 to 1.8.0
- If no
onErroris passed to a SessionContext, an error will be thrown loginfromuseSessionwill now throw errors if an error occurs- Only
Enterkeyboard events will trigger login and logout on the default LoginButton and LogoutButton - Packages have been upgraded - notably,
@inrupt/solid-client-authn-browserwhich allows refreshing without losing the current session
datasetproperty replaced bysolidDatasetin components so that the property would not conflict with intrisic HTML element attributes.- Components such as
textandvalueno longer throw errors if something goes wrong during reading or saving, and instead always callonErrorif provided.
- All components which previously took a
propertyprop now can optionally accept apropertiesprop instead, which will be an ordered list of properties to attempt to read and write from. If none of the properties have values, the first will be used if editing data.
- Upgraded dependencies, especially solid-client-* to v1.0
sessionIdis now optional forSessionProvider
- Add login and logout functions to SessionContext/SessionProvider
- Updated solid-client-auth to 0.2.2, and solid-client to 0.6.1
- Added
errorComponentto<Image>and<Video>, allowing a placeholder component to be rendered in the place of either in case a thing or value is not found.
- Updated package dependencies
- Added
getRowPropsto<Table>, allowing a function to be provided to generate attributes for each<tr>, based on row data.
- ThingProvider correctly updates its stored Thing in state in response to changes in
thingprop
- Pass saved dataset and thing to onSave in Text and Value
- Exported
setDatasetandsetThingfrom DatasetProvider and ThingProvider, respectively. This allows components which save data to reset the dataset to what the server returns. - Allow non-
URLvalues to be set for the LoginButton. This prevents some errors from occuring, such as if the value is updated as the user types. - Added additional storybook documentation and cleaned up examples.
- Breaking change to Table -
thingsprop now takes an array of objects{ dataset, thing }
- Added type for
useSessionreturn value - Updated decimal and datetime
<Value>types to add "step="any" by default - Reduced bundle size (making react-table and swr external imports)
- Upgraded to storybook 6
- @inrupt/solid-client version to 0.4.0
- Add useThing and useDataset hooks
- Added sortable/filterable
<Table>and<TableColumn>, to display rows of Things and columns of properties - Tidied logs when testing intentionally thrown errors
- Improve handling of unloaded datasets with
<Image>,<Text>, and<Value>components.
- Allow
<DatasetProvider>to render aloadingproperty or component instead of its children
- Allow
<Image>and<Video>to read data from ThingContext
- Generate TypeScript definition files
- Simplify NPM package structure and files
- Exported all components, contexts, and providers from src/index.js.
- Switched from
solid-auth-clientto@inrupt/solid-client-authn-browserfor authentication, which allows for dynamic registration and DPoP OIDC flow
-
Added sub-folders for storybook Authentication Providers Components
-
Added storybook knobs to image video and link components
-
Added storybook knobs to Dataset Thing and Combined providers
- Added context support for the component
- Added Video component
- @inrupt/solid-client version to 0.1.1
- Dataset Provider Context
- Thing Provider Context
- Combined Dataset and Thing Provider wrapper
- Image component
- Session Provider Context
- useSession hook
- Log In Component:
- Log Out Component