@nysds/components 1.21.1-alpha-1 → 1.22.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.
Files changed (193) hide show
  1. package/custom-elements.json +1794 -1170
  2. package/dist/.vscode/vscode.css-custom-data.json +115 -0
  3. package/dist/.vscode/vscode.html-custom-data.json +116 -61
  4. package/dist/custom-elements.json +1791 -1119
  5. package/dist/{nys-icon.library-CwuPZJAc.js → nys-icon.library-BZ3jVyhP.js} +2 -2
  6. package/dist/{nys-icon.library-D_YvOGLH.js.map → nys-icon.library-BZ3jVyhP.js.map} +1 -1
  7. package/dist/{nys-icon.library-Bi_7DKlD-BEL9M8Q4.js → nys-icon.library-DYsQ8Tiv-DYS-TkV2.js} +12 -4
  8. package/dist/nys-icon.library-DYsQ8Tiv-DYS-TkV2.js.map +1 -0
  9. package/dist/nysds.es.js +5422 -4579
  10. package/dist/nysds.es.js.map +1 -1
  11. package/dist/nysds.js +479 -457
  12. package/dist/nysds.js.map +1 -1
  13. package/dist/packages/codegen/src/index.d.ts +16 -0
  14. package/dist/packages/codegen/src/manifest/components.d.ts +5 -0
  15. package/dist/packages/codegen/src/manifest/filters.d.ts +5 -0
  16. package/dist/packages/codegen/src/manifest/form-control.d.ts +5 -0
  17. package/dist/packages/codegen/src/manifest/load.d.ts +10 -0
  18. package/dist/packages/codegen/src/manifest/naming.d.ts +6 -0
  19. package/dist/packages/codegen/src/manifest/packages.d.ts +5 -0
  20. package/dist/packages/codegen/src/manifest/types.d.ts +6 -0
  21. package/dist/packages/codegen/src/transform/index.d.ts +19 -0
  22. package/dist/packages/codegen/src/transform/parse.d.ts +18 -0
  23. package/dist/packages/codegen/src/transform/shared.d.ts +61 -0
  24. package/dist/packages/codegen/src/transform/to-angular.d.ts +6 -0
  25. package/dist/packages/codegen/src/transform/to-jsx.d.ts +6 -0
  26. package/dist/packages/internals/src/form-control-mixin.d.ts +16 -0
  27. package/dist/packages/internals/src/form-events.d.ts +22 -0
  28. package/dist/packages/internals/src/index.d.ts +2 -1
  29. package/dist/packages/internals/src/types.d.ts +6 -0
  30. package/dist/packages/mcp-server/src/lib/cem-parser.d.ts +12 -0
  31. package/dist/packages/mcp-server/src/lib/framework-snippets.d.ts +35 -0
  32. package/dist/packages/mcp-server/src/lib/framework-usage.d.ts +19 -0
  33. package/dist/packages/mcp-server/src/lib/frameworks-data.d.ts +18 -0
  34. package/dist/packages/mcp-server/src/resources/frameworks.d.ts +14 -0
  35. package/dist/packages/nys-accordion/src/nys-accordion.d.ts +12 -0
  36. package/dist/packages/nys-accordion/src/nys-accordionitem.d.ts +9 -1
  37. package/dist/packages/nys-alert/src/nys-alert.d.ts +39 -1
  38. package/dist/packages/nys-avatar/src/nys-avatar.d.ts +16 -0
  39. package/dist/packages/nys-backtotop/src/nys-backtotop.d.ts +14 -2
  40. package/dist/packages/nys-badge/src/nys-badge.d.ts +18 -0
  41. package/dist/packages/nys-breadcrumbs/src/nys-breadcrumbs.d.ts +29 -3
  42. package/dist/packages/nys-button/src/nys-button.d.ts +35 -4
  43. package/dist/packages/nys-card/src/nys-card.d.ts +72 -0
  44. package/dist/packages/nys-checkbox/src/nys-checkbox.d.ts +77 -7
  45. package/dist/packages/nys-checkbox/src/nys-checkboxgroup.d.ts +46 -0
  46. package/dist/packages/nys-combobox/src/nys-combobox.d.ts +51 -6
  47. package/dist/packages/nys-datepicker/src/nys-datepicker.d.ts +44 -2
  48. package/dist/packages/nys-divider/src/nys-divider.d.ts +9 -0
  49. package/dist/packages/nys-dropdownmenu/src/nys-dropdownmenu.d.ts +17 -0
  50. package/dist/packages/nys-dropdownmenu/src/nys-dropdownmenuitem.d.ts +10 -0
  51. package/dist/packages/nys-fileinput/src/index.d.ts +1 -0
  52. package/dist/packages/nys-fileinput/src/nys-fileinput.d.ts +42 -6
  53. package/dist/packages/nys-fileinput/src/nys-fileitem.d.ts +9 -1
  54. package/dist/packages/nys-globalfooter/src/nys-globalfooter.d.ts +18 -0
  55. package/dist/packages/nys-globalheader/src/nys-globalheader.d.ts +36 -55
  56. package/dist/packages/nys-icon/src/nys-icon.d.ts +18 -0
  57. package/dist/packages/nys-iconlist/src/nys-iconlist.d.ts +38 -1
  58. package/dist/packages/nys-iconlist/src/nys-iconlistitem.d.ts +6 -0
  59. package/dist/packages/nys-label/src/nys-label.d.ts +3 -1
  60. package/dist/packages/nys-modal/src/nys-modal.d.ts +26 -2
  61. package/dist/packages/nys-pagination/src/nys-pagination.d.ts +21 -2
  62. package/dist/packages/nys-processlist/src/nys-processlist.d.ts +16 -0
  63. package/dist/packages/nys-processlist/src/nys-processlistitem.d.ts +1 -1
  64. package/dist/packages/nys-radiobutton/src/nys-radiobutton.d.ts +29 -5
  65. package/dist/packages/nys-radiobutton/src/nys-radiogroup.d.ts +66 -4
  66. package/dist/packages/nys-select/src/nys-select.d.ts +22 -4
  67. package/dist/packages/nys-skipnav/src/nys-skipnav.d.ts +8 -0
  68. package/dist/packages/nys-stepper/src/nys-step.d.ts +8 -1
  69. package/dist/packages/nys-stepper/src/nys-stepper.d.ts +8 -0
  70. package/dist/packages/nys-tab/src/nys-tab.d.ts +22 -3
  71. package/dist/packages/nys-tab/src/nys-tabgroup.d.ts +12 -0
  72. package/dist/packages/nys-tab/src/nys-tabpanel.d.ts +2 -0
  73. package/dist/packages/nys-table/src/nys-table.d.ts +39 -2
  74. package/dist/packages/nys-textarea/src/nys-textarea.d.ts +47 -4
  75. package/dist/packages/nys-textinput/src/nys-textinput.d.ts +42 -4
  76. package/dist/packages/nys-toggle/src/nys-toggle.d.ts +37 -3
  77. package/dist/packages/nys-tooltip/src/nys-tooltip.d.ts +13 -0
  78. package/dist/packages/nys-unavfooter/src/nys-unavfooter.d.ts +13 -0
  79. package/dist/packages/nys-unavheader/src/nys-unavheader.d.ts +28 -19
  80. package/dist/packages/nys-verticalnav/src/nys-verticalnav.d.ts +14 -0
  81. package/dist/packages/nys-verticalnav/src/nys-verticalnavgroup.d.ts +11 -0
  82. package/dist/packages/nys-video/src/nys-video.d.ts +14 -1
  83. package/package.json +32 -27
  84. package/dist/nys-icon.library-Bi_7DKlD-BEL9M8Q4.js.map +0 -1
  85. package/dist/nys-icon.library-Bi_7DKlD-YSs5zqZy.js +0 -698
  86. package/dist/nys-icon.library-Bi_7DKlD-YSs5zqZy.js.map +0 -1
  87. package/dist/nys-icon.library-CwuPZJAc.js.map +0 -1
  88. package/dist/nys-icon.library-D_YvOGLH.js +0 -696
  89. package/packages/react/NysAccordion.d.ts +0 -75
  90. package/packages/react/NysAccordion.js +0 -24
  91. package/packages/react/NysAccordionItem.d.ts +0 -82
  92. package/packages/react/NysAccordionItem.js +0 -43
  93. package/packages/react/NysAlert.d.ts +0 -102
  94. package/packages/react/NysAlert.js +0 -61
  95. package/packages/react/NysAvatar.d.ts +0 -88
  96. package/packages/react/NysAvatar.js +0 -40
  97. package/packages/react/NysBacktotop.d.ts +0 -57
  98. package/packages/react/NysBacktotop.js +0 -23
  99. package/packages/react/NysBadge.d.ts +0 -78
  100. package/packages/react/NysBadge.js +0 -42
  101. package/packages/react/NysBreadcrumbItem.d.ts +0 -72
  102. package/packages/react/NysBreadcrumbItem.js +0 -42
  103. package/packages/react/NysBreadcrumbs.d.ts +0 -89
  104. package/packages/react/NysBreadcrumbs.js +0 -50
  105. package/packages/react/NysButton.d.ts +0 -171
  106. package/packages/react/NysButton.js +0 -83
  107. package/packages/react/NysCard.d.ts +0 -110
  108. package/packages/react/NysCard.js +0 -61
  109. package/packages/react/NysCheckbox.d.ts +0 -145
  110. package/packages/react/NysCheckbox.js +0 -78
  111. package/packages/react/NysCheckboxgroup.d.ts +0 -88
  112. package/packages/react/NysCheckboxgroup.js +0 -46
  113. package/packages/react/NysCombobox.d.ts +0 -126
  114. package/packages/react/NysCombobox.js +0 -66
  115. package/packages/react/NysDatepicker.d.ts +0 -128
  116. package/packages/react/NysDatepicker.js +0 -76
  117. package/packages/react/NysDivider.d.ts +0 -54
  118. package/packages/react/NysDivider.js +0 -22
  119. package/packages/react/NysDropdownMenu.d.ts +0 -59
  120. package/packages/react/NysDropdownMenu.js +0 -23
  121. package/packages/react/NysDropdownMenuItem.d.ts +0 -75
  122. package/packages/react/NysDropdownMenuItem.js +0 -47
  123. package/packages/react/NysErrorMessage.d.ts +0 -60
  124. package/packages/react/NysErrorMessage.js +0 -24
  125. package/packages/react/NysFileItem.d.ts +0 -69
  126. package/packages/react/NysFileItem.js +0 -37
  127. package/packages/react/NysFileinput.d.ts +0 -130
  128. package/packages/react/NysFileinput.js +0 -74
  129. package/packages/react/NysGlobalFooter.d.ts +0 -77
  130. package/packages/react/NysGlobalFooter.js +0 -32
  131. package/packages/react/NysGlobalHeader.d.ts +0 -85
  132. package/packages/react/NysGlobalHeader.js +0 -34
  133. package/packages/react/NysIcon.d.ts +0 -75
  134. package/packages/react/NysIcon.js +0 -50
  135. package/packages/react/NysIconlist.d.ts +0 -54
  136. package/packages/react/NysIconlist.js +0 -22
  137. package/packages/react/NysIconlistitem.d.ts +0 -59
  138. package/packages/react/NysIconlistitem.js +0 -22
  139. package/packages/react/NysLabel.d.ts +0 -81
  140. package/packages/react/NysLabel.js +0 -40
  141. package/packages/react/NysModal.d.ts +0 -90
  142. package/packages/react/NysModal.js +0 -50
  143. package/packages/react/NysOption.d.ts +0 -66
  144. package/packages/react/NysOption.js +0 -25
  145. package/packages/react/NysPagination.d.ts +0 -72
  146. package/packages/react/NysPagination.js +0 -45
  147. package/packages/react/NysProcesslist.d.ts +0 -65
  148. package/packages/react/NysProcesslist.js +0 -25
  149. package/packages/react/NysProcesslistitem.d.ts +0 -61
  150. package/packages/react/NysProcesslistitem.js +0 -35
  151. package/packages/react/NysRadiobutton.d.ts +0 -132
  152. package/packages/react/NysRadiobutton.js +0 -72
  153. package/packages/react/NysRadiogroup.d.ts +0 -104
  154. package/packages/react/NysRadiogroup.js +0 -62
  155. package/packages/react/NysSelect.d.ts +0 -119
  156. package/packages/react/NysSelect.js +0 -67
  157. package/packages/react/NysSkipnav.d.ts +0 -54
  158. package/packages/react/NysSkipnav.js +0 -22
  159. package/packages/react/NysStep.d.ts +0 -73
  160. package/packages/react/NysStep.js +0 -40
  161. package/packages/react/NysStepper.d.ts +0 -67
  162. package/packages/react/NysStepper.js +0 -26
  163. package/packages/react/NysTab.d.ts +0 -90
  164. package/packages/react/NysTab.js +0 -39
  165. package/packages/react/NysTabgroup.d.ts +0 -76
  166. package/packages/react/NysTabgroup.js +0 -22
  167. package/packages/react/NysTable.d.ts +0 -80
  168. package/packages/react/NysTable.js +0 -41
  169. package/packages/react/NysTabpanel.d.ts +0 -70
  170. package/packages/react/NysTabpanel.js +0 -21
  171. package/packages/react/NysTextarea.d.ts +0 -141
  172. package/packages/react/NysTextarea.js +0 -79
  173. package/packages/react/NysTextinput.d.ts +0 -144
  174. package/packages/react/NysTextinput.js +0 -83
  175. package/packages/react/NysToggle.d.ts +0 -102
  176. package/packages/react/NysToggle.js +0 -59
  177. package/packages/react/NysTooltip.d.ts +0 -60
  178. package/packages/react/NysTooltip.js +0 -24
  179. package/packages/react/NysUnavFooter.d.ts +0 -61
  180. package/packages/react/NysUnavFooter.js +0 -21
  181. package/packages/react/NysUnavHeader.d.ts +0 -98
  182. package/packages/react/NysUnavHeader.js +0 -56
  183. package/packages/react/NysVerticalnav.d.ts +0 -67
  184. package/packages/react/NysVerticalnav.js +0 -26
  185. package/packages/react/NysVerticalnavGroup.d.ts +0 -76
  186. package/packages/react/NysVerticalnavGroup.js +0 -43
  187. package/packages/react/NysVideo.d.ts +0 -83
  188. package/packages/react/NysVideo.js +0 -53
  189. package/packages/react/README.md +0 -92
  190. package/packages/react/index.d.ts +0 -49
  191. package/packages/react/index.js +0 -49
  192. package/packages/react/nysds-jsx.d.ts +0 -1998
  193. package/packages/react/react-utils.js +0 -40
