0.0.47 • Published 9 months ago

@bkbarry-lateral/tm-connector v0.0.47

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

Initialization

Before using the LateralWrapper, you need to initialize the library with your API key:

import { initLateral } from "tailormade-headless";

initLateral({
  apiKey: "YOUR_API_KEY",
  userId: "CURRENT_USER_ID",
});

Usage

import { LateralWrapper } from 'tailormade-headless';

...

<LateralWrapper lateralLocationId={componentIdConfiguredInLateral}>
  <div>
    <h1>My content</h1>
    <p data-lateral-field-id={idConfiguredInLateral}>Default text if backend is not reachable</p>
  </div>
</LateralWrapper>

Development

To develop this package locally and test it in tailormade-fe, use Yalc:

  1. Install Yalc globally (if not already installed):

    npm install -g yalc
  2. From the root of the project, run:

    yalc publish
  3. In the tailormade-fe directory, run:

    yalc add @bkbarry-lateral/tm-connector
  4. When you make changes to this package, run the following in this directory:

    yalc push --scripts --update --replace --sig

    This will build the package and update all projects using it via Yalc.

  5. When you're done developing and want to switch back to the npm version, go to the tailormade-fe directory and run:

    yalc remove @bkbarry-lateral/tm-connector
    npm install
0.0.47

9 months ago

0.0.43

9 months ago

0.0.44

9 months ago

0.0.45

9 months ago

0.0.46

9 months ago

0.0.41

10 months ago

0.0.42

10 months ago

0.0.40

10 months ago

0.0.39

10 months ago

0.0.38

10 months ago

0.0.37

10 months ago

0.0.36

10 months ago

0.0.35

10 months ago

0.0.34

10 months ago

0.0.33

10 months ago

0.0.32

10 months ago

0.0.31

10 months ago

0.0.30

10 months ago

0.0.29

10 months ago

0.0.28

10 months ago

0.0.27

10 months ago

0.0.26

10 months ago

0.0.25

10 months ago

0.0.24

10 months ago

0.0.23

10 months ago

0.0.22

10 months ago

0.0.21

10 months ago

0.0.20

10 months ago

0.0.19

10 months ago

0.0.18

10 months ago

0.0.17

10 months ago

0.0.16

10 months ago

0.0.15

10 months ago

0.0.14

10 months ago

0.0.13

10 months ago

0.0.12

11 months ago

0.0.11

11 months ago

0.0.10

11 months ago

0.0.9

11 months ago

0.0.8

12 months ago

0.0.7

12 months ago

0.0.6

12 months ago

0.0.5

12 months ago

0.0.4

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago