@makeswift/runtime 0.0.19 → 0.0.22

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 (61) hide show
  1. package/dist/builder.cjs.js +1 -0
  2. package/dist/builder.cjs.js.map +1 -1
  3. package/dist/builder.es.js +1 -0
  4. package/dist/builder.es.js.map +1 -1
  5. package/dist/color.cjs.js +8 -0
  6. package/dist/color.cjs.js.map +1 -0
  7. package/dist/color.es.js +6 -0
  8. package/dist/color.es.js.map +1 -0
  9. package/dist/components.cjs.js +1 -0
  10. package/dist/components.cjs.js.map +1 -1
  11. package/dist/components.es.js +1 -0
  12. package/dist/components.es.js.map +1 -1
  13. package/dist/control-serialization.cjs.js +1 -0
  14. package/dist/control-serialization.cjs.js.map +1 -1
  15. package/dist/control-serialization.es.js +1 -0
  16. package/dist/control-serialization.es.js.map +1 -1
  17. package/dist/controls.cjs.js +7 -5
  18. package/dist/controls.cjs.js.map +1 -1
  19. package/dist/controls.es.js +2 -1
  20. package/dist/controls.es.js.map +1 -1
  21. package/dist/descriptors.cjs.js.map +1 -1
  22. package/dist/descriptors.es.js.map +1 -1
  23. package/dist/image.cjs.js +6 -6
  24. package/dist/image.cjs.js.map +1 -1
  25. package/dist/image.es.js +6 -5
  26. package/dist/image.es.js.map +1 -1
  27. package/dist/index.cjs.js +191 -150
  28. package/dist/index.cjs.js.map +1 -1
  29. package/dist/index.es.js +98 -57
  30. package/dist/index.es.js.map +1 -1
  31. package/dist/main.cjs.js +1 -0
  32. package/dist/main.cjs.js.map +1 -1
  33. package/dist/main.es.js +1 -0
  34. package/dist/main.es.js.map +1 -1
  35. package/dist/next.cjs.js +1 -0
  36. package/dist/next.cjs.js.map +1 -1
  37. package/dist/next.es.js +1 -0
  38. package/dist/next.es.js.map +1 -1
  39. package/dist/react-builder-preview.cjs.js +2 -1
  40. package/dist/react-builder-preview.cjs.js.map +1 -1
  41. package/dist/react-builder-preview.es.js +2 -1
  42. package/dist/react-builder-preview.es.js.map +1 -1
  43. package/dist/react-page.cjs.js +10 -9
  44. package/dist/react-page.cjs.js.map +1 -1
  45. package/dist/react-page.es.js +7 -6
  46. package/dist/react-page.es.js.map +1 -1
  47. package/dist/react.cjs.js +1 -0
  48. package/dist/react.cjs.js.map +1 -1
  49. package/dist/react.es.js +1 -0
  50. package/dist/react.es.js.map +1 -1
  51. package/dist/types/components/builtin/SocialLinks/options.d.ts +5 -0
  52. package/dist/types/components/builtin/SocialLinks/options.d.ts.map +1 -1
  53. package/dist/types/controls/image.d.ts +15 -3
  54. package/dist/types/controls/image.d.ts.map +1 -1
  55. package/dist/types/prop-controllers/descriptors.d.ts +2 -2
  56. package/dist/types/prop-controllers/descriptors.d.ts.map +1 -1
  57. package/dist/types/runtimes/react/controls/control.d.ts +2 -2
  58. package/dist/types/runtimes/react/controls/control.d.ts.map +1 -1
  59. package/dist/types/runtimes/react/controls/image.d.ts +12 -3
  60. package/dist/types/runtimes/react/controls/image.d.ts.map +1 -1
  61. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -46,6 +46,7 @@ import { gql, useQuery as useQuery$1, useMutation as useMutation$1, ApolloClient
46
46
  import { BatchHttpLink } from "@apollo/client/link/batch-http";
47
47
  import { KeyUtils, Value } from "slate";
48
48
  import { P as PagePathnameSliceFragmentDoc } from "./graphql.es.js";
49
+ import { a as ImageControlValueFormat, I as ImageControlType } from "./image.es.js";
49
50
  import { S as ShapeControlType, L as ListControlType, C as ComboboxControlType } from "./shape.es.js";
50
51
  import { a as StyleControlProperty, S as StyleControlType } from "./style.es.js";
51
52
  import { T as Types, E as ElementID, B as Backgrounds$1, W as Width, R as ResponsiveIconRadioGroup, M as Margin, P as Padding, a as Border, b as BorderRadius, S as Shadows, G as GapY, c as GapX, e as ResponsiveSelect, f as ResponsiveNumber, C as Checkbox$1, g as Grid$2, h as TextInput, L as Link$1, i as ResponsiveColor, j as TextStyle, I as Image$1, k as ResponsiveOpacity, l as Images, N as Number$1, D as Date$1, F as Font, m as ResponsiveLength, n as TextArea$1, o as Table, p as TableFormFields, q as NavigationLinks, r as SocialLinks$1, s as RichText, V as Video$1, t as WidthControlValueFormats } from "./descriptors.es.js";
@@ -69,7 +70,7 @@ import { isHotkey } from "is-hotkey";
69
70
  import { Editor } from "slate-react";
70
71
  import Lists from "@convertkit/slate-lists";
71
72
  import { S as SelectControlType, T as TextAreaControlType, a as TextInputControlType, N as NumberControlType, C as CheckboxControlType } from "./text-input.es.js";
72
- import { I as ImageControlType, C as ColorControlType } from "./image.es.js";
73
+ import { C as ColorControlType } from "./color.es.js";
73
74
  import { findDOMNode } from "react-dom";
74
75
  const PlaceholderBase$1 = styled.div`
75
76
  width: 100%;
@@ -362,7 +363,7 @@ async function introspect(element, client, store) {
362
363
  variables: { ids: [...typographyIds] }
363
364
  });
364
365
  (_c = typographiesResult == null ? void 0 : typographiesResult.data) == null ? void 0 : _c.typographies.forEach((typography) => {
365
- typography.style.forEach((style) => {
366
+ typography == null ? void 0 : typography.style.forEach((style) => {
366
367
  var _a2;
367
368
  const swatchId = (_a2 = style.value.color) == null ? void 0 : _a2.swatchId;
368
369
  if (swatchId != null)
@@ -3807,9 +3808,9 @@ function registerComponent$6(runtime) {
3807
3808
  }
3808
3809
  });
3809
3810
  }
3810
- var _path$t;
3811
- function _extends$u() {
3812
- _extends$u = Object.assign || function(target) {
3811
+ var _path$u;
3812
+ function _extends$v() {
3813
+ _extends$v = Object.assign || function(target) {
3813
3814
  for (var i = 1; i < arguments.length; i++) {
3814
3815
  var source = arguments[i];
3815
3816
  for (var key in source) {
@@ -3820,15 +3821,15 @@ function _extends$u() {
3820
3821
  }
3821
3822
  return target;
3822
3823
  };
3823
- return _extends$u.apply(this, arguments);
3824
+ return _extends$v.apply(this, arguments);
3824
3825
  }
3825
3826
  var SvgCheck12 = function SvgCheck122(props) {
3826
- return /* @__PURE__ */ React.createElement("svg", _extends$u({
3827
+ return /* @__PURE__ */ React.createElement("svg", _extends$v({
3827
3828
  width: 12,
3828
3829
  height: 12,
3829
3830
  viewBox: "0 0 12 12",
3830
3831
  xmlns: "http://www.w3.org/2000/svg"
3831
- }, props), _path$t || (_path$t = /* @__PURE__ */ React.createElement("path", {
3832
+ }, props), _path$u || (_path$u = /* @__PURE__ */ React.createElement("path", {
3832
3833
  fillRule: "evenodd",
3833
3834
  clipRule: "evenodd",
3834
3835
  d: "M11.7071 1.79289C12.0976 2.18342 12.0976 2.81658 11.7071 3.20711L4.70711 10.2071C4.31658 10.5976 3.68342 10.5976 3.29289 10.2071L0.292893 7.20711C-0.0976311 6.81658 -0.0976311 6.18342 0.292893 5.79289C0.683417 5.40237 1.31658 5.40237 1.70711 5.79289L4 8.08579L10.2929 1.79289C10.6834 1.40237 11.3166 1.40237 11.7071 1.79289Z"
@@ -5036,8 +5037,8 @@ function Field({
5036
5037
  });
5037
5038
  }
5038
5039
  var _g;
5039
- function _extends$t() {
5040
- _extends$t = Object.assign || function(target) {
5040
+ function _extends$u() {
5041
+ _extends$u = Object.assign || function(target) {
5041
5042
  for (var i = 1; i < arguments.length; i++) {
5042
5043
  var source = arguments[i];
5043
5044
  for (var key in source) {
@@ -5048,10 +5049,10 @@ function _extends$t() {
5048
5049
  }
5049
5050
  return target;
5050
5051
  };
5051
- return _extends$t.apply(this, arguments);
5052
+ return _extends$u.apply(this, arguments);
5052
5053
  }
5053
5054
  var SvgSpinner20 = function SvgSpinner202(props) {
5054
- return /* @__PURE__ */ React.createElement("svg", _extends$t({
5055
+ return /* @__PURE__ */ React.createElement("svg", _extends$u({
5055
5056
  xmlns: "http://www.w3.org/2000/svg",
5056
5057
  width: 20,
5057
5058
  height: 20
@@ -5635,9 +5636,9 @@ function registerComponent$5(runtime) {
5635
5636
  }
5636
5637
  });
5637
5638
  }
5638
- var _path$s;
5639
- function _extends$s() {
5640
- _extends$s = Object.assign || function(target) {
5639
+ var _path$t;
5640
+ function _extends$t() {
5641
+ _extends$t = Object.assign || function(target) {
5641
5642
  for (var i = 1; i < arguments.length; i++) {
5642
5643
  var source = arguments[i];
5643
5644
  for (var key in source) {
@@ -5648,14 +5649,14 @@ function _extends$s() {
5648
5649
  }
5649
5650
  return target;
5650
5651
  };
5651
- return _extends$s.apply(this, arguments);
5652
+ return _extends$t.apply(this, arguments);
5652
5653
  }
5653
5654
  var SvgMobileMenu28 = function SvgMobileMenu282(props) {
5654
- return /* @__PURE__ */ React.createElement("svg", _extends$s({
5655
+ return /* @__PURE__ */ React.createElement("svg", _extends$t({
5655
5656
  xmlns: "http://www.w3.org/2000/svg",
5656
5657
  width: 28,
5657
5658
  height: 28
5658
- }, props), _path$s || (_path$s = /* @__PURE__ */ React.createElement("path", {
5659
+ }, props), _path$t || (_path$t = /* @__PURE__ */ React.createElement("path", {
5659
5660
  d: "M27 15H1a1 1 0 0 1-1-1 1 1 0 0 1 1-1h26a1 1 0 0 1 1 1 1 1 0 0 1-1 1zm0-10H1a1 1 0 0 0-1 1 1 1 0 0 0 1 1h26a1 1 0 0 0 1-1 1 1 0 0 0-1-1zm0 16H1a1 1 0 0 0-1 1 1 1 0 0 0 1 1h26a1 1 0 0 0 1-1 1 1 0 0 0-1-1z"
5660
5661
  })));
5661
5662
  };
@@ -5699,9 +5700,9 @@ function LinksPlaceholder({
5699
5700
  }, i))
5700
5701
  });
5701
5702
  }
5702
- var _path$r;
5703
- function _extends$r() {
5704
- _extends$r = Object.assign || function(target) {
5703
+ var _path$s;
5704
+ function _extends$s() {
5705
+ _extends$s = Object.assign || function(target) {
5705
5706
  for (var i = 1; i < arguments.length; i++) {
5706
5707
  var source = arguments[i];
5707
5708
  for (var key in source) {
@@ -5712,20 +5713,20 @@ function _extends$r() {
5712
5713
  }
5713
5714
  return target;
5714
5715
  };
5715
- return _extends$r.apply(this, arguments);
5716
+ return _extends$s.apply(this, arguments);
5716
5717
  }
5717
5718
  var SvgCaretDown8 = function SvgCaretDown82(props) {
5718
- return /* @__PURE__ */ React.createElement("svg", _extends$r({
5719
+ return /* @__PURE__ */ React.createElement("svg", _extends$s({
5719
5720
  width: 8,
5720
5721
  height: 8,
5721
5722
  xmlns: "http://www.w3.org/2000/svg"
5722
- }, props), _path$r || (_path$r = /* @__PURE__ */ React.createElement("path", {
5723
+ }, props), _path$s || (_path$s = /* @__PURE__ */ React.createElement("path", {
5723
5724
  d: "M1 2a1 1 0 0 0-.707 1.707l3 3a1 1 0 0 0 1.414 0l3-3A1 1 0 0 0 7 2H1z"
5724
5725
  })));
5725
5726
  };
5726
- var _path$q;
5727
- function _extends$q() {
5728
- _extends$q = Object.assign || function(target) {
5727
+ var _path$r;
5728
+ function _extends$r() {
5729
+ _extends$r = Object.assign || function(target) {
5729
5730
  for (var i = 1; i < arguments.length; i++) {
5730
5731
  var source = arguments[i];
5731
5732
  for (var key in source) {
@@ -5736,20 +5737,20 @@ function _extends$q() {
5736
5737
  }
5737
5738
  return target;
5738
5739
  };
5739
- return _extends$q.apply(this, arguments);
5740
+ return _extends$r.apply(this, arguments);
5740
5741
  }
5741
5742
  var SvgPlus8 = function SvgPlus82(props) {
5742
- return /* @__PURE__ */ React.createElement("svg", _extends$q({
5743
+ return /* @__PURE__ */ React.createElement("svg", _extends$r({
5743
5744
  width: 8,
5744
5745
  height: 8,
5745
5746
  xmlns: "http://www.w3.org/2000/svg"
5746
- }, props), _path$q || (_path$q = /* @__PURE__ */ React.createElement("path", {
5747
+ }, props), _path$r || (_path$r = /* @__PURE__ */ React.createElement("path", {
5747
5748
  d: "M4 0a1 1 0 0 0-1 1v2H1a1 1 0 1 0 0 2h2v2a1 1 0 0 0 2 0V5h2a1 1 0 0 0 0-2H5V1a1 1 0 0 0-1-1z"
5748
5749
  })));
5749
5750
  };
5750
- var _path$p;
5751
- function _extends$p() {
5752
- _extends$p = Object.assign || function(target) {
5751
+ var _path$q;
5752
+ function _extends$q() {
5753
+ _extends$q = Object.assign || function(target) {
5753
5754
  for (var i = 1; i < arguments.length; i++) {
5754
5755
  var source = arguments[i];
5755
5756
  for (var key in source) {
@@ -5760,20 +5761,20 @@ function _extends$p() {
5760
5761
  }
5761
5762
  return target;
5762
5763
  };
5763
- return _extends$p.apply(this, arguments);
5764
+ return _extends$q.apply(this, arguments);
5764
5765
  }
5765
5766
  var SvgArrowDown8 = function SvgArrowDown82(props) {
5766
- return /* @__PURE__ */ React.createElement("svg", _extends$p({
5767
+ return /* @__PURE__ */ React.createElement("svg", _extends$q({
5767
5768
  width: 8,
5768
5769
  height: 8,
5769
5770
  xmlns: "http://www.w3.org/2000/svg"
5770
- }, props), _path$p || (_path$p = /* @__PURE__ */ React.createElement("path", {
5771
+ }, props), _path$q || (_path$q = /* @__PURE__ */ React.createElement("path", {
5771
5772
  d: "M5 1a1 1 0 0 0-2 0v3.586l-.293-.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l2-2a1 1 0 0 0-1.414-1.414L5 4.586V1z"
5772
5773
  })));
5773
5774
  };
5774
- var _path$o;
5775
- function _extends$o() {
5776
- _extends$o = Object.assign || function(target) {
5775
+ var _path$p;
5776
+ function _extends$p() {
5777
+ _extends$p = Object.assign || function(target) {
5777
5778
  for (var i = 1; i < arguments.length; i++) {
5778
5779
  var source = arguments[i];
5779
5780
  for (var key in source) {
@@ -5784,14 +5785,14 @@ function _extends$o() {
5784
5785
  }
5785
5786
  return target;
5786
5787
  };
5787
- return _extends$o.apply(this, arguments);
5788
+ return _extends$p.apply(this, arguments);
5788
5789
  }
5789
5790
  var SvgChevronDown8 = function SvgChevronDown82(props) {
5790
- return /* @__PURE__ */ React.createElement("svg", _extends$o({
5791
+ return /* @__PURE__ */ React.createElement("svg", _extends$p({
5791
5792
  width: 8,
5792
5793
  height: 8,
5793
5794
  xmlns: "http://www.w3.org/2000/svg"
5794
- }, props), _path$o || (_path$o = /* @__PURE__ */ React.createElement("path", {
5795
+ }, props), _path$p || (_path$p = /* @__PURE__ */ React.createElement("path", {
5795
5796
  fillRule: "evenodd",
5796
5797
  clipRule: "evenodd",
5797
5798
  d: "M.293 2.293a1 1 0 0 1 1.414 0L4 4.586l2.293-2.293a1 1 0 0 1 1.414 1.414l-3 3a1 1 0 0 1-1.414 0l-3-3a1 1 0 0 1 0-1.414z"
@@ -5938,9 +5939,9 @@ function DropDownButton(_U) {
5938
5939
  })]
5939
5940
  });
5940
5941
  }
5941
- var _path$n;
5942
- function _extends$n() {
5943
- _extends$n = Object.assign || function(target) {
5942
+ var _path$o;
5943
+ function _extends$o() {
5944
+ _extends$o = Object.assign || function(target) {
5944
5945
  for (var i = 1; i < arguments.length; i++) {
5945
5946
  var source = arguments[i];
5946
5947
  for (var key in source) {
@@ -5951,14 +5952,14 @@ function _extends$n() {
5951
5952
  }
5952
5953
  return target;
5953
5954
  };
5954
- return _extends$n.apply(this, arguments);
5955
+ return _extends$o.apply(this, arguments);
5955
5956
  }
5956
5957
  var SvgTimes16 = function SvgTimes162(props) {
5957
- return /* @__PURE__ */ React.createElement("svg", _extends$n({
5958
+ return /* @__PURE__ */ React.createElement("svg", _extends$o({
5958
5959
  width: 16,
5959
5960
  height: 16,
5960
5961
  xmlns: "http://www.w3.org/2000/svg"
5961
- }, props), _path$n || (_path$n = /* @__PURE__ */ React.createElement("path", {
5962
+ }, props), _path$o || (_path$o = /* @__PURE__ */ React.createElement("path", {
5962
5963
  fillRule: "evenodd",
5963
5964
  clipRule: "evenodd",
5964
5965
  d: "M13.707 3.707a1 1 0 0 0-1.414-1.414L8 6.586 3.707 2.293a1 1 0 0 0-1.414 1.414L6.586 8l-4.293 4.293a1 1 0 1 0 1.414 1.414L8 9.414l4.293 4.293a1 1 0 0 0 1.414-1.414L9.414 8l4.293-4.293Z"
@@ -6506,6 +6507,31 @@ function registerComponent$3(runtime) {
6506
6507
  }
6507
6508
  });
6508
6509
  }
6510
+ var _path$n;
6511
+ function _extends$n() {
6512
+ _extends$n = Object.assign || function(target) {
6513
+ for (var i = 1; i < arguments.length; i++) {
6514
+ var source = arguments[i];
6515
+ for (var key in source) {
6516
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
6517
+ target[key] = source[key];
6518
+ }
6519
+ }
6520
+ }
6521
+ return target;
6522
+ };
6523
+ return _extends$n.apply(this, arguments);
6524
+ }
6525
+ var SvgLogoAngellist20 = function SvgLogoAngellist202(props) {
6526
+ return /* @__PURE__ */ React.createElement("svg", _extends$n({
6527
+ xmlns: "http://www.w3.org/2000/svg",
6528
+ width: 20,
6529
+ height: 20,
6530
+ viewBox: "0 0 20 20"
6531
+ }, props), _path$n || (_path$n = /* @__PURE__ */ React.createElement("path", {
6532
+ d: "M13.7412,8.2967 C14.3582,6.6297 14.8392,5.2547 15.1842,4.1687 C15.5292,3.0837 15.7022,2.4177 15.7022,2.1707 C15.7022,1.9047 15.6442,1.6987 15.5292,1.5517 C15.4142,1.4057 15.2562,1.3327 15.0532,1.3327 C14.7962,1.3327 14.5332,1.5457 14.2662,1.9707 C13.9992,2.3967 13.7052,3.0817 13.3832,4.0247 L12.0022,7.9947 L13.7412,8.2967 Z M11.9052,11.9917 C11.5102,11.9737 11.1342,11.9327 10.7802,11.8677 C10.4262,11.8047 10.0872,11.7127 9.7652,11.5937 C9.9122,11.8867 10.0432,12.1797 10.1582,12.4727 C10.2742,12.7657 10.3682,13.0547 10.4422,13.3387 C10.6622,13.0637 10.8952,12.8137 11.1382,12.5887 C11.3832,12.3647 11.6382,12.1657 11.9052,11.9917 L11.9052,11.9917 Z M10.3452,7.8297 L8.8542,3.5437 C8.4672,2.4547 8.1682,1.7427 7.9562,1.4077 C7.7442,1.0737 7.5142,0.9067 7.2662,0.9067 C7.0732,0.9067 6.9162,0.9797 6.7972,1.1267 C6.6772,1.2727 6.6172,1.4697 6.6172,1.7167 C6.6172,2.1387 6.7782,2.8707 7.1002,3.9147 C7.4232,4.9587 7.9062,6.3277 8.5502,8.0217 C8.6052,7.9217 8.6832,7.8507 8.7852,7.8087 C8.8862,7.7677 9.0242,7.7477 9.1992,7.7477 C9.2542,7.7477 9.3652,7.7527 9.5312,7.7607 C9.6962,7.7707 9.9682,7.7937 10.3452,7.8297 L10.3452,7.8297 Z M8.9922,14.4637 C9.1482,14.4637 9.2912,14.3937 9.4202,14.2517 C9.5492,14.1097 9.6132,13.9567 9.6132,13.7917 C9.6132,13.6177 9.4872,13.2127 9.2342,12.5757 C8.9802,11.9397 8.6652,11.3147 8.2882,10.7007 C8.0122,10.2427 7.7402,9.8977 7.4732,9.6637 C7.2062,9.4297 6.9532,9.3137 6.7142,9.3137 C6.5202,9.3137 6.3062,9.4347 6.0722,9.6767 C5.8372,9.9197 5.7202,10.1467 5.7202,10.3577 C5.7202,10.5767 5.8352,10.9067 6.0652,11.3457 C6.2952,11.7857 6.6032,12.2527 6.9902,12.7477 C7.3952,13.2877 7.7772,13.7087 8.1362,14.0107 C8.4952,14.3137 8.7802,14.4637 8.9922,14.4637 L8.9922,14.4637 Z M4.8502,14.1347 C4.9792,14.2907 5.1582,14.5197 5.3882,14.8217 C5.9962,15.6547 6.5572,16.0717 7.0732,16.0717 C7.2472,16.0717 7.4042,16.0167 7.5422,15.9067 C7.6802,15.7967 7.7492,15.6827 7.7492,15.5637 C7.7492,15.4257 7.6572,15.1967 7.4732,14.8767 C7.2892,14.5557 7.0362,14.1947 6.7142,13.7917 C6.3452,13.3247 6.0392,12.9837 5.7962,12.7677 C5.5522,12.5527 5.3562,12.4447 5.2092,12.4447 C4.8872,12.4447 4.5902,12.6167 4.3182,12.9607 C4.0472,13.3037 3.9112,13.7087 3.9112,14.1757 C3.9112,14.5517 4.0052,14.9707 4.1942,15.4327 C4.3832,15.8957 4.6572,16.3597 5.0152,16.8267 C5.5582,17.5507 6.2332,18.1067 7.0382,18.4957 C7.8442,18.8857 8.7342,19.0797 9.7102,19.0797 C11.5052,19.0797 13.0082,18.4137 14.2182,17.0817 C15.4282,15.7487 16.0332,14.0797 16.0332,12.0737 C16.0332,11.4607 15.9872,10.9737 15.8952,10.6107 C15.8042,10.2497 15.6512,9.9857 15.4392,9.8217 C15.0622,9.5097 14.3282,9.2307 13.2372,8.9837 C12.1462,8.7357 11.0082,8.6127 9.8202,8.6127 C9.4892,8.6127 9.2542,8.6677 9.1162,8.7777 C8.9782,8.8877 8.9092,9.0747 8.9092,9.3407 C8.9092,9.9637 9.2592,10.4147 9.9582,10.6937 C10.6582,10.9737 11.7902,11.1127 13.3552,11.1127 L13.9212,11.1127 C14.0502,11.1127 14.1532,11.1607 14.2312,11.2567 C14.3092,11.3527 14.3632,11.4977 14.3902,11.6897 C14.2332,11.8367 13.9122,12.0037 13.4242,12.1917 C12.9362,12.3787 12.5632,12.5647 12.3052,12.7477 C11.7542,13.1507 11.3092,13.6287 10.9732,14.1827 C10.6372,14.7367 10.4692,15.2607 10.4692,15.7557 C10.4692,16.0577 10.5402,16.4217 10.6832,16.8477 C10.8262,17.2737 10.8972,17.5367 10.8972,17.6377 L10.8972,17.7337 L10.8692,17.8577 C10.4652,17.8297 10.1452,17.5937 9.9102,17.1497 C9.6752,16.7057 9.5582,16.1127 9.5582,15.3707 L9.5582,15.2477 C9.4842,15.3117 9.4132,15.3577 9.3442,15.3847 C9.2752,15.4127 9.1992,15.4257 9.1162,15.4257 C9.0332,15.4257 8.9552,15.4197 8.8822,15.4047 C8.8072,15.3917 8.7252,15.3707 8.6332,15.3437 C8.6602,15.4447 8.6812,15.5427 8.6952,15.6387 C8.7092,15.7347 8.7162,15.8107 8.7162,15.8657 C8.7162,16.2047 8.5822,16.4957 8.3152,16.7377 C8.0482,16.9807 7.7312,17.1017 7.3632,17.1017 C6.7832,17.1017 6.1942,16.8197 5.5952,16.2567 C4.9972,15.6937 4.6982,15.1427 4.6982,14.6017 C4.6982,14.5007 4.7102,14.4117 4.7332,14.3337 C4.7552,14.2557 4.7952,14.1897 4.8502,14.1347 L4.8502,14.1347 Z M14.7352,8.5297 C15.5642,8.6867 16.1482,9.0337 16.4892,9.5737 C16.8292,10.1147 17.0002,10.9667 17.0002,12.1297 C17.0002,14.4367 16.3032,16.3257 14.9082,17.7957 C13.5132,19.2647 11.7302,19.9997 9.5582,19.9997 C8.7022,19.9997 7.8712,19.8467 7.0662,19.5397 C6.2602,19.2337 5.5682,18.8047 4.9882,18.2557 C4.3252,17.6507 3.8282,17.0127 3.4972,16.3397 C3.1652,15.6667 3.0002,14.9777 3.0002,14.2727 C3.0002,13.4847 3.1702,12.8757 3.5112,12.4447 C3.8512,12.0147 4.3892,11.7217 5.1262,11.5667 C4.9882,11.2457 4.8872,10.9757 4.8222,10.7557 C4.7582,10.5357 4.7252,10.3667 4.7252,10.2477 C4.7252,9.8357 4.9442,9.4147 5.3822,8.9837 C5.8192,8.5527 6.2312,8.3377 6.6172,8.3377 C6.7832,8.3377 6.9572,8.3677 7.1422,8.4267 C7.3262,8.4867 7.5372,8.5857 7.7772,8.7227 C7.0682,6.7267 6.5532,5.1857 6.2312,4.1007 C5.9082,3.0147 5.7472,2.2667 5.7472,1.8547 C5.7472,1.2867 5.8942,0.8357 6.1892,0.5017 C6.4842,0.1677 6.8842,-0.0003 7.3902,-0.0003 C8.2552,-0.0003 9.3512,1.9227 10.6762,5.7697 C10.9062,6.4287 11.0812,6.9367 11.2012,7.2947 C11.3032,7.0097 11.4452,6.6077 11.6292,6.0857 C12.9552,2.2757 14.0952,0.3707 15.0532,0.3707 C15.5222,0.3707 15.8972,0.5287 16.1792,0.8447 C16.4592,1.1607 16.5992,1.5847 16.5992,2.1157 C16.5992,2.5187 16.4452,3.2557 16.1372,4.3267 C15.8282,5.3987 15.3612,6.7997 14.7352,8.5297 L14.7352,8.5297 Z"
6533
+ })));
6534
+ };
6509
6535
  var _path$m;
6510
6536
  function _extends$m() {
6511
6537
  _extends$m = Object.assign || function(target) {
@@ -6521,14 +6547,14 @@ function _extends$m() {
6521
6547
  };
6522
6548
  return _extends$m.apply(this, arguments);
6523
6549
  }
6524
- var SvgLogoAngellist20 = function SvgLogoAngellist202(props) {
6550
+ var SvgLogoCodepen20 = function SvgLogoCodepen202(props) {
6525
6551
  return /* @__PURE__ */ React.createElement("svg", _extends$m({
6526
6552
  xmlns: "http://www.w3.org/2000/svg",
6527
6553
  width: 20,
6528
6554
  height: 20,
6529
6555
  viewBox: "0 0 20 20"
6530
6556
  }, props), _path$m || (_path$m = /* @__PURE__ */ React.createElement("path", {
6531
- d: "M13.7412,8.2967 C14.3582,6.6297 14.8392,5.2547 15.1842,4.1687 C15.5292,3.0837 15.7022,2.4177 15.7022,2.1707 C15.7022,1.9047 15.6442,1.6987 15.5292,1.5517 C15.4142,1.4057 15.2562,1.3327 15.0532,1.3327 C14.7962,1.3327 14.5332,1.5457 14.2662,1.9707 C13.9992,2.3967 13.7052,3.0817 13.3832,4.0247 L12.0022,7.9947 L13.7412,8.2967 Z M11.9052,11.9917 C11.5102,11.9737 11.1342,11.9327 10.7802,11.8677 C10.4262,11.8047 10.0872,11.7127 9.7652,11.5937 C9.9122,11.8867 10.0432,12.1797 10.1582,12.4727 C10.2742,12.7657 10.3682,13.0547 10.4422,13.3387 C10.6622,13.0637 10.8952,12.8137 11.1382,12.5887 C11.3832,12.3647 11.6382,12.1657 11.9052,11.9917 L11.9052,11.9917 Z M10.3452,7.8297 L8.8542,3.5437 C8.4672,2.4547 8.1682,1.7427 7.9562,1.4077 C7.7442,1.0737 7.5142,0.9067 7.2662,0.9067 C7.0732,0.9067 6.9162,0.9797 6.7972,1.1267 C6.6772,1.2727 6.6172,1.4697 6.6172,1.7167 C6.6172,2.1387 6.7782,2.8707 7.1002,3.9147 C7.4232,4.9587 7.9062,6.3277 8.5502,8.0217 C8.6052,7.9217 8.6832,7.8507 8.7852,7.8087 C8.8862,7.7677 9.0242,7.7477 9.1992,7.7477 C9.2542,7.7477 9.3652,7.7527 9.5312,7.7607 C9.6962,7.7707 9.9682,7.7937 10.3452,7.8297 L10.3452,7.8297 Z M8.9922,14.4637 C9.1482,14.4637 9.2912,14.3937 9.4202,14.2517 C9.5492,14.1097 9.6132,13.9567 9.6132,13.7917 C9.6132,13.6177 9.4872,13.2127 9.2342,12.5757 C8.9802,11.9397 8.6652,11.3147 8.2882,10.7007 C8.0122,10.2427 7.7402,9.8977 7.4732,9.6637 C7.2062,9.4297 6.9532,9.3137 6.7142,9.3137 C6.5202,9.3137 6.3062,9.4347 6.0722,9.6767 C5.8372,9.9197 5.7202,10.1467 5.7202,10.3577 C5.7202,10.5767 5.8352,10.9067 6.0652,11.3457 C6.2952,11.7857 6.6032,12.2527 6.9902,12.7477 C7.3952,13.2877 7.7772,13.7087 8.1362,14.0107 C8.4952,14.3137 8.7802,14.4637 8.9922,14.4637 L8.9922,14.4637 Z M4.8502,14.1347 C4.9792,14.2907 5.1582,14.5197 5.3882,14.8217 C5.9962,15.6547 6.5572,16.0717 7.0732,16.0717 C7.2472,16.0717 7.4042,16.0167 7.5422,15.9067 C7.6802,15.7967 7.7492,15.6827 7.7492,15.5637 C7.7492,15.4257 7.6572,15.1967 7.4732,14.8767 C7.2892,14.5557 7.0362,14.1947 6.7142,13.7917 C6.3452,13.3247 6.0392,12.9837 5.7962,12.7677 C5.5522,12.5527 5.3562,12.4447 5.2092,12.4447 C4.8872,12.4447 4.5902,12.6167 4.3182,12.9607 C4.0472,13.3037 3.9112,13.7087 3.9112,14.1757 C3.9112,14.5517 4.0052,14.9707 4.1942,15.4327 C4.3832,15.8957 4.6572,16.3597 5.0152,16.8267 C5.5582,17.5507 6.2332,18.1067 7.0382,18.4957 C7.8442,18.8857 8.7342,19.0797 9.7102,19.0797 C11.5052,19.0797 13.0082,18.4137 14.2182,17.0817 C15.4282,15.7487 16.0332,14.0797 16.0332,12.0737 C16.0332,11.4607 15.9872,10.9737 15.8952,10.6107 C15.8042,10.2497 15.6512,9.9857 15.4392,9.8217 C15.0622,9.5097 14.3282,9.2307 13.2372,8.9837 C12.1462,8.7357 11.0082,8.6127 9.8202,8.6127 C9.4892,8.6127 9.2542,8.6677 9.1162,8.7777 C8.9782,8.8877 8.9092,9.0747 8.9092,9.3407 C8.9092,9.9637 9.2592,10.4147 9.9582,10.6937 C10.6582,10.9737 11.7902,11.1127 13.3552,11.1127 L13.9212,11.1127 C14.0502,11.1127 14.1532,11.1607 14.2312,11.2567 C14.3092,11.3527 14.3632,11.4977 14.3902,11.6897 C14.2332,11.8367 13.9122,12.0037 13.4242,12.1917 C12.9362,12.3787 12.5632,12.5647 12.3052,12.7477 C11.7542,13.1507 11.3092,13.6287 10.9732,14.1827 C10.6372,14.7367 10.4692,15.2607 10.4692,15.7557 C10.4692,16.0577 10.5402,16.4217 10.6832,16.8477 C10.8262,17.2737 10.8972,17.5367 10.8972,17.6377 L10.8972,17.7337 L10.8692,17.8577 C10.4652,17.8297 10.1452,17.5937 9.9102,17.1497 C9.6752,16.7057 9.5582,16.1127 9.5582,15.3707 L9.5582,15.2477 C9.4842,15.3117 9.4132,15.3577 9.3442,15.3847 C9.2752,15.4127 9.1992,15.4257 9.1162,15.4257 C9.0332,15.4257 8.9552,15.4197 8.8822,15.4047 C8.8072,15.3917 8.7252,15.3707 8.6332,15.3437 C8.6602,15.4447 8.6812,15.5427 8.6952,15.6387 C8.7092,15.7347 8.7162,15.8107 8.7162,15.8657 C8.7162,16.2047 8.5822,16.4957 8.3152,16.7377 C8.0482,16.9807 7.7312,17.1017 7.3632,17.1017 C6.7832,17.1017 6.1942,16.8197 5.5952,16.2567 C4.9972,15.6937 4.6982,15.1427 4.6982,14.6017 C4.6982,14.5007 4.7102,14.4117 4.7332,14.3337 C4.7552,14.2557 4.7952,14.1897 4.8502,14.1347 L4.8502,14.1347 Z M14.7352,8.5297 C15.5642,8.6867 16.1482,9.0337 16.4892,9.5737 C16.8292,10.1147 17.0002,10.9667 17.0002,12.1297 C17.0002,14.4367 16.3032,16.3257 14.9082,17.7957 C13.5132,19.2647 11.7302,19.9997 9.5582,19.9997 C8.7022,19.9997 7.8712,19.8467 7.0662,19.5397 C6.2602,19.2337 5.5682,18.8047 4.9882,18.2557 C4.3252,17.6507 3.8282,17.0127 3.4972,16.3397 C3.1652,15.6667 3.0002,14.9777 3.0002,14.2727 C3.0002,13.4847 3.1702,12.8757 3.5112,12.4447 C3.8512,12.0147 4.3892,11.7217 5.1262,11.5667 C4.9882,11.2457 4.8872,10.9757 4.8222,10.7557 C4.7582,10.5357 4.7252,10.3667 4.7252,10.2477 C4.7252,9.8357 4.9442,9.4147 5.3822,8.9837 C5.8192,8.5527 6.2312,8.3377 6.6172,8.3377 C6.7832,8.3377 6.9572,8.3677 7.1422,8.4267 C7.3262,8.4867 7.5372,8.5857 7.7772,8.7227 C7.0682,6.7267 6.5532,5.1857 6.2312,4.1007 C5.9082,3.0147 5.7472,2.2667 5.7472,1.8547 C5.7472,1.2867 5.8942,0.8357 6.1892,0.5017 C6.4842,0.1677 6.8842,-0.0003 7.3902,-0.0003 C8.2552,-0.0003 9.3512,1.9227 10.6762,5.7697 C10.9062,6.4287 11.0812,6.9367 11.2012,7.2947 C11.3032,7.0097 11.4452,6.6077 11.6292,6.0857 C12.9552,2.2757 14.0952,0.3707 15.0532,0.3707 C15.5222,0.3707 15.8972,0.5287 16.1792,0.8447 C16.4592,1.1607 16.5992,1.5847 16.5992,2.1157 C16.5992,2.5187 16.4452,3.2557 16.1372,4.3267 C15.8282,5.3987 15.3612,6.7997 14.7352,8.5297 L14.7352,8.5297 Z"
6557
+ d: "M18.281,11.4383 L16.132,10.0003 L18.281,8.5623 L18.281,11.4383 Z M10.859,17.5343 L10.859,13.5263 L14.586,11.0343 L17.594,13.0453 L10.859,17.5343 Z M10,12.0333 L6.961,10.0003 L10,7.9663 L13.04,10.0003 L10,12.0333 Z M9.141,17.5343 L2.407,13.0453 L5.415,11.0343 L9.141,13.5263 L9.141,17.5343 Z M1.719,8.5623 L3.869,10.0003 L1.719,11.4383 L1.719,8.5623 Z M9.141,2.4653 L9.141,6.4743 L5.415,8.9663 L2.407,6.9543 L9.141,2.4653 Z M10.859,2.4653 L17.594,6.9543 L14.586,8.9663 L10.859,6.4743 L10.859,2.4653 Z M19.985,6.8033 C19.944,6.5803 19.812,6.3603 19.617,6.2383 L10.477,0.1443 C10.188,-0.0477 9.812,-0.0477 9.523,0.1443 L0.383,6.2383 C0.148,6.3943 0,6.6713 0,6.9533 L0,13.0463 C0,13.3283 0.148,13.6063 0.383,13.7613 L9.523,19.8553 C9.668,19.9523 9.834,20.0003 10,20.0003 C10.167,20.0003 10.333,19.9523 10.477,19.8553 L19.617,13.7613 C19.854,13.6133 20,13.3233 20,13.0463 L20,6.9533 C20.001,6.9023 19.996,6.8533 19.985,6.8033 L19.985,6.8033 Z"
6532
6558
  })));
6533
6559
  };
6534
6560
  var _path$l;
@@ -6546,14 +6572,14 @@ function _extends$l() {
6546
6572
  };
6547
6573
  return _extends$l.apply(this, arguments);
6548
6574
  }
6549
- var SvgLogoCodepen20 = function SvgLogoCodepen202(props) {
6575
+ var SvgLogoDiscord20 = function SvgLogoDiscord202(props) {
6550
6576
  return /* @__PURE__ */ React.createElement("svg", _extends$l({
6551
- xmlns: "http://www.w3.org/2000/svg",
6552
6577
  width: 20,
6553
6578
  height: 20,
6554
- viewBox: "0 0 20 20"
6579
+ viewBox: "0 0 20 20",
6580
+ xmlns: "http://www.w3.org/2000/svg"
6555
6581
  }, props), _path$l || (_path$l = /* @__PURE__ */ React.createElement("path", {
6556
- d: "M18.281,11.4383 L16.132,10.0003 L18.281,8.5623 L18.281,11.4383 Z M10.859,17.5343 L10.859,13.5263 L14.586,11.0343 L17.594,13.0453 L10.859,17.5343 Z M10,12.0333 L6.961,10.0003 L10,7.9663 L13.04,10.0003 L10,12.0333 Z M9.141,17.5343 L2.407,13.0453 L5.415,11.0343 L9.141,13.5263 L9.141,17.5343 Z M1.719,8.5623 L3.869,10.0003 L1.719,11.4383 L1.719,8.5623 Z M9.141,2.4653 L9.141,6.4743 L5.415,8.9663 L2.407,6.9543 L9.141,2.4653 Z M10.859,2.4653 L17.594,6.9543 L14.586,8.9663 L10.859,6.4743 L10.859,2.4653 Z M19.985,6.8033 C19.944,6.5803 19.812,6.3603 19.617,6.2383 L10.477,0.1443 C10.188,-0.0477 9.812,-0.0477 9.523,0.1443 L0.383,6.2383 C0.148,6.3943 0,6.6713 0,6.9533 L0,13.0463 C0,13.3283 0.148,13.6063 0.383,13.7613 L9.523,19.8553 C9.668,19.9523 9.834,20.0003 10,20.0003 C10.167,20.0003 10.333,19.9523 10.477,19.8553 L19.617,13.7613 C19.854,13.6133 20,13.3233 20,13.0463 L20,6.9533 C20.001,6.9023 19.996,6.8533 19.985,6.8033 L19.985,6.8033 Z"
6582
+ d: "M16.918 3.742a16.52 16.52 0 0 0-4.068-1.24.06.06 0 0 0-.065.03 11.12 11.12 0 0 0-.506 1.022 15.401 15.401 0 0 0-4.569 0 9.946 9.946 0 0 0-.515-1.022.059.059 0 0 0-.065-.03A16.586 16.586 0 0 0 3.046 3.75a.045.045 0 0 0-.011.014C.445 7.573-.265 11.287.082 14.957a.074.074 0 0 0 .028.047 16.708 16.708 0 0 0 4.988 2.493.065.065 0 0 0 .07-.022c.388-.52.73-1.07 1.025-1.645a.06.06 0 0 0 .003-.05.061.061 0 0 0-.037-.036 11.399 11.399 0 0 1-1.56-.731.063.063 0 0 1 0-.106l.31-.238a.057.057 0 0 1 .065 0 11.983 11.983 0 0 0 10.043 0 .06.06 0 0 1 .065 0c.101.083.206.164.31.241a.064.064 0 0 1 .028.053.063.063 0 0 1-.028.052c-.498.286-1.02.53-1.56.729a.067.067 0 0 0-.035.037.065.065 0 0 0 .002.051c.3.569.642 1.115 1.021 1.635a.065.065 0 0 0 .07.022 16.64 16.64 0 0 0 4.997-2.493.055.055 0 0 0 .026-.047 16.305 16.305 0 0 0-2.978-11.196.045.045 0 0 0-.017-.01ZM6.68 12.725c-.985 0-1.796-.892-1.796-1.983 0-1.092.794-1.986 1.796-1.986s1.81.897 1.796 1.983c-.014 1.085-.797 1.986-1.796 1.986Zm6.64 0c-.985 0-1.796-.892-1.796-1.983 0-1.092.794-1.986 1.796-1.986s1.81.897 1.796 1.983c-.014 1.085-.788 1.986-1.796 1.986Z"
6557
6583
  })));
6558
6584
  };
6559
6585
  var _path$k;
@@ -7066,6 +7092,11 @@ const SocialLinksOptions = [{
7066
7092
  label: "CodePen",
7067
7093
  icon: /* @__PURE__ */ jsx(SvgLogoCodepen20, {}),
7068
7094
  brandColor: "black"
7095
+ }, {
7096
+ type: "discord",
7097
+ label: "Discord",
7098
+ icon: /* @__PURE__ */ jsx(SvgLogoDiscord20, {}),
7099
+ brandColor: "#5865F2"
7069
7100
  }, {
7070
7101
  type: "dribbble",
7071
7102
  label: "Dribbble",
@@ -8815,9 +8846,19 @@ function useColorValue(data, definition) {
8815
8846
  function useComboboxControlValue(data) {
8816
8847
  return data == null ? void 0 : data.value;
8817
8848
  }
8818
- function useImageControlValue(data) {
8849
+ function useImageControlValue(data, definition) {
8819
8850
  var _a;
8820
- return (_a = useFile(data)) == null ? void 0 : _a.publicUrl;
8851
+ const format = (_a = definition.config.format) != null ? _a : ImageControlValueFormat.URL;
8852
+ const file = useFile(data);
8853
+ if (format === ImageControlValueFormat.URL) {
8854
+ return file == null ? void 0 : file.publicUrl;
8855
+ }
8856
+ if (file == null || file.dimensions == null)
8857
+ return void 0;
8858
+ return {
8859
+ url: file.publicUrl,
8860
+ dimensions: { width: file.dimensions.width, height: file.dimensions.height }
8861
+ };
8821
8862
  }
8822
8863
  function ListControlValue({
8823
8864
  definition,
@@ -8900,7 +8941,7 @@ function ControlValue({
8900
8941
  case ImageControlType:
8901
8942
  return /* @__PURE__ */ jsx(RenderHook, {
8902
8943
  hook: useImageControlValue,
8903
- parameters: [data],
8944
+ parameters: [data, definition],
8904
8945
  children: (value) => children(value)
8905
8946
  }, definition.type);
8906
8947
  case ComboboxControlType: