@wirelineio/appkit
Wireline pads and applications SDK.
Last updated 8 months ago by elmasse .
GPL-3.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @wirelineio/appkit 
SYNC missed versions from official npm registry.

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 <Changes>
  • 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.

Current Tags

  • 0.2.0-alpha.0                                ...           alpha (a year ago)
  • 0.2.8-beta.1                                ...           beta (a year ago)
  • 0.3.0                                ...           latest (8 months ago)

35 Versions

  • 0.3.0                                ...           8 months ago
  • 0.2.14                                ...           9 months ago
  • 0.2.13                                ...           9 months ago
  • 0.2.12                                ...           10 months ago
  • 0.2.11                                ...           10 months ago
  • 0.2.10                                ...           a year ago
  • 0.2.9                                ...           a year ago
  • 0.2.8-beta.1                                ...           a year ago
  • 0.2.8-beta.0                                ...           a year ago
  • 0.2.7                                ...           a year ago
  • 0.2.7-beta.2                                ...           a year ago
  • 0.2.7-beta.1                                ...           a year ago
  • 0.2.7-beta.0                                ...           a year ago
  • 0.2.6                                ...           a year ago
  • 0.2.5                                ...           a year ago
  • 0.2.5-beta.1                                ...           a year ago
  • 0.2.5-beta.0                                ...           a year ago
  • 0.2.4                                ...           a year ago
  • 0.2.3                                ...           a year ago
  • 0.2.2                                ...           a year ago
  • 0.2.1                                ...           a year ago
  • 0.2.0                                ...           a year ago
  • 0.2.0-alpha.0                                ...           a year ago
  • 0.1.23                                ...           a year ago
  • 0.1.22                                ...           a year ago
  • 0.1.21                                ...           a year ago
  • 0.1.20                                ...           a year ago
  • 0.1.19                                ...           a year ago
  • 0.1.18                                ...           a year ago
  • 0.1.17                                ...           a year ago
  • 0.1.16                                ...           a year ago
  • 0.1.15                                ...           a year ago
  • 0.1.14                                ...           a year ago
  • 0.1.14-alpha.0                                ...           a year ago
  • 0.1.13                                ...           a year ago

Copyright 2014 - 2016 © taobao.org |