@nordcraft/std-lib 1.0.8 → 1.0.10

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 (2) hide show
  1. package/dist/lib.ts +68 -23
  2. package/package.json +3 -3
package/dist/lib.ts CHANGED
@@ -341,7 +341,7 @@
341
341
  },
342
342
  "@toddle/fromEntries": {
343
343
  "name": "From entries",
344
- "description": "Create a record from an Array of entries.\n This formula is the reverse of Entries.",
344
+ "description": "Create a record from an Array of entries. This formula is the reverse of Entries.",
345
345
  "arguments": [
346
346
  {
347
347
  "name": "Array",
@@ -387,11 +387,14 @@
387
387
  },
388
388
  {
389
389
  "name": "Count",
390
+ "description": "Number of items to remove.",
391
+ "type": {
392
+ "type": "Number"
393
+ },
390
394
  "formula": {
391
395
  "type": "value",
392
396
  "value": 1
393
- },
394
- "description": "Number of items to remove."
397
+ }
395
398
  }
396
399
  ],
397
400
  "output": {
@@ -829,7 +832,7 @@
829
832
  }
830
833
  ],
831
834
  "output": {
832
- "description": "Returns an Array of entries for the given input record.\nThe entries are Objects with a “Key” and “Value” property.",
835
+ "description": "Returns an Array of entries for the given input record. The entries are Objects with a “Key” and “Value” property.",
833
836
  "type": {
834
837
  "type": "Array"
835
838
  }
@@ -1145,25 +1148,33 @@
1145
1148
  "arguments": [
1146
1149
  {
1147
1150
  "name": "Input",
1148
- "description": "The input string to search in.",
1149
- "type": "String",
1151
+ "description": "The input String to search in.",
1152
+ "type": {
1153
+ "type": "String"
1154
+ },
1150
1155
  "required": true
1151
1156
  },
1152
1157
  {
1153
1158
  "name": "Search",
1154
1159
  "description": "The substring to search for.",
1155
- "type": "String",
1160
+ "type": {
1161
+ "type": "String"
1162
+ },
1156
1163
  "required": true
1157
1164
  },
1158
1165
  {
1159
1166
  "name": "Replace with",
1160
1167
  "description": "The replacement value.",
1161
- "type": "String",
1168
+ "type": {
1169
+ "type": "String"
1170
+ },
1162
1171
  "required": true
1163
1172
  }
1164
1173
  ],
1165
1174
  "output": {
1166
- "type": "String",
1175
+ "type": {
1176
+ "type": "String"
1177
+ },
1167
1178
  "name": "Output",
1168
1179
  "description": "The resulting String."
1169
1180
  }
@@ -2054,7 +2065,7 @@
2054
2065
  }
2055
2066
  ],
2056
2067
  "output": {
2057
- "description": "If the item or substring exists in the Array, the last index of that item is returned. If the item is not found, -1 is returned",
2068
+ "description": "If the item or substring exists in the Array, the last index of that item is returned. If the item is not found, -1 is returned.",
2058
2069
  "type": {
2059
2070
  "type": "Number"
2060
2071
  }
@@ -2497,7 +2508,7 @@
2497
2508
  },
