@activecollab/components 2.0.362 → 2.0.364

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.
Files changed (79) hide show
  1. package/dist/cjs/presentation/stackedCard/content/ImageCard.js +60 -0
  2. package/dist/cjs/presentation/stackedCard/content/ImageCard.js.map +1 -0
  3. package/dist/cjs/presentation/stackedCard/content/LinkCard.js +348 -0
  4. package/dist/cjs/presentation/stackedCard/content/LinkCard.js.map +1 -0
  5. package/dist/cjs/presentation/stackedCard/content/NoteCard.js +92 -0
  6. package/dist/cjs/presentation/stackedCard/content/NoteCard.js.map +1 -0
  7. package/dist/cjs/presentation/stackedCard/content/SwatchCard.js +74 -0
  8. package/dist/cjs/presentation/stackedCard/content/SwatchCard.js.map +1 -0
  9. package/dist/cjs/presentation/stackedCard/content/TaskCard.js +231 -0
  10. package/dist/cjs/presentation/stackedCard/content/TaskCard.js.map +1 -0
  11. package/dist/cjs/presentation/stackedCard/content/index.js +83 -0
  12. package/dist/cjs/presentation/stackedCard/content/index.js.map +1 -0
  13. package/dist/cjs/presentation/stackedCard/content/shared.js +144 -0
  14. package/dist/cjs/presentation/stackedCard/content/shared.js.map +1 -0
  15. package/dist/cjs/presentation/stackedCard/content/unfurl.js +172 -0
  16. package/dist/cjs/presentation/stackedCard/content/unfurl.js.map +1 -0
  17. package/dist/cjs/presentation/stackedCard/primitives.js +254 -0
  18. package/dist/cjs/presentation/stackedCard/primitives.js.map +1 -0
  19. package/dist/cjs/presentation/stackedCard/resizePolicy.js +183 -0
  20. package/dist/cjs/presentation/stackedCard/resizePolicy.js.map +1 -0
  21. package/dist/cjs/presentation/stackedCard/shell.js +165 -0
  22. package/dist/cjs/presentation/stackedCard/shell.js.map +1 -0
  23. package/dist/cjs/presentation/stackedCard/storyScaffold.js +72 -0
  24. package/dist/cjs/presentation/stackedCard/storyScaffold.js.map +1 -0
  25. package/dist/cjs/presentation/stackedCard/useInlineEdit.js +208 -0
  26. package/dist/cjs/presentation/stackedCard/useInlineEdit.js.map +1 -0
  27. package/dist/esm/presentation/stackedCard/content/ImageCard.d.ts +15 -0
  28. package/dist/esm/presentation/stackedCard/content/ImageCard.d.ts.map +1 -0
  29. package/dist/esm/presentation/stackedCard/content/ImageCard.js +50 -0
  30. package/dist/esm/presentation/stackedCard/content/ImageCard.js.map +1 -0
  31. package/dist/esm/presentation/stackedCard/content/LinkCard.d.ts +28 -0
  32. package/dist/esm/presentation/stackedCard/content/LinkCard.d.ts.map +1 -0
  33. package/dist/esm/presentation/stackedCard/content/LinkCard.js +336 -0
  34. package/dist/esm/presentation/stackedCard/content/LinkCard.js.map +1 -0
  35. package/dist/esm/presentation/stackedCard/content/NoteCard.d.ts +10 -0
  36. package/dist/esm/presentation/stackedCard/content/NoteCard.d.ts.map +1 -0
  37. package/dist/esm/presentation/stackedCard/content/NoteCard.js +82 -0
  38. package/dist/esm/presentation/stackedCard/content/NoteCard.js.map +1 -0
  39. package/dist/esm/presentation/stackedCard/content/SwatchCard.d.ts +14 -0
  40. package/dist/esm/presentation/stackedCard/content/SwatchCard.d.ts.map +1 -0
  41. package/dist/esm/presentation/stackedCard/content/SwatchCard.js +64 -0
  42. package/dist/esm/presentation/stackedCard/content/SwatchCard.js.map +1 -0
  43. package/dist/esm/presentation/stackedCard/content/TaskCard.d.ts +29 -0
  44. package/dist/esm/presentation/stackedCard/content/TaskCard.d.ts.map +1 -0
  45. package/dist/esm/presentation/stackedCard/content/TaskCard.js +218 -0
  46. package/dist/esm/presentation/stackedCard/content/TaskCard.js.map +1 -0
  47. package/dist/esm/presentation/stackedCard/content/index.d.ts +8 -0
  48. package/dist/esm/presentation/stackedCard/content/index.d.ts.map +1 -0
  49. package/dist/esm/presentation/stackedCard/content/index.js +8 -0
  50. package/dist/esm/presentation/stackedCard/content/index.js.map +1 -0
  51. package/dist/esm/presentation/stackedCard/content/shared.d.ts +46 -0
  52. package/dist/esm/presentation/stackedCard/content/shared.d.ts.map +1 -0
  53. package/dist/esm/presentation/stackedCard/content/shared.js +134 -0
  54. package/dist/esm/presentation/stackedCard/content/shared.js.map +1 -0
  55. package/dist/esm/presentation/stackedCard/content/unfurl.d.ts +89 -0
  56. package/dist/esm/presentation/stackedCard/content/unfurl.d.ts.map +1 -0
  57. package/dist/esm/presentation/stackedCard/content/unfurl.js +147 -0
  58. package/dist/esm/presentation/stackedCard/content/unfurl.js.map +1 -0
  59. package/dist/esm/presentation/stackedCard/primitives.d.ts +84 -0
  60. package/dist/esm/presentation/stackedCard/primitives.d.ts.map +1 -0
  61. package/dist/esm/presentation/stackedCard/primitives.js +241 -0
  62. package/dist/esm/presentation/stackedCard/primitives.js.map +1 -0
  63. package/dist/esm/presentation/stackedCard/resizePolicy.d.ts +97 -0
  64. package/dist/esm/presentation/stackedCard/resizePolicy.d.ts.map +1 -0
  65. package/dist/esm/presentation/stackedCard/resizePolicy.js +173 -0
  66. package/dist/esm/presentation/stackedCard/resizePolicy.js.map +1 -0
  67. package/dist/esm/presentation/stackedCard/shell.d.ts +46 -0
  68. package/dist/esm/presentation/stackedCard/shell.d.ts.map +1 -0
  69. package/dist/esm/presentation/stackedCard/shell.js +156 -0
  70. package/dist/esm/presentation/stackedCard/shell.js.map +1 -0
  71. package/dist/esm/presentation/stackedCard/storyScaffold.d.ts +28 -0
  72. package/dist/esm/presentation/stackedCard/storyScaffold.d.ts.map +1 -0
  73. package/dist/esm/presentation/stackedCard/storyScaffold.js +66 -0
  74. package/dist/esm/presentation/stackedCard/storyScaffold.js.map +1 -0
  75. package/dist/esm/presentation/stackedCard/useInlineEdit.d.ts +68 -0
  76. package/dist/esm/presentation/stackedCard/useInlineEdit.d.ts.map +1 -0
  77. package/dist/esm/presentation/stackedCard/useInlineEdit.js +192 -0
  78. package/dist/esm/presentation/stackedCard/useInlineEdit.js.map +1 -0
  79. package/package.json +1 -1