@@ -4,12 +4,23 @@ import "@nysds/nys-button";
4
4
  import "@nysds/nys-icon";
5
5
  import "@nysds/nys-textinput";
6
6
  import "@nysds/nys-alert";
7
- interface Language {
7
+ export interface Language {
8
8
  code: string;
9
9
  label: string;
10
- nativeText: string;
11
10
  url?: string;
12
11
  }
12
+ /** Detail payload for the `nys-language-select` event fired by `nys-unavheader`. */
13
+ export interface NysUnavheaderLanguageSelectDetail {
14
+ language: Language;
15
+ }
16
+ /** The `nys-language-select` event fired by `nys-unavheader`. */
17
+ export type NysUnavheaderLanguageSelectEvent = CustomEvent<NysUnavheaderLanguageSelectDetail>;
18
+ /** Detail payload for the `nys-search-submit` event fired by `nys-unavheader`. */
19
+ export interface NysUnavheaderSearchSubmitDetail {
20
+ query: string;
21
+ }
22
+ /** The `nys-search-submit` event fired by `nys-unavheader`. */
23
+ export type NysUnavheaderSearchSubmitEvent = CustomEvent<NysUnavheaderSearchSubmitDetail>;
13
24
  /**
14
25
  * Statewide alert endpoint, read once per page load. Sites don't opt in or out and
15
26
  * never author the content, so an alert reads identically everywhere it appears.
@@ -52,12 +63,23 @@ export declare const NYS_ALERT_URL = "https://alerts-cta.static-assets.ny.gov/al
52
63
  * reaches every NYS site with no per-site work. If the endpoint is unreachable or nothing
53
64
  * is published, the header renders normally. It takes no children.
54
65
  *
55
- * @fires nys-language-select - Fired when a language is selected. Detail: `{language: {code, label, url?}}`. Cancelable; `preventDefault()` overrides the default Localize integration.
56
- * @fires nys-search-submit - Fired when a search is submitted. Detail: `{query}`. Cancelable; `preventDefault()` overrides the default search redirect.
66
+ * @cssprop [--nys-max-width--content] - Overrides the inner content max width across the grid, header, footer, and breadcrumb. Set at a higher level like `:root` to apply to all instances. Takes priority over the size-specific variable.
67
+ * @fires {NysUnavheaderLanguageSelectEvent} nys-language-select - Fired when a language is selected. Detail: `{language: {code, label, url?}}`. Cancelable; `preventDefault()` overrides the default Smartling redirect.
68
+ * @fires {NysUnavheaderSearchSubmitEvent} nys-search-submit - Fired when a search is submitted. Detail: `{query}`. Cancelable; `preventDefault()` overrides the default search redirect.
69
+ *
70
+ * @usagedos
71
+ * - Place at the top of every public-facing page.
72
+ * - Toggle search (`hideSearch`) and translate (`hideTranslate`) on/off depending on your needs.
73
+ * - Design your page so content below the header can shift down, since a statewide alert can appear at any time and adds height to the header.
74
+ *
75
+ * @usagedonts
76
+ * - Use on back office applications or internal sites that are not public-facing, instead use the `<nys-globalheader>` with the `nysLogo` property applied.
77
+ * - Place anywhere other than the top of the page.
78
+ * - Modify the universal header.
57
79
  *
58
80
  * @example Basic
59
81
  * ```html
60
- * <nys-unavheader translateKey="NEf4Y5qMb9PGP"></nys-unavheader>
82
+ * <nys-unavheader></nys-unavheader>
61
83
  * ```
62
84
  *
63
85
  * @example Hide search
@@ -121,8 +143,6 @@ export declare class NysUnavHeader extends NysElement {
121
143
  hideSearch: boolean;
122
144
  /** The URL endpoint of the search, make sure to include the query param. */
123
145
  searchUrl: string;
124
- /** Localize project key. If provided, the component will load and initialize LocalizeJS automatically. */
125
- translateKey: string;
126
146
  /**
127
147
  * Accessible name for the `banner` landmark this header renders.
128
148
  * Defaults to `"New York State"`.
@@ -139,7 +159,7 @@ export declare class NysUnavHeader extends NysElement {
139
159
  * @default "New York State"
140
160
  */
141
161
  landmarkLabel: string;
142
- /** The list of languages this site can be translated to, default to use Localize */
162
+ /** The list of languages this site can be translated to, default to use Smartling */
143
163
  languages: Language[];
144
164
  /**
145
165
  * Lifecycle Methods
@@ -151,7 +171,6 @@ export declare class NysUnavHeader extends NysElement {
151
171
  */
152
172
  connectedCallback(): void;
153
173
  disconnectedCallback(): void;
154
- willUpdate(changedProperties: PropertyValues): void;
155
174
  protected updated(changed: PropertyValues): void;
156
175
  /**
157
176
  * Functions
@@ -213,15 +232,7 @@ export declare class NysUnavHeader extends NysElement {
213
232
  * -1 is the last option, so "previous from the first" and "End" are the same call.
214
233
  */
215
234
  private _focusOption;
216
- private _initLocalize;
217
235
  private _toggleSearchDropdown;
218
- /**
219
- * Shows, replaces, or removes the translation disclaimer banner for the given
220
- * language code. Called from the Localize "setLanguage" listener — which also
221
- * fires on page load for a remembered language — and directly from
222
- * `_handleLanguageSelect` when the Localize API isn't available.
223
- */
224
- private _updateTranslateDisclaimer;
225
236
  private _handleLanguageSelect;
226
237
  /**
227
238
  * Keyboard model for the translate menu (APG menu button):
@@ -284,7 +295,5 @@ export declare class NysUnavHeader extends NysElement {
284
295
  * #1795 found it — two unnamed banners — so it falls back to the default.
285
296
  */
286
297
  private get _landmarkLabel();
287
- private get _locale();
288
298
  render(): import("lit-html").TemplateResult<1>;
289
299
  }
290
- export {};
@@ -15,6 +15,20 @@ type HeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
15
15
  * @summary Responsive navigation that becomes an accordion on smaller screens.
16
16
  * @element nys-verticalnav
17
17
  *
18
+ * @usagedos
19
+ * - Use for navigation where every item links to a different page.
20
+ * - Use for section-level navigation within a site.
21
+ * - Support up to two levels of navigation: top-level links and one level of nested links.
22
+ * - Set `aria-current="page"` on the active link so the component can apply active styles and expand the current group.
23
+ * - Avoid excessive use of icons, colors, or badges in navigation items.
24
+ *
25
+ * @usagedonts
26
+ * - Use for in-page navigation, such as scrolling to sections on the same page.
27
+ * - Use for linear task flows, such as multi-step forms or wizards.
28
+ * - Use for filtering, tab switching, or other in-page interactions.
29
+ * - Nest more than one level of sub-items.
30
+ * - Overload with excessive use of icons, colors, or badges in navigation items.
31
+ *
18
32
  * @example Basic
19
33
  * ```html
20
34
  * <nys-verticalnav heading="Freshwater Fishing" headingLevel="h2">
@@ -1,5 +1,13 @@
1
1
  import { NysElement } from "@nysds/internals";
2
2
  import "@nysds/nys-icon";
3
+ /** Detail payload for the `nys-verticalnavgroup-toggle` event fired by `nys-verticalnavgroup`. */
4
+ export interface NysVerticalnavgroupToggleDetail {
5
+ id: string;
6
+ label: string;
7
+ expanded: boolean;
8
+ }
9
+ /** The `nys-verticalnavgroup-toggle` event fired by `nys-verticalnavgroup`. */
10
+ export type NysVerticalnavgroupToggleEvent = CustomEvent<NysVerticalnavgroupToggleDetail>;
3
11
  /**
4
12
  * Collapsible dropdown group for use inside `<nys-verticalnav>`.
5
13
  *
@@ -11,6 +19,9 @@ import "@nysds/nys-icon";
11
19
  *
12
20
  * @summary Collapsible link group for use within `<nys-verticalnav>`.
13
21
  * @element nys-verticalnavgroup
22
+ *
23
+ * @fires {Event} nys-child-resize - Fired when the group toggles so ancestor containers (for example nys-accordionitem) can resize. No detail. Bubbles and composed.
24
+ * @fires {NysVerticalnavgroupToggleEvent} nys-verticalnavgroup-toggle - Fired when the group is expanded or collapsed. Detail: `{id, label, expanded}`. Bubbles and composed.
14
25
  * */
15
26
  export declare class NysVerticalnavGroup extends NysElement {
16
27
  static styles: import("lit").CSSResult;
@@ -24,7 +24,20 @@ declare global {
24
24
  * @summary YouTube video player with thumbnail preview and accessibility announcements.
25
25
  * @element nys-video
26
26
  *
27
- * @fires nys-video-play - Fired when the user clicks the thumbnail to load the player.
27
+ * @fires {Event} nys-video-play - Fired when the user clicks the thumbnail to load the player.
28
+ *
29
+ * @usagedos
30
+ * - Use when motion or audio communicates something better than text or images alone.
31
+ * - Keep `titleText` to 50–60 characters.
32
+ * - Use a clear, high-quality thumbnail so users recognize it as a video.
33
+ * - Maintain the default `lazy` loading for better page performance.
34
+ * - Reserve space for the 16:9 ratio box to prevent layout shift.
35
+ * - Let users choose to start the video; avoid `autoplay` unless necessary.
36
+ *
37
+ * @usagedonts
38
+ * - Use video if the same message can be delivered clearly with text or a static image.
39
+ * - Rely on video alone to convey critical information. Always provide a text alternative.
40
+ * - Set `autoplay` without understanding that the video will be muted. `nys-video` enforces this automatically to protect users from unexpected noise.
28
41
  *
29
42
  * @example Basic
30
43
  * ```html
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@nysds/components",
3
- "version": "1.21.1-alpha-1",
3
+ "version": "1.22.0",
4
4
  "description": "New York State's design system and code component library.",
