@webstudio-is/react-sdk 0.224.0 → 0.226.0

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/lib/index.js CHANGED
@@ -242,8 +242,64 @@ var standardAttributesToReactProps = {
242
242
  srcset: "srcSet",
243
243
  tabindex: "tabIndex",
244
244
  usemap: "useMap",
245
+ "alignment-baseline": "alignmentBaseline",
246
+ "baseline-shift": "baselineShift",
247
+ "clip-path": "clipPath",
248
+ "clip-rule": "clipRule",
249
+ "color-interpolation": "colorInterpolation",
250
+ "color-interpolation-filters": "colorInterpolationFilters",
251
+ "color-profile": "colorProfile",
252
+ "color-rendering": "colorRendering",
253
+ "dominant-baseline": "dominantBaseline",
254
+ "enable-background": "enableBackground",
255
+ "fill-opacity": "fillOpacity",
256
+ "fill-rule": "fillRule",
257
+ "flood-opacity": "floodOpacity",
258
+ "flood-color": "floodColor",
259
+ "font-family": "fontFamily",
260
+ "font-size": "fontSize",
261
+ "font-size-adjust": "fontSizeAdjust",
262
+ "font-stretch": "fontStretch",
263
+ "font-style": "fontStyle",
264
+ "font-variant": "fontVariant",
265
+ "font-weight": "fontWeight",
266
+ "glyph-orientation-horizontal": "glyphOrientationHorizontal",
267
+ "glyph-orientation-vertical": "glyphOrientationVertical",
268
+ "image-rendering": "imageRendering",
269
+ "letter-spacing": "letterSpacing",
270
+ "lighting-color": "lightingColor",
271
+ "marker-end": "markerEnd",
272
+ "marker-mid": "markerMid",
273
+ "marker-start": "markerStart",
274
+ "pointer-events": "pointerEvents",
245
275
  popovertarget: "popoverTarget",
246
276
  popovertargetaction: "popoverTargetAction",
277
+ "shape-rendering": "shapeRendering",
278
+ "stop-color": "stopColor",
279
+ "stop-opacity": "stopOpacity",
280
+ "stroke-dasharray": "strokeDasharray",
281
+ "stroke-dashoffset": "strokeDashoffset",
282
+ "stroke-linecap": "strokeLinecap",
283
+ "stroke-linejoin": "strokeLinejoin",
284
+ "stroke-miterlimit": "strokeMiterlimit",
285
+ "stroke-width": "strokeWidth",
286
+ "stroke-opacity": "strokeOpacity",
287
+ "text-anchor": "textAnchor",
288
+ "text-decoration": "textDecoration",
289
+ "text-rendering": "textRendering",
290
+ "unicode-bidi": "unicodeBidi",
291
+ "word-spacing": "wordSpacing",
292
+ "writing-mode": "writingMode",
293
+ "xlink:actuate": "xlinkActuate",
294
+ "xlink:arcrole": "xlinkArcrole",
295
+ "xlink:href": "xlinkHref",
296
+ "xlink:role": "xlinkRole",
297
+ "xlink:show": "xlinkShow",
298
+ "xlink:title": "xlinkTitle",
299
+ "xlink:type": "xlinkType",
300
+ "xml:base": "xmlBase",
301
+ "xml:lang": "xmlLang",
302
+ "xml:space": "xmlSpace",
247
303
  dirname: "dirName"
248
304
  };