2498
2509
  "@toddle/last": {
2499
2510
  "name": "Last",
2500
- "description": "Get the last item in an array",
2511
+ "description": "Get the last item in an Array.",
2501
2512
  "arguments": [
2502
2513
  {
2503
2514
  "name": "Array",
@@ -2939,7 +2950,8 @@
2939
2950
  "description": "Return a Boolean indicating whether the provided data can be shared (with the \"Share\" action).",
2940
2951
  "arguments": [
2941
2952
  {
2942
- "name": "URL to share",
2953
+ "name": "URL",
2954
+ "description": "The URL you want to check.",
2943
2955
  "type": {
2944
2956
  "type": "String"
2945
2957
  },
@@ -2949,7 +2961,8 @@
2949
2961
  }
2950
2962
  },
2951
2963
  {
2952
- "name": "Title to share",
2964
+ "name": "Title",
2965
+ "description": "The title you want to check.",
2953
2966
  "type": {
2954
2967
  "type": "String"
2955
2968
  },
@@ -2959,7 +2972,8 @@
2959
2972
  }
2960
2973
  },
2961
2974
  {
2962
- "name": "Text to share",
2975
+ "name": "Text",
2976
+ "description": "The text you want to check.",
2963
2977
  "type": {
2964
2978
  "type": "String"
2965
2979
  },
@@ -3081,7 +3095,7 @@
3081
3095
  export const actions = {
3082
3096
  "@toddle/clearSessionStorage": {
3083
3097
  "name": "Clear Session Storage",
3084
- "description": "Deletes all values in session storage.",
3098
+ "description": "Delete all values in session storage.",
3085
3099
  "arguments": []
3086
3100
  },
3087
3101
  "@toddle/saveToSessionStorage": {
@@ -3091,6 +3105,9 @@
3091
3105
  {
3092
3106
  "name": "Key",
3093
3107
  "description": "The key to be used in session storage.",
3108
+ "type": {
3109
+ "type": "String"
3110
+ },
3094
3111
  "formula": {
3095
3112
  "type": "value",
3096
3113
  "value": ""
@@ -3111,9 +3128,11 @@
3111
3128
  },
3112
3129
  "@toddle/copyToClipboard": {
3113
3130
  "name": "Copy to clipboard",
3131
+ "description": "Copy contents to the clipboard.",
3114
3132
  "arguments": [
3115
3133
  {
3116
3134
  "name": "Value",
3135
+ "description": "The value you want to copy.",
3117
3136
  "type": {
3118
3137
  "type": "String"
3119
3138
  },
@@ -3131,6 +3150,9 @@
3131
3150
  {
3132
3151
  "name": "Key",
3133
3152
  "description": "The key to be used in local storage.",
3153
+ "type": {
3154
+ "type": "String"
3155
+ },
3134
3156
  "formula": {
3135
3157
  "type": "value",
3136
3158
  "value": ""
@@ -3157,16 +3179,19 @@
3157
3179
  },
3158
3180
  "@toddle/clearLocalStorage": {
3159
3181
  "name": "Clear Local Storage",
3160
- "description": "Deletes all values in local storage.",
3182
+ "description": "Delete all values in local storage.",
3161
3183
  "arguments": []
3162
3184
  },
3163
3185
  "@toddle/deleteFromSessionStorage": {
3164
3186
  "name": "Delete from Session Storage",
3165
- "description": "Deletes the value from session storage (if found) based on the provided key.",
3187
+ "description": "Delete a value from session storage (if found) based on the provided key.",
3166
3188
  "arguments": [
3167
3189
  {
3168
3190
  "name": "Key",
3169
- "description": "The key to use when deleting in session storage.",
3191
+ "description": "The key in session storage to delete.",
3192
+ "type": {
3193
+ "type": "String"
3194
+ },
3170
3195
  "formula": {
3171
3196
  "type": "value",
3172
3197
  "value": ""
@@ -3179,7 +3204,8 @@
3179
3204
  "description": "Share data with title, text, and/or URL using the Navigator.share API.",
3180
3205
  "arguments": [
3181
3206
  {
3182
- "name": "URL to share",
3207
+ "name": "URL",
3208
+ "description": "The URL to share.",
3183
3209
  "type": {
3184
3210
  "type": "String"
3185
3211
  },
@@ -3189,7 +3215,8 @@
3189
3215
  }
3190
3216
  },
3191
3217
  {
3192
- "name": "Title to share",
3218
+ "name": "Title",
3219
+ "description": "The title to share.",
3193
3220
  "type": {
3194
3221
  "type": "String"
3195
3222
  },
@@ -3199,7 +3226,8 @@
3199
3226
  }
3200
3227
  },
3201
3228
  {
3202
- "name": "Text to share",
3229
+ "name": "Text",
3230
+ "description": "The text to share.",
3203
3231
  "type": {
3204
3232
  "type": "String"
3205
3233
  },
@@ -3216,6 +3244,7 @@
3216
3244
  "arguments": [
3217
3245
  {
3218
3246
  "name": "Label",
3247
+ "description": "A label for the message.",
3219
3248
  "formula": {
3220
3249
  "type": "value",
3221
3250
  "value": ""
@@ -3223,6 +3252,10 @@
3223
3252
  },
3224
3253
  {
3225
3254
  "name": "Data",
3255
+ "type": {
3256
+ "type": "Any"
3257
+ },
3258
+ "description": "The data you want to log to the console.",
3226
3259
  "formula": {
3227
3260
  "type": "value",
3228
3261
  "value": "<Data>"
@@ -3236,6 +3269,7 @@
3236
3269
  "arguments": [
3237
3270
  {
3238
3271
  "name": "Delay in milliseconds",
3272
+ "description": "The number of milliseconds to wait before an action is executed.",
3239
3273
  "type": {
3240
3274
  "type": "Number"
3241
3275
  },
@@ -3258,6 +3292,9 @@
3258
3292
  {
3259
3293
  "name": "Access token",
3260
3294
  "description": "Access tokens are the most common way to authenticate with a server.",
3295
+ "type": {
3296
+ "type": "String"
3297
+ },
3261
3298
  "formula": {
3262
3299
  "type": "value",
3263
3300
  "value": ""
@@ -3288,11 +3325,14 @@
3288
3325
  },
3289
3326
  "@toddle/deleteFromLocalStorage": {
3290
3327
  "name": "Delete from Local Storage",
3291
- "description": "Deletes the value from local storage (if found) based on the provided key.",
3328
+ "description": "Delete a value from local storage (if found) based on the provided key.",
3292
3329
  "arguments": [
3293
3330
  {
3294
3331
  "name": "Key",
3295
- "description": "The key to use when deleting in local storage.",
3332
+ "description": "The key in local storage to delete.",
3333
+ "type": {
3334
+ "type": "String"
3335
+ },
3296
3336
  "formula": {
3297
3337
  "type": "value",
3298
3338
  "value": ""
@@ -3306,6 +3346,7 @@
3306
3346
  "arguments": [
3307
3347
  {
3308
3348
  "name": "Interval in milliseconds",
3349
+ "description": "The interval \"delay\".",
3309
3350
  "type": {
3310
3351
  "type": "Number"
3311
3352
  },
@@ -3333,6 +3374,10 @@
3333
3374
  "arguments": [
3334
3375
  {
3335
3376
  "name": "URL",
3377
+ "description": "The URL to navigate to.",
3378
+ "type": {
3379
+ "type": "String"
3380
+ },
3336
3381
  "formula": {
3337
3382
  "type": "value",
3338
3383
  "value": "https://example.com"
package/package.json CHANGED
@@ -5,10 +5,10 @@
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"
8
+ "@nordcraft/core": "1.0.10"
9
9
  },
10
10
  "devDependencies": {
11
- "@types/node": "22.15.3"
11
+ "@types/node": "22.15.17"
12
12
  },
13
13
  "scripts": {
14
14
  "build": "bun ./bin/generate.js && tsc --project tsconfig.build.json",
@@ -17,5 +17,5 @@
17
17
  "typecheck:watch": "tsc --noEmit -w"
18
18
  },
19
19
  "files": ["dist"],
20
- "version": "1.0.8"
20
+ "version": "1.0.10"
21
21
  }