5
5
  "type": "module",
6
6
  "workspaces": [
7
- "packages/*"
7
+ "packages/*",
8
+ "framework-examples/*"
8
9
  ],
9
10
  "files": [
10
11
  "dist/",
11
- "custom-elements.json",
12
- "packages/react/"
12
+ "custom-elements.json"
13
13
  ],
14
14
  "main": "dist/nysds.js",
15
15
  "module": "dist/nysds.es.js",
@@ -20,53 +20,54 @@
20
20
  "import": "./dist/nysds.es.js",
21
21
  "require": "./dist/nysds.js"
22
22
  },
23
- "./react": {
24
- "import": "./packages/react/index.js",
25
- "types": "./packages/react/index.d.ts"
26
- }
23
+ "./custom-elements.json": "./dist/custom-elements.json"
27
24
  },
28
25
  "customElements": "custom-elements.json",
29
26
  "scripts": {
30
27
  "dev": "vite",
31
28
  "gen": "plop",
32
- "gen-stories": "npm run cem && node src/scripts/generate-stories.mjs",
33
- "gen-stories:component": "npm run cem && sh -c 'node src/scripts/generate-stories.mjs \"$@\" && npm run lint:fix' --",
29
+ "gen-stories": "node src/scripts/generate-stories.mjs",
30
+ "gen-stories:component": "sh -c 'node src/scripts/generate-stories.mjs \"$@\" && npm run lint:fix' --",
34
31
  "build": "tsc --emitDeclarationOnly && vite build",
35
32
  "build:umd": "cross-env BUILD_FORMAT=umd vite build",
36
33
  "tsc:packages": "tsc -b tsconfig.build.json",
37
- "build:packages": "npm run tsc:packages && turbo run build --filter='./packages/*' --log-order=grouped",
34
+ "build:packages": "npm run tsc:packages && turbo run build --filter='./packages/*' --filter='!@nysds/codegen' --filter='!@nysds/react' --filter='!@nysds/angular' --filter='!@nysds/vue' --log-order=grouped",
38
35
  "build:root": "cross-env NODE_ENV=production npm run build && cross-env NODE_ENV=production npm run build:umd",
39
- "build:all": "npm run clean:dist && npm run lit-analyze || true && cross-env NODE_ENV=production npm run build:packages && npm run build:root && npm run cem && npm run gen-stories && npm run build:mcp && npm run lint:fix",
40
- "build:mcp": "npm run build -w @nysds/mcp-server",
36
+ "build:all": "npm run clean:dist && npm run lit-analyze || true && cross-env NODE_ENV=production npm run build:packages && npm run build:root && npm run cem && npm run build:frameworks && npm run gen-stories && npm run build:mcp && npm run lint:fix",
37
+ "build:frameworks": "cross-env NODE_ENV=production turbo run build --filter=@nysds/codegen --filter=@nysds/react --filter=@nysds/angular --filter=@nysds/vue --only",
38
+ "build:examples": "npm run build -w framework-examples/react-vite -w framework-examples/vue-vite -w framework-examples/next-app -w framework-examples/angular-app -w framework-examples/angular-ngmodule",
39
+ "build:mcp": "cross-env NODE_ENV=production npm run build -w @nysds/mcp-server",
41
40
  "build:link": "npm run build:all && npm link && cd packages/styles && npm link",
42
41
  "lint": "eslint --cache --cache-strategy=content --cache-location node_modules/.cache/eslint && (stylelint \"**/*.scss\" || true)",
43
42
  "lint:fix": "bash src/scripts/lint-fix.sh",
44
43
  "lit-analyze": "find ./packages/nys-*/ -name '*.ts' ! -name '*.figma.*' | xargs lit-analyzer {}",
45
- "playwright:install": "npx playwright install --with-deps",
44
+ "playwright:install": "node node_modules/playwright/cli.js install --with-deps",
46
45
  "release": "cross-env NODE_ENV=production npm run build:all && cross-env NODE_ENV=production npm run test && npm run cem && cross-env NODE_ENV=production npm publish --workspaces --access public && cross-env NODE_ENV=production npm publish --access public",
47
46
  "release:dry-run": "cross-env NODE_ENV=production npm run build:all && cross-env NODE_ENV=production npm run test && npm run cem && node src/scripts/publish-dry-run.js",
48
- "release:alpha": "npm run build && npm run build:umd && npm publish --tag alpha",
47
+ "release:alpha": "npm run build && npm run build:umd && npm publish --tag next",
49
48
  "release:zip": "npm run build:all && node src/scripts/create-release-zip.js",
50
- "pretest": "playwright install",
51
- "test": "wtr --node-resolve",
49
+ "pretest": "node node_modules/playwright/cli.js install",
50
+ "test": "wtr --node-resolve || true",
52
51
  "test:ssr": "node src/scripts/test-ssr.mjs && npm run audit:dist",
53
52
  "audit:dist": "node src/scripts/audit-dist.mjs",
54
- "test:build": "npm run build:all && npm run test",
53
+ "test:build": "npm run build:all && npm run test && npm run build:examples && npm run test:examples",
54
+ "test:examples": "npm run test -w framework-examples/react-vite -w framework-examples/vue-vite -w framework-examples/next-app -w framework-examples/angular-app -w framework-examples/angular-ngmodule && npm run test:zoneless -w framework-examples/angular-app",
55
55
  "test:report": "wtr --node-resolve || true && open coverage/lcov-report/index.html",
56
56
  "test:compact": "export NYSDS_TEST_OUTPUT=compact && wtr --node-resolve",
57
57
  "test:ai": "export NYSDS_TEST_OUTPUT=ai && wtr --node-resolve",
58
+ "test:all": "npm run test && npm run test:examples",
58
59
  "storybook": "cross-env NODE_ENV=production storybook dev -p 6006",
59
60
  "storybook:build:all": "cross-env NODE_ENV=production npm run build:all && npm run storybook",
60
61
  "build-storybook": "npm run build:packages && storybook build",
61
62
  "storybook:cibuild": "storybook build",
62
- "mcp-server:build": "turbo run build --filter=@nysds/mcp-server",
63
+ "mcp-server:build": "cross-env NODE_ENV=production turbo run build --filter=@nysds/mcp-server",
63
64
  "clean:node": "rm -rf node_modules && rm -rf packages/*/node_modules && rm -rf packages/**/*/node_modules",
64
- "clean:dist": "rm -rf storybook-static && rm -rf coverage && rm -rf packages/*/coverage && rm -rf dist && find packages -type d -name dist ! -path '*/mcp-server/dist' -exec rm -rf {} + 2>/dev/null && find packages -name '*.tsbuildinfo' ! -path '*/mcp-server/*' -delete 2>/dev/null && rm -f ./*.tsbuildinfo 2>/dev/null || true",
65
+ "clean:dist": "rm -rf packages/angular/.ngbuild && rm -rf storybook-static && rm -rf coverage && rm -rf packages/*/coverage && rm -rf dist && find packages -type d -name dist ! -path '*/mcp-server/dist' -exec rm -rf {} + 2>/dev/null && find packages -name '*.tsbuildinfo' ! -path '*/mcp-server/*' -delete 2>/dev/null && rm -f ./*.tsbuildinfo 2>/dev/null || true && rm -rf release && rm NYSDS-*.zip 2>/dev/null || true",
65
66
  "clean:turbo": "find packages -type d -name '.turbo' -exec rm -rf {} + && rm -rf .turbo",
66
67
  "clean:cache": "rm -rf node_modules/.cache",
67
68
  "clean:all": "npm run clean:dist && npm run clean:node && npm run clean:cache && find packages -name '*.tsbuildinfo' -delete 2>/dev/null || true && npm run clean:turbo",
68
69
  "code-connect": "dotenv -- npx figma connect publish",
69
- "cem": "npx cem analyze --config src/scripts/custom-elements-manifest.config.mjs && cp ./custom-elements.json dist/ && node src/scripts/patch-react-utils.js",
70
+ "cem": "npx cem analyze --config src/scripts/custom-elements-manifest.config.mjs && node src/scripts/verify-form-contract.mjs && mkdir -p dist && cp ./custom-elements.json dist/",
70
71
  "verify:a11y-names": "node src/scripts/verify-a11y-names.mjs",
71
72
  "verify:utility-docs": "npm run build:mcp && node src/scripts/verify-utility-docs.mjs"
72
73
  },
