unframer 2.24.2 → 2.24.4
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/cli.d.ts +1 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +10 -30
- package/dist/cli.js.map +1 -1
- package/dist/css.d.ts.map +1 -1
- package/dist/esbuild.d.ts +1 -1
- package/dist/esbuild.d.ts.map +1 -1
- package/dist/esbuild.js +17 -13
- package/dist/esbuild.js.map +1 -1
- package/dist/exporter.d.ts.map +1 -1
- package/dist/exporter.js +4 -1
- package/dist/exporter.js.map +1 -1
- package/dist/framer.d.ts.map +1 -1
- package/dist/framer.js +20 -11
- package/dist/framer.js.map +1 -1
- package/dist/react.d.ts.map +1 -1
- package/dist/sentry.d.ts +2 -0
- package/dist/sentry.d.ts.map +1 -0
- package/dist/sentry.js +23 -0
- package/dist/sentry.js.map +1 -0
- package/dist/utils.d.ts +16 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +23 -3
- package/dist/utils.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/esm/cli.d.ts +1 -0
- package/esm/cli.d.ts.map +1 -1
- package/esm/cli.js +10 -30
- package/esm/cli.js.map +1 -1
- package/esm/css.d.ts.map +1 -1
- package/esm/esbuild.d.ts +1 -1
- package/esm/esbuild.d.ts.map +1 -1
- package/esm/esbuild.js +13 -6
- package/esm/esbuild.js.map +1 -1
- package/esm/exporter.d.ts.map +1 -1
- package/esm/exporter.js +4 -1
- package/esm/exporter.js.map +1 -1
- package/esm/framer.d.ts.map +1 -1
- package/esm/framer.js +20 -11
- package/esm/framer.js.map +1 -1
- package/esm/react.d.ts.map +1 -1
- package/esm/sentry.d.ts +2 -0
- package/esm/sentry.d.ts.map +1 -0
- package/esm/sentry.js +20 -0
- package/esm/sentry.js.map +1 -0
- package/esm/utils.d.ts +16 -1
- package/esm/utils.d.ts.map +1 -1
- package/esm/utils.js +22 -2
- package/esm/utils.js.map +1 -1
- package/esm/version.d.ts +1 -1
- package/esm/version.js +1 -1
- package/package.json +5 -4
- package/src/cli.tsx +13 -31
- package/src/esbuild.ts +16 -7
- package/src/exporter.ts +4 -1
- package/src/framer.js +40 -11
- package/src/sentry.ts +23 -0
- package/src/utils.ts +28 -2
- package/src/version.ts +1 -1
package/dist/framer.js
CHANGED
|
@@ -10017,7 +10017,7 @@ function steps(numSteps, direction = 'end') {
|
|
|
10017
10017
|
return clamp(0, 1, rounded / numSteps);
|
|
10018
10018
|
};
|
|
10019
10019
|
}
|
|
10020
|
-
// /:https://app.framerstatic.com/framer.
|
|
10020
|
+
// /:https://app.framerstatic.com/framer.J6CEE64J.mjs
|
|
10021
10021
|
const react_11 = __importDefault(require("react"));
|
|
10022
10022
|
const react_12 = require("react");
|
|
10023
10023
|
const react_13 = require("react");
|
|
@@ -18037,6 +18037,7 @@ var ControlType = /* @__PURE__ */ ((ControlType2) => {
|
|
|
18037
18037
|
ControlType2['Cursor'] = 'cursor';
|
|
18038
18038
|
ControlType2['Padding'] = 'padding';
|
|
18039
18039
|
ControlType2['BorderRadius'] = 'borderradius';
|
|
18040
|
+
ControlType2['Gap'] = 'gap';
|
|
18040
18041
|
ControlType2['CollectionReference'] = 'collectionreference';
|
|
18041
18042
|
ControlType2['MultiCollectionReference'] = 'multicollectionreference';
|
|
18042
18043
|
ControlType2['TrackingId'] = 'trackingid';
|
|
@@ -18485,6 +18486,9 @@ var inputIconCSSDeclaration = {
|
|
|
18485
18486
|
function createRGBVariableFallbacks(variables, fallback) {
|
|
18486
18487
|
return css.variable(...variables.flatMap((variable) => [`${variable}-rgb`, variable,]), fallback);
|
|
18487
18488
|
}
|
|
18489
|
+
function createFontSizeVariableFallbacks(variables, fallback) {
|
|
18490
|
+
return css.variable(...variables.flatMap((variable) => [`${variable}-canvas`, variable,]), fallback);
|
|
18491
|
+
}
|
|
18488
18492
|
var richTextCSSRules = /* @__PURE__ */ (() => [
|
|
18489
18493
|
/* css */
|
|
18490
18494
|
`
|
|
@@ -18520,7 +18524,7 @@ var richTextCSSRules = /* @__PURE__ */ (() => [
|
|
|
18520
18524
|
font-style: var(--framer-blockquote-font-style, var(--framer-font-style, normal));
|
|
18521
18525
|
font-weight: var(--framer-blockquote-font-weight, var(--framer-font-weight, 400));
|
|
18522
18526
|
color: var(--framer-blockquote-text-color, var(--framer-text-color, #000));
|
|
18523
|
-
font-size: calc(var(--framer-blockquote-font-size,
|
|
18527
|
+
font-size: calc(var(--framer-blockquote-font-size, ${createFontSizeVariableFallbacks(['--framer-font-size',], '16px')}) * var(--framer-font-size-scale, 1));
|
|
18524
18528
|
letter-spacing: var(--framer-blockquote-letter-spacing, var(--framer-letter-spacing, 0));
|
|
18525
18529
|
text-transform: var(--framer-blockquote-text-transform, var(--framer-text-transform, none));
|
|
18526
18530
|
text-decoration: var(--framer-blockquote-text-decoration, var(--framer-text-decoration, none));
|
|
@@ -18639,7 +18643,7 @@ var richTextCSSRules = /* @__PURE__ */ (() => [
|
|
|
18639
18643
|
font-style: var(--framer-blockquote-font-style, var(--framer-code-font-style, var(--framer-font-style, normal)));
|
|
18640
18644
|
font-weight: var(--framer-blockquote-font-weight, var(--framer-code-font-weight, var(--framer-font-weight, 400)));
|
|
18641
18645
|
color: var(--framer-blockquote-text-color, var(--framer-code-text-color, var(--framer-text-color, #000)));
|
|
18642
|
-
font-size: calc(var(--framer-blockquote-font-size,
|
|
18646
|
+
font-size: calc(var(--framer-blockquote-font-size, ${createFontSizeVariableFallbacks(['--framer-font-size',], '16px')}) * var(--framer-font-size-scale, 1));
|
|
18643
18647
|
letter-spacing: var(--framer-blockquote-letter-spacing, var(--framer-letter-spacing, 0));
|
|
18644
18648
|
line-height: var(--framer-blockquote-line-height, var(--framer-line-height, 1.2em));
|
|
18645
18649
|
}
|
|
@@ -18670,7 +18674,7 @@ var richTextCSSRules = /* @__PURE__ */ (() => [
|
|
|
18670
18674
|
font-style: var(--framer-blockquote-font-style, var(--framer-link-font-style, var(--framer-font-style, normal)));
|
|
18671
18675
|
font-weight: var(--framer-blockquote-font-weight, var(--framer-link-font-weight, var(--framer-font-weight, 400)));
|
|
18672
18676
|
color: var(--framer-blockquote-text-color, var(--framer-link-text-color, var(--framer-text-color, #000)));
|
|
18673
|
-
font-size: calc(var(--framer-blockquote-font-size,
|
|
18677
|
+
font-size: calc(var(--framer-blockquote-font-size, ${createFontSizeVariableFallbacks(['--framer-font-size',], '16px')}) * var(--framer-font-size-scale, 1));
|
|
18674
18678
|
text-transform: var(--framer-blockquote-text-transform, var(--framer-link-text-transform, var(--framer-text-transform, none)));
|
|
18675
18679
|
text-decoration: var(--framer-blockquote-text-decoration, var(--framer-link-text-decoration, var(--framer-text-decoration, none)));
|
|
18676
18680
|
/* Cursor inherit to overwrite the user agent stylesheet on rich text links. */
|
|
@@ -18696,7 +18700,7 @@ var richTextCSSRules = /* @__PURE__ */ (() => [
|
|
|
18696
18700
|
font-style: var(--framer-blockquote-font-style, var(--framer-code-font-style, var(--framer-font-style, normal)));
|
|
18697
18701
|
font-weight: var(--framer-blockquote-font-weight, var(--framer-code-font-weight, var(--framer-font-weight, 400)));
|
|
18698
18702
|
color: var(--framer-blockquote-text-color, var(--framer-link-text-color, var(--framer-code-text-color, var(--framer-text-color, #000))));
|
|
18699
|
-
font-size: calc(var(--framer-blockquote-font-size,
|
|
18703
|
+
font-size: calc(var(--framer-blockquote-font-size, ${createFontSizeVariableFallbacks(['--framer-font-size',], '16px')}) * var(--framer-font-size-scale, 1));
|
|
18700
18704
|
}
|
|
18701
18705
|
`, /* css */
|
|
18702
18706
|
`
|
|
@@ -18723,7 +18727,7 @@ var richTextCSSRules = /* @__PURE__ */ (() => [
|
|
|
18723
18727
|
font-style: var(--framer-link-hover-font-style, var(--framer-blockquote-font-style, var(--framer-link-font-style, var(--framer-font-style, normal))));
|
|
18724
18728
|
font-weight: var(--framer-link-hover-font-weight, var(--framer-blockquote-font-weight, var(--framer-link-font-weight, var(--framer-font-weight, 400))));
|
|
18725
18729
|
color: var(--framer-link-hover-text-color, var(--framer-blockquote-text-color, var(--framer-link-text-color, var(--framer-text-color, #000))));
|
|
18726
|
-
font-size: calc(var(--framer-link-hover-font-size, var(--framer-blockquote-font-size,
|
|
18730
|
+
font-size: calc(var(--framer-link-hover-font-size, var(--framer-blockquote-font-size, ${createFontSizeVariableFallbacks(['--framer-font-size',], '16px')})) * var(--framer-font-size-scale, 1));
|
|
18727
18731
|
text-transform: var(--framer-link-hover-text-transform, var(--framer-blockquote-text-transform, var(--framer-link-text-transform, var(--framer-text-transform, none))));
|
|
18728
18732
|
text-decoration: var(--framer-link-hover-text-decoration, var(--framer-blockquote-text-decoration, var(--framer-link-text-decoration, var(--framer-text-decoration, none))));
|
|
18729
18733
|
}
|
|
@@ -18752,7 +18756,7 @@ var richTextCSSRules = /* @__PURE__ */ (() => [
|
|
|
18752
18756
|
font-style: var(--framer-blockquote-font-style, var(--framer-code-font-style, var(--framer-font-style, normal)));
|
|
18753
18757
|
font-weight: var(--framer-blockquote-font-weight, var(--framer-code-font-weight, var(--framer-font-weight, 400)));
|
|
18754
18758
|
color: var(--framer-link-hover-text-color, var(--framer-blockquote-text-color, var(--framer-link-text-color, var(--framer-code-text-color, var(--framer-text-color, #000)))));
|
|
18755
|
-
font-size: calc(var(--framer-link-hover-font-size, var(--framer-blockquote-font-size, var(--framer-link-font-size,
|
|
18759
|
+
font-size: calc(var(--framer-link-hover-font-size, var(--framer-blockquote-font-size, var(--framer-link-font-size, ${createFontSizeVariableFallbacks(['--framer-font-size',], '16px')}))) * var(--framer-font-size-scale, 1));
|
|
18756
18760
|
}
|
|
18757
18761
|
`, /* css */
|
|
18758
18762
|
`
|
|
@@ -18779,7 +18783,7 @@ var richTextCSSRules = /* @__PURE__ */ (() => [
|
|
|
18779
18783
|
font-style: var(--framer-link-current-font-style, var(--framer-link-font-style, var(--framer-font-style, normal)));
|
|
18780
18784
|
font-weight: var(--framer-link-current-font-weight, var(--framer-link-font-weight, var(--framer-font-weight, 400)));
|
|
18781
18785
|
color: var(--framer-link-current-text-color, var(--framer-link-text-color, var(--framer-text-color, #000)));
|
|
18782
|
-
font-size: calc(var(--framer-link-current-font-size, var(--framer-link-font-size,
|
|
18786
|
+
font-size: calc(var(--framer-link-current-font-size, var(--framer-link-font-size, ${createFontSizeVariableFallbacks(['--framer-font-size',], '16px')})) * var(--framer-font-size-scale, 1));
|
|
18783
18787
|
text-transform: var(--framer-link-current-text-transform, var(--framer-link-text-transform, var(--framer-text-transform, none)));
|
|
18784
18788
|
text-decoration: var(--framer-link-current-text-decoration, var(--framer-link-text-decoration, var(--framer-text-decoration, none)));
|
|
18785
18789
|
}
|
|
@@ -18803,7 +18807,7 @@ var richTextCSSRules = /* @__PURE__ */ (() => [
|
|
|
18803
18807
|
font-style: var(--framer-code-font-style, var(--framer-font-style, normal));
|
|
18804
18808
|
font-weight: var(--framer-code-font-weight, var(--framer-font-weight, 400));
|
|
18805
18809
|
color: var(--framer-link-current-text-color, var(--framer-link-text-color, var(--framer-code-text-color, var(--framer-text-color, #000))));
|
|
18806
|
-
font-size: calc(var(--framer-link-current-font-size, var(--framer-link-font-size,
|
|
18810
|
+
font-size: calc(var(--framer-link-current-font-size, var(--framer-link-font-size, ${createFontSizeVariableFallbacks(['--framer-font-size',], '16px')})) * var(--framer-font-size-scale, 1));
|
|
18807
18811
|
}
|
|
18808
18812
|
`, /* css */
|
|
18809
18813
|
`
|
|
@@ -18830,7 +18834,7 @@ var richTextCSSRules = /* @__PURE__ */ (() => [
|
|
|
18830
18834
|
font-style: var(--framer-link-hover-font-style, var(--framer-link-current-font-style, var(--framer-link-font-style, var(--framer-font-style, normal))));
|
|
18831
18835
|
font-weight: var(--framer-link-hover-font-weight, var(--framer-link-current-font-weight, var(--framer-link-font-weight, var(--framer-font-weight, 400))));
|
|
18832
18836
|
color: var(--framer-link-hover-text-color, var(--framer-link-current-text-color, var(--framer-link-text-color, var(--framer-text-color, #000))));
|
|
18833
|
-
font-size: calc(var(--framer-link-hover-font-size, var(--framer-link-current-font-size, var(--framer-link-font-size,
|
|
18837
|
+
font-size: calc(var(--framer-link-hover-font-size, var(--framer-link-current-font-size, var(--framer-link-font-size, ${createFontSizeVariableFallbacks(['--framer-font-size',], '16px')}))) * var(--framer-font-size-scale, 1));
|
|
18834
18838
|
text-transform: var(--framer-link-hover-text-transform, var(--framer-link-current-text-transform, var(--framer-link-text-transform, var(--framer-text-transform, none))));
|
|
18835
18839
|
text-decoration: var(--framer-link-hover-text-decoration, var(--framer-link-current-text-decoration, var(--framer-link-text-decoration, var(--framer-text-decoration, none))));
|
|
18836
18840
|
}
|
|
@@ -18860,7 +18864,7 @@ var richTextCSSRules = /* @__PURE__ */ (() => [
|
|
|
18860
18864
|
font-style: var(--framer-code-font-style, var(--framer-font-style, normal));
|
|
18861
18865
|
font-weight: var(--framer-code-font-weight, var(--framer-font-weight, 400));
|
|
18862
18866
|
color: var(--framer-link-hover-text-color, var(--framer-link-current-text-color, var(--framer-link-text-color, var(--framer-code-text-color, var(--framer-text-color, #000)))));
|
|
18863
|
-
font-size: calc(var(--framer-link-hover-font-size, var(--framer-link-current-font-size, var(--framer-link-font-size,
|
|
18867
|
+
font-size: calc(var(--framer-link-hover-font-size, var(--framer-link-current-font-size, var(--framer-link-font-size, ${createFontSizeVariableFallbacks(['--framer-font-size',], '16px')}))) * var(--framer-font-size-scale, 1));
|
|
18864
18868
|
}
|
|
18865
18869
|
`, /* css */
|
|
18866
18870
|
`
|
|
@@ -19394,6 +19398,7 @@ function getControlDefaultValue(control) {
|
|
|
19394
19398
|
case 'boxshadow':
|
|
19395
19399
|
case 'padding':
|
|
19396
19400
|
case 'borderradius':
|
|
19401
|
+
case 'gap':
|
|
19397
19402
|
return isString(control.defaultValue) ? control.defaultValue : void 0;
|
|
19398
19403
|
case 'boolean':
|
|
19399
19404
|
return isBoolean(control.defaultValue) ? control.defaultValue : void 0;
|
|
@@ -41237,6 +41242,10 @@ var variantsNameToWeight = {
|
|
|
41237
41242
|
'solid-regular': 700,
|
|
41238
41243
|
'solid-medium': 800,
|
|
41239
41244
|
'solid-bold': 900,
|
|
41245
|
+
// The following variants are only used in the Tecnica font.
|
|
41246
|
+
// We assign them different (fake) weights to ensure that the changes are picked up when switching between variants.
|
|
41247
|
+
'53': 400,
|
|
41248
|
+
'55': 600,
|
|
41240
41249
|
// we want to put variable fonts last
|
|
41241
41250
|
variable: 1e3,
|
|
41242
41251
|
'variable-italic': 1e3,
|