0.2.0 • Published 13 days ago

@apollosproject/apollos-embeds v0.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
13 days ago

Apollos Embeds

Apollo React Embeds are pre-built components that can be easily added to third-party websites, such as Webflow. These components provide a convenient way to integrate features such as authentication, a feature feed, and a banner widget, and ensure a consistent look and feel across all digital products.

Deployment

npm run bump

Using Embeds in Webflow

1. Adding the Script Tags:

Copy the following script tags into your Webflow website. In your Dashboard, you should see the tab 'Custom Code'. Scroll to the bottom and paste the following script tags in the Footer Code block: html

<link href="https://cdn.jsdelivr.net/npm/@apollosproject/apollos-embeds@latest/widget/index.css" rel="stylesheet"/>
<script src="https://cdn.jsdelivr.net/npm/@apollosproject/apollos-embeds@latest/widget/index.js" defer></script>

⚠️ As new versions of the embeds are published, you will have to update the version number in your script tags. So, the 0.0.7 part of the URLs will increment.

2. Adding the Embed Divs:

Under the design section of your Webflow website, you need to add a div for each embed you want on your site. Currently, there are two embeds available - 'Auth' and 'FeatureFeed'. You will probably need both of these embeds, so make two divs.

3. Adding the apollos-widget Class:

Add the class apollos-widget to both of those divs. This is necessary for the embeds to function properly.

4. Adding Custom Attributes:

To control which embed shows up in which div and what church content is displayed, we use 'data-attributes' or 'Custom attributes' in Webflow.

For the 'Auth' embed, add data-type="Auth" and data-church=[INSERT_CHURCH_SLUG_HERE] as custom attributes. Here's an example for Bayside:

<div class="apollos-widget" data-type="Auth" data-church="bayside"> </div>

For the 'FeatureFeed' embed, which displays the church's content, add data-type="FeatureFeed" and data-church=[INSERT_CHURCH_SLUG_HERE] as custom attributes. Here's an example for Bayside:

<div class="apollos-widget" data-type="FeatureFeed" data-church="bayside"> </div>

⚠️ Make sure to replace INSERT_CHURCH_SLUG_HERE with your church's unique identifier, or 'slug'.

Enabling Caching for Local Frustration

For local development and testing purposes, you might want to enable caching to ensure you're not receiving the latest responses directly from the API. To do this, please refer to the Apollo client configuration file:

../packages/web-shared/client/apollosApiLink.js

In this file, locate the header configuration within the apollosApiLink function and comment the following line:

'x-cache-me-not': 1,

Options

data-type
Auth
FeatureFeed
data-church
apollos_demo
bayside
cedar_creek
celebration
chase_oaks
christ_fellowship
city_first
community_christian
crossings_community_church
crossroads_kids_club
crossroads_tv
default
eastview
eleven22
fairhaven
fake
fake_dag_church
fellowship_greenville
fellowship_nwa
hope_in_real_life
king_of_kings
lcbc
liquid_church
newspring
oakcliff
real_life
river_valley
try_grace
willow_creek
woodmen
ymca_gc

0.1.74

14 days ago

0.2.0

13 days ago

0.1.70

23 days ago

0.1.71

23 days ago

0.1.72

23 days ago

0.1.73

22 days ago

0.1.67

27 days ago

0.1.68

27 days ago

0.1.69

27 days ago

0.1.66

1 month ago

0.1.54

1 month ago

0.1.55

1 month ago

0.1.56

1 month ago

0.1.57

1 month ago

0.1.58

1 month ago

0.1.59

1 month ago

0.1.63

1 month ago

0.1.64

1 month ago

0.1.65

1 month ago

0.1.60

1 month ago

0.1.61

1 month ago

0.1.62

1 month ago

0.1.53

1 month ago

0.1.52

2 months ago

0.1.51

2 months ago

0.1.50

2 months ago

0.1.49

2 months ago

0.1.44

2 months ago

0.1.45

2 months ago

0.1.46

2 months ago

0.1.47

2 months ago

0.1.48

2 months ago

0.1.43

2 months ago

0.1.41

2 months ago

0.1.42

2 months ago

0.1.40

2 months ago

0.1.38

3 months ago

0.1.39

3 months ago

0.1.36

3 months ago

0.1.37

3 months ago

0.1.35

3 months ago

0.1.33

3 months ago

0.1.34

3 months ago

0.1.31

3 months ago

0.1.32

3 months ago

0.1.30

3 months ago

0.1.29

3 months ago

0.1.28

3 months ago

0.1.27

3 months ago

0.1.25

3 months ago

0.1.26

3 months ago

0.1.20

3 months ago

0.1.22

3 months ago

0.1.23

3 months ago

0.1.24

3 months ago

0.1.19

4 months ago

0.1.18

5 months ago

0.1.17

5 months ago

0.1.16

6 months ago

0.1.15

6 months ago

0.1.10

7 months ago

0.1.11

7 months ago

0.1.12

7 months ago

0.1.13

7 months ago

0.1.14

6 months ago

0.1.2

10 months ago

0.1.1

10 months ago

0.1.8

8 months ago

0.1.7

9 months ago

0.1.9

8 months ago

0.1.4

9 months ago

0.1.3

10 months ago

0.1.6

9 months ago

0.1.5

9 months ago

0.1.0

11 months ago

0.0.9

11 months ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago