@code.store/arcxp-sdk-ts 4.2.0 → 4.3.0
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/dist/api/migration-center/types.d.ts +1 -0
- package/dist/api/migration-center/types.js +1 -0
- package/dist/api/migration-center/types.js.map +1 -1
- package/dist/content-elements/index.d.ts +72 -0
- package/dist/content-elements/index.js +90 -3
- package/dist/content-elements/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -20,6 +20,7 @@ var MigrationStatus;
|
|
|
20
20
|
MigrationStatus["Scheduled"] = "Scheduled";
|
|
21
21
|
MigrationStatus["FailVideo"] = "FailVideo";
|
|
22
22
|
MigrationStatus["FailImage"] = "FailImage";
|
|
23
|
+
MigrationStatus["FailPhoto"] = "FailPhoto";
|
|
23
24
|
MigrationStatus["FailStory"] = "FailStory";
|
|
24
25
|
MigrationStatus["FailGallery"] = "FailGallery";
|
|
25
26
|
MigrationStatus["FailAuthor"] = "FailAuthor";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/api/migration-center/types.ts"],"names":[],"mappings":";;;AAkFA,IAAY,OAQX;AARD,WAAY,OAAO;IACjB,0BAAe,CAAA;IACf,0BAAe,CAAA;IACf,sBAAW,CAAA;IACX,4BAAiB,CAAA;IACjB,8BAAmB,CAAA;IACnB,0BAAe,CAAA;IACf,gCAAqB,CAAA;AACvB,CAAC,EARW,OAAO,GAAP,eAAO,KAAP,eAAO,QAQlB;AAED,IAAY,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/api/migration-center/types.ts"],"names":[],"mappings":";;;AAkFA,IAAY,OAQX;AARD,WAAY,OAAO;IACjB,0BAAe,CAAA;IACf,0BAAe,CAAA;IACf,sBAAW,CAAA;IACX,4BAAiB,CAAA;IACjB,8BAAmB,CAAA;IACnB,0BAAe,CAAA;IACf,gCAAqB,CAAA;AACvB,CAAC,EARW,OAAO,GAAP,eAAO,KAAP,eAAO,QAQlB;AAED,IAAY,eAcX;AAdD,WAAY,eAAe;IACzB,sCAAmB,CAAA;IACnB,oCAAiB,CAAA;IACjB,4CAAyB,CAAA;IACzB,0CAAuB,CAAA;IACvB,0CAAuB,CAAA;IACvB,0CAAuB,CAAA;IACvB,0CAAuB,CAAA;IACvB,0CAAuB,CAAA;IACvB,0CAAuB,CAAA;IACvB,8CAA2B,CAAA;IAC3B,4CAAyB,CAAA;IACzB,sCAAmB,CAAA;IACnB,wDAAqC,CAAA;AACvC,CAAC,EAdW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAc1B;AA4DD,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,0CAAyB,CAAA;IACzB,0CAAyB,CAAA;IACzB,0BAAS,CAAA;AACX,CAAC,EAJW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAIxB;AAED,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,+BAAW,CAAA;IACX,iCAAa,CAAA;AACf,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B"}
|
|
@@ -134,4 +134,76 @@ export declare const ContentElement: {
|
|
|
134
134
|
subtype: "jw_player";
|
|
135
135
|
type: "custom_embed";
|
|
136
136
|
};
|
|
137
|
+
twitter: (id: string, provider?: string) => {
|
|
138
|
+
referent: {
|
|
139
|
+
id: string;
|
|
140
|
+
provider: string;
|
|
141
|
+
service: "oembed";
|
|
142
|
+
type: "twitter";
|
|
143
|
+
};
|
|
144
|
+
type: "reference";
|
|
145
|
+
};
|
|
146
|
+
youtube: (id: string, provider?: string) => {
|
|
147
|
+
referent: {
|
|
148
|
+
id: string;
|
|
149
|
+
provider: string;
|
|
150
|
+
service: string;
|
|
151
|
+
type: string;
|
|
152
|
+
};
|
|
153
|
+
type: "reference";
|
|
154
|
+
};
|
|
155
|
+
facebook_video: (id: string, provider?: string) => {
|
|
156
|
+
referent: {
|
|
157
|
+
id: string;
|
|
158
|
+
provider: string;
|
|
159
|
+
service: string;
|
|
160
|
+
type: string;
|
|
161
|
+
};
|
|
162
|
+
type: "reference";
|
|
163
|
+
};
|
|
164
|
+
facebook_post: (id: string, provider?: string) => {
|
|
165
|
+
referent: {
|
|
166
|
+
id: string;
|
|
167
|
+
provider: string;
|
|
168
|
+
service: string;
|
|
169
|
+
type: string;
|
|
170
|
+
};
|
|
171
|
+
type: "reference";
|
|
172
|
+
};
|
|
173
|
+
vimeo: (id: string, provider?: string) => {
|
|
174
|
+
referent: {
|
|
175
|
+
id: string;
|
|
176
|
+
provider: string;
|
|
177
|
+
service: string;
|
|
178
|
+
type: string;
|
|
179
|
+
};
|
|
180
|
+
type: "reference";
|
|
181
|
+
};
|
|
182
|
+
instagram: (id: string, provider?: string) => {
|
|
183
|
+
referent: {
|
|
184
|
+
id: string;
|
|
185
|
+
provider: string;
|
|
186
|
+
service: string;
|
|
187
|
+
type: string;
|
|
188
|
+
};
|
|
189
|
+
type: "reference";
|
|
190
|
+
};
|
|
191
|
+
dailymotion: (id: string, provider?: string) => {
|
|
192
|
+
referent: {
|
|
193
|
+
id: string;
|
|
194
|
+
provider: string;
|
|
195
|
+
service: string;
|
|
196
|
+
type: string;
|
|
197
|
+
};
|
|
198
|
+
type: "reference";
|
|
199
|
+
};
|
|
200
|
+
tiktok: (id: string, provider?: string) => {
|
|
201
|
+
referent: {
|
|
202
|
+
id: string;
|
|
203
|
+
provider: string;
|
|
204
|
+
service: string;
|
|
205
|
+
type: string;
|
|
206
|
+
};
|
|
207
|
+
type: "reference";
|
|
208
|
+
};
|
|
137
209
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ContentElement = void 0;
|
|
4
|
-
const refType = 'reference';
|
|
5
4
|
exports.ContentElement = {
|
|
6
5
|
divider: () => {
|
|
7
6
|
return {
|
|
@@ -53,7 +52,7 @@ exports.ContentElement = {
|
|
|
53
52
|
},
|
|
54
53
|
gallery: (id) => {
|
|
55
54
|
return {
|
|
56
|
-
type:
|
|
55
|
+
type: 'reference',
|
|
57
56
|
referent: {
|
|
58
57
|
type: 'gallery',
|
|
59
58
|
id,
|
|
@@ -94,7 +93,7 @@ exports.ContentElement = {
|
|
|
94
93
|
...properties,
|
|
95
94
|
},
|
|
96
95
|
},
|
|
97
|
-
type:
|
|
96
|
+
type: 'reference',
|
|
98
97
|
};
|
|
99
98
|
},
|
|
100
99
|
jwPlayer: (id) => {
|
|
@@ -108,5 +107,93 @@ exports.ContentElement = {
|
|
|
108
107
|
type: 'custom_embed',
|
|
109
108
|
};
|
|
110
109
|
},
|
|
110
|
+
twitter: (id, provider = 'https://publish.twitter.com/oembed?url=') => {
|
|
111
|
+
return {
|
|
112
|
+
referent: {
|
|
113
|
+
id,
|
|
114
|
+
provider,
|
|
115
|
+
service: 'oembed',
|
|
116
|
+
type: 'twitter',
|
|
117
|
+
},
|
|
118
|
+
type: 'reference',
|
|
119
|
+
};
|
|
120
|
+
},
|
|
121
|
+
youtube: (id, provider = 'https://www.youtube.com/oembed?url=') => {
|
|
122
|
+
return {
|
|
123
|
+
referent: {
|
|
124
|
+
id,
|
|
125
|
+
provider,
|
|
126
|
+
service: 'oembed',
|
|
127
|
+
type: 'youtube',
|
|
128
|
+
},
|
|
129
|
+
type: 'reference',
|
|
130
|
+
};
|
|
131
|
+
},
|
|
132
|
+
facebook_video: (id, provider = 'https://www.facebook.com/plugins/post/oembed.json/?url=') => {
|
|
133
|
+
return {
|
|
134
|
+
referent: {
|
|
135
|
+
id,
|
|
136
|
+
provider,
|
|
137
|
+
service: 'oembed',
|
|
138
|
+
type: 'facebook-video',
|
|
139
|
+
},
|
|
140
|
+
type: 'reference',
|
|
141
|
+
};
|
|
142
|
+
},
|
|
143
|
+
facebook_post: (id, provider = 'https://www.facebook.com/plugins/post/oembed.json/?url=') => {
|
|
144
|
+
return {
|
|
145
|
+
referent: {
|
|
146
|
+
id,
|
|
147
|
+
provider,
|
|
148
|
+
service: 'oembed',
|
|
149
|
+
type: 'facebook-post',
|
|
150
|
+
},
|
|
151
|
+
type: 'reference',
|
|
152
|
+
};
|
|
153
|
+
},
|
|
154
|
+
vimeo: (id, provider = 'https://vimeo.com/api/oembed.json?url=') => {
|
|
155
|
+
return {
|
|
156
|
+
referent: {
|
|
157
|
+
id,
|
|
158
|
+
provider,
|
|
159
|
+
service: 'oembed',
|
|
160
|
+
type: 'vimeo',
|
|
161
|
+
},
|
|
162
|
+
type: 'reference',
|
|
163
|
+
};
|
|
164
|
+
},
|
|
165
|
+
instagram: (id, provider = 'https://api.instagram.com/oembed?url=') => {
|
|
166
|
+
return {
|
|
167
|
+
referent: {
|
|
168
|
+
id,
|
|
169
|
+
provider,
|
|
170
|
+
service: 'oembed',
|
|
171
|
+
type: 'instagram',
|
|
172
|
+
},
|
|
173
|
+
type: 'reference',
|
|
174
|
+
};
|
|
175
|
+
},
|
|
176
|
+
dailymotion: (id, provider = 'https://www.dailymotion.com/services/oembed?url=') => {
|
|
177
|
+
return {
|
|
178
|
+
referent: {
|
|
179
|
+
id,
|
|
180
|
+
provider,
|
|
181
|
+
service: 'oembed',
|
|
182
|
+
type: 'dailymotion',
|
|
183
|
+
},
|
|
184
|
+
type: 'reference',
|
|
185
|
+
};
|
|
186
|
+
},
|
|
187
|
+
tiktok: (id, provider = 'https://www.tiktok.com/oembed?url=') => {
|
|
188
|
+
return {
|
|
189
|
+
referent: {
|
|
190
|
+
id,
|
|
191
|
+
provider,
|
|
192
|
+
service: 'oembed',
|
|
193
|
+
type: 'tiktok',
|
|
194
|
+
},
|
|
195
|
+
type: 'reference',
|
|
196
|
+
};
|
|
197
|
+
},
|
|
111
198
|
};
|
|
112
199
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/content-elements/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"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