@memberjunction/react-runtime 2.88.0 → 2.90.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.
@@ -0,0 +1,549 @@
1
+ "use strict";
2
+ var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.LibraryRegistry = void 0;
5
+ class LibraryRegistry {
6
+ static initializeLibraries() {
7
+ const libs = [
8
+ {
9
+ name: 'Chart.js',
10
+ globalVariable: 'Chart',
11
+ category: 'charting/basic',
12
+ versions: {
13
+ '4.4.0': { cdnUrl: 'https://cdn.jsdelivr.net/npm/chart.js@4.4.0/dist/chart.umd.min.js' },
14
+ '4.3.0': { cdnUrl: 'https://cdn.jsdelivr.net/npm/chart.js@4.3.0/dist/chart.umd.min.js' }
15
+ },
16
+ defaultVersion: '4.4.0'
17
+ },
18
+ {
19
+ name: 'Recharts',
20
+ globalVariable: 'Recharts',
21
+ category: 'charting/react',
22
+ versions: {
23
+ '2.10.4': { cdnUrl: 'https://cdn.jsdelivr.net/npm/recharts@2.10.4/dist/Recharts.js' }
24
+ },
25
+ defaultVersion: '2.10.4'
26
+ },
27
+ {
28
+ name: 'Plotly',
29
+ globalVariable: 'Plotly',
30
+ category: 'charting/scientific',
31
+ versions: {
32
+ '2.27.1': { cdnUrl: 'https://cdn.plot.ly/plotly-2.27.1.min.js' }
33
+ },
34
+ defaultVersion: '2.27.1'
35
+ },
36
+ {
37
+ name: 'ApexCharts',
38
+ globalVariable: 'ApexCharts',
39
+ category: 'charting/interactive',
40
+ versions: {
41
+ '3.45.1': {
42
+ cdnUrl: 'https://cdn.jsdelivr.net/npm/apexcharts@3.45.1/dist/apexcharts.min.js',
43
+ cssUrls: ['https://cdn.jsdelivr.net/npm/apexcharts@3.45.1/dist/apexcharts.css']
44
+ }
45
+ },
46
+ defaultVersion: '3.45.1'
47
+ },
48
+ {
49
+ name: 'ECharts',
50
+ globalVariable: 'echarts',
51
+ category: 'charting/advanced',
52
+ versions: {
53
+ '5.4.3': { cdnUrl: 'https://cdn.jsdelivr.net/npm/echarts@5.4.3/dist/echarts.min.js' }
54
+ },
55
+ defaultVersion: '5.4.3'
56
+ },
57
+ {
58
+ name: 'Highcharts',
59
+ globalVariable: 'Highcharts',
60
+ category: 'charting/enterprise',
61
+ versions: {
62
+ '11.2.0': { cdnUrl: 'https://code.highcharts.com/11.2.0/highcharts.js' }
63
+ },
64
+ defaultVersion: '11.2.0'
65
+ },
66
+ {
67
+ name: 'Victory',
68
+ globalVariable: 'Victory',
69
+ category: 'charting/react',
70
+ versions: {
71
+ '36.9.1': { cdnUrl: 'https://cdn.jsdelivr.net/npm/victory@36.9.1/dist/victory.min.js' }
72
+ },
73
+ defaultVersion: '36.9.1'
74
+ },
75
+ {
76
+ name: 'd3',
77
+ globalVariable: 'd3',
78
+ category: 'charting/low-level',
79
+ versions: {
80
+ '7.8.5': { cdnUrl: 'https://cdn.jsdelivr.net/npm/d3@7.8.5/dist/d3.min.js' }
81
+ },
82
+ defaultVersion: '7.8.5'
83
+ },
84
+ {
85
+ name: 'topojson-client',
86
+ globalVariable: 'topojson',
87
+ category: 'maps/topology',
88
+ versions: {
89
+ '3.1.0': { cdnUrl: 'https://cdn.jsdelivr.net/npm/topojson-client@3.1.0/dist/topojson-client.min.js' }
90
+ },
91
+ defaultVersion: '3.1.0'
92
+ },
93
+ {
94
+ name: 'dayjs',
95
+ globalVariable: 'dayjs',
96
+ category: 'utility/date',
97
+ versions: {
98
+ '1.11.10': { cdnUrl: 'https://cdn.jsdelivr.net/npm/dayjs@1.11.10/dayjs.min.js' }
99
+ },
100
+ defaultVersion: '1.11.10'
101
+ },
102
+ {
103
+ name: 'moment',
104
+ globalVariable: 'moment',
105
+ category: 'utility/date',
106
+ versions: {
107
+ '2.29.4': { cdnUrl: 'https://cdn.jsdelivr.net/npm/moment@2.29.4/moment.min.js' }
108
+ },
109
+ defaultVersion: '2.29.4'
110
+ },
111
+ {
112
+ name: 'date-fns',
113
+ globalVariable: 'dateFns',
114
+ category: 'utility/date',
115
+ versions: {
116
+ '3.0.6': { cdnUrl: 'https://cdn.jsdelivr.net/npm/date-fns@3.0.6/index.js' }
117
+ },
118
+ defaultVersion: '3.0.6'
119
+ },
120
+ {
121
+ name: 'lodash',
122
+ globalVariable: '_',
123
+ category: 'utility/general',
124
+ versions: {
125
+ '4.17.21': { cdnUrl: 'https://cdn.jsdelivr.net/npm/lodash@4.17.21/lodash.min.js' }
126
+ },
127
+ defaultVersion: '4.17.21'
128
+ },
129
+ {
130
+ name: 'axios',
131
+ globalVariable: 'axios',
132
+ category: 'utility/http',
133
+ versions: {
134
+ '1.6.5': { cdnUrl: 'https://cdn.jsdelivr.net/npm/axios@1.6.5/dist/axios.min.js' }
135
+ },
136
+ defaultVersion: '1.6.5'
137
+ },
138
+ {
139
+ name: 'uuid',
140
+ globalVariable: 'uuid',
141
+ category: 'utility/general',
142
+ versions: {
143
+ '9.0.1': { cdnUrl: 'https://cdn.jsdelivr.net/npm/uuid@9.0.1/dist/umd/uuid.min.js' }
144
+ },
145
+ defaultVersion: '9.0.1'
146
+ },
147
+ {
148
+ name: 'classnames',
149
+ globalVariable: 'classNames',
150
+ category: 'utility/css',
151
+ versions: {
152
+ '2.5.1': { cdnUrl: 'https://cdn.jsdelivr.net/npm/classnames@2.5.1/index.js' }
153
+ },
154
+ defaultVersion: '2.5.1'
155
+ },
156
+ {
157
+ name: 'DOMPurify',
158
+ globalVariable: 'DOMPurify',
159
+ category: 'utility/security',
160
+ versions: {
161
+ '3.0.8': { cdnUrl: 'https://cdn.jsdelivr.net/npm/dompurify@3.0.8/dist/purify.min.js' }
162
+ },
163
+ defaultVersion: '3.0.8'
164
+ },
165
+ {
166
+ name: 'numeral',
167
+ globalVariable: 'numeral',
168
+ category: 'utility/formatting',
169
+ versions: {
170
+ '2.0.6': { cdnUrl: 'https://cdn.jsdelivr.net/npm/numeral@2.0.6/numeral.min.js' }
171
+ },
172
+ defaultVersion: '2.0.6'
173
+ },
174
+ {
175
+ name: 'accounting',
176
+ globalVariable: 'accounting',
177
+ category: 'utility/formatting',
178
+ versions: {
179
+ '0.4.1': { cdnUrl: 'https://cdn.jsdelivr.net/npm/accounting@0.4.1/accounting.min.js' }
180
+ },
181
+ defaultVersion: '0.4.1'
182
+ },
183
+ {
184
+ name: 'antd',
185
+ globalVariable: 'antd',
186
+ category: 'ui/components',
187
+ versions: {
188
+ '5.11.0': {
189
+ cdnUrl: 'https://cdn.jsdelivr.net/npm/antd@5.11.0/dist/antd.min.js',
190
+ cssUrls: ['https://cdn.jsdelivr.net/npm/antd@5.11.0/dist/reset.css']
191
+ }
192
+ },
193
+ defaultVersion: '5.11.0'
194
+ },
195
+ {
196
+ name: '@mui/material',
197
+ globalVariable: 'MaterialUI',
198
+ category: 'ui/components',
199
+ versions: {
200
+ '5.15.2': { cdnUrl: 'https://cdn.jsdelivr.net/npm/@mui/material@5.15.2/umd/material-ui.production.min.js' }
201
+ },
202
+ defaultVersion: '5.15.2'
203
+ },
204
+ {
205
+ name: 'bootstrap',
206
+ globalVariable: 'bootstrap',
207
+ category: 'ui/framework',
208
+ versions: {
209
+ '5.3.2': {
210
+ cdnUrl: 'https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js',
211
+ cssUrls: ['https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css']
212
+ }
213
+ },
214
+ defaultVersion: '5.3.2'
215
+ },
216
+ {
217
+ name: 'semantic-ui',
218
+ globalVariable: 'semanticUI',
219
+ category: 'ui/framework',
220
+ versions: {
221
+ '2.5.0': {
222
+ cdnUrl: 'https://cdn.jsdelivr.net/npm/semantic-ui@2.5.0/dist/semantic.min.js',
223
+ cssUrls: ['https://cdn.jsdelivr.net/npm/semantic-ui@2.5.0/dist/semantic.min.css']
224
+ }
225
+ },
226
+ defaultVersion: '2.5.0'
227
+ },
228
+ {
229
+ name: 'ag-grid',
230
+ globalVariable: 'agGrid',
231
+ category: 'grid/enterprise',
232
+ versions: {
233
+ '31.0.1': {
234
+ cdnUrl: 'https://cdn.jsdelivr.net/npm/ag-grid-community@31.0.1/dist/ag-grid-community.min.js',
235
+ cssUrls: [
236
+ 'https://cdn.jsdelivr.net/npm/ag-grid-community@31.0.1/dist/styles/ag-grid.css',
237
+ 'https://cdn.jsdelivr.net/npm/ag-grid-community@31.0.1/dist/styles/ag-theme-alpine.css'
238
+ ]
239
+ }
240
+ },
241
+ defaultVersion: '31.0.1'
242
+ },
243
+ {
244
+ name: 'react-table',
245
+ globalVariable: 'ReactTable',
246
+ category: 'grid/lightweight',
247
+ versions: {
248
+ '7.8.0': { cdnUrl: 'https://cdn.jsdelivr.net/npm/react-table@7.8.0/dist/react-table.production.min.js' }
249
+ },
250
+ defaultVersion: '7.8.0'
251
+ },
252
+ {
253
+ name: 'material-table',
254
+ globalVariable: 'MaterialTable',
255
+ category: 'grid/material',
256
+ versions: {
257
+ '2.0.5': { cdnUrl: 'https://cdn.jsdelivr.net/npm/material-table@2.0.5/dist/material-table.min.js' }
258
+ },
259
+ defaultVersion: '2.0.5'
260
+ },
261
+ {
262
+ name: 'leaflet',
263
+ globalVariable: 'L',
264
+ category: 'maps/opensource',
265
+ versions: {
266
+ '1.9.4': {
267
+ cdnUrl: 'https://cdn.jsdelivr.net/npm/leaflet@1.9.4/dist/leaflet.js',
268
+ cssUrls: ['https://cdn.jsdelivr.net/npm/leaflet@1.9.4/dist/leaflet.css']
269
+ }
270
+ },
271
+ defaultVersion: '1.9.4'
272
+ },
273
+ {
274
+ name: 'mapbox-gl',
275
+ globalVariable: 'mapboxgl',
276
+ category: 'maps/vector',
277
+ versions: {
278
+ '3.0.1': {
279
+ cdnUrl: 'https://api.mapbox.com/mapbox-gl-js/v3.0.1/mapbox-gl.js',
280
+ cssUrls: ['https://api.mapbox.com/mapbox-gl-js/v3.0.1/mapbox-gl.css']
281
+ }
282
+ },
283
+ defaultVersion: '3.0.1'
284
+ },
285
+ {
286
+ name: 'framer-motion',
287
+ globalVariable: 'FramerMotion',
288
+ category: 'animation/react',
289
+ versions: {
290
+ '10.16.16': { cdnUrl: 'https://cdn.jsdelivr.net/npm/framer-motion@10.16.16/dist/framer-motion.js' }
291
+ },
292
+ defaultVersion: '10.16.16'
293
+ },
294
+ {
295
+ name: 'gsap',
296
+ globalVariable: 'gsap',
297
+ category: 'animation/general',
298
+ versions: {
299
+ '3.12.4': { cdnUrl: 'https://cdn.jsdelivr.net/npm/gsap@3.12.4/dist/gsap.min.js' }
300
+ },
301
+ defaultVersion: '3.12.4'
302
+ },
303
+ {
304
+ name: 'lottie-web',
305
+ globalVariable: 'lottie',
306
+ category: 'animation/svg',
307
+ versions: {
308
+ '5.12.2': { cdnUrl: 'https://cdn.jsdelivr.net/npm/lottie-web@5.12.2/build/player/lottie.min.js' }
309
+ },
310
+ defaultVersion: '5.12.2'
311
+ },
312
+ {
313
+ name: 'react-hook-form',
314
+ globalVariable: 'ReactHookForm',
315
+ category: 'forms/react',
316
+ versions: {
317
+ '7.48.2': { cdnUrl: 'https://cdn.jsdelivr.net/npm/react-hook-form@7.48.2/dist/index.umd.production.min.js' }
318
+ },
319
+ defaultVersion: '7.48.2'
320
+ },
321
+ {
322
+ name: 'formik',
323
+ globalVariable: 'Formik',
324
+ category: 'forms/react',
325
+ versions: {
326
+ '2.4.5': { cdnUrl: 'https://cdn.jsdelivr.net/npm/formik@2.4.5/dist/formik.umd.production.min.js' }
327
+ },
328
+ defaultVersion: '2.4.5'
329
+ },
330
+ {
331
+ name: 'react-select',
332
+ globalVariable: 'ReactSelect',
333
+ category: 'forms/select',
334
+ versions: {
335
+ '5.8.0': { cdnUrl: 'https://cdn.jsdelivr.net/npm/react-select@5.8.0/dist/react-select.min.js' }
336
+ },
337
+ defaultVersion: '5.8.0'
338
+ },
339
+ {
340
+ name: 'joi',
341
+ globalVariable: 'Joi',
342
+ category: 'validation/schema',
343
+ versions: {
344
+ '17.11.0': { cdnUrl: 'https://cdn.jsdelivr.net/npm/joi-browser@13.4.0/dist/joi-browser.min.js' }
345
+ },
346
+ defaultVersion: '17.11.0'
347
+ },
348
+ {
349
+ name: 'yup',
350
+ globalVariable: 'yup',
351
+ category: 'validation/schema',
352
+ versions: {
353
+ '1.3.3': { cdnUrl: 'https://cdn.jsdelivr.net/npm/yup@1.3.3/lib/index.umd.js' }
354
+ },
355
+ defaultVersion: '1.3.3'
356
+ },
357
+ {
358
+ name: 'zustand',
359
+ globalVariable: 'zustand',
360
+ category: 'state/lightweight',
361
+ versions: {
362
+ '4.4.7': { cdnUrl: 'https://cdn.jsdelivr.net/npm/zustand@4.4.7/dist/umd.production.js' }
363
+ },
364
+ defaultVersion: '4.4.7'
365
+ },
366
+ {
367
+ name: 'valtio',
368
+ globalVariable: 'valtio',
369
+ category: 'state/proxy',
370
+ versions: {
371
+ '1.12.1': { cdnUrl: 'https://cdn.jsdelivr.net/npm/valtio@1.12.1/dist/index.umd.js' }
372
+ },
373
+ defaultVersion: '1.12.1'
374
+ },
375
+ {
376
+ name: 'simple-statistics',
377
+ globalVariable: 'ss',
378
+ category: 'math/statistics',
379
+ versions: {
380
+ '7.8.3': { cdnUrl: 'https://cdn.jsdelivr.net/npm/simple-statistics@7.8.3/dist/simple-statistics.min.js' }
381
+ },
382
+ defaultVersion: '7.8.3'
383
+ },
384
+ {
385
+ name: 'mathjs',
386
+ globalVariable: 'math',
387
+ category: 'math/general',
388
+ versions: {
389
+ '12.2.1': { cdnUrl: 'https://cdn.jsdelivr.net/npm/mathjs@12.2.1/lib/browser/math.js' }
390
+ },
391
+ defaultVersion: '12.2.1'
392
+ },
393
+ {
394
+ name: 'chroma-js',
395
+ globalVariable: 'chroma',
396
+ category: 'color/manipulation',
397
+ versions: {
398
+ '2.4.2': { cdnUrl: 'https://cdn.jsdelivr.net/npm/chroma-js@2.4.2/chroma.min.js' }
399
+ },
400
+ defaultVersion: '2.4.2'
401
+ },
402
+ {
403
+ name: 'tinycolor2',
404
+ globalVariable: 'tinycolor',
405
+ category: 'color/manipulation',
406
+ versions: {
407
+ '1.6.0': { cdnUrl: 'https://cdn.jsdelivr.net/npm/tinycolor2@1.6.0/dist/tinycolor-min.js' }
408
+ },
409
+ defaultVersion: '1.6.0'
410
+ },
411
+ {
412
+ name: 'quill',
413
+ globalVariable: 'Quill',
414
+ category: 'editor/rich-text',
415
+ versions: {
416
+ '1.3.7': {
417
+ cdnUrl: 'https://cdn.quilljs.com/1.3.7/quill.min.js',
418
+ cssUrls: ['https://cdn.quilljs.com/1.3.7/quill.snow.css']
419
+ }
420
+ },
421
+ defaultVersion: '1.3.7'
422
+ },
423
+ {
424
+ name: 'tinymce',
425
+ globalVariable: 'tinymce',
426
+ category: 'editor/rich-text',
427
+ versions: {
428
+ '6.7.3': { cdnUrl: 'https://cdn.tiny.cloud/1/no-api-key/tinymce/6/tinymce.min.js' }
429
+ },
430
+ defaultVersion: '6.7.3'
431
+ },
432
+ {
433
+ name: 'dropzone',
434
+ globalVariable: 'Dropzone',
435
+ category: 'file/upload',
436
+ versions: {
437
+ '6.0.0-beta.2': {
438
+ cdnUrl: 'https://cdn.jsdelivr.net/npm/dropzone@6.0.0-beta.2/dist/dropzone-min.js',
439
+ cssUrls: ['https://cdn.jsdelivr.net/npm/dropzone@6.0.0-beta.2/dist/dropzone.css']
440
+ }
441
+ },
442
+ defaultVersion: '6.0.0-beta.2'
443
+ },
444
+ {
445
+ name: 'filepond',
446
+ globalVariable: 'FilePond',
447
+ category: 'file/upload',
448
+ versions: {
449
+ '4.30.6': {
450
+ cdnUrl: 'https://cdn.jsdelivr.net/npm/filepond@4.30.6/dist/filepond.min.js',
451
+ cssUrls: ['https://cdn.jsdelivr.net/npm/filepond@4.30.6/dist/filepond.min.css']
452
+ }
453
+ },
454
+ defaultVersion: '4.30.6'
455
+ },
456
+ {
457
+ name: 'toastify-js',
458
+ globalVariable: 'Toastify',
459
+ category: 'notification/toast',
460
+ versions: {
461
+ '1.12.0': {
462
+ cdnUrl: 'https://cdn.jsdelivr.net/npm/toastify-js@1.12.0/src/toastify.min.js',
463
+ cssUrls: ['https://cdn.jsdelivr.net/npm/toastify-js@1.12.0/src/toastify.min.css']
464
+ }
465
+ },
466
+ defaultVersion: '1.12.0'
467
+ },
468
+ {
469
+ name: 'sweetalert2',
470
+ globalVariable: 'Swal',
471
+ category: 'notification/modal',
472
+ versions: {
473
+ '11.10.1': { cdnUrl: 'https://cdn.jsdelivr.net/npm/sweetalert2@11.10.1/dist/sweetalert2.all.min.js' }
474
+ },
475
+ defaultVersion: '11.10.1'
476
+ },
477
+ {
478
+ name: 'jspdf',
479
+ globalVariable: 'jsPDF',
480
+ category: 'document/pdf',
481
+ versions: {
482
+ '2.5.1': { cdnUrl: 'https://cdn.jsdelivr.net/npm/jspdf@2.5.1/dist/jspdf.umd.min.js' }
483
+ },
484
+ defaultVersion: '2.5.1'
485
+ },
486
+ {
487
+ name: 'pdfmake',
488
+ globalVariable: 'pdfMake',
489
+ category: 'document/pdf',
490
+ versions: {
491
+ '0.2.9': { cdnUrl: 'https://cdn.jsdelivr.net/npm/pdfmake@0.2.9/build/pdfmake.min.js' }
492
+ },
493
+ defaultVersion: '0.2.9'
494
+ },
495
+ {
496
+ name: 'xlsx',
497
+ globalVariable: 'XLSX',
498
+ category: 'document/spreadsheet',
499
+ versions: {
500
+ '0.20.1': { cdnUrl: 'https://cdn.sheetjs.com/xlsx-0.20.1/package/dist/xlsx.full.min.js' }
501
+ },
502
+ defaultVersion: '0.20.1'
503
+ },
504
+ {
505
+ name: 'papaparse',
506
+ globalVariable: 'Papa',
507
+ category: 'document/csv',
508
+ versions: {
509
+ '5.4.1': { cdnUrl: 'https://cdn.jsdelivr.net/npm/papaparse@5.4.1/papaparse.min.js' }
510
+ },
511
+ defaultVersion: '5.4.1'
512
+ }
513
+ ];
514
+ libs.forEach(lib => this.libraries.set(lib.name, lib));
515
+ }
516
+ static getLibrary(name) {
517
+ return this.libraries.get(name);
518
+ }
519
+ static getCdnUrl(name, version) {
520
+ const library = this.libraries.get(name);
521
+ if (!library)
522
+ return undefined;
523
+ const targetVersion = version || library.defaultVersion;
524
+ return library.versions[targetVersion]?.cdnUrl;
525
+ }
526
+ static isApproved(name) {
527
+ return this.libraries.has(name);
528
+ }
529
+ static resolveVersion(name, versionPattern) {
530
+ const library = this.libraries.get(name);
531
+ if (!library)
532
+ return undefined;
533
+ if (!versionPattern)
534
+ return library.defaultVersion;
535
+ if (library.versions[versionPattern]) {
536
+ return versionPattern;
537
+ }
538
+ return library.defaultVersion;
539
+ }
540
+ static registerLibrary(definition) {
541
+ this.libraries.set(definition.name, definition);
542
+ }
543
+ }
544
+ exports.LibraryRegistry = LibraryRegistry;
545
+ _a = LibraryRegistry;
546
+ LibraryRegistry.libraries = new Map();
547
+ (() => {
548
+ _a.initializeLibraries();
549
+ })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/react-runtime",
3
- "version": "2.88.0",
3
+ "version": "2.90.0",
4
4
  "description": "Platform-agnostic React component runtime for MemberJunction. Provides core compilation, registry, and execution capabilities for React components in any JavaScript environment.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,9 +25,9 @@
25
25
  },
26
26
  "homepage": "https://github.com/MemberJunction/MJ#readme",
27
27
  "dependencies": {
28
- "@memberjunction/core": "2.88.0",
29
- "@memberjunction/global": "2.88.0",
30
- "@memberjunction/interactive-component-types": "2.88.0",
28
+ "@memberjunction/core": "2.90.0",
29
+ "@memberjunction/global": "2.90.0",
30
+ "@memberjunction/interactive-component-types": "2.90.0",
31
31
  "@babel/standalone": "^7.23.5",
32
32
  "rxjs": "^7.8.1"
33
33
  },