@nordcraft/std-lib 1.0.34 → 1.0.36
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/lib.ts +36 -0
- package/package.json +2 -2
package/dist/lib.ts
CHANGED
|
@@ -2905,14 +2905,18 @@
|
|
|
2905
2905
|
};
|
|
2906
2906
|
export const actions = {
|
|
2907
2907
|
"@toddle/stopPropagation": {
|
|
2908
|
+
"$schema": "../../schemas/group.schema.json",
|
|
2908
2909
|
"name": "Stop propagation",
|
|
2909
2910
|
"docs-link": "https://developer.mozilla.org/en-US/docs/Web/API/Event/stopPropagation",
|
|
2910
2911
|
"description": "Stop the event from bubbling up the DOM to parent elements.",
|
|
2912
|
+
"group": "events",
|
|
2911
2913
|
"arguments": []
|
|
2912
2914
|
},
|
|
2913
2915
|
"@toddle/sleep": {
|
|
2916
|
+
"$schema": "../../schemas/group.schema.json",
|
|
2914
2917
|
"name": "Sleep",
|
|
2915
2918
|
"description": "Run an action after a delay.",
|
|
2919
|
+
"group": "timers",
|
|
2916
2920
|
"arguments": [
|
|
2917
2921
|
{
|
|
2918
2922
|
"name": "Delay in milliseconds",
|
|
@@ -2933,13 +2937,17 @@
|
|
|
2933
2937
|
}
|
|
2934
2938
|
},
|
|
2935
2939
|
"@toddle/clearSessionStorage": {
|
|
2940
|
+
"$schema": "../../schemas/group.schema.json",
|
|
2936
2941
|
"name": "Clear Session Storage",
|
|
2937
2942
|
"description": "Delete all values in session storage.",
|
|
2943
|
+
"group": "session_storage",
|
|
2938
2944
|
"arguments": []
|
|
2939
2945
|
},
|
|
2940
2946
|
"@toddle/deleteFromSessionStorage": {
|
|
2947
|
+
"$schema": "../../schemas/group.schema.json",
|
|
2941
2948
|
"name": "Delete from Session Storage",
|
|
2942
2949
|
"description": "Delete a value from session storage (if found) based on the provided key.",
|
|
2950
|
+
"group": "session_storage",
|
|
2943
2951
|
"arguments": [
|
|
2944
2952
|
{
|
|
2945
2953
|
"name": "Key",
|
|
@@ -2955,8 +2963,10 @@
|
|
|
2955
2963
|
]
|
|
2956
2964
|
},
|
|
2957
2965
|
"@toddle/setHttpOnlyCookie": {
|
|
2966
|
+
"$schema": "../../schemas/group.schema.json",
|
|
2958
2967
|
"name": "Set Http-Only Cookie",
|
|
2959
2968
|
"description": "Save a key/value pair as an Http-Only cookie. Useful for storing JWTs or other tokens.",
|
|
2969
|
+
"group": "cookies",
|
|
2960
2970
|
"arguments": [
|
|
2961
2971
|
{
|
|
2962
2972
|
"name": "Name",
|
|
@@ -3037,8 +3047,10 @@
|
|
|
3037
3047
|
}
|
|
3038
3048
|
},
|
|
3039
3049
|
"@toddle/setSessionCookies": {
|
|
3050
|
+
"$schema": "../../schemas/group.schema.json",
|
|
3040
3051
|
"name": "Set session cookies",
|
|
3041
3052
|
"description": "Save authentication tokens as session cookies.",
|
|
3053
|
+
"group": "cookies",
|
|
3042
3054
|
"arguments": [
|
|
3043
3055
|
{
|
|
3044
3056
|
"name": "Access token",
|
|
@@ -3075,8 +3087,10 @@
|
|
|
3075
3087
|
}
|
|
3076
3088
|
},
|
|
3077
3089
|
"@toddle/saveToLocalStorage": {
|
|
3090
|
+
"$schema": "../../schemas/group.schema.json",
|
|
3078
3091
|
"name": "Save to Local Storage",
|
|
3079
3092
|
"description": "Save a provided key/value to local storage by JSON encoding the value.",
|
|
3093
|
+
"group": "local_storage",
|
|
3080
3094
|
"arguments": [
|
|
3081
3095
|
{
|
|
3082
3096
|
"name": "Key",
|
|
@@ -3103,8 +3117,10 @@
|
|
|
3103
3117
|
]
|
|
3104
3118
|
},
|
|
3105
3119
|
"@toddle/share": {
|
|
3120
|
+
"$schema": "../../schemas/group.schema.json",
|
|
3106
3121
|
"name": "Share",
|
|
3107
3122
|
"description": "Share data with title, text, and/or URL using the Navigator.share API.",
|
|
3123
|
+
"group": "navigation",
|
|
3108
3124
|
"arguments": [
|
|
3109
3125
|
{
|
|
3110
3126
|
"name": "URL",
|
|
@@ -3142,8 +3158,10 @@
|
|
|
3142
3158
|
]
|
|
3143
3159
|
},
|
|
3144
3160
|
"@toddle/interval": {
|
|
3161
|
+
"$schema": "../../schemas/group.schema.json",
|
|
3145
3162
|
"name": "Interval",
|
|
3146
3163
|
"description": "Run an action every \"delay\" milliseconds.",
|
|
3164
|
+
"group": "timers",
|
|
3147
3165
|
"arguments": [
|
|
3148
3166
|
{
|
|
3149
3167
|
"name": "Interval in milliseconds",
|
|
@@ -3164,8 +3182,10 @@
|
|
|
3164
3182
|
}
|
|
3165
3183
|
},
|
|
3166
3184
|
"@toddle/logToConsole": {
|
|
3185
|
+
"$schema": "../../schemas/group.schema.json",
|
|
3167
3186
|
"name": "Log to console",
|
|
3168
3187
|
"description": "Log a message to the browser console.",
|
|
3188
|
+
"group": "debugging",
|
|
3169
3189
|
"arguments": [
|
|
3170
3190
|
{
|
|
3171
3191
|
"name": "Label",
|
|
@@ -3189,8 +3209,10 @@
|
|
|
3189
3209
|
]
|
|
3190
3210
|
},
|
|
3191
3211
|
"@toddle/deleteFromLocalStorage": {
|
|
3212
|
+
"$schema": "../../schemas/group.schema.json",
|
|
3192
3213
|
"name": "Delete from Local Storage",
|
|
3193
3214
|
"description": "Delete a value from local storage (if found) based on the provided key.",
|
|
3215
|
+
"group": "local_storage",
|
|
3194
3216
|
"arguments": [
|
|
3195
3217
|
{
|
|
3196
3218
|
"name": "Key",
|
|
@@ -3206,14 +3228,18 @@
|
|
|
3206
3228
|
]
|
|
3207
3229
|
},
|
|
3208
3230
|
"@toddle/preventDefault": {
|
|
3231
|
+
"$schema": "../../schemas/group.schema.json",
|
|
3209
3232
|
"name": "Prevent default",
|
|
3210
3233
|
"docs-link": "https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault",
|
|
3211
3234
|
"description": "Prevent default browser behavior for this event.",
|
|
3235
|
+
"group": "events",
|
|
3212
3236
|
"arguments": []
|
|
3213
3237
|
},
|
|
3214
3238
|
"@toddle/focus": {
|
|
3239
|
+
"$schema": "../../schemas/group.schema.json",
|
|
3215
3240
|
"name": "Focus",
|
|
3216
3241
|
"description": "Move focus to a DOM element.",
|
|
3242
|
+
"group": "events",
|
|
3217
3243
|
"arguments": [
|
|
3218
3244
|
{
|
|
3219
3245
|
"name": "Element",
|
|
@@ -3229,13 +3255,17 @@
|
|
|
3229
3255
|
]
|
|
3230
3256
|
},
|
|
3231
3257
|
"@toddle/clearLocalStorage": {
|
|
3258
|
+
"$schema": "../../schemas/group.schema.json",
|
|
3232
3259
|
"name": "Clear Local Storage",
|
|
3233
3260
|
"description": "Delete all values in local storage.",
|
|
3261
|
+
"group": "local_storage",
|
|
3234
3262
|
"arguments": []
|
|
3235
3263
|
},
|
|
3236
3264
|
"@toddle/setCookie": {
|
|
3265
|
+
"$schema": "../../schemas/group.schema.json",
|
|
3237
3266
|
"name": "Set Cookie",
|
|
3238
3267
|
"description": "Save a key/value pair as a non-http-only cookie (readable on the client). Useful for storing user preferences.",
|
|
3268
|
+
"group": "cookies",
|
|
3239
3269
|
"arguments": [
|
|
3240
3270
|
{
|
|
3241
3271
|
"name": "Name",
|
|
@@ -3316,8 +3346,10 @@
|
|
|
3316
3346
|
}
|
|
3317
3347
|
},
|
|
3318
3348
|
"@toddle/copyToClipboard": {
|
|
3349
|
+
"$schema": "../../schemas/group.schema.json",
|
|
3319
3350
|
"name": "Copy to clipboard",
|
|
3320
3351
|
"description": "Copy contents to the clipboard.",
|
|
3352
|
+
"group": "events",
|
|
3321
3353
|
"arguments": [
|
|
3322
3354
|
{
|
|
3323
3355
|
"name": "Value",
|
|
@@ -3333,8 +3365,10 @@
|
|
|
3333
3365
|
]
|
|
3334
3366
|
},
|
|
3335
3367
|
"@toddle/saveToSessionStorage": {
|
|
3368
|
+
"$schema": "../../schemas/group.schema.json",
|
|
3336
3369
|
"name": "Save to Session Storage",
|
|
3337
3370
|
"description": "Save a provided key/value to session storage by JSON encoding the value.",
|
|
3371
|
+
"group": "session_storage",
|
|
3338
3372
|
"arguments": [
|
|
3339
3373
|
{
|
|
3340
3374
|
"name": "Key",
|
|
@@ -3361,8 +3395,10 @@
|
|
|
3361
3395
|
]
|
|
3362
3396
|
},
|
|
3363
3397
|
"@toddle/gotToURL": {
|
|
3398
|
+
"$schema": "../../schemas/group.schema.json",
|
|
3364
3399
|
"name": "Go to URL",
|
|
3365
3400
|
"description": "Navigate to a specified URL.",
|
|
3401
|
+
"group": "navigation",
|
|
3366
3402
|
"arguments": [
|
|
3367
3403
|
{
|
|
3368
3404
|
"name": "URL",
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"homepage": "https://github.com/nordcraftengine/nordcraft",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"fast-deep-equal": "3.1.3",
|
|
8
|
-
"@nordcraft/core": "1.0.
|
|
8
|
+
"@nordcraft/core": "1.0.36"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"@types/node": "24.0.10",
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"watch": "tsc --noEmit -w"
|
|
19
19
|
},
|
|
20
20
|
"files": ["dist"],
|
|
21
|
-
"version": "1.0.
|
|
21
|
+
"version": "1.0.36"
|
|
22
22
|
}
|