@burdenoff/microfe-support 2026.819.3 → 2026.819.5

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 (82) hide show
  1. package/dist/microfe-support.css +1 -1
  2. package/dist/node_modules/@tiptap/core/dist/index.js +3453 -0
  3. package/dist/node_modules/@tiptap/core/dist/index.js.map +1 -0
  4. package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +21 -0
  5. package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js.map +1 -0
  6. package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +76 -0
  7. package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js.map +1 -0
  8. package/dist/node_modules/@tiptap/extension-bold/dist/index.js +74 -0
  9. package/dist/node_modules/@tiptap/extension-bold/dist/index.js.map +1 -0
  10. package/dist/node_modules/@tiptap/extension-code/dist/index.js +68 -0
  11. package/dist/node_modules/@tiptap/extension-code/dist/index.js.map +1 -0
  12. package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +160 -0
  13. package/dist/node_modules/@tiptap/extension-code-block/dist/index.js.map +1 -0
  14. package/dist/node_modules/@tiptap/extension-document/dist/index.js +12 -0
  15. package/dist/node_modules/@tiptap/extension-document/dist/index.js.map +1 -0
  16. package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +51 -0
  17. package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js.map +1 -0
  18. package/dist/node_modules/@tiptap/extension-heading/dist/index.js +68 -0
  19. package/dist/node_modules/@tiptap/extension-heading/dist/index.js.map +1 -0
  20. package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +50 -0
  21. package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js.map +1 -0
  22. package/dist/node_modules/@tiptap/extension-italic/dist/index.js +71 -0
  23. package/dist/node_modules/@tiptap/extension-italic/dist/index.js.map +1 -0
  24. package/dist/node_modules/@tiptap/extension-link/dist/index.js +373 -0
  25. package/dist/node_modules/@tiptap/extension-link/dist/index.js.map +1 -0
  26. package/dist/node_modules/@tiptap/extension-list/dist/index.js +964 -0
  27. package/dist/node_modules/@tiptap/extension-list/dist/index.js.map +1 -0
  28. package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +46 -0
  29. package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js.map +1 -0
  30. package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js +7 -0
  31. package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js.map +1 -0
  32. package/dist/node_modules/@tiptap/extension-strike/dist/index.js +56 -0
  33. package/dist/node_modules/@tiptap/extension-strike/dist/index.js.map +1 -0
  34. package/dist/node_modules/@tiptap/extension-text/dist/index.js +15 -0
  35. package/dist/node_modules/@tiptap/extension-text/dist/index.js.map +1 -0
  36. package/dist/node_modules/@tiptap/extension-underline/dist/index.js +63 -0
  37. package/dist/node_modules/@tiptap/extension-underline/dist/index.js.map +1 -0
  38. package/dist/node_modules/@tiptap/extensions/dist/index.js +459 -0
  39. package/dist/node_modules/@tiptap/extensions/dist/index.js.map +1 -0
  40. package/dist/node_modules/@tiptap/react/dist/index.js +316 -0
  41. package/dist/node_modules/@tiptap/react/dist/index.js.map +1 -0
  42. package/dist/node_modules/@tiptap/starter-kit/dist/index.js +29 -0
  43. package/dist/node_modules/@tiptap/starter-kit/dist/index.js.map +1 -0
  44. package/dist/node_modules/fast-equals/dist/es/index.js +267 -0
  45. package/dist/node_modules/fast-equals/dist/es/index.js.map +1 -0
  46. package/dist/node_modules/linkifyjs/dist/linkify.js +514 -0
  47. package/dist/node_modules/linkifyjs/dist/linkify.js.map +1 -0
  48. package/dist/node_modules/orderedmap/dist/index.js +69 -0
  49. package/dist/node_modules/orderedmap/dist/index.js.map +1 -0
  50. package/dist/node_modules/prosemirror-commands/dist/index.js +335 -0
  51. package/dist/node_modules/prosemirror-commands/dist/index.js.map +1 -0
  52. package/dist/node_modules/prosemirror-dropcursor/dist/index.js +113 -0
  53. package/dist/node_modules/prosemirror-dropcursor/dist/index.js.map +1 -0
  54. package/dist/node_modules/prosemirror-gapcursor/dist/index.js +173 -0
  55. package/dist/node_modules/prosemirror-gapcursor/dist/index.js.map +1 -0
  56. package/dist/node_modules/prosemirror-history/dist/index.js +214 -0
  57. package/dist/node_modules/prosemirror-history/dist/index.js.map +1 -0
  58. package/dist/node_modules/prosemirror-keymap/dist/index.js +52 -0
  59. package/dist/node_modules/prosemirror-keymap/dist/index.js.map +1 -0
  60. package/dist/node_modules/prosemirror-model/dist/index.js +1786 -0
  61. package/dist/node_modules/prosemirror-model/dist/index.js.map +1 -0
  62. package/dist/node_modules/prosemirror-schema-list/dist/index.js +75 -0
  63. package/dist/node_modules/prosemirror-schema-list/dist/index.js.map +1 -0
  64. package/dist/node_modules/prosemirror-state/dist/index.js +527 -0
  65. package/dist/node_modules/prosemirror-state/dist/index.js.map +1 -0
  66. package/dist/node_modules/prosemirror-transform/dist/index.js +1153 -0
  67. package/dist/node_modules/prosemirror-transform/dist/index.js.map +1 -0
  68. package/dist/node_modules/prosemirror-view/dist/index.js +3296 -0
  69. package/dist/node_modules/prosemirror-view/dist/index.js.map +1 -0
  70. package/dist/node_modules/rope-sequence/dist/index.js +85 -0
  71. package/dist/node_modules/rope-sequence/dist/index.js.map +1 -0
  72. package/dist/node_modules/w3c-keyname/index.js +90 -0
  73. package/dist/node_modules/w3c-keyname/index.js.map +1 -0
  74. package/dist/support/components/careers/RichTextEditor.d.ts +16 -0
  75. package/dist/support/components/careers/RichTextEditor.js +87 -0
  76. package/dist/support/components/careers/RichTextEditor.js.map +1 -0
  77. package/dist/support/pages/JobApplicationDetailPage.d.ts +1 -0
  78. package/dist/support/pages/JobApplicationDetailPage.js +338 -336
  79. package/dist/support/pages/JobApplicationDetailPage.js.map +1 -1
  80. package/dist/support/pages/JobPostingDetailPage.js +310 -303
  81. package/dist/support/pages/JobPostingDetailPage.js.map +1 -1
  82. package/package.json +4 -1