@@ -0,0 +1,192 @@
1
+ import { useCallback, useEffect, useRef, useState } from "react";
2
+
3
+ /**
4
+ * useInlineEdit — story-local click-to-edit state machine for StackedCard
5
+ * (task 4/8). Presentation-only; not exported from the design-system barrel.
6
+ *
7
+ * A card in preview/placeholder mode enters an EDITING state on click: a
8
+ * card-centered text field with confirm/cancel keyboard rules, an optional
9
+ * validator, and a single-line ↔ multi-line mode switch. The hook owns only the
10
+ * editing lifecycle (mode, working value, error, keyboard + outside-click); the
11
+ * card chrome and the async handoff after commit (e.g. the link unfurl ladder
12
+ * from task 3/8) live in the story that consumes it.
13
+ *
14
+ * ── The decided rules (AC task #454744) ──
15
+ * Single-line Enter confirms · click-outside confirms · Esc cancels + reverts
16
+ * Multi-line Enter = newline · Cmd/Ctrl+Enter saves · click-outside saves ·
17
+ * Esc cancels + reverts
18
+ * Validator validate(value) => true | errorMessage, run before every accept
19
+ * pass → commit + exit editing
20
+ * fail via a key → STAY editing, surface the message (retry)
21
+ * fail via outside → REVERT (acts as cancel) — user never trapped
22
+ *
23
+ * Keyboard is handled on the field's own keydown (never a global listener) and
24
+ * every keydown stops propagation, so the card focus model (task 2/8) can't
25
+ * swallow the Enter/Esc that belong to the editor.
26
+ */
27
+
28
+ /** Props to spread onto the `<input>` or `<textarea>` while editing. */
29
+
30
+ export const useInlineEdit = function (_temp) {
31
+ let _ref = _temp === void 0 ? {} : _temp,
32
+ _ref$initialValue = _ref.initialValue,
33
+ initialValue = _ref$initialValue === void 0 ? "" : _ref$initialValue,
34
+ _ref$multiline = _ref.multiline,
35
+ multiline = _ref$multiline === void 0 ? false : _ref$multiline,
36
+ validate = _ref.validate,
37
+ onCommit = _ref.onCommit;
38
+ const _useState = useState(false),
39
+ editing = _useState[0],
40
+ setEditingState = _useState[1];
41
+ const _useState2 = useState(initialValue),
42
+ value = _useState2[0],
43
+ setValueState = _useState2[1];
44
+ const _useState3 = useState(initialValue),
45
+ committed = _useState3[0],
46
+ setCommittedState = _useState3[1];
47
+ const _useState4 = useState(null),
48
+ error = _useState4[0],
49
+ setError = _useState4[1];
50
+
51
+ // Refs mirror the state that the (stable) event handlers read, so the handlers
52
+ // never go stale and never need to be re-created as the value changes.
53
+ const elRef = useRef(null);
54
+ const valueRef = useRef(value);
55
+ const committedRef = useRef(committed);
56
+ const editingRef = useRef(editing);
57
+ // Set right before a programmatic exit so the blur that follows the field
58
+ // unmounting is ignored (it isn't a real click-outside).
59
+ const skipBlurRef = useRef(false);
60
+ const validateRef = useRef(validate);
61
+ const onCommitRef = useRef(onCommit);
62
+ useEffect(() => {
63
+ validateRef.current = validate;
64
+ onCommitRef.current = onCommit;
65
+ });
66
+ const setValue = useCallback(v => {
67
+ valueRef.current = v;
68
+ setValueState(v);
69
+ }, []);
70
+ const setCommitted = useCallback(v => {
71
+ committedRef.current = v;
72
+ setCommittedState(v);
73
+ }, []);
74
+ const setEditing = useCallback(v => {
75
+ editingRef.current = v;
76
+ setEditingState(v);
77
+ }, []);
78
+ const begin = useCallback(() => {
79
+ skipBlurRef.current = false;
80
+ setValue(committedRef.current);
81
+ setError(null);
82
+ setEditing(true);
83
+ }, [setValue, setEditing]);
84
+ const cancel = useCallback(() => {
85
+ skipBlurRef.current = true;
86
+ setValue(committedRef.current);
87
+ setError(null);
88
+ setEditing(false);
89
+ }, [setValue, setEditing]);
90
+ const reset = useCallback(function (next) {
91
+ if (next === void 0) {
92
+ next = initialValue;
93
+ }
94
+ skipBlurRef.current = true;
95
+ setCommitted(next);
96
+ setValue(next);
97
+ setError(null);
98
+ setEditing(false);
99
+ }, [initialValue, setCommitted, setValue, setEditing]);
100
+ const commit = useCallback(v => {
101
+ skipBlurRef.current = true;
102
+ setCommitted(v);
103
+ setValue(v);
104
+ setError(null);
105
+ setEditing(false);
106
+ onCommitRef.current == null || onCommitRef.current(v);
107
+ }, [setCommitted, setValue, setEditing]);
108
+
109
+ // Run the validator (if any) and accept, or handle the failure per source:
110
+ // a key retry keeps the user in the field with a message; an outside click
111
+ // reverts so the user is never trapped in an invalid editor.
112
+ const attempt = useCallback(source => {
113
+ const v = valueRef.current;
114
+ const result = validateRef.current ? validateRef.current(v) : true;
115
+ if (result === true) {
116
+ commit(v);
117
+ return true;
118
+ }
119
+ if (source === "outside") {
120
+ cancel();
121
+ return false;
122
+ }
123
+ setError(result);
124
+ return false;
125
+ }, [commit, cancel]);
126
+ const onChange = useCallback(e => {
127
+ setValue(e.target.value);
128
+ // Clear a stale error as the user edits; the next accept re-validates.
129
+ setError(prev => prev == null ? prev : null);
130
+ }, [setValue]);
131
+ const onKeyDown = useCallback(e => {
132
+ // Keep Enter/Esc from reaching the card's own keyboard model (task 2/8).
133
+ e.stopPropagation();
134
+ if (e.key === "Escape") {
135
+ e.preventDefault();
136
+ cancel();
137
+ return;
138
+ }
139
+ if (e.key === "Enter") {
140
+ const withMeta = e.metaKey || e.ctrlKey;
141
+ // Multi-line: a bare Enter is a newline; only Cmd/Ctrl+Enter saves.
142
+ if (multiline && !withMeta) return;
143
+ e.preventDefault();
144
+ attempt("key");
145
+ }
146
+ }, [attempt, cancel, multiline]);
147
+ const onBlur = useCallback(() => {
148
+ if (skipBlurRef.current) {
149
+ skipBlurRef.current = false;
150
+ return;
151
+ }
152
+ if (!editingRef.current) return;
153
+ attempt("outside");
154
+ }, [attempt]);
155
+ const setRef = useCallback(el => {
156
+ elRef.current = el;
157
+ }, []);
158
+
159
+ // On entering editing, focus the field and drop the caret at the end so the
160
+ // cursor is visible and existing text is ready to extend.
161
+ useEffect(() => {
162
+ if (!editing) return;
163
+ const el = elRef.current;
164
+ if (!el) return;
165
+ el.focus();
166
+ const len = el.value.length;
167
+ try {
168
+ el.setSelectionRange(len, len);
169
+ } catch (_unused) {
170
+ /* some input types disallow setSelectionRange — harmless here. */
171
+ }
172
+ }, [editing]);
173
+ return {
174
+ editing,
175
+ value,
176
+ committed,
177
+ error,
178
+ multiline,
179
+ begin,
180
+ cancel,
181
+ reset,
182
+ bind: {
183
+ ref: setRef,
184
+ value,
185
+ onChange,
186
+ onKeyDown,
187
+ onBlur,
188
+ "aria-invalid": error != null
189
+ }
190
+ };
191
+ };
192
+ //# sourceMappingURL=useInlineEdit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useInlineEdit.js","names":["useCallback","useEffect","useRef","useState","useInlineEdit","_temp","_ref","_ref$initialValue","initialValue","_ref$multiline","multiline","validate","onCommit","_useState","editing","setEditingState","_useState2","value","setValueState","_useState3","committed","setCommittedState","_useState4","error","setError","elRef","valueRef","committedRef","editingRef","skipBlurRef","validateRef","onCommitRef","current","setValue","v","setCommitted","setEditing","begin","cancel","reset","next","commit","attempt","source","result","onChange","e","target","prev","onKeyDown","stopPropagation","key","preventDefault","withMeta","metaKey","ctrlKey","onBlur","setRef","el","focus","len","length","setSelectionRange","_unused","bind","ref"],"sources":["../../../../src/presentation/stackedCard/useInlineEdit.ts"],"sourcesContent":["import {\n ChangeEvent,\n FocusEvent,\n KeyboardEvent,\n useCallback,\n useEffect,\n useRef,\n useState,\n} from \"react\";\n\n/**\n * useInlineEdit — story-local click-to-edit state machine for StackedCard\n * (task 4/8). Presentation-only; not exported from the design-system barrel.\n *\n * A card in preview/placeholder mode enters an EDITING state on click: a\n * card-centered text field with confirm/cancel keyboard rules, an optional\n * validator, and a single-line ↔ multi-line mode switch. The hook owns only the\n * editing lifecycle (mode, working value, error, keyboard + outside-click); the\n * card chrome and the async handoff after commit (e.g. the link unfurl ladder\n * from task 3/8) live in the story that consumes it.\n *\n * ── The decided rules (AC task #454744) ──\n * Single-line Enter confirms · click-outside confirms · Esc cancels + reverts\n * Multi-line Enter = newline · Cmd/Ctrl+Enter saves · click-outside saves ·\n * Esc cancels + reverts\n * Validator validate(value) => true | errorMessage, run before every accept\n * pass → commit + exit editing\n * fail via a key → STAY editing, surface the message (retry)\n * fail via outside → REVERT (acts as cancel) — user never trapped\n *\n * Keyboard is handled on the field's own keydown (never a global listener) and\n * every keydown stops propagation, so the card focus model (task 2/8) can't\n * swallow the Enter/Esc that belong to the editor.\n */\n\nexport type InlineEditValidator = (value: string) => true | string;\n\nexport interface UseInlineEditConfig {\n /** Seed value for the first edit; also the revert target until first commit. */\n initialValue?: string;\n /** Multi-line mode: Enter inserts a newline, Cmd/Ctrl+Enter saves. */\n multiline?: boolean;\n /** Optional validator, run before every accept. `true` passes; a string fails. */\n validate?: InlineEditValidator;\n /** Called with the committed value when an accept passes validation. */\n onCommit?: (value: string) => void;\n}\n\n/** Props to spread onto the `<input>` or `<textarea>` while editing. */\nexport interface InlineEditBind {\n /** Callback ref — assignable to both an input and a textarea. */\n ref: (el: HTMLInputElement | HTMLTextAreaElement | null) => void;\n value: string;\n onChange: (e: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;\n onKeyDown: (e: KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => void;\n onBlur: (e: FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => void;\n \"aria-invalid\": boolean;\n}\n\nexport interface InlineEditController {\n /** Whether the field is currently shown. */\n editing: boolean;\n /** The working value (the draft being typed). */\n value: string;\n /** The last committed value — what a revert restores. */\n committed: string;\n /** The current validation message, or null when valid / untouched. */\n error: string | null;\n /** Whether this editor is in multi-line mode. */\n multiline: boolean;\n /** Enter editing, loading the last committed value. */\n begin: () => void;\n /** Cancel + revert to the committed value (the Esc / invalid-outside path). */\n cancel: () => void;\n /** Force a committed value without going through the field (repeat demos). */\n reset: (next?: string) => void;\n /** Spread onto the field element while `editing`. */\n bind: InlineEditBind;\n}\n\nexport const useInlineEdit = ({\n initialValue = \"\",\n multiline = false,\n validate,\n onCommit,\n}: UseInlineEditConfig = {}): InlineEditController => {\n const [editing, setEditingState] = useState(false);\n const [value, setValueState] = useState(initialValue);\n const [committed, setCommittedState] = useState(initialValue);\n const [error, setError] = useState<string | null>(null);\n\n // Refs mirror the state that the (stable) event handlers read, so the handlers\n // never go stale and never need to be re-created as the value changes.\n const elRef = useRef<HTMLInputElement | HTMLTextAreaElement | null>(null);\n const valueRef = useRef(value);\n const committedRef = useRef(committed);\n const editingRef = useRef(editing);\n // Set right before a programmatic exit so the blur that follows the field\n // unmounting is ignored (it isn't a real click-outside).\n const skipBlurRef = useRef(false);\n const validateRef = useRef(validate);\n const onCommitRef = useRef(onCommit);\n\n useEffect(() => {\n validateRef.current = validate;\n onCommitRef.current = onCommit;\n });\n\n const setValue = useCallback((v: string) => {\n valueRef.current = v;\n setValueState(v);\n }, []);\n\n const setCommitted = useCallback((v: string) => {\n committedRef.current = v;\n setCommittedState(v);\n }, []);\n\n const setEditing = useCallback((v: boolean) => {\n editingRef.current = v;\n setEditingState(v);\n }, []);\n\n const begin = useCallback(() => {\n skipBlurRef.current = false;\n setValue(committedRef.current);\n setError(null);\n setEditing(true);\n }, [setValue, setEditing]);\n\n const cancel = useCallback(() => {\n skipBlurRef.current = true;\n setValue(committedRef.current);\n setError(null);\n setEditing(false);\n }, [setValue, setEditing]);\n\n const reset = useCallback(\n (next: string = initialValue) => {\n skipBlurRef.current = true;\n setCommitted(next);\n setValue(next);\n setError(null);\n setEditing(false);\n },\n [initialValue, setCommitted, setValue, setEditing]\n );\n\n const commit = useCallback(\n (v: string) => {\n skipBlurRef.current = true;\n setCommitted(v);\n setValue(v);\n setError(null);\n setEditing(false);\n onCommitRef.current?.(v);\n },\n [setCommitted, setValue, setEditing]\n );\n\n // Run the validator (if any) and accept, or handle the failure per source:\n // a key retry keeps the user in the field with a message; an outside click\n // reverts so the user is never trapped in an invalid editor.\n const attempt = useCallback(\n (source: \"key\" | \"outside\"): boolean => {\n const v = valueRef.current;\n const result = validateRef.current ? validateRef.current(v) : true;\n if (result === true) {\n commit(v);\n return true;\n }\n if (source === \"outside\") {\n cancel();\n return false;\n }\n setError(result);\n return false;\n },\n [commit, cancel]\n );\n\n const onChange = useCallback(\n (e: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => {\n setValue(e.target.value);\n // Clear a stale error as the user edits; the next accept re-validates.\n setError((prev) => (prev == null ? prev : null));\n },\n [setValue]\n );\n\n const onKeyDown = useCallback(\n (e: KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => {\n // Keep Enter/Esc from reaching the card's own keyboard model (task 2/8).\n e.stopPropagation();\n\n if (e.key === \"Escape\") {\n e.preventDefault();\n cancel();\n return;\n }\n\n if (e.key === \"Enter\") {\n const withMeta = e.metaKey || e.ctrlKey;\n // Multi-line: a bare Enter is a newline; only Cmd/Ctrl+Enter saves.\n if (multiline && !withMeta) return;\n e.preventDefault();\n attempt(\"key\");\n }\n },\n [attempt, cancel, multiline]\n );\n\n const onBlur = useCallback(() => {\n if (skipBlurRef.current) {\n skipBlurRef.current = false;\n return;\n }\n if (!editingRef.current) return;\n attempt(\"outside\");\n }, [attempt]);\n\n const setRef = useCallback(\n (el: HTMLInputElement | HTMLTextAreaElement | null) => {\n elRef.current = el;\n },\n []\n );\n\n // On entering editing, focus the field and drop the caret at the end so the\n // cursor is visible and existing text is ready to extend.\n useEffect(() => {\n if (!editing) return;\n const el = elRef.current;\n if (!el) return;\n el.focus();\n const len = el.value.length;\n try {\n el.setSelectionRange(len, len);\n } catch {\n /* some input types disallow setSelectionRange — harmless here. */\n }\n }, [editing]);\n\n return {\n editing,\n value,\n committed,\n error,\n multiline,\n begin,\n cancel,\n reset,\n bind: {\n ref: setRef,\n value,\n onChange,\n onKeyDown,\n onBlur,\n \"aria-invalid\": error != null,\n },\n };\n};\n"],"mappings":"AAAA,SAIEA,WAAW,EACXC,SAAS,EACTC,MAAM,EACNC,QAAQ,QACH,OAAO;;AAEd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAeA;;AAgCA,OAAO,MAAMC,aAAa,GAAG,SAAAA,CAAAC,KAAA,EAKyB;EAAA,IAAAC,IAAA,GAAAD,KAAA,cAA7B,CAAC,CAAC,GAAAA,KAAA;IAAAE,iBAAA,GAAAD,IAAA,CAJzBE,YAAY;IAAZA,YAAY,GAAAD,iBAAA,cAAG,EAAE,GAAAA,iBAAA;IAAAE,cAAA,GAAAH,IAAA,CACjBI,SAAS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;IACT2B,KAAK;IACLC,MAAM;IACNC,KAAK;IACLyB,IAAI,EAAE;MACJC,GAAG,EAAER,MAAM;MACXxC,KAAK;MACL4B,QAAQ;MACRI,SAAS;MACTO,MAAM;MACN,cAAc,EAAEjC,KAAK,IAAI;IAC3B;EACF,CAAC;AACH,CAAC","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@activecollab/components",
3
- "version": "2.0.362",
3
+ "version": "2.0.364",
4
4
  "description": "ActiveCollab Components",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",