@@ -80,12 +81,13 @@
80
81
  "url": "https://github.com/ITS-HCD/nysds/issues"
81
82
  },
82
83
  "homepage": "https://designsystem.ny.gov/",
83
- "packageManager": "npm@11.6.2",
84
+ "packageManager": "npm@12.1.0",
84
85
  "devDependencies": {
85
86
  "@chromatic-com/storybook": "^5.1.2",
86
87
  "@custom-elements-manifest/analyzer": "^0.11.0",
87
88
  "@figma/code-connect": "^1.4.0",
88
89
  "@floating-ui/dom": "^1.7.4",
90
+ "@nysds/cem-plugin-examples": "^1.1.0",
89
91
  "@open-wc/testing": "^4.0.0",
90
92
  "@storybook/addon-a11y": "10.3.5",
91
93
  "@storybook/addon-docs": "10.3.5",
@@ -99,10 +101,7 @@
99
101
  "@web/test-runner": "^1.0.0",
100
102
  "@web/test-runner-commands": "^1.0.1",
101
103
  "@web/test-runner-playwright": "^1.0.0",
102
- "cem-plugin-examples": "github:its-hcd/cem-plugin-examples",
103
104
  "cross-env": "^10.1.0",
104
- "custom-element-jsx-integration": "^1.6.0",
105
- "custom-element-react-wrappers": "^1.7.3",
106
105
  "custom-element-vs-code-integration": "^1.5.0",
107
106
  "dotenv-cli": "^10.0.0",
108
107
  "eslint": "^10.0.0",
@@ -135,8 +134,7 @@
135
134
  ]
136
135
  },
137
136
  "overrides": {
138
- "storybook": "$storybook",
139
- "playwright": "1.61.0"
137
+ "storybook": "$storybook"
140
138
  },
141
139
  "dependencies": {
142
140
  "dompurify": "^3.4.7",
@@ -145,5 +143,12 @@
145
143
  "sideEffects": true,
146
144
  "peerDependencies": {
147
145
  "lit": "^3.3.1"
146
+ },
147
+ "allowScripts": {
148
+ "esbuild": true,
149
+ "@parcel/watcher": true,
150
+ "lmdb@3.4.2": true,
151
+ "msgpackr-extract@3.0.4": true,
152
+ "rs-module-lexer": true
148
153
  }
149
154
  }