@plitzi/sdk-shared 0.32.15 → 0.32.16

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @plitzi/sdk-shared
2
2
 
3
+ ## 0.32.16
4
+
5
+ ### Patch Changes
6
+
7
+ - v0.32.16
8
+
3
9
  ## 0.32.15
4
10
 
5
11
  ### Patch Changes
@@ -11,19 +11,23 @@ var d = {
11
11
  return t = typeof e == "number" ? e < 0xe8d4a51000 ? /* @__PURE__ */ new Date(e * 1e3) : new Date(e) : typeof e == "string" ? o(e) : e, t;
12
12
  };
13
13
  function p(e, n = "dd MMMM, yyyy", r = "en") {
14
- return e ? t(f(e), n, { locale: d[r] }) : "";
14
+ if (!e) return "";
15
+ let i = f(e);
16
+ return t(i, n, { locale: d[r] });
15
17
  }
16
18
  function m(e, n = "dd MMMM, yyyy", r = "en") {
17
- return e ? t(u(f(e), "UTC"), n, { locale: d[r] }) : "";
19
+ if (!e) return "";
20
+ let i = f(e);
21
+ return t(u(i, "UTC"), n, { locale: d[r] });
18
22
  }
19
23
  function h(e, n = "dd MMMM, yyyy HH:mm", r = "en") {
20
24
  if (!e) return "";
21
- let i = f(e), a = Intl.DateTimeFormat().resolvedOptions().timeZone;
22
- return t(u(i, a), n, { locale: d[r] });
25
+ let i = f(e), a = Intl.DateTimeFormat().resolvedOptions().timeZone, o = u(i, a);
26
+ return t(o, n, { locale: d[r] });
23
27
  }
24
28
  function g(t, n) {
25
- let r = f(t);
26
- return e(f(n), r);
29
+ let r = f(t), i = f(n);
30
+ return e(i, r);
27
31
  }
