0.3.0 • Published 4 years ago

@wirelineio/appkit v0.3.0

Weekly downloads
1
License
GPL-3.0
Repository
github
Last release
4 years ago

appkit

SDK for the development of Web and mobile applications and pads.

withLogView

import { withLogView } from '@wirelineio/appkit';

withLogView({ view, options })(Component);

withLogView HOC provides access to the underlying view. It retrieves item data and subscribes for changes and updates based on the supplied variables.

  • view: {String} The view name. Required.
  • options: {Function(props) => ({ variables: { id } })} Map props or external varibles to return an object with the form of { variables: { id } } where id is the desired itemId. Required.

The Component receives then a property view with the following properties:

  • itemId: {String} The item ID.
  • title: {String} Title.
  • type: {String} The item type.
  • appendChange: {Function(Any)} Function to append a change in the log.
  • log: {Any[]} Array of
  • content: {String} Flat string of changes.
  • update: {Function({title, type})} Updater function for title and type.
  • archive: {Function} Archive this item.
  • unarchive: {Function} Unarchive this item.
0.3.0

4 years ago

0.2.14

5 years ago

0.2.13

5 years ago

0.2.12

5 years ago

0.2.11

5 years ago

0.2.10

5 years ago

0.2.9

5 years ago

0.2.8-beta.1

5 years ago

0.2.8-beta.0

5 years ago

0.2.7

5 years ago

0.2.7-beta.2

5 years ago

0.2.7-beta.1

5 years ago

0.2.7-beta.0

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.5-beta.1

5 years ago

0.2.5-beta.0

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.2.0-alpha.0

5 years ago

0.1.23

5 years ago

0.1.22

5 years ago

0.1.21

5 years ago

0.1.20

5 years ago

0.1.19

5 years ago

0.1.18

5 years ago

0.1.17

5 years ago

0.1.16

5 years ago

0.1.15

5 years ago

0.1.14

5 years ago

0.1.14-alpha.0

5 years ago

0.1.13

5 years ago