@webstudio-is/sdk-components-react 0.254.0 → 0.255.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.
@@ -1,8 +1,8 @@
1
1
  import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
2
  import { $ as e } from "@webstudio-is/template";
3
- const l = {
3
+ const s = {
4
4
  category: "general",
5
- description: "The Head Slot component lets you customize page-specific head elements (like canonical URLs), which merge with your site's global head settings, with Head Slot definitions taking priority over Page Settings. For site-wide head changes, use Project Settings instead.",
5
+ description: "The Head Slot component lets you customize page-specific head elements (like canonical URLs), which merge with your site's global head settings, with Head Slot definitions taking priority over Page Settings. For site-wide head changes, use project settings instead.",
6
6
  order: 5,
7
7
  template: /* @__PURE__ */ i(e.HeadSlot, { children: [
8
8
  /* @__PURE__ */ t(e.HeadTitle, { "ws:label": "Title", children: "Title" }),
@@ -11,5 +11,5 @@ const l = {
11
11
  ] })
12
12
  };
13
13
  export {
14
- l as meta
14
+ s as meta
15
15
  };
package/lib/time.js CHANGED
@@ -291,7 +291,7 @@ const N = [
291
291
  if (Number.isNaN(e.getTime()) === !1)
292
292
  return e;
293
293
  }, Y = (t, e, n = "en-US") => {
294
- const r = (o, s = 2) => String(o).padStart(s, "0"), D = new Intl.DateTimeFormat(n, {
294
+ const s = (r, o = 2) => String(r).padStart(o, "0"), D = new Intl.DateTimeFormat(n, {
295
295
  weekday: "long"
296
296
  }).format(t), T = new Intl.DateTimeFormat(n, {
297
297
  weekday: "short"
@@ -304,26 +304,26 @@ const N = [
304
304
  YY: String(t.getFullYear()).slice(-2),
305
305
  MMMM: l,
306
306
  MMM: M,
307
- MM: r(t.getMonth() + 1),
307
+ MM: s(t.getMonth() + 1),
308
308
  M: t.getMonth() + 1,
309
309
  DDDD: D,
310
310
  DDD: T,
311
- DD: r(t.getDate()),
311
+ DD: s(t.getDate()),
312
312
  D: t.getDate(),
313
- HH: r(t.getHours()),
313
+ HH: s(t.getHours()),
314
314
  H: t.getHours(),
315
- mm: r(t.getMinutes()),
315
+ mm: s(t.getMinutes()),
316
316
  m: t.getMinutes(),
317
- ss: r(t.getSeconds()),
317
+ ss: s(t.getSeconds()),
318
318
  s: t.getSeconds()
319
- }, a = Object.keys(m).sort((o, s) => s.length - o.length), i = new RegExp(`\\b(${a.join("|")})\\b`, "g");
320
- return e.replace(i, (o) => String(m[o]));
319
+ }, a = Object.keys(m).sort((r, o) => o.length - r.length), i = new RegExp(`\\b(${a.join("|")})\\b`, "g");
320
+ return e.replace(i, (r) => String(m[r]));
321
321
  }, H = A(
322
322
  ({
323
323
  language: t = c,
324
324
  country: e = u,
325
325
  dateStyle: n = G,
326
- timeStyle: r = I,
326
+ timeStyle: s = I,
327
327
  format: D,
328
328
  // native html attribute in react style
329
329
  dateTime: T = f,
@@ -333,21 +333,21 @@ const N = [
333
333
  e
334
334
  )}`, a = {
335
335
  dateStyle: B(n),
336
- timeStyle: R(r)
337
- }, i = T === null ? E : T.toString(), o = U(i);
338
- let s = i;
339
- if (o)
336
+ timeStyle: R(s)
337
+ }, i = T === null ? E : T.toString(), r = U(i);
338
+ let o = i;
339
+ if (r)
340
340
  if (D)
341
341
  try {
342
- s = Y(o, D, m);
342
+ o = Y(r, D, m);
343
343
  } catch {
344
344
  }
345
345
  else
346
346
  try {
347
- s = new Intl.DateTimeFormat(m, a).format(o);
347
+ o = new Intl.DateTimeFormat(m, a).format(r);
348
348
  } catch {
349
349
  }
350
- return /* @__PURE__ */ S("time", { ref: M, dateTime: i, ...l, children: s });
350
+ return /* @__PURE__ */ S("time", { ref: M, dateTime: i, ...l, children: o });
351
351
  }
352
352
  );
353
353
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstudio-is/sdk-components-react",
3
- "version": "0.254.0",
3
+ "version": "0.255.0",
4
4
  "description": "Webstudio default library for react",
5
5
  "author": "Webstudio <github@webstudio.is>",
6
6
  "homepage": "https://webstudio.is",
@@ -44,10 +44,10 @@
44
44
  "colord": "^2.9.3",
45
45
  "micromark": "^4.0.2",
46
46
  "micromark-extension-gfm-table": "^2.1.1",
47
- "@webstudio-is/icons": "0.254.0",
48
- "@webstudio-is/image": "0.254.0",
49
- "@webstudio-is/react-sdk": "0.254.0",
50
- "@webstudio-is/sdk": "0.254.0"
47
+ "@webstudio-is/icons": "0.255.0",
48
+ "@webstudio-is/image": "0.255.0",
49
+ "@webstudio-is/react-sdk": "0.255.0",
50
+ "@webstudio-is/sdk": "0.255.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@testing-library/dom": "^10.4.0",
@@ -60,7 +60,7 @@
60
60
  "vitest": "^3.1.2",
61
61
  "@webstudio-is/generate-arg-types": "0.0.0",
62
62
  "@webstudio-is/sdk-cli": "0.94.0",
63
- "@webstudio-is/template": "0.254.0",
63
+ "@webstudio-is/template": "0.255.0",
64
64
  "@webstudio-is/tsconfig": "1.0.7"
65
65
  },
66
66
  "scripts": {