28
32
  function _(e, t = "en", r) {
29
33
  if (!e) return "";
@@ -31,7 +31,7 @@ var o = class {
31
31
  for (; this.pos < this.src.length && this.src.charCodeAt(this.pos) !== t;) if (this.src.charCodeAt(this.pos) === e.Backslash && this.pos + 1 < this.src.length) {
32
32
  this.pos++;
33
33
  let r = this.src.charCodeAt(this.pos);
34
- r === e.LowerN ? n += "\n" : r === e.LowerT ? n += " " : r === e.LowerR ? n += "\r" : r === e.Backslash ? n += "\\" : r === t ? n += String.fromCharCode(r) : n += String.fromCharCode(e.Backslash) + String.fromCharCode(r), this.pos++;
34
+ r === e.LowerN ? n += "\n" : r === e.LowerT ? n += " " : r === e.LowerR ? n += "\r" : r === e.Backslash ? n += "\\" : n += r === t ? String.fromCharCode(r) : String.fromCharCode(e.Backslash) + String.fromCharCode(r), this.pos++;
35
35
  } else n += this.src[this.pos], this.pos++;
36
36
  return this.pos < this.src.length && this.pos++, n;
37
37
  }
@@ -112,7 +112,8 @@ var c = (e, t = !1) => {
112
112
  parseTag() {
113
113
  let e = this.peek();
114
114
  if (!e || e.type !== "tag") return null;
115
- switch (o(e.content.trim())) {
115
+ let t = e.content.trim();
116
+ switch (o(t)) {
116
117
  case "if": return this.parseIf();
117
118
  case "for": return this.parseFor();
118
119
  case "set": return this.parseSet();
@@ -135,10 +136,10 @@ var c = (e, t = !1) => {
135
136
  let t = o(e.content.trim());
136
137
  if (t === "elseif") {
137
138
  this.advance();
138
- let t = e.content.trim(), n = a(t.slice(t.indexOf(" ") + 1).trim()), r = this.parseBody();
139
+ let t = e.content.trim(), n = t.slice(t.indexOf(" ") + 1).trim(), r = a(n), i = this.parseBody();
139
140
  s.push({
140
- condition: n,
141
- body: r
141
+ condition: r,
142
+ body: i
142
143
  });
143
144
  } else if (t === "else") this.advance(), c = this.parseBody();
144
145
  else if (t === "endif") {
@@ -211,10 +212,11 @@ var c = (e, t = !1) => {
211
212
  value: t
212
213
  };
213
214
  }
215
+ let i = n.slice(0, r).trim(), o = n.slice(r + 1).trim();
214
216
  return {
215
217
  type: "set",
216
- name: n.slice(0, r).trim(),
217
- value: a(n.slice(r + 1).trim())
218
+ name: i,
219
+ value: a(o)
218
220
  };
219
221
  }
220
222
  parseApply() {
@@ -225,11 +227,11 @@ var c = (e, t = !1) => {
225
227
  filters: [],
226
228
  body: []
227
229
  };
228
- let t = e.content.trim(), n = i(t.slice(t.indexOf(" ") + 1).trim()), r = this.parseBody(), a = this.peek();
229
- return a && a.type === "tag" && this.advance(), {
230
+ let t = e.content.trim(), n = t.slice(t.indexOf(" ") + 1).trim(), r = i(n), a = this.parseBody(), o = this.peek();
231
+ return o && o.type === "tag" && this.advance(), {
230
232
  type: "apply",
231
- filters: n,
232
- body: r
233
+ filters: r,
234
+ body: a
233
235
  };
234
236
  }
235
237
  };
@@ -22,19 +22,19 @@ var s = ({ children: s, rscPath: c, rscData: l, navigationKey: u }) => {
22
22
  g,
23
23
  u
24
24
  ]);
25
- let _ = n((e) => f.serverData?.[e], [f.serverData]);
25
+ let _ = n((e) => f.serverData?.[e], [f.serverData]), v = i(() => ({
26
+ enabled: m,
27
+ serverData: f.serverData,
28
+ getElementData: _,
29
+ refresh: g
30
+ }), [
31
+ m,
32
+ f.serverData,
33
+ _,
34
+ g
35
+ ]);
26
36
  return /* @__PURE__ */ o(e, {
27
- value: i(() => ({
28
- enabled: m,
29
- serverData: f.serverData,
30
- getElementData: _,
31
- refresh: g
32
- }), [
33
- m,
34
- f.serverData,
35
- _,
36
- g
37
- ]),
37
+ value: v,
38
38
  children: s
39
39
  });
40
40
  };
@@ -5,6 +5,7 @@ declare const styleConstants: {
5
5
  readonly FLEX_WRAP: "flex-wrap";
6
6
  readonly FLEX_DIRECTION: "flex-direction";
7
7
  readonly ALIGN_ITEMS: "align-items";
8
+ readonly JUSTIFY_ITEMS: "justify-items";
8
9
  readonly JUSTIFY_CONTENT: "justify-content";
9
10
  readonly ALIGN_CONTENT: "align-content";
10
11
  readonly ROW_GAP: "row-gap";
@@ -17,18 +18,26 @@ declare const styleConstants: {
17
18
  readonly GRID_AUTO_FLOW: "grid-auto-flow";
18
19
  readonly GRID_AUTO_ROWS: "grid-auto-rows";
19
20
  readonly GRID_AUTO_COLUMNS: "grid-auto-columns";
21
+ readonly GRID_ROW_START: "grid-row-start";
22
+ readonly GRID_COLUMN_START: "grid-column-start";
23
+ readonly GRID_ROW_END: "grid-row-end";
24
+ readonly GRID_COLUMN_END: "grid-column-end";
20
25
  readonly ALIGN_SELF: "align-self";
26
+ readonly JUSTIFY_SELF: "justify-self";
21
27
  readonly ORDER: "order";
22
28
  readonly FLEX_GROW: "flex-grow";
23
29
  readonly FLEX_SHRINK: "flex-shrink";
24
30
  readonly FLEX_BASIS: "flex-basis";
25
31
  readonly LIST_STYLE: "list-style";
26
32
  readonly LIST_STYLE_TYPE: "list-style-type";
33
+ readonly LIST_STYLE_POSITION: "list-style-position";
34
+ readonly LIST_STYLE_IMAGE: "list-style-image";
27
35
  readonly BACKGROUND_COLOR: "background-color";
28
36
  readonly BACKGROUND_IMAGE: "background-image";
29
37
  readonly BACKGROUND_POSITION: "background-position";
30
38
  readonly BACKGROUND_SIZE: "background-size";
31
39
  readonly BACKGROUND_REPEAT: "background-repeat";
40
+ readonly BACKGROUND_ORIGIN: "background-origin";
32
41
  readonly BACKGROUND_CLIP: "background-clip";
33
42
  readonly BACKGROUND_ATTACHMENT: "background-attachment";
34
43
  readonly MASK_IMAGE: "mask-image";
@@ -51,9 +60,25 @@ declare const styleConstants: {
51
60
  readonly OPACITY: "opacity";
52
61
  readonly CURSOR: "cursor";
53
62
  readonly TRANSITION: "transition";
63
+ readonly TRANSITION_PROPERTY: "transition-property";
64
+ readonly TRANSITION_DURATION: "transition-duration";
65
+ readonly TRANSITION_TIMING_FUNCTION: "transition-timing-function";
66
+ readonly TRANSITION_DELAY: "transition-delay";
67
+ readonly ANIMATION: "animation";
68
+ readonly ANIMATION_NAME: "animation-name";
69
+ readonly ANIMATION_DURATION: "animation-duration";
70
+ readonly ANIMATION_TIMING_FUNCTION: "animation-timing-function";
71
+ readonly ANIMATION_DELAY: "animation-delay";
72
+ readonly ANIMATION_ITERATION_COUNT: "animation-iteration-count";
73
+ readonly ANIMATION_DIRECTION: "animation-direction";
74
+ readonly ANIMATION_FILL_MODE: "animation-fill-mode";
75
+ readonly ANIMATION_PLAY_STATE: "animation-play-state";
54
76
  readonly BOX_SHADOW: "box-shadow";
55
77
  readonly FILTER: "filter";
56
78
  readonly TRANSFORM: "transform";
79
+ readonly OUTLINE_WIDTH: "outline-width";
80
+ readonly OUTLINE_STYLE: "outline-style";
81
+ readonly OUTLINE_COLOR: "outline-color";
57
82
  readonly POSITION: "position";
58
83
  readonly FLOAT: "float";
59
84
  readonly CLEAR: "clear";
@@ -69,8 +94,12 @@ declare const styleConstants: {
69
94
  readonly MAX_WIDTH: "max-width";
70
95
  readonly MAX_HEIGHT: "max-height";
71
96
  readonly OVERFLOW: "overflow";
97
+ readonly OVERFLOW_X: "overflow-x";
98
+ readonly OVERFLOW_Y: "overflow-y";
72
99
  readonly OBJECT_FIT: "object-fit";
73
100
  readonly OBJECT_POSITION: "object-position";
101
+ readonly COLUMN_WIDTH: "column-width";
102
+ readonly COLUMN_COUNT: "column-count";
74
103
  readonly MARGIN_TOP: "margin-top";
75
104
  readonly MARGIN_BOTTOM: "margin-bottom";
76
105
  readonly MARGIN_LEFT: "margin-left";
@@ -86,7 +115,11 @@ declare const styleConstants: {
86
115
  readonly COLOR: "color";
87
116
  readonly TEXT_ALIGN: "text-align";
88
117
  readonly FONT_STYLE: "font-style";
118
+ readonly FONT_VARIANT: "font-variant";
89
119
  readonly TEXT_DECORATION: "text-decoration";
120
+ readonly TEXT_DECORATION_LINE: "text-decoration-line";
121
+ readonly TEXT_DECORATION_COLOR: "text-decoration-color";
122
+ readonly TEXT_DECORATION_STYLE: "text-decoration-style";
90
123
  readonly LETTER_SPACING: "letter-spacing";
91
124
  readonly TEXT_INDENT: "text-indent";
92
125
  readonly TEXT_TRANSFORM: "text-transform";
@@ -98,8 +131,8 @@ declare const styleConstants: {
98
131
  };
99
132
  export declare const inheritableAttributesBase: StyleCategory[];
100
133
  export declare const StyleBindingsAllowed: {
101
- path: "display" | "flex-wrap" | "flex-direction" | "align-items" | "justify-content" | "align-content" | "row-gap" | "column-gap" | "grid-row-gap" | "grid-column-gap" | "grid-template-areas" | "grid-template-columns" | "grid-template-rows" | "grid-auto-flow" | "grid-auto-rows" | "grid-auto-columns" | "align-self" | "order" | "flex-grow" | "flex-shrink" | "flex-basis" | "list-style" | "list-style-type" | "background-color" | "background-image" | "background-position" | "background-size" | "background-repeat" | "background-clip" | "background-attachment" | "mask-image" | "border-top-style" | "border-top-width" | "border-top-color" | "border-bottom-style" | "border-bottom-width" | "border-bottom-color" | "border-left-style" | "border-left-width" | "border-left-color" | "border-right-style" | "border-right-width" | "border-right-color" | "border-top-left-radius" | "border-top-right-radius" | "border-bottom-left-radius" | "border-bottom-right-radius" | "opacity" | "cursor" | "transition" | "box-shadow" | "filter" | "transform" | "position" | "float" | "clear" | "z-index" | "top" | "bottom" | "left" | "right" | "width" | "height" | "min-width" | "min-height" | "max-width" | "max-height" | "overflow" | "object-fit" | "object-position" | "margin-top" | "margin-bottom" | "margin-left" | "margin-right" | "padding-top" | "padding-bottom" | "padding-left" | "padding-right" | "font-family" | "font-weight" | "font-size" | "line-height" | "color" | "text-align" | "font-style" | "text-decoration" | "letter-spacing" | "text-indent" | "text-transform" | "direction" | "white-space" | "text-wrap" | "text-overflow" | "text-shadow";
102
- label: "display" | "flex-wrap" | "flex-direction" | "align-items" | "justify-content" | "align-content" | "row-gap" | "column-gap" | "grid-row-gap" | "grid-column-gap" | "grid-template-areas" | "grid-template-columns" | "grid-template-rows" | "grid-auto-flow" | "grid-auto-rows" | "grid-auto-columns" | "align-self" | "order" | "flex-grow" | "flex-shrink" | "flex-basis" | "list-style" | "list-style-type" | "background-color" | "background-image" | "background-position" | "background-size" | "background-repeat" | "background-clip" | "background-attachment" | "mask-image" | "border-top-style" | "border-top-width" | "border-top-color" | "border-bottom-style" | "border-bottom-width" | "border-bottom-color" | "border-left-style" | "border-left-width" | "border-left-color" | "border-right-style" | "border-right-width" | "border-right-color" | "border-top-left-radius" | "border-top-right-radius" | "border-bottom-left-radius" | "border-bottom-right-radius" | "opacity" | "cursor" | "transition" | "box-shadow" | "filter" | "transform" | "position" | "float" | "clear" | "z-index" | "top" | "bottom" | "left" | "right" | "width" | "height" | "min-width" | "min-height" | "max-width" | "max-height" | "overflow" | "object-fit" | "object-position" | "margin-top" | "margin-bottom" | "margin-left" | "margin-right" | "padding-top" | "padding-bottom" | "padding-left" | "padding-right" | "font-family" | "font-weight" | "font-size" | "line-height" | "color" | "text-align" | "font-style" | "text-decoration" | "letter-spacing" | "text-indent" | "text-transform" | "direction" | "white-space" | "text-wrap" | "text-overflow" | "text-shadow";
134
+ path: "display" | "flex-wrap" | "flex-direction" | "align-items" | "justify-items" | "justify-content" | "align-content" | "row-gap" | "column-gap" | "grid-row-gap" | "grid-column-gap" | "grid-template-areas" | "grid-template-columns" | "grid-template-rows" | "grid-auto-flow" | "grid-auto-rows" | "grid-auto-columns" | "grid-row-start" | "grid-column-start" | "grid-row-end" | "grid-column-end" | "align-self" | "justify-self" | "order" | "flex-grow" | "flex-shrink" | "flex-basis" | "list-style" | "list-style-type" | "list-style-position" | "list-style-image" | "background-color" | "background-image" | "background-position" | "background-size" | "background-repeat" | "background-origin" | "background-clip" | "background-attachment" | "mask-image" | "border-top-style" | "border-top-width" | "border-top-color" | "border-bottom-style" | "border-bottom-width" | "border-bottom-color" | "border-left-style" | "border-left-width" | "border-left-color" | "border-right-style" | "border-right-width" | "border-right-color" | "border-top-left-radius" | "border-top-right-radius" | "border-bottom-left-radius" | "border-bottom-right-radius" | "opacity" | "cursor" | "transition" | "transition-property" | "transition-duration" | "transition-timing-function" | "transition-delay" | "animation" | "animation-name" | "animation-duration" | "animation-timing-function" | "animation-delay" | "animation-iteration-count" | "animation-direction" | "animation-fill-mode" | "animation-play-state" | "box-shadow" | "filter" | "transform" | "outline-width" | "outline-style" | "outline-color" | "position" | "float" | "clear" | "z-index" | "top" | "bottom" | "left" | "right" | "width" | "height" | "min-width" | "min-height" | "max-width" | "max-height" | "overflow" | "overflow-x" | "overflow-y" | "object-fit" | "object-position" | "column-width" | "column-count" | "margin-top" | "margin-bottom" | "margin-left" | "margin-right" | "padding-top" | "padding-bottom" | "padding-left" | "padding-right" | "font-family" | "font-weight" | "font-size" | "line-height" | "color" | "text-align" | "font-style" | "font-variant" | "text-decoration" | "text-decoration-line" | "text-decoration-color" | "text-decoration-style" | "letter-spacing" | "text-indent" | "text-transform" | "direction" | "white-space" | "text-wrap" | "text-overflow" | "text-shadow";
135
+ label: "display" | "flex-wrap" | "flex-direction" | "align-items" | "justify-items" | "justify-content" | "align-content" | "row-gap" | "column-gap" | "grid-row-gap" | "grid-column-gap" | "grid-template-areas" | "grid-template-columns" | "grid-template-rows" | "grid-auto-flow" | "grid-auto-rows" | "grid-auto-columns" | "grid-row-start" | "grid-column-start" | "grid-row-end" | "grid-column-end" | "align-self" | "justify-self" | "order" | "flex-grow" | "flex-shrink" | "flex-basis" | "list-style" | "list-style-type" | "list-style-position" | "list-style-image" | "background-color" | "background-image" | "background-position" | "background-size" | "background-repeat" | "background-origin" | "background-clip" | "background-attachment" | "mask-image" | "border-top-style" | "border-top-width" | "border-top-color" | "border-bottom-style" | "border-bottom-width" | "border-bottom-color" | "border-left-style" | "border-left-width" | "border-left-color" | "border-right-style" | "border-right-width" | "border-right-color" | "border-top-left-radius" | "border-top-right-radius" | "border-bottom-left-radius" | "border-bottom-right-radius" | "opacity" | "cursor" | "transition" | "transition-property" | "transition-duration" | "transition-timing-function" | "transition-delay" | "animation" | "animation-name" | "animation-duration" | "animation-timing-function" | "animation-delay" | "animation-iteration-count" | "animation-direction" | "animation-fill-mode" | "animation-play-state" | "box-shadow" | "filter" | "transform" | "outline-width" | "outline-style" | "outline-color" | "position" | "float" | "clear" | "z-index" | "top" | "bottom" | "left" | "right" | "width" | "height" | "min-width" | "min-height" | "max-width" | "max-height" | "overflow" | "overflow-x" | "overflow-y" | "object-fit" | "object-position" | "column-width" | "column-count" | "margin-top" | "margin-bottom" | "margin-left" | "margin-right" | "padding-top" | "padding-bottom" | "padding-left" | "padding-right" | "font-family" | "font-weight" | "font-size" | "line-height" | "color" | "text-align" | "font-style" | "font-variant" | "text-decoration" | "text-decoration-line" | "text-decoration-color" | "text-decoration-style" | "letter-spacing" | "text-indent" | "text-transform" | "direction" | "white-space" | "text-wrap" | "text-overflow" | "text-shadow";
103
136
  }[];
104
137
  export declare const baseDefaultValue: Record<StyleCategory, StyleValue>;
105
138
  export default styleConstants;
@@ -17,6 +17,7 @@ var e = {
17
17
  FLEX_WRAP: "flex-wrap",
18
18
  FLEX_DIRECTION: "flex-direction",
19
19
  ALIGN_ITEMS: "align-items",
20
+ JUSTIFY_ITEMS: "justify-items",
20
21
  JUSTIFY_CONTENT: "justify-content",
21
22
  ALIGN_CONTENT: "align-content",
22
23
  ROW_GAP: "row-gap",
@@ -29,18 +30,26 @@ var e = {
29
30
  GRID_AUTO_FLOW: "grid-auto-flow",
30
31
  GRID_AUTO_ROWS: "grid-auto-rows",
31
32
  GRID_AUTO_COLUMNS: "grid-auto-columns",
33
+ GRID_ROW_START: "grid-row-start",
34
+ GRID_COLUMN_START: "grid-column-start",
35
+ GRID_ROW_END: "grid-row-end",
36
+ GRID_COLUMN_END: "grid-column-end",
32
37
  ALIGN_SELF: "align-self",
38
+ JUSTIFY_SELF: "justify-self",
33
39
  ORDER: "order",
34
40
  FLEX_GROW: "flex-grow",
35
41
  FLEX_SHRINK: "flex-shrink",
36
42
  FLEX_BASIS: "flex-basis",
37
43
  LIST_STYLE: "list-style",
38
44
  LIST_STYLE_TYPE: "list-style-type",
45
+ LIST_STYLE_POSITION: "list-style-position",
46
+ LIST_STYLE_IMAGE: "list-style-image",
39
47
  BACKGROUND_COLOR: "background-color",
40
48
  BACKGROUND_IMAGE: "background-image",
41
49
  BACKGROUND_POSITION: "background-position",
42
50
  BACKGROUND_SIZE: "background-size",
43
51
  BACKGROUND_REPEAT: "background-repeat",
52
+ BACKGROUND_ORIGIN: "background-origin",
44
53
  BACKGROUND_CLIP: "background-clip",
45
54
  BACKGROUND_ATTACHMENT: "background-attachment",
46
55
  MASK_IMAGE: "mask-image",
@@ -63,9 +72,25 @@ var e = {
63
72
  OPACITY: "opacity",
64
73
  CURSOR: "cursor",
65
74
  TRANSITION: "transition",
75
+ TRANSITION_PROPERTY: "transition-property",
76
+ TRANSITION_DURATION: "transition-duration",
77
+ TRANSITION_TIMING_FUNCTION: "transition-timing-function",
78
+ TRANSITION_DELAY: "transition-delay",
79
+ ANIMATION: "animation",
80
+ ANIMATION_NAME: "animation-name",
81
+ ANIMATION_DURATION: "animation-duration",
82
+ ANIMATION_TIMING_FUNCTION: "animation-timing-function",
83
+ ANIMATION_DELAY: "animation-delay",
84
+ ANIMATION_ITERATION_COUNT: "animation-iteration-count",
85
+ ANIMATION_DIRECTION: "animation-direction",
86
+ ANIMATION_FILL_MODE: "animation-fill-mode",
87
+ ANIMATION_PLAY_STATE: "animation-play-state",
66
88
  BOX_SHADOW: "box-shadow",
67
89
  FILTER: "filter",
68
90
  TRANSFORM: "transform",
91
+ OUTLINE_WIDTH: "outline-width",
92
+ OUTLINE_STYLE: "outline-style",
93
+ OUTLINE_COLOR: "outline-color",
69
94
  POSITION: "position",
70
95
  FLOAT: "float",
71
96
  CLEAR: "clear",
@@ -81,8 +106,12 @@ var e = {
81
106
  MAX_WIDTH: "max-width",
82
107
  MAX_HEIGHT: "max-height",
83
108
  OVERFLOW: "overflow",
109
+ OVERFLOW_X: "overflow-x",
110
+ OVERFLOW_Y: "overflow-y",
84
111
  OBJECT_FIT: "object-fit",
85
112
  OBJECT_POSITION: "object-position",
113
+ COLUMN_WIDTH: "column-width",
114
+ COLUMN_COUNT: "column-count",
86
115
  MARGIN_TOP: "margin-top",
87
116
  MARGIN_BOTTOM: "margin-bottom",
88
117
  MARGIN_LEFT: "margin-left",
@@ -98,7 +127,11 @@ var e = {
98
127
  COLOR: "color",
99
128
  TEXT_ALIGN: "text-align",
100
129
  FONT_STYLE: "font-style",
130
+ FONT_VARIANT: "font-variant",
101
131
  TEXT_DECORATION: "text-decoration",
132
+ TEXT_DECORATION_LINE: "text-decoration-line",
133
+ TEXT_DECORATION_COLOR: "text-decoration-color",
134
+ TEXT_DECORATION_STYLE: "text-decoration-style",
102
135
  LETTER_SPACING: "letter-spacing",
103
136
  TEXT_INDENT: "text-indent",
104
137
  TEXT_TRANSFORM: "text-transform",
@@ -111,6 +144,7 @@ var e = {
111
144
  t.FONT_FAMILY,
112
145
  t.FONT_SIZE,
113
146
  t.FONT_STYLE,
147
+ t.FONT_VARIANT,
114
148
  t.FONT_WEIGHT,
115
149
  t.COLOR,
116
150
  t.LINE_HEIGHT,
@@ -135,6 +169,7 @@ var e = {
135
169
  [t.FLEX_WRAP]: "nowrap",
136
170
  [t.FLEX_DIRECTION]: "row",
137
171
  [t.ALIGN_ITEMS]: "stretch",
172
+ [t.JUSTIFY_ITEMS]: "stretch",
138
173
  [t.JUSTIFY_CONTENT]: "flex-start",
139
174
  [t.ALIGN_CONTENT]: "flex-start",
140
175
  [t.ROW_GAP]: "0px",
@@ -147,18 +182,26 @@ var e = {
147
182
  [t.GRID_AUTO_FLOW]: "row",
148
183
  [t.GRID_AUTO_ROWS]: "auto",
149
184
  [t.GRID_AUTO_COLUMNS]: "auto",
185
+ [t.GRID_ROW_START]: "auto",
186
+ [t.GRID_COLUMN_START]: "auto",
187
+ [t.GRID_ROW_END]: "auto",
188
+ [t.GRID_COLUMN_END]: "auto",
150
189
  [t.ALIGN_SELF]: "auto",
190
+ [t.JUSTIFY_SELF]: "auto",
151
191
  [t.ORDER]: "0",
152
192
  [t.FLEX_GROW]: "0",
153
193
  [t.FLEX_SHRINK]: "1",
154
194
  [t.FLEX_BASIS]: "auto",
155
195
  [t.LIST_STYLE]: "disc",
156
196
  [t.LIST_STYLE_TYPE]: "disc",
197
+ [t.LIST_STYLE_POSITION]: "outside",
198
+ [t.LIST_STYLE_IMAGE]: "none",
157
199
  [t.BACKGROUND_COLOR]: "transparent",
158
200
  [t.BACKGROUND_IMAGE]: "url(\"https://cdn.plitzi.com/resources/img/background-image.svg\")",
159
201
  [t.BACKGROUND_POSITION]: "0px 0px",
160
202
  [t.BACKGROUND_SIZE]: "auto",
161
203
  [t.BACKGROUND_CLIP]: "border-box",
204
+ [t.BACKGROUND_ORIGIN]: "padding-box",
162
205
  [t.BACKGROUND_REPEAT]: "repeat",
163
206
  [t.BACKGROUND_ATTACHMENT]: "scroll",
164
207
  [t.MASK_IMAGE]: "none",
@@ -181,9 +224,25 @@ var e = {
181
224
  [t.OPACITY]: "1",
182
225
  [t.CURSOR]: "auto",
183
226
  [t.TRANSITION]: "opacity 200ms ease 0ms",
227
+ [t.TRANSITION_PROPERTY]: "all",
228
+ [t.TRANSITION_DURATION]: "0s",
229
+ [t.TRANSITION_TIMING_FUNCTION]: "ease",
230
+ [t.TRANSITION_DELAY]: "0s",
231
+ [t.ANIMATION]: "none",
232
+ [t.ANIMATION_NAME]: "none",
233
+ [t.ANIMATION_DURATION]: "0s",
234
+ [t.ANIMATION_TIMING_FUNCTION]: "ease",
235
+ [t.ANIMATION_DELAY]: "0s",
236
+ [t.ANIMATION_ITERATION_COUNT]: "1",
237
+ [t.ANIMATION_DIRECTION]: "normal",
238
+ [t.ANIMATION_FILL_MODE]: "none",
239
+ [t.ANIMATION_PLAY_STATE]: "running",
184
240
  [t.BOX_SHADOW]: "1px 1px 3px 1px black",
185
241
  [t.FILTER]: "blur(5px)",
186
242
  [t.TRANSFORM]: "translate3d(0px, 0px, 0px)",
243
+ [t.OUTLINE_WIDTH]: "medium",
244
+ [t.OUTLINE_STYLE]: "none",
245
+ [t.OUTLINE_COLOR]: "currentColor",
187
246
  [t.POSITION]: "static",
188
247
  [t.FLOAT]: "none",
189
248
  [t.CLEAR]: "none",
@@ -199,8 +258,12 @@ var e = {
199
258
  [t.MAX_WIDTH]: "none",
200
259
  [t.MAX_HEIGHT]: "none",
201
260
  [t.OVERFLOW]: "visible",
261
+ [t.OVERFLOW_X]: "visible",
262
+ [t.OVERFLOW_Y]: "visible",
202
263
  [t.OBJECT_FIT]: "fill",
203
264
  [t.OBJECT_POSITION]: "50% 50%",
265
+ [t.COLUMN_WIDTH]: "auto",
266
+ [t.COLUMN_COUNT]: "auto",
204
267
  [t.MARGIN_TOP]: "0px",
205
268
  [t.MARGIN_BOTTOM]: "0px",
206
269
  [t.MARGIN_LEFT]: "0px",
@@ -216,7 +279,11 @@ var e = {
216
279
  [t.COLOR]: "#000000",
217
280
  [t.TEXT_ALIGN]: "left",
218
281
  [t.FONT_STYLE]: "normal",
282
+ [t.FONT_VARIANT]: "normal",
219
283
  [t.TEXT_DECORATION]: "none",
284
+ [t.TEXT_DECORATION_LINE]: "none",
285
+ [t.TEXT_DECORATION_COLOR]: "currentColor",
286
+ [t.TEXT_DECORATION_STYLE]: "solid",
220
287
  [t.LETTER_SPACING]: "0px",
221
288
  [t.TEXT_INDENT]: "0px",
222
289
  [t.TEXT_TRANSFORM]: "none",
@@ -27,12 +27,12 @@ var s = ({ defaultTheme: e = "dark", storageKey: s = "theme", storageType: c = "
27
27
  }, [u]);
28
28
  let f = t(() => {
29
29
  d((e) => e === "dark" ? "light" : "dark");
30
- }, [d]);
30
+ }, [d]), p = r(() => ({
31
+ theme: u,
32
+ toggleTheme: f
33
+ }), [u, f]);
31
34
  return /* @__PURE__ */ i(o, {
32
- value: r(() => ({
33
- theme: u,
34
- toggleTheme: f
35
- }), [u, f]),
35
+ value: p,
36
36
  children: l
37
37
  });
38
38
  };
@@ -285,8 +285,10 @@ export type SSRServerConfig = {
285
285
  rsc?: SSRRscConfig;
286
286
  /** MCP (Model Context Protocol) server configuration — exposes schema tools to Claude. */
287
287
  mcp?: McpServerConfig;
288
- /** AI-native MCP server — replaces the standard MCP with a zero-hallucination batch protocol.
289
- * When enabled, requests to the MCP path serve the AI-native server instead. */
288
+ /** AI-native MCP server — replaces the standard MCP with a zero-hallucination batch protocol. `path` is where
289
+ * it answers inside a server that also serves pages (default /mcp); a dedicated MCP server (createMCPServer)
290
+ * owns its whole origin and ignores it. Note that createSSRServer mounts no MCP whatever this says — a
291
+ * process that serves both surfaces is built with createServer. */
290
292
  mcpAi?: {
291
293
  enabled?: boolean;
292
294
  path?: string;
@@ -320,7 +322,8 @@ export type SSRServerConfig = {
320
322
  /** Which request-handling services this server mounts. Each maps to an internal `create<Name>Server` unit,
321
323
  * so new services scale without rewriting the dispatcher. Omitted flags fall back to sensible defaults:
322
324
  * ssr on, rsc when `adapters.getRscData` exists, mcp from `mcpAi.enabled`. `ai` is a reserved slot (not
323
- * wired yet). The per-service presets (createSSRServer / createMCPServer) pin these flags for you. */
325
+ * wired yet). Only createServer reads these as written — the surface factories pin what their name promises
326
+ * (createSSRServer: no mcp; createMCPServer: mcp alone). */
324
327
  services?: ServerServices;
325
328
  /** Liveness/readiness endpoint for standalone servers (k8s probes). A stage always answers `path`
326
329
  * (default /health) with 200. The body is the generic identity payload built from `name`/`version`/`role`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plitzi/sdk-shared",
3
- "version": "0.32.15",
3
+ "version": "0.32.16",
4
4
  "license": "AGPL-3.0",
5
5
  "files": [
6
6
  "dist",
@@ -1229,8 +1229,8 @@
1229
1229
  "build:prod": "vite build && node ./scripts/generate-exports.mjs"
1230
1230
  },
1231
1231
  "dependencies": {
1232
- "@modelcontextprotocol/sdk": "^1.29.0",
1233
- "@plitzi/nexus": "0.32.15",
1232
+ "@modelcontextprotocol/sdk": "^1.30.0",
1233
+ "@plitzi/nexus": "^1.0.0",
1234
1234
  "@plitzi/plitzi-ui": "^1.6.18",
1235
1235
  "date-fns": "^4.4.0",
1236
1236
  "date-fns-tz": "^3.2.0",
@@ -1257,27 +1257,27 @@
1257
1257
  "@testing-library/user-event": "^14.6.1",
1258
1258
  "@types/react": "^19.2.17",
1259
1259
  "@types/react-dom": "^19.2.3",
1260
- "@vitejs/plugin-react": "^6.0.4",
1260
+ "@vitejs/plugin-react": "^6.0.5",
1261
1261
  "@vitest/coverage-v8": "^4.1.10",
1262
1262
  "babel-minify": "^0.5.2",
1263
1263
  "eslint": "^9.39.5",
1264
1264
  "eslint-config-airbnb": "^19.0.4",
1265
1265
  "eslint-config-prettier": "^10.1.8",
1266
- "eslint-config-turbo": "^2.10.6",
1266
+ "eslint-config-turbo": "^2.10.7",
1267
1267
  "eslint-import-resolver-alias": "^1.1.2",
1268
1268
  "eslint-plugin-cypress": "^6.4.3",
1269
1269
  "eslint-plugin-flowtype": "8.0.3",
1270
1270
  "eslint-plugin-import": "^2.32.0",
1271
- "eslint-plugin-jsdoc": "^63.2.2",
1271
+ "eslint-plugin-jsdoc": "^63.3.2",
1272
1272
  "eslint-plugin-jsx-a11y": "^6.10.2",
1273
1273
  "eslint-plugin-prettier": "^5.5.6",
1274
1274
  "eslint-plugin-react": "^7.37.5",
1275
1275
  "eslint-plugin-react-hooks": "^7.1.1",
1276
1276
  "eslint-plugin-react-refresh": "^0.5.3",
1277
- "eslint-plugin-storybook": "^10.5.4",
1278
- "globals": "^17.7.0",
1279
- "jsdom": "^29.1.1",
1280
- "postcss": "^8.5.23",
1277
+ "eslint-plugin-storybook": "^10.5.5",
1278
+ "globals": "^17.8.0",
1279
+ "jsdom": "^30.0.1",
1280
+ "postcss": "^8.5.25",
1281
1281
  "prettier": "^3.9.6",
1282
1282
  "react": "^19.2.8",
1283
1283
  "react-dom": "^19.2.8",
@@ -1285,7 +1285,7 @@
1285
1285
  "terser": "^5.49.0",
1286
1286
  "typescript": "^6.0.3",
1287
1287
  "typescript-eslint": "^8.65.0",
1288
- "vite": "^8.1.5",
1288
+ "vite": "^8.2.0",
1289
1289
  "vite-plugin-dts": "^5.0.3",
1290
1290
  "vite-plugin-react": "^4.0.1",
1291
1291
  "vitest": "^4.1.10",
package/vite.config.ts CHANGED
@@ -97,7 +97,11 @@ export default defineConfig(({ mode, command }) => {
97
97
  // '@hooks': path.resolve(__dirname, './src/hooks'),
98
98
  // '@': resolve(__dirname, './src'),
99
99
  },
100
- extensions: ['.js', '.ts', '.tsx', '.mjs']
100
+ extensions: ['.js', '.ts', '.tsx', '.mjs'],
101
+ // `@plitzi/nexus` lives in its own repo and is linked through a portal, so it carries its own
102
+ // node_modules/react. Without deduping, its hooks run against a second React copy and every
103
+ // useContext reads a null dispatcher.
104
+ dedupe: ['react', 'react-dom']
101
105
  },
102
106
  build: {
103
107
  // outDir: 'dist/src',