@mieweb/ui 0.10.0-dev.39 → 0.10.0-dev.40
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/brands/index.cjs +12 -12
- package/dist/brands/index.js +3 -3
- package/dist/{chunk-RPFATYUI.js → chunk-753ENNB6.js} +2 -2
- package/dist/{chunk-RPFATYUI.js.map → chunk-753ENNB6.js.map} +1 -1
- package/dist/{chunk-ZG6FXMDX.cjs → chunk-BWSZ2BHJ.cjs} +3 -3
- package/dist/{chunk-ZG6FXMDX.cjs.map → chunk-BWSZ2BHJ.cjs.map} +1 -1
- package/dist/{chunk-MHR2OS5I.js → chunk-CVXESGXJ.js} +4 -4
- package/dist/{chunk-MHR2OS5I.js.map → chunk-CVXESGXJ.js.map} +1 -1
- package/dist/{chunk-IPL2O2OL.cjs → chunk-DHU3FFC3.cjs} +32 -2
- package/dist/chunk-DHU3FFC3.cjs.map +1 -0
- package/dist/{chunk-TVEJKKIM.js → chunk-F6W62K4J.js} +3 -3
- package/dist/{chunk-TVEJKKIM.js.map → chunk-F6W62K4J.js.map} +1 -1
- package/dist/chunk-LUPRGPKP.js +2540 -0
- package/dist/chunk-LUPRGPKP.js.map +1 -0
- package/dist/{chunk-FYQZWLAM.cjs → chunk-OODVC2UD.cjs} +2 -2
- package/dist/{chunk-FYQZWLAM.cjs.map → chunk-OODVC2UD.cjs.map} +1 -1
- package/dist/{chunk-HNNWWLKY.cjs → chunk-S4XCPDEO.cjs} +4 -4
- package/dist/{chunk-HNNWWLKY.cjs.map → chunk-S4XCPDEO.cjs.map} +1 -1
- package/dist/{chunk-5A4SL436.js → chunk-SACHTD7B.js} +32 -2
- package/dist/chunk-SACHTD7B.js.map +1 -0
- package/dist/{chunk-6WX2OR3U.cjs → chunk-SAGJHL2Z.cjs} +35 -2
- package/dist/chunk-SAGJHL2Z.cjs.map +1 -0
- package/dist/{chunk-FDA3R5E7.js → chunk-T5NOFXOL.js} +35 -2
- package/dist/chunk-T5NOFXOL.js.map +1 -0
- package/dist/chunk-W3HXHIDO.cjs +2573 -0
- package/dist/chunk-W3HXHIDO.cjs.map +1 -0
- package/dist/components/CustomizableDashboard/index.cjs +9 -9
- package/dist/components/CustomizableDashboard/index.js +2 -2
- package/dist/components/EmailEditor/index.cjs +67 -0
- package/dist/components/EmailEditor/index.cjs.map +1 -0
- package/dist/components/EmailEditor/index.d.cts +347 -0
- package/dist/components/EmailEditor/index.d.ts +347 -0
- package/dist/components/EmailEditor/index.js +26 -0
- package/dist/components/EmailEditor/index.js.map +1 -0
- package/dist/components/PropertyList/index.d.cts +17 -1
- package/dist/components/PropertyList/index.d.ts +17 -1
- package/dist/components/RichTextEditor/index.cjs +4 -4
- package/dist/components/RichTextEditor/index.d.cts +5 -0
- package/dist/components/RichTextEditor/index.d.ts +5 -0
- package/dist/components/RichTextEditor/index.js +1 -1
- package/dist/components/Select/index.d.cts +2 -1
- package/dist/components/Select/index.d.ts +2 -1
- package/dist/components/Textarea/index.d.cts +2 -1
- package/dist/components/Textarea/index.d.ts +2 -1
- package/dist/esheet.cjs +6 -6
- package/dist/esheet.js +3 -3
- package/dist/hooks/index.cjs +5 -5
- package/dist/hooks/index.js +1 -1
- package/dist/index.cjs +276 -239
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +359 -10
- package/dist/index.d.ts +359 -10
- package/dist/index.js +29 -28
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/tailwind-preset.cjs +4 -4
- package/dist/tailwind-preset.js +1 -1
- package/dist/utils/index.cjs +9 -9
- package/dist/utils/index.js +1 -1
- package/package.json +1 -1
- package/dist/Input-yN516s5_.d.cts +0 -3
- package/dist/Input-yN516s5_.d.ts +0 -3
- package/dist/chunk-5A4SL436.js.map +0 -1
- package/dist/chunk-6WX2OR3U.cjs.map +0 -1
- package/dist/chunk-FDA3R5E7.js.map +0 -1
- package/dist/chunk-IPL2O2OL.cjs.map +0 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export { EMAIL_BLOCK_TYPES, EmailEditor, createDefaultDesignSettings, createEmailBlock, createEmailHtmlSanitizer, createEmptyEmailContentTree, defaultEmailEditorLabels, generateEmailBlockId, renderEmailMjml } from '../../chunk-LUPRGPKP.js';
|
|
2
|
+
import '../../chunk-XBAAHOCP.js';
|
|
3
|
+
import '../../chunk-B4CKCNWD.js';
|
|
4
|
+
import '../../chunk-SACHTD7B.js';
|
|
5
|
+
import '../../chunk-OQWZYKJM.js';
|
|
6
|
+
import '../../chunk-AQ564XO7.js';
|
|
7
|
+
import '../../chunk-AMYFRY7K.js';
|
|
8
|
+
import '../../chunk-EEOGIGIA.js';
|
|
9
|
+
import '../../chunk-CVNPNZMX.js';
|
|
10
|
+
import '../../chunk-ERLPVXOV.js';
|
|
11
|
+
import '../../chunk-H3YO5GBM.js';
|
|
12
|
+
import '../../chunk-VCI2Y7ST.js';
|
|
13
|
+
import '../../chunk-6NZXWKUE.js';
|
|
14
|
+
import '../../chunk-3IMM2PM4.js';
|
|
15
|
+
import '../../chunk-HNXLLDPN.js';
|
|
16
|
+
import '../../chunk-T4ME7QCT.js';
|
|
17
|
+
import '../../chunk-62ZOA6PX.js';
|
|
18
|
+
import '../../chunk-WSNMQQ4P.js';
|
|
19
|
+
import '../../chunk-N5JDL4VE.js';
|
|
20
|
+
import '../../chunk-WFBUBT54.js';
|
|
21
|
+
import '../../chunk-GVM6DTR5.js';
|
|
22
|
+
import '../../chunk-F4N67NAF.js';
|
|
23
|
+
import '../../chunk-TQONQSJO.js';
|
|
24
|
+
import '../../chunk-PX6F3LHL.js';
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
type InlineEditType = 'text' | 'textarea' | 'number' | 'date' | 'select' | 'email' | 'url' | 'tel';
|
|
6
|
+
interface InlineEditOption {
|
|
7
|
+
value: string;
|
|
8
|
+
label: string;
|
|
9
|
+
}
|
|
10
|
+
interface InlineEditLabels {
|
|
11
|
+
/** Accessible name of the display button. */
|
|
12
|
+
edit: (label: string) => string;
|
|
13
|
+
save: string;
|
|
14
|
+
cancel: string;
|
|
15
|
+
saving: string;
|
|
16
|
+
/** Shown when the value is empty and no `placeholder` is given. */
|
|
17
|
+
empty: string;
|
|
18
|
+
/** Shown when `onSave` rejects without an `Error` message. */
|
|
19
|
+
saveFailed: string;
|
|
20
|
+
}
|
|
5
21
|
|
|
6
22
|
interface PropertyListItem {
|
|
7
23
|
key: string;
|
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
type InlineEditType = 'text' | 'textarea' | 'number' | 'date' | 'select' | 'email' | 'url' | 'tel';
|
|
6
|
+
interface InlineEditOption {
|
|
7
|
+
value: string;
|
|
8
|
+
label: string;
|
|
9
|
+
}
|
|
10
|
+
interface InlineEditLabels {
|
|
11
|
+
/** Accessible name of the display button. */
|
|
12
|
+
edit: (label: string) => string;
|
|
13
|
+
save: string;
|
|
14
|
+
cancel: string;
|
|
15
|
+
saving: string;
|
|
16
|
+
/** Shown when the value is empty and no `placeholder` is given. */
|
|
17
|
+
empty: string;
|
|
18
|
+
/** Shown when `onSave` rejects without an `Error` message. */
|
|
19
|
+
saveFailed: string;
|
|
20
|
+
}
|
|
5
21
|
|
|
6
22
|
interface PropertyListItem {
|
|
7
23
|
key: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDHU3FFC3_cjs = require('../../chunk-DHU3FFC3.cjs');
|
|
4
4
|
require('../../chunk-YP5T6NZD.cjs');
|
|
5
5
|
require('../../chunk-ZNUMOJOI.cjs');
|
|
6
6
|
require('../../chunk-C77FAR3F.cjs');
|
|
@@ -21,15 +21,15 @@ require('../../chunk-EUAMEVVI.cjs');
|
|
|
21
21
|
|
|
22
22
|
Object.defineProperty(exports, "RichTextEditor", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkDHU3FFC3_cjs.RichTextEditor; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "convertAngleBracketsToMustache", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkDHU3FFC3_cjs.convertAngleBracketsToMustache; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "processDictation", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkDHU3FFC3_cjs.processDictation; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "isHtmlEmpty", {
|
|
35
35
|
enumerable: true,
|
|
@@ -34,6 +34,11 @@ interface RichTextEditorProps {
|
|
|
34
34
|
onDictationError?: (message: string) => void;
|
|
35
35
|
/** Disable editing and toolbar actions. */
|
|
36
36
|
disabled?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Sanitises HTML introduced by paste or drop before it reaches the editable
|
|
39
|
+
* DOM. Without it, pasted markup is inserted as the browser provides it.
|
|
40
|
+
*/
|
|
41
|
+
sanitizeHtml?: (html: string) => string;
|
|
37
42
|
/** Accessible label for the editable region. */
|
|
38
43
|
'aria-label'?: string;
|
|
39
44
|
}
|
|
@@ -34,6 +34,11 @@ interface RichTextEditorProps {
|
|
|
34
34
|
onDictationError?: (message: string) => void;
|
|
35
35
|
/** Disable editing and toolbar actions. */
|
|
36
36
|
disabled?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Sanitises HTML introduced by paste or drop before it reaches the editable
|
|
39
|
+
* DOM. Without it, pasted markup is inserted as the browser provides it.
|
|
40
|
+
*/
|
|
41
|
+
sanitizeHtml?: (html: string) => string;
|
|
37
42
|
/** Accessible label for the editable region. */
|
|
38
43
|
'aria-label'?: string;
|
|
39
44
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { RichTextEditor, convertAngleBracketsToMustache, processDictation } from '../../chunk-
|
|
1
|
+
export { RichTextEditor, convertAngleBracketsToMustache, processDictation } from '../../chunk-SACHTD7B.js';
|
|
2
2
|
import '../../chunk-OQWZYKJM.js';
|
|
3
3
|
import '../../chunk-AMYFRY7K.js';
|
|
4
4
|
import '../../chunk-EEOGIGIA.js';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
type RequiredMarkVariant = 'default' | 'warning';
|
|
5
6
|
|
|
6
7
|
interface SelectOption {
|
|
7
8
|
/** Unique value for the option */
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
type RequiredMarkVariant = 'default' | 'warning';
|
|
5
6
|
|
|
6
7
|
interface SelectOption {
|
|
7
8
|
/** Unique value for the option */
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
type RequiredMarkVariant = 'default' | 'warning';
|
|
5
6
|
|
|
6
7
|
declare const textareaVariants: (props?: ({
|
|
7
8
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
type RequiredMarkVariant = 'default' | 'warning';
|
|
5
6
|
|
|
6
7
|
declare const textareaVariants: (props?: ({
|
|
7
8
|
size?: "sm" | "md" | "lg" | null | undefined;
|
package/dist/esheet.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-BSDBI6H7.cjs');
|
|
3
|
+
var chunkS4XCPDEO_cjs = require('./chunk-S4XCPDEO.cjs');
|
|
5
4
|
require('./chunk-JSXIB6EJ.cjs');
|
|
6
5
|
require('./chunk-G7EQ3JPX.cjs');
|
|
7
6
|
require('./chunk-AIJAFPGJ.cjs');
|
|
8
|
-
require('./chunk-UPWIJC6I.cjs');
|
|
9
7
|
require('./chunk-ZSGEGISB.cjs');
|
|
8
|
+
require('./chunk-BSDBI6H7.cjs');
|
|
9
|
+
require('./chunk-UPWIJC6I.cjs');
|
|
10
10
|
require('./chunk-MJWFNV3L.cjs');
|
|
11
11
|
require('./chunk-LC3JL2HB.cjs');
|
|
12
12
|
require('./chunk-I44YNYI6.cjs');
|
|
@@ -83,7 +83,7 @@ function MedicationListField({
|
|
|
83
83
|
return definition.medications ?? [];
|
|
84
84
|
}, [response?.answer, definition.medications]);
|
|
85
85
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
86
|
-
|
|
86
|
+
chunkS4XCPDEO_cjs.MedicationReconciliation,
|
|
87
87
|
{
|
|
88
88
|
medications,
|
|
89
89
|
onChange: (next) => onResponse({ answer: JSON.stringify({ medications: next }) }),
|
|
@@ -140,7 +140,7 @@ function AllergyListField({
|
|
|
140
140
|
codeLookup
|
|
141
141
|
}) {
|
|
142
142
|
const definition = field.definition;
|
|
143
|
-
const ambientCodeLookup =
|
|
143
|
+
const ambientCodeLookup = chunkS4XCPDEO_cjs.useCodeLookupConfig();
|
|
144
144
|
const effectiveCodeLookup = codeLookup === false ? void 0 : codeLookup ?? ambientCodeLookup ?? void 0;
|
|
145
145
|
const value = React__namespace.useMemo(() => {
|
|
146
146
|
if (response?.answer) return parseValue2(response.answer);
|
|
@@ -150,7 +150,7 @@ function AllergyListField({
|
|
|
150
150
|
onResponse({ answer: JSON.stringify(next) });
|
|
151
151
|
};
|
|
152
152
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
153
|
-
|
|
153
|
+
chunkS4XCPDEO_cjs.AllergyManager,
|
|
154
154
|
{
|
|
155
155
|
allergies: value.allergies,
|
|
156
156
|
onChange: (allergies) => commit({
|
package/dist/esheet.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { MedicationReconciliation, useCodeLookupConfig, AllergyManager } from './chunk-
|
|
2
|
-
import './chunk-H3YO5GBM.js';
|
|
1
|
+
import { MedicationReconciliation, useCodeLookupConfig, AllergyManager } from './chunk-CVXESGXJ.js';
|
|
3
2
|
import './chunk-7X6R3JIA.js';
|
|
4
3
|
import './chunk-EPSB4WTL.js';
|
|
5
4
|
import './chunk-I3WGZPI6.js';
|
|
6
|
-
import './chunk-VCI2Y7ST.js';
|
|
7
5
|
import './chunk-7IBZA7G6.js';
|
|
6
|
+
import './chunk-H3YO5GBM.js';
|
|
7
|
+
import './chunk-VCI2Y7ST.js';
|
|
8
8
|
import './chunk-QYSUYB3S.js';
|
|
9
9
|
import './chunk-TWQSMUE6.js';
|
|
10
10
|
import './chunk-6NZXWKUE.js';
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -4,11 +4,11 @@ var chunkTVU4KB27_cjs = require('../chunk-TVU4KB27.cjs');
|
|
|
4
4
|
var chunkIXFC7LK2_cjs = require('../chunk-IXFC7LK2.cjs');
|
|
5
5
|
var chunk2O7D6F67_cjs = require('../chunk-2O7D6F67.cjs');
|
|
6
6
|
var chunkVPTASZ2O_cjs = require('../chunk-VPTASZ2O.cjs');
|
|
7
|
-
var chunk7WJ6MBF5_cjs = require('../chunk-7WJ6MBF5.cjs');
|
|
8
7
|
var chunk7IKLGH3Z_cjs = require('../chunk-7IKLGH3Z.cjs');
|
|
9
8
|
var chunkNPKPCYAT_cjs = require('../chunk-NPKPCYAT.cjs');
|
|
10
9
|
require('../chunk-NUFUV43P.cjs');
|
|
11
10
|
var chunk254QK722_cjs = require('../chunk-254QK722.cjs');
|
|
11
|
+
var chunk7WJ6MBF5_cjs = require('../chunk-7WJ6MBF5.cjs');
|
|
12
12
|
var chunkGF2BE4FB_cjs = require('../chunk-GF2BE4FB.cjs');
|
|
13
13
|
var chunkCPDNX3LS_cjs = require('../chunk-CPDNX3LS.cjs');
|
|
14
14
|
var chunkNNEFAUHV_cjs = require('../chunk-NNEFAUHV.cjs');
|
|
@@ -122,10 +122,6 @@ Object.defineProperty(exports, "useStreamEndedBelowFold", {
|
|
|
122
122
|
enumerable: true,
|
|
123
123
|
get: function () { return chunkVPTASZ2O_cjs.useStreamEndedBelowFold; }
|
|
124
124
|
});
|
|
125
|
-
Object.defineProperty(exports, "useUrlTab", {
|
|
126
|
-
enumerable: true,
|
|
127
|
-
get: function () { return chunk7WJ6MBF5_cjs.useUrlTab; }
|
|
128
|
-
});
|
|
129
125
|
Object.defineProperty(exports, "useScrollSpy", {
|
|
130
126
|
enumerable: true,
|
|
131
127
|
get: function () { return chunk7IKLGH3Z_cjs.useScrollSpy; }
|
|
@@ -166,6 +162,10 @@ Object.defineProperty(exports, "useMediaTransport", {
|
|
|
166
162
|
enumerable: true,
|
|
167
163
|
get: function () { return chunk254QK722_cjs.useMediaTransport; }
|
|
168
164
|
});
|
|
165
|
+
Object.defineProperty(exports, "useUrlTab", {
|
|
166
|
+
enumerable: true,
|
|
167
|
+
get: function () { return chunk7WJ6MBF5_cjs.useUrlTab; }
|
|
168
|
+
});
|
|
169
169
|
Object.defineProperty(exports, "DEFAULT_DRAG_REORDER_LABELS", {
|
|
170
170
|
enumerable: true,
|
|
171
171
|
get: function () { return chunkGF2BE4FB_cjs.DEFAULT_DRAG_REORDER_LABELS; }
|
package/dist/hooks/index.js
CHANGED
|
@@ -2,11 +2,11 @@ export { KEYBOARD_INSET_VAR, KEYBOARD_OPEN_ATTRIBUTE, KEYBOARD_SOURCE_ATTRIBUTE,
|
|
|
2
2
|
export { useYouTubeHoverPreview } from '../chunk-POWS35OT.js';
|
|
3
3
|
export { useTheme } from '../chunk-KJZNEVYM.js';
|
|
4
4
|
export { useStickToBottom, useStreamEndedBelowFold } from '../chunk-BM35CACB.js';
|
|
5
|
-
export { useUrlTab } from '../chunk-CVNPNZMX.js';
|
|
6
5
|
export { useScrollSpy } from '../chunk-WBGUYSWY.js';
|
|
7
6
|
export { DEFAULT_FILLER_WORDS, DEFAULT_MIN_SILENCE_MS, DEFAULT_NL_SILENCE_MS, buildPlaybackSegments, getSpeedAtIndex, initEditableWords, insertSilences, useTranscriptEdits } from '../chunk-UUI7WXI5.js';
|
|
8
7
|
import '../chunk-6CGM5H4J.js';
|
|
9
8
|
export { useMediaTransport } from '../chunk-GW4RFJZ5.js';
|
|
9
|
+
export { useUrlTab } from '../chunk-CVNPNZMX.js';
|
|
10
10
|
export { DEFAULT_DRAG_REORDER_LABELS, dragIndicatorClasses, moveIdBy, reorderIds, useDragReorder } from '../chunk-YUMOM3KE.js';
|
|
11
11
|
export { useLiveAnnouncement } from '../chunk-HNXLLDPN.js';
|
|
12
12
|
export { useFocusTrap } from '../chunk-4SMSH4OY.js';
|