JSPM

@relewise/uniform-canvas

1.0.0-alpha.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q24936F
  • License MIT

Relewise data enhancers for Uniform Canvas

Package Exports

  • @relewise/uniform-canvas
  • @relewise/uniform-canvas/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@relewise/uniform-canvas) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Relewise data enhancers for Uniform Canvas.

Used on the [https://uniform.app](Uniform Platform).

Usage examples

const enhancer = createRelewiseEnhancer({
  apiKey: process.env.RELEWISE_API_KEY!,
  datasetId: process.env.RELEWISE_DATASET_ID!,
  dataKeys: { products: ['Images', 'SubTitle'], contents: ['url'] },
  language: 'da-DK'
});
  
await enhance({
  composition: composition,
  enhancers: new EnhancerBuilder().parameterType(RELEWISE_CANVAS_PARAMETER_TYPES, enhancer),
  context: {},
});