@apollosproject/canvas-embeds 2.1.2158 → 2.1.2160
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -18
- package/package.json +1 -1
- package/widget/index.css +1 -1
- package/widget/index.js +453 -481
package/README.md
CHANGED
|
@@ -70,7 +70,6 @@ Navigate to your site builder (e.g., Webflow) and add a `div` element for each e
|
|
|
70
70
|
- Auth — user authentication
|
|
71
71
|
- FeatureFeed — curated content feeds
|
|
72
72
|
- Search — classic Algolia search and profile UI
|
|
73
|
-
- Ask — AI Q&A assistant (separate from Search)
|
|
74
73
|
|
|
75
74
|
Each `div` must include the `apollos-widget` class.
|
|
76
75
|
|
|
@@ -96,8 +95,6 @@ Example:
|
|
|
96
95
|
data-search-profile-size="365px"
|
|
97
96
|
></div>
|
|
98
97
|
|
|
99
|
-
<!-- Ask (AI assistant) -->
|
|
100
|
-
<div class="apollos-widget" data-type="Ask" data-church="example_church"></div>
|
|
101
98
|
```
|
|
102
99
|
|
|
103
100
|

|
|
@@ -110,7 +107,7 @@ Use `data-attributes` (or **Custom Attributes** in Webflow) to customize the beh
|
|
|
110
107
|
|
|
111
108
|
| **Attribute** | **Description** |
|
|
112
109
|
| -------------------------- | ----------------------------------------------------------- |
|
|
113
|
-
| `data-type` | One of: `Auth`, `FeatureFeed`, `Search
|
|
110
|
+
| `data-type` | One of: `Auth`, `FeatureFeed`, `Search`. |
|
|
114
111
|
| `data-church` | Church slug (e.g., `bayside`). |
|
|
115
112
|
| `data-search-profile-size` | (Search) Width of the profile modal. |
|
|
116
113
|
| `data-hide-apollos-auth` | (Search) Hides the profile/auth UI. |
|
|
@@ -225,7 +222,6 @@ yarn flush
|
|
|
225
222
|
| `FeatureFeed` | `data-church`, `data-feature-feed` |
|
|
226
223
|
| `Search` | `data-church`, `data-search-profile-size` |
|
|
227
224
|
| | `data-hide-apollos-auth` |
|
|
228
|
-
| `Ask` | `data-church` |
|
|
229
225
|
|
|
230
226
|
#### Path Routing
|
|
231
227
|
|
|
@@ -233,16 +229,3 @@ For advanced routing options, use:
|
|
|
233
229
|
|
|
234
230
|
- `data-use-path-router="true"` for enabling path-based routing.
|
|
235
231
|
- `data-apollos-id-param="true"` for custom ID handling.
|
|
236
|
-
|
|
237
|
-
#### Ask Embed
|
|
238
|
-
|
|
239
|
-
The Ask experience now lives in its own embed. Use `data-type="Ask"` to render the AI assistant separate from Search:
|
|
240
|
-
|
|
241
|
-
```html
|
|
242
|
-
<div class="apollos-widget" data-type="Ask" data-church="example_church"></div>
|
|
243
|
-
```
|
|
244
|
-
|
|
245
|
-
Notes:
|
|
246
|
-
|
|
247
|
-
- Ask posts to your Admin app’s `/api/:church/ask` endpoint using a simple POST (no custom headers), so CORS preflights are avoided.
|
|
248
|
-
- In Modal or Container mode, Ask renders within the same shell as other embeds.
|