unframer 2.24.2 → 2.24.3

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.
@@ -1 +1 @@
1
- {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../src/react.tsx"],"names":[],"mappings":"AAGA,OAAO,EACH,wBAAwB,EACxB,aAAa,EAMhB,MAAM,OAAO,CAAA;AACd,OAAO,EAEH,sBAAsB,EAEzB,MAAM,UAAU,CAAA;AAYjB,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,sBAAsB,CAAA;AA8BpE;;GAEG;AACH,wBAAgB,YAAY,CAAC,EAAE,UAAwB,EAAE;;CAAA,GAAG,GAAG,CAmD9D;AAED,eAAO,MAAM,qBAAqB,GAC9B,CAAC,SAAS,aAAa,CAAC;IAAE,OAAO,CAAC,EAAE,GAAG,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,EAChE,mDAIC;IACC,SAAS,EAAE,CAAC,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAC,kBAAkB,EAAE,wBAAwB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAA;CAC/E,GAAG,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,KAAG,GA6ElD,CAAA;AAsBD,OAAO,KAAK,MAAM,OAAO,CAAA;AAsCzB,wBAAgB,mBAAmB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE;;;CAAA,OAGtD;AAQD,wBAAgB,WAAW,CAAC,EACxB,IAAI,EACJ,MAAM,EACN,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,GAAG,IAAI,EACV;;;;;;;CAAA,8CA4CA;AAED,wBAAgB,gBAAgB,CAAC,EAC7B,MAAM,EAAE,OAAO,EACf,QAAQ,EACR,YAAY,EACZ,MAAM,EAEN,OAAO,GACV;;;;;;CAAA,8CA6BA;AAyBD,KAAK,qBAAqB,GAAG;IACzB,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC5B,CAAA;AAMD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,8CAM5D"}
1
+ {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../src/react.tsx"],"names":[],"mappings":"AAGA,OAAO,EACH,wBAAwB,EACxB,aAAa,EAMhB,MAAM,OAAO,CAAA;AACd,OAAO,EAEH,sBAAsB,EAEzB,MAAM,UAAU,CAAA;AAYjB,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,sBAAsB,CAAA;AA8BpE;;GAEG;AACH,wBAAgB,YAAY,CAAC,EAAE,UAAwB,EAAE;;CAAA,GAAG,GAAG,CAmD9D;AAED,eAAO,MAAM,qBAAqB,GAC9B,CAAC,SAAS,aAAa,CAAC;IAAE,OAAO,CAAC,EAAE,GAAG,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,qDAK/D;IACC,SAAS,EAAE,CAAC,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAC,kBAAkB,EAAE,wBAAwB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAA;CAC/E,GAAG,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,KAAG,GA6ElD,CAAA;AAsBD,OAAO,KAAK,MAAM,OAAO,CAAA;AAsCzB,wBAAgB,mBAAmB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE;;;CAAA,OAGtD;AAQD,wBAAgB,WAAW,CAAC,EACxB,IAAI,EACJ,MAAM,EACN,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,GAAG,IAAI,EACV;;;;;;;CAAA,8CA4CA;AAED,wBAAgB,gBAAgB,CAAC,EAC7B,MAAM,EAAE,OAAO,EACf,QAAQ,EACR,YAAY,EACZ,MAAM,EAEN,OAAO,GACV;;;;;;CAAA,8CA6BA;AAyBD,KAAK,qBAAqB,GAAG;IACzB,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC5B,CAAA;AAMD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,8CAM5D"}
@@ -0,0 +1,2 @@
1
+ export declare function notifyError(error: any, msg?: string): Promise<void>;
2
+ //# sourceMappingURL=sentry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sentry.d.ts","sourceRoot":"","sources":["../src/sentry.ts"],"names":[],"mappings":"AAaA,wBAAsB,WAAW,CAAC,KAAK,KAAA,EAAE,GAAG,CAAC,EAAE,MAAM,iBAIpD"}
package/esm/sentry.js ADDED
@@ -0,0 +1,16 @@
1
+ import * as Sentry from '@sentry/node';
2
+ Sentry.init({
3
+ dsn: 'https://67125acb9a41f616144a07c90a16775e@o4508014272446464.ingest.de.sentry.io/4509202968674384',
4
+ beforeSend(event) {
5
+ if (event?.['name'] === 'AbortError') {
6
+ return null;
7
+ }
8
+ return event;
9
+ },
10
+ });
11
+ export async function notifyError(error, msg) {
12
+ console.error(msg, error);
13
+ Sentry.captureException(error, { extra: { msg } });
14
+ await Sentry.flush(1000); // delivery timeout in ms
15
+ }
16
+ //# sourceMappingURL=sentry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sentry.js","sourceRoot":"","sources":["../src/sentry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,cAAc,CAAA;AAEtC,MAAM,CAAC,IAAI,CAAC;IACR,GAAG,EAAE,iGAAiG;IACtG,UAAU,CAAC,KAAK;QACZ,IAAI,KAAK,EAAE,CAAC,MAAM,CAAC,KAAK,YAAY,EAAE,CAAC;YACnC,OAAO,IAAI,CAAA;QACf,CAAC;QAED,OAAO,KAAK,CAAA;IAChB,CAAC;CACJ,CAAC,CAAA;AAEF,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,KAAK,EAAE,GAAY;IACjD,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;IACzB,MAAM,CAAC,gBAAgB,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAAA;IAClD,MAAM,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA,CAAC,yBAAyB;AACtD,CAAC"}
package/esm/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const version = "2.24.2";
1
+ export declare const version = "2.24.3";
2
2
  //# sourceMappingURL=version.d.ts.map
package/esm/version.js CHANGED
@@ -1,2 +1,2 @@
1
- export const version = '2.24.2';
1
+ export const version = '2.24.3';
2
2
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unframer",
3
- "version": "2.24.2",
3
+ "version": "2.24.3",
4
4
  "description": "Import Framer components directly in your React app, type safe and customizable",
5
5
  "sideEffects": false,
6
6
  "repository": "https://github.com/remorses/unframer",
@@ -42,6 +42,7 @@
42
42
  "node": ">=18.0.0"
43
43
  },
44
44
  "dependencies": {
45
+ "@sentry/node": "^9.13.0",
45
46
  "async-sema": "^3.1.1",
46
47
  "cac": "^6.7.14",
47
48
  "esbuild": "^0.24.2",
package/src/cli.tsx CHANGED
@@ -1,4 +1,5 @@
1
1
  import { setMaxListeners } from 'events'
2
+ import './sentry.js'
2
3
  import JSON from 'json5'
3
4
  import { bundle, StyleToken } from './exporter.js'
4
5
  import { createClient } from './generated/api-client.js'
@@ -15,6 +16,7 @@ import {
15
16
  sleep,
16
17
  spinner,
17
18
  } from './utils.js'
19
+ import { notifyError } from './sentry.js'
18
20
  const configNames = ['unframer.config.json', 'unframer.json']
19
21
 
20
22
  export const cli = cac('unframer')
@@ -179,7 +181,8 @@ cli.command('[projectId]', 'Run unframer with optional project ID')
179
181
  })