249
305
  var reactPropsToStandardAttributes = {
@@ -294,8 +350,64 @@ var reactPropsToStandardAttributes = {
294
350
  srcSet: "srcset",
295
351
  tabIndex: "tabindex",
296
352
  useMap: "usemap",
353
+ alignmentBaseline: "alignment-baseline",
354
+ baselineShift: "baseline-shift",
355
+ clipPath: "clip-path",
356
+ clipRule: "clip-rule",
357
+ colorInterpolation: "color-interpolation",
358
+ colorInterpolationFilters: "color-interpolation-filters",
359
+ colorProfile: "color-profile",
360
+ colorRendering: "color-rendering",
361
+ dominantBaseline: "dominant-baseline",
362
+ enableBackground: "enable-background",
363
+ fillOpacity: "fill-opacity",
364
+ fillRule: "fill-rule",
365
+ floodOpacity: "flood-opacity",
366
+ floodColor: "flood-color",
367
+ fontFamily: "font-family",
368
+ fontSize: "font-size",
369
+ fontSizeAdjust: "font-size-adjust",
370
+ fontStretch: "font-stretch",
371
+ fontStyle: "font-style",
372
+ fontVariant: "font-variant",
373
+ fontWeight: "font-weight",
374
+ glyphOrientationHorizontal: "glyph-orientation-horizontal",
375
+ glyphOrientationVertical: "glyph-orientation-vertical",
376
+ imageRendering: "image-rendering",
377
+ letterSpacing: "letter-spacing",
378
+ lightingColor: "lighting-color",
379
+ markerEnd: "marker-end",
380
+ markerMid: "marker-mid",
381
+ markerStart: "marker-start",
382
+ pointerEvents: "pointer-events",
297
383
  popoverTarget: "popovertarget",
298
384
  popoverTargetAction: "popovertargetaction",
385
+ shapeRendering: "shape-rendering",
386
+ stopColor: "stop-color",
387
+ stopOpacity: "stop-opacity",
388
+ strokeDasharray: "stroke-dasharray",
389
+ strokeDashoffset: "stroke-dashoffset",
390
+ strokeLinecap: "stroke-linecap",
391
+ strokeLinejoin: "stroke-linejoin",
392
+ strokeMiterlimit: "stroke-miterlimit",
393
+ strokeWidth: "stroke-width",
394
+ strokeOpacity: "stroke-opacity",
395
+ textAnchor: "text-anchor",
396
+ textDecoration: "text-decoration",
397
+ textRendering: "text-rendering",
398
+ unicodeBidi: "unicode-bidi",
399
+ wordSpacing: "word-spacing",
400
+ writingMode: "writing-mode",
401
+ xlinkActuate: "xlink:actuate",
402
+ xlinkArcrole: "xlink:arcrole",
403
+ xlinkHref: "xlink:href",
404
+ xlinkRole: "xlink:role",
405
+ xlinkShow: "xlink:show",
406
+ xlinkTitle: "xlink:title",
407
+ xlinkType: "xlink:type",
408
+ xmlBase: "xml:base",
409
+ xmlLang: "xml:lang",
410
+ xmlSpace: "xml:space",
299
411
  dirName: "dirname"
300
412
  };
301
413
 
package/lib/runtime.js CHANGED
@@ -7,6 +7,7 @@ import {
7
7
  var ReactSdkContext = createContext({
8
8
  assetBaseUrl: "/",
9
9
  imageLoader: ({ src }) => src,
10
+ videoLoader: ({ src }) => src,
10
11
  resources: {},
11
12
  breakpoints: [],
12
13
  onError: (error) => {
@@ -1,4 +1,4 @@
1
- import type { ImageLoader } from "@webstudio-is/image";
1
+ import type { ImageLoader, VideoLoader } from "@webstudio-is/image";
2
2
  export type Params = {
3
3
  /**
4
4
  * When rendering a published version, there is no renderer defined.
@@ -21,6 +21,7 @@ export type Params = {
21
21
  };
22
22
  export declare const ReactSdkContext: import("react").Context<Params & {
23
23
  imageLoader: ImageLoader;
24
+ videoLoader?: VideoLoader;
24
25
  resources: Record<string, any>;
25
26
  breakpoints: {
26
27
  id: string;
@@ -738,7 +738,7 @@ export declare const normalizeProps: ({ props, assetBaseUrl, assets, uploadingIm
738
738
  enabled?: [string, boolean][] | undefined;
739
739
  }[];
740
740
  source?: "closest" | "nearest" | "root" | undefined;
741
- axis?: "block" | "x" | "inline" | "y" | undefined;
741
+ axis?: "block" | "x" | "y" | "inline" | undefined;
742
742
  isPinned?: boolean | undefined;
743
743
  debug?: boolean | undefined;
744
744
  } | {
@@ -1387,7 +1387,7 @@ export declare const normalizeProps: ({ props, assetBaseUrl, assets, uploadingIm
1387
1387
  description?: string | undefined;
1388
1388
  enabled?: [string, boolean][] | undefined;
1389
1389
  }[];
1390
- axis?: "block" | "x" | "inline" | "y" | undefined;
1390
+ axis?: "block" | "x" | "y" | "inline" | undefined;
1391
1391
  isPinned?: boolean | undefined;
1392
1392
  debug?: boolean | undefined;
1393
1393
  subject?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstudio-is/react-sdk",
3
- "version": "0.224.0",
3
+ "version": "0.226.0",
4
4
  "description": "Webstudio JavaScript / TypeScript API",
5
5
  "author": "Webstudio <github@webstudio.is>",
6
6
  "homepage": "https://webstudio.is",
@@ -14,7 +14,7 @@
14
14
  "type-fest": "^4.37.0",
15
15
  "vitest": "^3.1.2",
16
16
  "zod": "^3.24.2",
17
- "@webstudio-is/template": "0.224.0",
17
+ "@webstudio-is/template": "0.226.0",
18
18
  "@webstudio-is/tsconfig": "1.0.7"
19
19
  },
20
20
  "peerDependencies": {
@@ -26,11 +26,11 @@
26
26
  "change-case": "^5.4.4",
27
27
  "html-tags": "^4.0.0",
28
28
  "nanoid": "^5.1.5",
29
- "@webstudio-is/css-engine": "0.224.0",
30
- "@webstudio-is/fonts": "0.224.0",
31
- "@webstudio-is/image": "0.224.0",
32
- "@webstudio-is/icons": "^0.224.0",
33
- "@webstudio-is/sdk": "0.224.0"
29
+ "@webstudio-is/css-engine": "0.226.0",
30
+ "@webstudio-is/fonts": "0.226.0",
31
+ "@webstudio-is/image": "0.226.0",
32
+ "@webstudio-is/icons": "^0.226.0",
33
+ "@webstudio-is/sdk": "0.226.0"
34
34
  },
35
35
  "exports": {
36
36
  ".": {
package/placeholder.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  declare module "__CONSTANTS__" {
2
- import type { ImageLoader } from "@webstudio-is/image";
2
+ import type { ImageLoader, VideoLoader } from "@webstudio-is/image";
3
3
  export const assetBaseUrl: string;
4
4
  export const imageLoader: ImageLoader;
5
+ export const videoLoader: undefined | VideoLoader;
5
6
  }
6
7
 
7
8
  declare module "__CLIENT__" {