Skip to content

Commit 437b0d5

Browse files
committed
new types of content elements added
1 parent 33beab7 commit 437b0d5

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @code.store/arcxp-sdk-ts
22

3+
## 4.40.0
4+
5+
### Minor Changes
6+
7+
- new types of content elements added
8+
39
## 4.39.0
410

511
### Minor Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@code.store/arcxp-sdk-ts",
3-
"version": "4.39.0",
3+
"version": "4.40.0",
44
"description": "A strongly typed set of ArcXP API's and utilities reduce the amount of work required to develop with ArcXP, starting with reducing the boilerplate code you have to write.",
55
"type": "commonjs",
66
"main": "./dist/index.js",

src/content-elements/content-elements.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,4 +198,37 @@ export const ContentElement = {
198198
type: 'reference' as const,
199199
};
200200
},
201+
issuu: (id: string, provider = 'https://issuu.com/oembed_wp?url=') => {
202+
return {
203+
referent: {
204+
id,
205+
provider,
206+
service: 'oembed',
207+
type: 'issuu',
208+
},
209+
type: 'reference' as const,
210+
};
211+
},
212+
kickstarter: (id: string, provider = 'https://www.kickstarter.com/services/oembed?url=') => {
213+
return {
214+
referent: {
215+
id,
216+
provider,
217+
service: 'oembed',
218+
type: 'kickstarter',
219+
},
220+
type: 'reference' as const,
221+
};
222+
},
223+
polldady: (id: string, provider = 'https://polldaddy.com/oembed/?url=') => {
224+
return {
225+
referent: {
226+
id,
227+
provider,
228+
service: 'oembed',
229+
type: 'polldady',
230+
},
231+
type: 'reference' as const,
232+
};
233+
},
201234
};

0 commit comments

Comments
 (0)