180
182
  await buildContext.dispose?.()
181
183
  } catch (error) {
182
- logger.error('Error in main:', error)
184
+ notifyError(error)
185
+
183
186
  throw error
184
187
  }
185
188
  })
@@ -223,34 +226,6 @@ cli.command('init', 'Init the unframer.config.json config').action(
223
226
  },
224
227
  )
225
228
 
226
- function safeJsonParse(json: string) {
227
- try {
228
- return JSON.parse(json)
229
- } catch (e) {
230
- return null
231
- }
232
- }
233
-
234
- function pluck<T, K extends keyof T>(o: T, names: K[]): { [k: string]: T[K] } {
235
- return Object.fromEntries(names.map((n) => [n, o[n]]))
236
- }
237
-
238
- function getNewNames(oldConfig: Config, newConfig: Config) {
239
- // get the new names, also check if the previous url (object value) has changed
240
- const oldKeys = Object.keys(oldConfig.components)
241
- const newKeys = Object.keys(newConfig.components)
242
- const newNames = newKeys.filter((key) => {
243
- if (!oldKeys.includes(key)) {
244
- return true
245
- }
246
- if (oldConfig.components[key] !== newConfig.components[key]) {
247
- return true
248
- }
249
- return false
250
- })
251
- return newNames
252
- }
253
-
254
229
  export type Config = {
255
230
  components: {
256
231
  [name: string]: string
package/src/exporter.ts CHANGED
@@ -39,6 +39,8 @@ import {
39
39
  spinner,
40
40
  terminalMarkdown,
41
41
  } from './utils.js'
42
+ import { error } from 'console'
43
+ import { notifyError } from './sentry'
42
44
 
43
45
  export type StyleToken = {
44
46
  id: string
@@ -569,7 +571,7 @@ export async function bundle({
569
571
  const prop = findExampleProperty(exampleComponent?.propertyControls)
570
572
  const propStr = prop ? ` ${prop}='example'` : ''
571
573
  const responsiveComponent = dedent`
572
- {/* use .Responsive for components with breakpoints, remove it if you want to pass a specific variant */}
574
+ {/* use .Responsive for components with breakpoints */}
573
575
  <${exampleComponent?.componentName}.Responsive${propStr} />
574
576
  `
575
577
  const nonResponsiveComponent = dedent`
@@ -811,6 +813,7 @@ async function extractPropControlsSafe(text, name) {
811
813
  }
812
814
  return propControls
813
815
  } catch (e: any) {
816
+ notifyError(error, 'typescript generation error')
814
817
  logger.error(`Cannot get property controls for ${name}`, e.stack)
815
818
  }
816
819
  }
package/src/framer.js CHANGED
@@ -10429,7 +10429,7 @@ function steps(numSteps, direction = 'end',) {
10429
10429
  };
10430
10430
  }
10431
10431
 
10432
- // /:https://app.framerstatic.com/framer.RHPWPDUD.mjs
10432
+ // /:https://app.framerstatic.com/framer.J6CEE64J.mjs
10433
10433
  import React4 from 'react';
10434
10434
  import { startTransition as startTransition2, } from 'react';
10435
10435
  import { Suspense as Suspense2, } from 'react';
@@ -18571,6 +18571,7 @@ var ControlType = /* @__PURE__ */ ((ControlType2) => {
18571
18571
  ControlType2['Cursor'] = 'cursor';
18572
18572
  ControlType2['Padding'] = 'padding';
18573
18573
  ControlType2['BorderRadius'] = 'borderradius';
18574
+ ControlType2['Gap'] = 'gap';
18574
18575
  ControlType2['CollectionReference'] = 'collectionreference';
18575
18576
  ControlType2['MultiCollectionReference'] = 'multicollectionreference';
18576
18577
  ControlType2['TrackingId'] = 'trackingid';
@@ -19008,6 +19009,9 @@ var inputIconCSSDeclaration = {
19008
19009
  function createRGBVariableFallbacks(variables, fallback,) {
19009
19010
  return css.variable(...variables.flatMap((variable) => [`${variable}-rgb`, variable,]), fallback,);
19010
19011
  }
19012
+ function createFontSizeVariableFallbacks(variables, fallback,) {
19013
+ return css.variable(...variables.flatMap((variable) => [`${variable}-canvas`, variable,]), fallback,);
19014
+ }
19011
19015
  var richTextCSSRules = /* @__PURE__ */ (() => [
19012
19016
  /* css */
19013
19017
  `
@@ -19043,7 +19047,9 @@ var richTextCSSRules = /* @__PURE__ */ (() => [
19043
19047
  font-style: var(--framer-blockquote-font-style, var(--framer-font-style, normal));
19044
19048
  font-weight: var(--framer-blockquote-font-weight, var(--framer-font-weight, 400));
19045
19049
  color: var(--framer-blockquote-text-color, var(--framer-text-color, #000));
19046
- font-size: calc(var(--framer-blockquote-font-size, var(--framer-font-size, 16px)) * var(--framer-font-size-scale, 1));
19050
+ font-size: calc(var(--framer-blockquote-font-size, ${
19051
+ createFontSizeVariableFallbacks(['--framer-font-size',], '16px',)
19052
+ }) * var(--framer-font-size-scale, 1));
19047
19053
  letter-spacing: var(--framer-blockquote-letter-spacing, var(--framer-letter-spacing, 0));
19048
19054
  text-transform: var(--framer-blockquote-text-transform, var(--framer-text-transform, none));
19049
19055
  text-decoration: var(--framer-blockquote-text-decoration, var(--framer-text-decoration, none));
@@ -19162,7 +19168,9 @@ var richTextCSSRules = /* @__PURE__ */ (() => [
19162
19168
  font-style: var(--framer-blockquote-font-style, var(--framer-code-font-style, var(--framer-font-style, normal)));
19163
19169
  font-weight: var(--framer-blockquote-font-weight, var(--framer-code-font-weight, var(--framer-font-weight, 400)));
19164
19170
  color: var(--framer-blockquote-text-color, var(--framer-code-text-color, var(--framer-text-color, #000)));
19165
- font-size: calc(var(--framer-blockquote-font-size, var(--framer-font-size, 16px)) * var(--framer-font-size-scale, 1));
19171
+ font-size: calc(var(--framer-blockquote-font-size, ${
19172
+ createFontSizeVariableFallbacks(['--framer-font-size',], '16px',)
19173
+ }) * var(--framer-font-size-scale, 1));
19166
19174
  letter-spacing: var(--framer-blockquote-letter-spacing, var(--framer-letter-spacing, 0));
19167
19175
  line-height: var(--framer-blockquote-line-height, var(--framer-line-height, 1.2em));
19168
19176
  }
@@ -19195,7 +19203,9 @@ var richTextCSSRules = /* @__PURE__ */ (() => [
19195
19203
  font-style: var(--framer-blockquote-font-style, var(--framer-link-font-style, var(--framer-font-style, normal)));
19196
19204
  font-weight: var(--framer-blockquote-font-weight, var(--framer-link-font-weight, var(--framer-font-weight, 400)));
19197
19205
  color: var(--framer-blockquote-text-color, var(--framer-link-text-color, var(--framer-text-color, #000)));
19198
- font-size: calc(var(--framer-blockquote-font-size, var(--framer-font-size, 16px)) * var(--framer-font-size-scale, 1));
19206
+ font-size: calc(var(--framer-blockquote-font-size, ${
19207
+ createFontSizeVariableFallbacks(['--framer-font-size',], '16px',)
19208
+ }) * var(--framer-font-size-scale, 1));
19199
19209
  text-transform: var(--framer-blockquote-text-transform, var(--framer-link-text-transform, var(--framer-text-transform, none)));
19200
19210
  text-decoration: var(--framer-blockquote-text-decoration, var(--framer-link-text-decoration, var(--framer-text-decoration, none)));
19201
19211
  /* Cursor inherit to overwrite the user agent stylesheet on rich text links. */
@@ -19223,7 +19233,9 @@ var richTextCSSRules = /* @__PURE__ */ (() => [
19223
19233
  font-style: var(--framer-blockquote-font-style, var(--framer-code-font-style, var(--framer-font-style, normal)));
19224
19234
  font-weight: var(--framer-blockquote-font-weight, var(--framer-code-font-weight, var(--framer-font-weight, 400)));
19225
19235
  color: var(--framer-blockquote-text-color, var(--framer-link-text-color, var(--framer-code-text-color, var(--framer-text-color, #000))));
19226
- font-size: calc(var(--framer-blockquote-font-size, var(--framer-font-size, 16px)) * var(--framer-font-size-scale, 1));
19236
+ font-size: calc(var(--framer-blockquote-font-size, ${
19237
+ createFontSizeVariableFallbacks(['--framer-font-size',], '16px',)
19238
+ }) * var(--framer-font-size-scale, 1));
19227
19239
  }
19228
19240
  `, /* css */
19229
19241
  `
@@ -19252,7 +19264,9 @@ var richTextCSSRules = /* @__PURE__ */ (() => [
19252
19264
  font-style: var(--framer-link-hover-font-style, var(--framer-blockquote-font-style, var(--framer-link-font-style, var(--framer-font-style, normal))));
19253
19265
  font-weight: var(--framer-link-hover-font-weight, var(--framer-blockquote-font-weight, var(--framer-link-font-weight, var(--framer-font-weight, 400))));
19254
19266
  color: var(--framer-link-hover-text-color, var(--framer-blockquote-text-color, var(--framer-link-text-color, var(--framer-text-color, #000))));
19255
- font-size: calc(var(--framer-link-hover-font-size, var(--framer-blockquote-font-size, var(--framer-font-size, 16px))) * var(--framer-font-size-scale, 1));
19267
+ font-size: calc(var(--framer-link-hover-font-size, var(--framer-blockquote-font-size, ${
19268
+ createFontSizeVariableFallbacks(['--framer-font-size',], '16px',)
19269
+ })) * var(--framer-font-size-scale, 1));
19256
19270
  text-transform: var(--framer-link-hover-text-transform, var(--framer-blockquote-text-transform, var(--framer-link-text-transform, var(--framer-text-transform, none))));
19257
19271
  text-decoration: var(--framer-link-hover-text-decoration, var(--framer-blockquote-text-decoration, var(--framer-link-text-decoration, var(--framer-text-decoration, none))));
19258
19272
  }
@@ -19283,7 +19297,9 @@ var richTextCSSRules = /* @__PURE__ */ (() => [
19283
19297
  font-style: var(--framer-blockquote-font-style, var(--framer-code-font-style, var(--framer-font-style, normal)));
19284
19298
  font-weight: var(--framer-blockquote-font-weight, var(--framer-code-font-weight, var(--framer-font-weight, 400)));
19285
19299
  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)))));
19286
- font-size: calc(var(--framer-link-hover-font-size, var(--framer-blockquote-font-size, var(--framer-link-font-size, var(--framer-font-size, 16px)))) * var(--framer-font-size-scale, 1));
19300
+ font-size: calc(var(--framer-link-hover-font-size, var(--framer-blockquote-font-size, var(--framer-link-font-size, ${
19301
+ createFontSizeVariableFallbacks(['--framer-font-size',], '16px',)
19302
+ }))) * var(--framer-font-size-scale, 1));
19287
19303
  }
19288
19304
  `, /* css */
19289
19305
  `
@@ -19312,7 +19328,9 @@ var richTextCSSRules = /* @__PURE__ */ (() => [
19312
19328
  font-style: var(--framer-link-current-font-style, var(--framer-link-font-style, var(--framer-font-style, normal)));
19313
19329
  font-weight: var(--framer-link-current-font-weight, var(--framer-link-font-weight, var(--framer-font-weight, 400)));
19314
19330
  color: var(--framer-link-current-text-color, var(--framer-link-text-color, var(--framer-text-color, #000)));
19315
- font-size: calc(var(--framer-link-current-font-size, var(--framer-link-font-size, var(--framer-font-size, 16px))) * var(--framer-font-size-scale, 1));
19331
+ font-size: calc(var(--framer-link-current-font-size, var(--framer-link-font-size, ${
19332
+ createFontSizeVariableFallbacks(['--framer-font-size',], '16px',)
19333
+ })) * var(--framer-font-size-scale, 1));
19316
19334
  text-transform: var(--framer-link-current-text-transform, var(--framer-link-text-transform, var(--framer-text-transform, none)));
19317
19335
  text-decoration: var(--framer-link-current-text-decoration, var(--framer-link-text-decoration, var(--framer-text-decoration, none)));
19318
19336
  }
@@ -19338,7 +19356,9 @@ var richTextCSSRules = /* @__PURE__ */ (() => [
19338
19356
  font-style: var(--framer-code-font-style, var(--framer-font-style, normal));
19339
19357
  font-weight: var(--framer-code-font-weight, var(--framer-font-weight, 400));
19340
19358
  color: var(--framer-link-current-text-color, var(--framer-link-text-color, var(--framer-code-text-color, var(--framer-text-color, #000))));
19341
- font-size: calc(var(--framer-link-current-font-size, var(--framer-link-font-size, var(--framer-font-size, 16px))) * var(--framer-font-size-scale, 1));
19359
+ font-size: calc(var(--framer-link-current-font-size, var(--framer-link-font-size, ${
19360
+ createFontSizeVariableFallbacks(['--framer-font-size',], '16px',)
19361
+ })) * var(--framer-font-size-scale, 1));
19342
19362
  }
19343
19363
  `, /* css */
19344
19364
  `
@@ -19367,7 +19387,9 @@ var richTextCSSRules = /* @__PURE__ */ (() => [
19367
19387
  font-style: var(--framer-link-hover-font-style, var(--framer-link-current-font-style, var(--framer-link-font-style, var(--framer-font-style, normal))));
19368
19388
  font-weight: var(--framer-link-hover-font-weight, var(--framer-link-current-font-weight, var(--framer-link-font-weight, var(--framer-font-weight, 400))));
19369
19389
  color: var(--framer-link-hover-text-color, var(--framer-link-current-text-color, var(--framer-link-text-color, var(--framer-text-color, #000))));
19370
- font-size: calc(var(--framer-link-hover-font-size, var(--framer-link-current-font-size, var(--framer-link-font-size, var(--framer-font-size, 16px)))) * var(--framer-font-size-scale, 1));
19390
+ font-size: calc(var(--framer-link-hover-font-size, var(--framer-link-current-font-size, var(--framer-link-font-size, ${
19391
+ createFontSizeVariableFallbacks(['--framer-font-size',], '16px',)
19392
+ }))) * var(--framer-font-size-scale, 1));
19371
19393
  text-transform: var(--framer-link-hover-text-transform, var(--framer-link-current-text-transform, var(--framer-link-text-transform, var(--framer-text-transform, none))));
19372
19394
  text-decoration: var(--framer-link-hover-text-decoration, var(--framer-link-current-text-decoration, var(--framer-link-text-decoration, var(--framer-text-decoration, none))));
19373
19395
  }
@@ -19399,7 +19421,9 @@ var richTextCSSRules = /* @__PURE__ */ (() => [
19399
19421
  font-style: var(--framer-code-font-style, var(--framer-font-style, normal));
19400
19422
  font-weight: var(--framer-code-font-weight, var(--framer-font-weight, 400));
19401
19423
  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)))));
19402
- font-size: calc(var(--framer-link-hover-font-size, var(--framer-link-current-font-size, var(--framer-link-font-size, var(--framer-font-size, 16px)))) * var(--framer-font-size-scale, 1));
19424
+ font-size: calc(var(--framer-link-hover-font-size, var(--framer-link-current-font-size, var(--framer-link-font-size, ${
19425
+ createFontSizeVariableFallbacks(['--framer-font-size',], '16px',)
19426
+ }))) * var(--framer-font-size-scale, 1));
19403
19427
  }
19404
19428
  `, /* css */
19405
19429
  `
@@ -19932,6 +19956,7 @@ function getControlDefaultValue(control,) {
19932
19956
  case 'boxshadow':
19933
19957
  case 'padding':
19934
19958
  case 'borderradius':
19959
+ case 'gap':
19935
19960
  return isString(control.defaultValue,) ? control.defaultValue : void 0;
19936
19961
  case 'boolean':
19937
19962
  return isBoolean(control.defaultValue,) ? control.defaultValue : void 0;
@@ -42474,6 +42499,10 @@ var variantsNameToWeight = {
42474
42499
  'solid-regular': 700,
42475
42500
  'solid-medium': 800,
42476
42501
  'solid-bold': 900,
42502
+ // The following variants are only used in the Tecnica font.
42503
+ // We assign them different (fake) weights to ensure that the changes are picked up when switching between variants.
42504
+ '53': 400,
42505
+ '55': 600,
42477
42506
  // we want to put variable fonts last
42478
42507
  variable: 1e3,
42479
42508
  'variable-italic': 1e3,
package/src/sentry.ts ADDED
@@ -0,0 +1,18 @@
1
+ import * as Sentry from '@sentry/node'
2
+
3
+ Sentry.init({
4
+ dsn: 'https://67125acb9a41f616144a07c90a16775e@o4508014272446464.ingest.de.sentry.io/4509202968674384',
5
+ beforeSend(event) {
6
+ if (event?.['name'] === 'AbortError') {
7
+ return null
8
+ }
9
+
10
+ return event
11
+ },
12
+ })
13
+
14
+ export async function notifyError(error, msg?: string) {
15
+ console.error(msg, error)
16
+ Sentry.captureException(error, { extra: { msg } })
17
+ await Sentry.flush(1000) // delivery timeout in ms
18
+ }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '2.24.2'
1
+ export const version = '2.24.3'