@@ -0,0 +1,85 @@
1
+ //#region node_modules/rope-sequence/dist/index.js
2
+ var e = function() {};
3
+ e.prototype.append = function(t) {
4
+ return t.length ? (t = e.from(t), !this.length && t || t.length < 200 && this.leafAppend(t) || this.length < 200 && t.leafPrepend(this) || this.appendInner(t)) : this;
5
+ }, e.prototype.prepend = function(t) {
6
+ return t.length ? e.from(t).append(this) : this;
7
+ }, e.prototype.appendInner = function(e) {
8
+ return new n(this, e);
9
+ }, e.prototype.slice = function(t, n) {
10
+ return t === void 0 && (t = 0), n === void 0 && (n = this.length), t >= n ? e.empty : this.sliceInner(Math.max(0, t), Math.min(this.length, n));
11
+ }, e.prototype.get = function(e) {
12
+ if (!(e < 0 || e >= this.length)) return this.getInner(e);
13
+ }, e.prototype.forEach = function(e, t, n) {
14
+ t === void 0 && (t = 0), n === void 0 && (n = this.length), t <= n ? this.forEachInner(e, t, n, 0) : this.forEachInvertedInner(e, t, n, 0);
15
+ }, e.prototype.map = function(e, t, n) {
16
+ t === void 0 && (t = 0), n === void 0 && (n = this.length);
17
+ var r = [];
18
+ return this.forEach(function(t, n) {
19
+ return r.push(e(t, n));
20
+ }, t, n), r;
21
+ }, e.from = function(n) {
22
+ return n instanceof e ? n : n && n.length ? new t(n) : e.empty;
23
+ };
24
+ var t = /* @__PURE__ */ function(e) {
25
+ function t(t) {
26
+ e.call(this), this.values = t;
27
+ }
28
+ e && (t.__proto__ = e), t.prototype = Object.create(e && e.prototype), t.prototype.constructor = t;
29
+ var n = {
30
+ length: { configurable: !0 },
31
+ depth: { configurable: !0 }
32
+ };
33
+ return t.prototype.flatten = function() {
34
+ return this.values;
35
+ }, t.prototype.sliceInner = function(e, n) {
36
+ return e == 0 && n == this.length ? this : new t(this.values.slice(e, n));
37
+ }, t.prototype.getInner = function(e) {
38
+ return this.values[e];
39
+ }, t.prototype.forEachInner = function(e, t, n, r) {
40
+ for (var i = t; i < n; i++) if (e(this.values[i], r + i) === !1) return !1;
41
+ }, t.prototype.forEachInvertedInner = function(e, t, n, r) {
42
+ for (var i = t - 1; i >= n; i--) if (e(this.values[i], r + i) === !1) return !1;
43
+ }, t.prototype.leafAppend = function(e) {
44
+ if (this.length + e.length <= 200) return new t(this.values.concat(e.flatten()));
45
+ }, t.prototype.leafPrepend = function(e) {
46
+ if (this.length + e.length <= 200) return new t(e.flatten().concat(this.values));
47
+ }, n.length.get = function() {
48
+ return this.values.length;
49
+ }, n.depth.get = function() {
50
+ return 0;
51
+ }, Object.defineProperties(t.prototype, n), t;
52
+ }(e);
53
+ e.empty = new t([]);
54
+ var n = /* @__PURE__ */ function(e) {
55
+ function t(t, n) {
56
+ e.call(this), this.left = t, this.right = n, this.length = t.length + n.length, this.depth = Math.max(t.depth, n.depth) + 1;
57
+ }
58
+ return e && (t.__proto__ = e), t.prototype = Object.create(e && e.prototype), t.prototype.constructor = t, t.prototype.flatten = function() {
59
+ return this.left.flatten().concat(this.right.flatten());
60
+ }, t.prototype.getInner = function(e) {
61
+ return e < this.left.length ? this.left.get(e) : this.right.get(e - this.left.length);
62
+ }, t.prototype.forEachInner = function(e, t, n, r) {
63
+ var i = this.left.length;
64
+ if (t < i && this.left.forEachInner(e, t, Math.min(n, i), r) === !1 || n > i && this.right.forEachInner(e, Math.max(t - i, 0), Math.min(this.length, n) - i, r + i) === !1) return !1;
65
+ }, t.prototype.forEachInvertedInner = function(e, t, n, r) {
66
+ var i = this.left.length;
67
+ if (t > i && this.right.forEachInvertedInner(e, t - i, Math.max(n, i) - i, r + i) === !1 || n < i && this.left.forEachInvertedInner(e, Math.min(t, i), n, r) === !1) return !1;
68
+ }, t.prototype.sliceInner = function(e, t) {
69
+ if (e == 0 && t == this.length) return this;
70
+ var n = this.left.length;
71
+ return t <= n ? this.left.slice(e, t) : e >= n ? this.right.slice(e - n, t - n) : this.left.slice(e, n).append(this.right.slice(0, t - n));
72
+ }, t.prototype.leafAppend = function(e) {
73
+ var n = this.right.leafAppend(e);
74
+ if (n) return new t(this.left, n);
75
+ }, t.prototype.leafPrepend = function(e) {
76
+ var n = this.left.leafPrepend(e);
77
+ if (n) return new t(n, this.right);
78
+ }, t.prototype.appendInner = function(e) {
79
+ return this.left.depth >= Math.max(this.right.depth, e.depth) + 1 ? new t(this.left, new t(this.right, e)) : new t(this, e);
80
+ }, t;
81
+ }(e);
82
+ //#endregion
83
+ export { e as default };
84
+
85
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../node_modules/rope-sequence/dist/index.js"],"sourcesContent":["var GOOD_LEAF_SIZE = 200;\n\n// :: class<T> A rope sequence is a persistent sequence data structure\n// that supports appending, prepending, and slicing without doing a\n// full copy. It is represented as a mostly-balanced tree.\nvar RopeSequence = function RopeSequence () {};\n\nRopeSequence.prototype.append = function append (other) {\n if (!other.length) { return this }\n other = RopeSequence.from(other);\n\n return (!this.length && other) ||\n (other.length < GOOD_LEAF_SIZE && this.leafAppend(other)) ||\n (this.length < GOOD_LEAF_SIZE && other.leafPrepend(this)) ||\n this.appendInner(other)\n};\n\n// :: (union<[T], RopeSequence<T>>) → RopeSequence<T>\n// Prepend an array or other rope to this one, returning a new rope.\nRopeSequence.prototype.prepend = function prepend (other) {\n if (!other.length) { return this }\n return RopeSequence.from(other).append(this)\n};\n\nRopeSequence.prototype.appendInner = function appendInner (other) {\n return new Append(this, other)\n};\n\n// :: (?number, ?number) → RopeSequence<T>\n// Create a rope repesenting a sub-sequence of this rope.\nRopeSequence.prototype.slice = function slice (from, to) {\n if ( from === void 0 ) from = 0;\n if ( to === void 0 ) to = this.length;\n\n if (from >= to) { return RopeSequence.empty }\n return this.sliceInner(Math.max(0, from), Math.min(this.length, to))\n};\n\n// :: (number) → T\n// Retrieve the element at the given position from this rope.\nRopeSequence.prototype.get = function get (i) {\n if (i < 0 || i >= this.length) { return undefined }\n return this.getInner(i)\n};\n\n// :: ((element: T, index: number) → ?bool, ?number, ?number)\n// Call the given function for each element between the given\n// indices. This tends to be more efficient than looping over the\n// indices and calling `get`, because it doesn't have to descend the\n// tree for every element.\nRopeSequence.prototype.forEach = function forEach (f, from, to) {\n if ( from === void 0 ) from = 0;\n if ( to === void 0 ) to = this.length;\n\n if (from <= to)\n { this.forEachInner(f, from, to, 0); }\n else\n { this.forEachInvertedInner(f, from, to, 0); }\n};\n\n// :: ((element: T, index: number) → U, ?number, ?number) → [U]\n// Map the given functions over the elements of the rope, producing\n// a flat array.\nRopeSequence.prototype.map = function map (f, from, to) {\n if ( from === void 0 ) from = 0;\n if ( to === void 0 ) to = this.length;\n\n var result = [];\n this.forEach(function (elt, i) { return result.push(f(elt, i)); }, from, to);\n return result\n};\n\n// :: (?union<[T], RopeSequence<T>>) → RopeSequence<T>\n// Create a rope representing the given array, or return the rope\n// itself if a rope was given.\nRopeSequence.from = function from (values) {\n if (values instanceof RopeSequence) { return values }\n return values && values.length ? new Leaf(values) : RopeSequence.empty\n};\n\nvar Leaf = /*@__PURE__*/(function (RopeSequence) {\n function Leaf(values) {\n RopeSequence.call(this);\n this.values = values;\n }\n\n if ( RopeSequence ) Leaf.__proto__ = RopeSequence;\n Leaf.prototype = Object.create( RopeSequence && RopeSequence.prototype );\n Leaf.prototype.constructor = Leaf;\n\n var prototypeAccessors = { length: { configurable: true },depth: { configurable: true } };\n\n Leaf.prototype.flatten = function flatten () {\n return this.values\n };\n\n Leaf.prototype.sliceInner = function sliceInner (from, to) {\n if (from == 0 && to == this.length) { return this }\n return new Leaf(this.values.slice(from, to))\n };\n\n Leaf.prototype.getInner = function getInner (i) {\n return this.values[i]\n };\n\n Leaf.prototype.forEachInner = function forEachInner (f, from, to, start) {\n for (var i = from; i < to; i++)\n { if (f(this.values[i], start + i) === false) { return false } }\n };\n\n Leaf.prototype.forEachInvertedInner = function forEachInvertedInner (f, from, to, start) {\n for (var i = from - 1; i >= to; i--)\n { if (f(this.values[i], start + i) === false) { return false } }\n };\n\n Leaf.prototype.leafAppend = function leafAppend (other) {\n if (this.length + other.length <= GOOD_LEAF_SIZE)\n { return new Leaf(this.values.concat(other.flatten())) }\n };\n\n Leaf.prototype.leafPrepend = function leafPrepend (other) {\n if (this.length + other.length <= GOOD_LEAF_SIZE)\n { return new Leaf(other.flatten().concat(this.values)) }\n };\n\n prototypeAccessors.length.get = function () { return this.values.length };\n\n prototypeAccessors.depth.get = function () { return 0 };\n\n Object.defineProperties( Leaf.prototype, prototypeAccessors );\n\n return Leaf;\n}(RopeSequence));\n\n// :: RopeSequence\n// The empty rope sequence.\nRopeSequence.empty = new Leaf([]);\n\nvar Append = /*@__PURE__*/(function (RopeSequence) {\n function Append(left, right) {\n RopeSequence.call(this);\n this.left = left;\n this.right = right;\n this.length = left.length + right.length;\n this.depth = Math.max(left.depth, right.depth) + 1;\n }\n\n if ( RopeSequence ) Append.__proto__ = RopeSequence;\n Append.prototype = Object.create( RopeSequence && RopeSequence.prototype );\n Append.prototype.constructor = Append;\n\n Append.prototype.flatten = function flatten () {\n return this.left.flatten().concat(this.right.flatten())\n };\n\n Append.prototype.getInner = function getInner (i) {\n return i < this.left.length ? this.left.get(i) : this.right.get(i - this.left.length)\n };\n\n Append.prototype.forEachInner = function forEachInner (f, from, to, start) {\n var leftLen = this.left.length;\n if (from < leftLen &&\n this.left.forEachInner(f, from, Math.min(to, leftLen), start) === false)\n { return false }\n if (to > leftLen &&\n this.right.forEachInner(f, Math.max(from - leftLen, 0), Math.min(this.length, to) - leftLen, start + leftLen) === false)\n { return false }\n };\n\n Append.prototype.forEachInvertedInner = function forEachInvertedInner (f, from, to, start) {\n var leftLen = this.left.length;\n if (from > leftLen &&\n this.right.forEachInvertedInner(f, from - leftLen, Math.max(to, leftLen) - leftLen, start + leftLen) === false)\n { return false }\n if (to < leftLen &&\n this.left.forEachInvertedInner(f, Math.min(from, leftLen), to, start) === false)\n { return false }\n };\n\n Append.prototype.sliceInner = function sliceInner (from, to) {\n if (from == 0 && to == this.length) { return this }\n var leftLen = this.left.length;\n if (to <= leftLen) { return this.left.slice(from, to) }\n if (from >= leftLen) { return this.right.slice(from - leftLen, to - leftLen) }\n return this.left.slice(from, leftLen).append(this.right.slice(0, to - leftLen))\n };\n\n Append.prototype.leafAppend = function leafAppend (other) {\n var inner = this.right.leafAppend(other);\n if (inner) { return new Append(this.left, inner) }\n };\n\n Append.prototype.leafPrepend = function leafPrepend (other) {\n var inner = this.left.leafPrepend(other);\n if (inner) { return new Append(inner, this.right) }\n };\n\n Append.prototype.appendInner = function appendInner (other) {\n if (this.left.depth >= Math.max(this.right.depth, other.depth) + 1)\n { return new Append(this.left, new Append(this.right, other)) }\n return new Append(this, other)\n };\n\n return Append;\n}(RopeSequence));\n\nexport default RopeSequence;\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAKI,IAAe,WAAyB,CAAC;AAE7C,EAAa,UAAU,SAAS,SAAiB,GAAO;CAItD,OAHK,EAAM,UACX,IAAQ,EAAa,KAAK,CAAK,GAEvB,CAAC,KAAK,UAAU,KACrB,EAAM,SAAS,OAAkB,KAAK,WAAW,CAAK,KACtD,KAAK,SAAS,OAAkB,EAAM,YAAY,IAAI,KACvD,KAAK,YAAY,CAAK,KANI;AAO9B,GAIA,EAAa,UAAU,UAAU,SAAkB,GAAO;CAExD,OADK,EAAM,SACJ,EAAa,KAAK,CAAK,CAAC,CAAC,OAAO,IAAI,IADf;AAE9B,GAEA,EAAa,UAAU,cAAc,SAAsB,GAAO;CAChE,OAAO,IAAI,EAAO,MAAM,CAAK;AAC/B,GAIA,EAAa,UAAU,QAAQ,SAAgB,GAAM,GAAI;CAKvD,OAJO,MAAS,KAAK,MAAI,IAAO,IACzB,MAAO,KAAK,MAAI,IAAK,KAAK,SAE7B,KAAQ,IAAa,EAAa,QAC/B,KAAK,WAAW,KAAK,IAAI,GAAG,CAAI,GAAG,KAAK,IAAI,KAAK,QAAQ,CAAE,CAAC;AACrE,GAIA,EAAa,UAAU,MAAM,SAAc,GAAG;CACxC,UAAI,KAAK,KAAK,KAAK,SACvB,OAAO,KAAK,SAAS,CAAC;AACxB,GAOA,EAAa,UAAU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SAAqB,GAAO;EACxD,IAAI,IAAQ,KAAK,MAAM,WAAW,CAAK;EACvC,IAAI,GAAS,OAAO,IAAI,EAAO,KAAK,MAAM,CAAK;CACjD,GAEA,EAAO,UAAU,cAAc,SAAsB,GAAO;EAC1D,IAAI,IAAQ,KAAK,KAAK,YAAY,CAAK;EACvC,IAAI,GAAS,OAAO,IAAI,EAAO,GAAO,KAAK,KAAK;CAClD,GAEA,EAAO,UAAU,cAAc,SAAsB,GAAO;EAG1D,OAFI,KAAK,KAAK,SAAS,KAAK,IAAI,KAAK,MAAM,OAAO,EAAM,KAAK,IAAI,IACtD,IAAI,EAAO,KAAK,MAAM,IAAI,EAAO,KAAK,OAAO,CAAK,CAAC,IACvD,IAAI,EAAO,MAAM,CAAK;CAC/B,GAEO;AACT,EAAE,CAAY"}
@@ -0,0 +1,90 @@
1
+ for (var e = {
2
+ 8: "Backspace",
3
+ 9: "Tab",
4
+ 10: "Enter",
5
+ 12: "NumLock",
6
+ 13: "Enter",
7
+ 16: "Shift",
8
+ 17: "Control",
9
+ 18: "Alt",
10
+ 20: "CapsLock",
11
+ 27: "Escape",
12
+ 32: " ",
13
+ 33: "PageUp",
14
+ 34: "PageDown",
15
+ 35: "End",
16
+ 36: "Home",
17
+ 37: "ArrowLeft",
18
+ 38: "ArrowUp",
19
+ 39: "ArrowRight",
20
+ 40: "ArrowDown",
21
+ 44: "PrintScreen",
22
+ 45: "Insert",
23
+ 46: "Delete",
24
+ 59: ";",
25
+ 61: "=",
26
+ 91: "Meta",
27
+ 92: "Meta",
28
+ 106: "*",
29
+ 107: "+",
30
+ 108: ",",
31
+ 109: "-",
32
+ 110: ".",
33
+ 111: "/",
34
+ 144: "NumLock",
35
+ 145: "ScrollLock",
36
+ 160: "Shift",
37
+ 161: "Shift",
38
+ 162: "Control",
39
+ 163: "Control",
40
+ 164: "Alt",
41
+ 165: "Alt",
42
+ 173: "-",
43
+ 186: ";",
44
+ 187: "=",
45
+ 188: ",",
46
+ 189: "-",
47
+ 190: ".",
48
+ 191: "/",
49
+ 192: "`",
50
+ 219: "[",
51
+ 220: "\\",
52
+ 221: "]",
53
+ 222: "'"
54
+ }, t = {
55
+ 48: ")",
56
+ 49: "!",
57
+ 50: "@",
58
+ 51: "#",
59
+ 52: "$",
60
+ 53: "%",
61
+ 54: "^",
62
+ 55: "&",
63
+ 56: "*",
64
+ 57: "(",
65
+ 59: ":",
66
+ 61: "+",
67
+ 173: "_",
68
+ 186: ":",
69
+ 187: "+",
70
+ 188: "<",
71
+ 189: "_",
72
+ 190: ">",
73
+ 191: "?",
74
+ 192: "~",
75
+ 219: "{",
76
+ 220: "|",
77
+ 221: "}",
78
+ 222: "\""
79
+ }, n = typeof navigator < "u" && /Mac/.test(navigator.platform), r = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent), i = 0; i < 10; i++) e[48 + i] = e[96 + i] = String(i);
80
+ for (var i = 1; i <= 24; i++) e[i + 111] = "F" + i;
81
+ for (var i = 65; i <= 90; i++) e[i] = String.fromCharCode(i + 32), t[i] = String.fromCharCode(i);
82
+ for (var a in e) t.hasOwnProperty(a) || (t[a] = e[a]);
83
+ function o(i) {
84
+ var a = !(n && i.metaKey && i.shiftKey && !i.ctrlKey && !i.altKey || r && i.shiftKey && i.key && i.key.length == 1 || i.key == "Unidentified") && i.key || (i.shiftKey ? t : e)[i.keyCode] || i.key || "Unidentified";
85
+ return a == "Esc" && (a = "Escape"), a == "Del" && (a = "Delete"), a == "Left" && (a = "ArrowLeft"), a == "Up" && (a = "ArrowUp"), a == "Right" && (a = "ArrowRight"), a == "Down" && (a = "ArrowDown"), a;
86
+ }
87
+ //#endregion
88
+ export { e as base, o as keyName, t as shift };
89
+
90
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../node_modules/w3c-keyname/index.js"],"sourcesContent":["export var base = {\n 8: \"Backspace\",\n 9: \"Tab\",\n 10: \"Enter\",\n 12: \"NumLock\",\n 13: \"Enter\",\n 16: \"Shift\",\n 17: \"Control\",\n 18: \"Alt\",\n 20: \"CapsLock\",\n 27: \"Escape\",\n 32: \" \",\n 33: \"PageUp\",\n 34: \"PageDown\",\n 35: \"End\",\n 36: \"Home\",\n 37: \"ArrowLeft\",\n 38: \"ArrowUp\",\n 39: \"ArrowRight\",\n 40: \"ArrowDown\",\n 44: \"PrintScreen\",\n 45: \"Insert\",\n 46: \"Delete\",\n 59: \";\",\n 61: \"=\",\n 91: \"Meta\",\n 92: \"Meta\",\n 106: \"*\",\n 107: \"+\",\n 108: \",\",\n 109: \"-\",\n 110: \".\",\n 111: \"/\",\n 144: \"NumLock\",\n 145: \"ScrollLock\",\n 160: \"Shift\",\n 161: \"Shift\",\n 162: \"Control\",\n 163: \"Control\",\n 164: \"Alt\",\n 165: \"Alt\",\n 173: \"-\",\n 186: \";\",\n 187: \"=\",\n 188: \",\",\n 189: \"-\",\n 190: \".\",\n 191: \"/\",\n 192: \"`\",\n 219: \"[\",\n 220: \"\\\\\",\n 221: \"]\",\n 222: \"'\"\n}\n\nexport var shift = {\n 48: \")\",\n 49: \"!\",\n 50: \"@\",\n 51: \"#\",\n 52: \"$\",\n 53: \"%\",\n 54: \"^\",\n 55: \"&\",\n 56: \"*\",\n 57: \"(\",\n 59: \":\",\n 61: \"+\",\n 173: \"_\",\n 186: \":\",\n 187: \"+\",\n 188: \"<\",\n 189: \"_\",\n 190: \">\",\n 191: \"?\",\n 192: \"~\",\n 219: \"{\",\n 220: \"|\",\n 221: \"}\",\n 222: \"\\\"\"\n}\n\nvar mac = typeof navigator != \"undefined\" && /Mac/.test(navigator.platform)\nvar ie = typeof navigator != \"undefined\" && /MSIE \\d|Trident\\/(?:[7-9]|\\d{2,})\\..*rv:(\\d+)/.exec(navigator.userAgent)\n\n// Fill in the digit keys\nfor (var i = 0; i < 10; i++) base[48 + i] = base[96 + i] = String(i)\n\n// The function keys\nfor (var i = 1; i <= 24; i++) base[i + 111] = \"F\" + i\n\n// And the alphabetic keys\nfor (var i = 65; i <= 90; i++) {\n base[i] = String.fromCharCode(i + 32)\n shift[i] = String.fromCharCode(i)\n}\n\n// For each code that doesn't have a shift-equivalent, copy the base name\nfor (var code in base) if (!shift.hasOwnProperty(code)) shift[code] = base[code]\n\nexport function keyName(event) {\n // On macOS, keys held with Shift and Cmd don't reflect the effect of Shift in `.key`.\n // On IE, shift effect is never included in `.key`.\n var ignoreKey = mac && event.metaKey && event.shiftKey && !event.ctrlKey && !event.altKey ||\n ie && event.shiftKey && event.key && event.key.length == 1 ||\n event.key == \"Unidentified\"\n var name = (!ignoreKey && event.key) ||\n (event.shiftKey ? shift : base)[event.keyCode] ||\n event.key || \"Unidentified\"\n // Edge sometimes produces wrong names (Issue #3)\n if (name == \"Esc\") name = \"Escape\"\n if (name == \"Del\") name = \"Delete\"\n // https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/8860571/\n if (name == \"Left\") name = \"ArrowLeft\"\n if (name == \"Up\") name = \"ArrowUp\"\n if (name == \"Right\") name = \"ArrowRight\"\n if (name == \"Down\") name = \"ArrowDown\"\n return name\n}\n"],"x_google_ignoreList":[0],"mappings":"AAsFA,KAAK,IAtFM,IAAO;CAChB,GAAG;CACH,GAAG;CACH,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,K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EtB,KAAQ,WAAQ,IAAO,cACvB,KAAQ,SAAM,IAAO,YACrB,KAAQ,YAAS,IAAO,eACxB,KAAQ,WAAQ,IAAO,cACpB;AACT"}
@@ -0,0 +1,16 @@
1
+ import '../../styles/richtext.css';
2
+ /**
3
+ * Minimal WYSIWYG editor for admin-authored candidate-facing copy (job
4
+ * assignment description / problem statement). Output is an HTML string —
5
+ * the backend re-sanitizes it to an allowlist before persisting and again
6
+ * before rendering it into a candidate email, so this editor only needs to
7
+ * produce well-formed HTML, not police content itself.
8
+ */
9
+ export interface RichTextEditorProps {
10
+ id?: string;
11
+ value: string;
12
+ onChange: (html: string) => void;
13
+ placeholder?: string;
14
+ 'aria-required'?: boolean;
15
+ }
16
+ export declare function RichTextEditor({ id, value, onChange, placeholder, ...rest }: RichTextEditorProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,87 @@
1
+ import { cn as e } from "../../utils/cn.js";
2
+ /* empty css */
3
+ import { EditorContent as t, useEditor as n } from "../../../node_modules/@tiptap/react/dist/index.js";
4
+ import r from "../../../node_modules/@tiptap/starter-kit/dist/index.js";
5
+ import i from "../../../node_modules/@tiptap/extension-placeholder/dist/index.js";
6
+ import { useEffect as a } from "react";
7
+ import { Bold as o, Italic as s, List as c, ListOrdered as l } from "lucide-react";
8
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
9
+ //#region src/support/components/careers/RichTextEditor.tsx
10
+ var f = "<p></p>";
11
+ function p({ label: t, active: n, onClick: r, Icon: i }) {
12
+ return /* @__PURE__ */ u("button", {
13
+ type: "button",
14
+ "aria-label": t,
15
+ "aria-pressed": n,
16
+ onClick: r,
17
+ className: e("inline-flex size-7 items-center justify-center rounded-md text-text-secondary transition-colors hover:bg-action-secondary-bg hover:text-text-primary", n && "bg-action-secondary-bg text-text-primary"),
18
+ children: /* @__PURE__ */ u(i, { size: 14 })
19
+ });
20
+ }
21
+ function m({ id: e, value: m, onChange: h, placeholder: g, ..._ }) {
22
+ let v = n({
23
+ extensions: [r.configure({
24
+ heading: !1,
25
+ blockquote: !1,
26
+ codeBlock: !1,
27
+ horizontalRule: !1,
28
+ strike: !1,
29
+ code: !1
30
+ }), i.configure({ placeholder: g ?? "" })],
31
+ content: m || f,
32
+ editorProps: { attributes: {
33
+ ...e ? { id: e } : {},
34
+ role: "textbox",
35
+ "aria-multiline": "true",
36
+ ..._["aria-required"] ? { "aria-required": "true" } : {},
37
+ class: "support-richtext focus:outline-none min-h-24"
38
+ } },
39
+ onUpdate: ({ editor: e }) => {
40
+ let t = e.getHTML();
41
+ h(t === f ? "" : t);
42
+ }
43
+ });
44
+ return a(() => {
45
+ if (!v || v.isFocused) return;
46
+ let e = v.getHTML(), t = m || f;
47
+ e !== t && v.commands.setContent(t);
48
+ }, [v, m]), v ? /* @__PURE__ */ d("div", {
49
+ className: "w-full rounded-lg border border-border-default bg-bg-surface focus-within:outline-none focus-within:ring-2 focus-within:ring-primary/20 focus-within:border-primary",
50
+ children: [/* @__PURE__ */ d("div", {
51
+ className: "flex items-center gap-1 border-b border-border-default px-2 py-1.5",
52
+ children: [
53
+ /* @__PURE__ */ u(p, {
54
+ label: "Bold",
55
+ active: v.isActive("bold"),
56
+ onClick: () => v.chain().focus().toggleBold().run(),
57
+ Icon: o
58
+ }),
59
+ /* @__PURE__ */ u(p, {
60
+ label: "Italic",
61
+ active: v.isActive("italic"),
62
+ onClick: () => v.chain().focus().toggleItalic().run(),
63
+ Icon: s
64
+ }),
65
+ /* @__PURE__ */ u(p, {
66
+ label: "Bullet list",
67
+ active: v.isActive("bulletList"),
68
+ onClick: () => v.chain().focus().toggleBulletList().run(),
69
+ Icon: c
70
+ }),
71
+ /* @__PURE__ */ u(p, {
72
+ label: "Numbered list",
73
+ active: v.isActive("orderedList"),
74
+ onClick: () => v.chain().focus().toggleOrderedList().run(),
75
+ Icon: l
76
+ })
77
+ ]
78
+ }), /* @__PURE__ */ u(t, {
79
+ editor: v,
80
+ className: "px-4 py-2.5"
81
+ })]
82
+ }) : null;
83
+ }
84
+ //#endregion
85
+ export { m as RichTextEditor };
86
+
87
+ //# sourceMappingURL=RichTextEditor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RichTextEditor.js","names":[],"sources":["../../../../src/support/components/careers/RichTextEditor.tsx"],"sourcesContent":["import { useEffect } from 'react';\nimport { EditorContent, useEditor } from '@tiptap/react';\nimport StarterKit from '@tiptap/starter-kit';\nimport Placeholder from '@tiptap/extension-placeholder';\nimport { Bold, Italic, List, ListOrdered } from 'lucide-react';\nimport { cn } from '../../utils/cn';\nimport '../../styles/richtext.css';\n\n/**\n * Minimal WYSIWYG editor for admin-authored candidate-facing copy (job\n * assignment description / problem statement). Output is an HTML string —\n * the backend re-sanitizes it to an allowlist before persisting and again\n * before rendering it into a candidate email, so this editor only needs to\n * produce well-formed HTML, not police content itself.\n */\nexport interface RichTextEditorProps {\n id?: string;\n value: string;\n onChange: (html: string) => void;\n placeholder?: string;\n 'aria-required'?: boolean;\n}\n\nconst EMPTY_DOC = '<p></p>';\n\nfunction ToolbarButton({\n label,\n active,\n onClick,\n Icon,\n}: {\n label: string;\n active: boolean;\n onClick: () => void;\n Icon: typeof Bold;\n}) {\n return (\n <button\n type=\"button\"\n aria-label={label}\n aria-pressed={active}\n onClick={onClick}\n className={cn(\n 'inline-flex size-7 items-center justify-center rounded-md text-text-secondary transition-colors hover:bg-action-secondary-bg hover:text-text-primary',\n active && 'bg-action-secondary-bg text-text-primary'\n )}\n >\n <Icon size={14} />\n </button>\n );\n}\n\nexport function RichTextEditor({ id, value, onChange, placeholder, ...rest }: RichTextEditorProps) {\n const editor = useEditor({\n extensions: [\n StarterKit.configure({\n heading: false,\n blockquote: false,\n codeBlock: false,\n horizontalRule: false,\n strike: false,\n code: false,\n }),\n Placeholder.configure({ placeholder: placeholder ?? '' }),\n ],\n content: value || EMPTY_DOC,\n editorProps: {\n attributes: {\n ...(id ? { id } : {}),\n role: 'textbox',\n 'aria-multiline': 'true',\n ...(rest['aria-required'] ? { 'aria-required': 'true' } : {}),\n class: 'support-richtext focus:outline-none min-h-24',\n },\n },\n onUpdate: ({ editor: instance }) => {\n const html = instance.getHTML();\n onChange(html === EMPTY_DOC ? '' : html);\n },\n });\n\n // Re-sync the editor's content when the caller resets `value` out from under\n // it (e.g. the \"Add Assignment\" dialog re-opening for a different\n // assignment, or a create/edit form reset) — but never fight the user's own\n // in-progress typing.\n useEffect(() => {\n if (!editor || editor.isFocused) return;\n const current = editor.getHTML();\n const next = value || EMPTY_DOC;\n if (current === next) return;\n editor.commands.setContent(next);\n }, [editor, value]);\n\n if (!editor) return null;\n\n return (\n <div className=\"w-full rounded-lg border border-border-default bg-bg-surface focus-within:outline-none focus-within:ring-2 focus-within:ring-primary/20 focus-within:border-primary\">\n <div className=\"flex items-center gap-1 border-b border-border-default px-2 py-1.5\">\n <ToolbarButton\n label=\"Bold\"\n active={editor.isActive('bold')}\n onClick={() => editor.chain().focus().toggleBold().run()}\n Icon={Bold}\n />\n <ToolbarButton\n label=\"Italic\"\n active={editor.isActive('italic')}\n onClick={() => editor.chain().focus().toggleItalic().run()}\n Icon={Italic}\n />\n <ToolbarButton\n label=\"Bullet list\"\n active={editor.isActive('bulletList')}\n onClick={() => editor.chain().focus().toggleBulletList().run()}\n Icon={List}\n />\n <ToolbarButton\n label=\"Numbered list\"\n active={editor.isActive('orderedList')}\n onClick={() => editor.chain().focus().toggleOrderedList().run()}\n Icon={ListOrdered}\n />\n </div>\n <EditorContent editor={editor} className=\"px-4 py-2.5\" />\n </div>\n );\n}\n"],"mappings":";;;;;;;;;AAuBA,IAAM,IAAY;AAElB,SAAS,EAAc,EACrB,UACA,WACA,YACA,WAMC;CACD,OACE,kBAAC,UAAD;EACE,MAAK;EACL,cAAY;EACZ,gBAAc;EACL;EACT,WAAW,EACT,wJACA,KAAU,0CACZ;EAEA,UAAA,kBAAC,GAAD,EAAM,MAAM,GAAK,CAAA;CACX,CAAA;AAEZ;AAEA,SAAgB,EAAe,EAAE,OAAI,UA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C,iBAAiB,CAAC,CAAC,IAAI;KAC7D,MAAM;IACP,CAAA;IACD,kBAAC,GAAD;KACE,OAAM;KACN,QAAQ,EAAO,SAAS,aAAa;KACrC,eAAe,EAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,kBAAkB,CAAC,CAAC,IAAI;KAC9D,MAAM;IACP,CAAA;GACE;EACL,CAAA,GAAA,kBAAC,GAAD;GAAuB;GAAQ,WAAU;EAAe,CAAA,CACrD;MA/Ba;AAiCtB"}
@@ -1 +1,2 @@
1
+ import '../styles/richtext.css';
1
2
  export declare function JobApplicationDetailPage(): import("react/jsx-runtime").JSX.Element;