@factorialco/fcode-react-forms 2.0.1 → 3.0.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/components/fcode-form/fcode-form.d.ts +14 -2
- package/dist/components/fcode-form/fcode-form.test.d.ts +1 -1
- package/dist/components/fcode-form/fcode-form.utils.d.ts +11 -3
- package/dist/components/json-schema-form/default-theme/templates/field-template.d.ts +2 -5
- package/dist/components/json-schema-form/markdown-content.d.ts +6 -0
- package/dist/fcode-form.cjs.js +95 -82
- package/dist/fcode-form.cjs.js.map +1 -1
- package/dist/fcode-form.es.js +28504 -27391
- package/dist/fcode-form.es.js.map +1 -1
- package/dist/fcode-form.umd.js +95 -82
- package/dist/fcode-form.umd.js.map +1 -1
- package/dist/styles.css +121 -0
- package/dist/utils/index.d.ts +0 -1
- package/package.json +3 -3
- package/dist/utils/sanitize-html.d.ts +0 -8
- /package/dist/{utils/sanitize-html.test.d.ts → components/json-schema-form/markdown-content.twin.test.d.ts} +0 -0
package/dist/styles.css
CHANGED
|
@@ -1344,6 +1344,127 @@ input[type='number'] {
|
|
|
1344
1344
|
margin: 0;
|
|
1345
1345
|
}
|
|
1346
1346
|
|
|
1347
|
+
/* markdown blocks: result messages and schema.markdown.before/after */
|
|
1348
|
+
|
|
1349
|
+
.fcode-form-markdown {
|
|
1350
|
+
display: flex;
|
|
1351
|
+
flex-direction: column;
|
|
1352
|
+
gap: 0.75rem;
|
|
1353
|
+
color: var(--ycf-base-text-color);
|
|
1354
|
+
font-family: var(--ycf-form-font-family);
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
.fcode-form-markdown p {
|
|
1358
|
+
margin: 0;
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
.fcode-form-markdown h1 {
|
|
1362
|
+
margin: 0;
|
|
1363
|
+
font-size: 1.375rem; /* f0 2xl */
|
|
1364
|
+
font-weight: 500;
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
.fcode-form-markdown h2 {
|
|
1368
|
+
margin: 0;
|
|
1369
|
+
font-size: 1.125rem; /* f0 xl */
|
|
1370
|
+
font-weight: 500;
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
.fcode-form-markdown h3 {
|
|
1374
|
+
margin: 0;
|
|
1375
|
+
font-size: 1rem;
|
|
1376
|
+
font-weight: 600;
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
.fcode-form-markdown h4,
|
|
1380
|
+
.fcode-form-markdown h5,
|
|
1381
|
+
.fcode-form-markdown h6 {
|
|
1382
|
+
margin: 0;
|
|
1383
|
+
font-size: 0.875rem;
|
|
1384
|
+
font-weight: 600;
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
.fcode-form-markdown a {
|
|
1388
|
+
color: var(--ycf-link-color);
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
.fcode-form-markdown ul,
|
|
1392
|
+
.fcode-form-markdown ol {
|
|
1393
|
+
margin: 0;
|
|
1394
|
+
padding-left: 1.25rem;
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
.fcode-form-markdown code {
|
|
1398
|
+
padding: 0.125rem 0.25rem;
|
|
1399
|
+
border-radius: 0.25rem;
|
|
1400
|
+
background-color: var(--ycf-skeleton-color);
|
|
1401
|
+
font-family: var(--ycf-form-font-family-monospace);
|
|
1402
|
+
font-size: 0.875em;
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
.fcode-form-markdown pre {
|
|
1406
|
+
margin: 0;
|
|
1407
|
+
padding: 0.75rem;
|
|
1408
|
+
border-radius: var(--ycf-field-border-radius);
|
|
1409
|
+
background-color: var(--ycf-skeleton-color);
|
|
1410
|
+
overflow-x: auto;
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1413
|
+
.fcode-form-markdown pre code {
|
|
1414
|
+
padding: 0;
|
|
1415
|
+
background-color: transparent;
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
.fcode-form-markdown blockquote {
|
|
1419
|
+
margin: 0;
|
|
1420
|
+
padding-left: 0.75rem;
|
|
1421
|
+
border-left: 3px solid var(--ycf-base-border-color);
|
|
1422
|
+
color: var(--ycf-light-text-color);
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
.fcode-form-markdown hr {
|
|
1426
|
+
margin: 0;
|
|
1427
|
+
border: 0;
|
|
1428
|
+
border-top: 1px solid var(--ycf-base-border-color);
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
.fcode-form-markdown img {
|
|
1432
|
+
max-width: 100%;
|
|
1433
|
+
border-radius: var(--ycf-field-border-radius);
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
/*
|
|
1437
|
+
* Tables get the f0 table-card look: bordered rounded box, padded cells,
|
|
1438
|
+
* lighter header text. react-markdown emits a bare `<table>` (no wrapper),
|
|
1439
|
+
* so the table itself scrolls horizontally when it overflows. The messages
|
|
1440
|
+
* above are centered for plain text; tabular data stays left-aligned.
|
|
1441
|
+
*/
|
|
1442
|
+
.fcode-form-markdown table {
|
|
1443
|
+
display: block;
|
|
1444
|
+
overflow-x: auto;
|
|
1445
|
+
border-spacing: 0;
|
|
1446
|
+
border: 1px solid var(--ycf-base-border-color);
|
|
1447
|
+
border-radius: var(--ycf-field-border-radius);
|
|
1448
|
+
text-align: left;
|
|
1449
|
+
font-size: 0.875rem;
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1452
|
+
.fcode-form-markdown th,
|
|
1453
|
+
.fcode-form-markdown td {
|
|
1454
|
+
padding: 0.5rem 0.75rem;
|
|
1455
|
+
border-bottom: 1px solid var(--ycf-base-border-color);
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
.fcode-form-markdown th {
|
|
1459
|
+
font-weight: 500;
|
|
1460
|
+
color: var(--ycf-light-text-color);
|
|
1461
|
+
white-space: nowrap;
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
.fcode-form-markdown tbody tr:last-child td {
|
|
1465
|
+
border-bottom: 0;
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1347
1468
|
/* card */
|
|
1348
1469
|
|
|
1349
1470
|
.fcode-form .card {
|
package/dist/utils/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@factorialco/fcode-react-forms",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Factorial Code allows start process executions from any webpage embedding process input parameters forms. This allows each form submission to start one execution with the information filled in the form, and also allows to manage the execution result into that webpage.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://code.factorialhr.com/docs/forms/",
|
|
@@ -82,10 +82,10 @@
|
|
|
82
82
|
"ajv": "^8.18.0",
|
|
83
83
|
"ajv-i18n": "^4.2.0",
|
|
84
84
|
"classnames": "^2.5.1",
|
|
85
|
-
"dompurify": "3.4.12",
|
|
86
85
|
"mustache": "^4.2.0",
|
|
87
86
|
"react-markdown": "^10.1.0",
|
|
88
|
-
"react-transition-group": "^4.4.5"
|
|
87
|
+
"react-transition-group": "^4.4.5",
|
|
88
|
+
"remark-gfm": "^4.0.1"
|
|
89
89
|
},
|
|
90
90
|
"peerDependencies": {
|
|
91
91
|
"react": "^18.0.0 || ^19.0.0",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Sanitizes authored HTML so it can be rendered without executing scripts.
|
|
3
|
-
*
|
|
4
|
-
* @param dirty - The HTML string as authored in the schema or returned by a
|
|
5
|
-
* process execution.
|
|
6
|
-
* @returns The same markup with every script-execution vector removed.
|
|
7
|
-
*/
|
|
8
|
-
export declare function sanitizeHtml(dirty: string): string;
|
|
File without changes
|