@juspay/svelte-ui-components 4.52.1 → 4.53.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/dist/AttachmentChipRow/AttachmentChipRow.svelte +3 -2
- package/dist/AttachmentChipRow/properties.d.ts +2 -0
- package/dist/Book/Book.svelte +2 -0
- package/dist/Book/properties.d.ts +2 -0
- package/dist/Chat/Chat.svelte +2 -0
- package/dist/Chat/properties.d.ts +2 -0
- package/dist/Chat/types.d.ts +2 -0
- package/dist/ChatMessage/ChatMessage.svelte +18 -3
- package/dist/ChatMessage/properties.d.ts +6 -0
- package/dist/ChatMessageList/ChatMessageList.svelte +31 -7
- package/dist/ChatMessageList/properties.d.ts +2 -0
- package/dist/Choicebox/Choicebox.svelte +33 -23
- package/dist/Draggable/Draggable.svelte +4 -2
- package/dist/MediaPlayer/MediaPlayer.svelte +28 -13
- package/dist/MediaPlayer/properties.d.ts +2 -0
- package/dist/Modal/Modal.svelte +30 -43
- package/dist/Modal/properties.d.ts +5 -4
- package/dist/Pagination/Pagination.svelte +2 -0
- package/dist/Pagination/properties.d.ts +2 -0
- package/dist/Pill/Pill.svelte +61 -4
- package/dist/Pill/properties.d.ts +8 -16
- package/dist/Radio/Radio.svelte +6 -2
- package/dist/RatingGroup/RatingGroup.svelte +38 -26
- package/dist/Select/Select.svelte +8 -0
- package/dist/StatCard/StatCard.svelte +68 -17
- package/dist/StatCard/properties.d.ts +1 -1
- package/dist/Stepper/Step.svelte +2 -2
- package/dist/Table/Table.svelte +32 -2
- package/dist/Table/properties.d.ts +11 -5
- package/dist/Tabs/Tabs.svelte +187 -12
- package/dist/utils.js +20 -2
- package/dist-codemod/codemod/cli.js +4 -4
- package/dist-wc/index.js +2964 -2589
- package/package.json +1 -1
- package/scripts/postinstall.mjs +13 -15
package/package.json
CHANGED
package/scripts/postinstall.mjs
CHANGED
|
@@ -27,25 +27,23 @@ const isNonInteractive = () =>
|
|
|
27
27
|
const notice = () =>
|
|
28
28
|
[
|
|
29
29
|
'',
|
|
30
|
-
`${BOLD}@juspay/svelte-ui-components —
|
|
30
|
+
`${BOLD}@juspay/svelte-ui-components — migration guidance${RESET}`,
|
|
31
31
|
'',
|
|
32
|
-
'
|
|
32
|
+
' 1. Library event props use lowercase (`onrowclick`, `onclick`).',
|
|
33
|
+
' Removed spellings on library tags must be renamed. Callback keys',
|
|
34
|
+
' on configuration objects keep their documented spelling.',
|
|
35
|
+
' Guide: docs/EVENT_CASING_MIGRATION.md in the repository.',
|
|
33
36
|
'',
|
|
34
|
-
'
|
|
35
|
-
'
|
|
36
|
-
'
|
|
37
|
-
|
|
38
|
-
' Plan: docs/EVENT_CASING_MIGRATION.md in the repository.',
|
|
37
|
+
' 2. sui-chat-bubble, sui-draggable and sui-resizable accept content',
|
|
38
|
+
' through light-DOM children. Their native `children` collection',
|
|
39
|
+
' is not a writable snippet property:',
|
|
40
|
+
` ${DIM}<sui-draggable><div>…</div></sui-draggable>${RESET}`,
|
|
39
41
|
'',
|
|
40
|
-
'
|
|
41
|
-
' sui-draggable and sui-resizable; assigning it will silently lose',
|
|
42
|
-
' the content. Move to light-DOM children ahead of time:',
|
|
43
|
-
` ${DIM}el.children = snippet;${RESET} // before`,
|
|
44
|
-
` ${DIM}<sui-draggable><div>…</div></sui-draggable>${RESET} // after`,
|
|
45
|
-
'',
|
|
46
|
-
' One command reports every affected call site (writes nothing), and',
|
|
47
|
-
' rewrites the event props for you without --dry-run:',
|
|
42
|
+
' Preview event-prop renames and reported children assignments:',
|
|
48
43
|
` ${BOLD}npx sui-codemod --dry-run ./src${RESET}`,
|
|
44
|
+
' Apply the event-prop renames:',
|
|
45
|
+
` ${BOLD}npx sui-codemod ./src${RESET}`,
|
|
46
|
+
' Review reported content assignments and move them to light DOM.',
|
|
49
47
|
''
|
|
50
48
|
].join('\n');
|
|
51
49
|
|