Skip to content

Commit

Permalink
Add updated snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed May 6, 2024
1 parent 2629b84 commit 01986f5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion snippets/auto_gen/hubl_filters.json
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@
"body": [
"|slice(${1:slices}, ${2:fillWith})"
],
"description": "Slice an iterator and return a list of lists containing those items.\nParameters:\n- slices(number) Specifies how many items will be sliced\n- fillWith(object) Specifies which object to use to fill missing values on final iteration",
"description": "Slice an iterator and return a list of lists containing those items.\nParameters:\n- slices(number) Specifies how many items will be sliced. Maximum value is 1000. \n- fillWith(object) Specifies which object to use to fill missing values on final iteration",
"prefix": "|slice"
},
"sort": {
Expand Down
15 changes: 11 additions & 4 deletions snippets/auto_gen/hubl_functions.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@
"description": "Returns the total number of published posts in the specified blog\nParameters:\n- selected_blog(blog id or 'default') Specifies which blog to count",
"prefix": "~blog_total_post_count"
},
"color_contrast": {
"body": [
"color_contrast(${1:string}, ${2:string}, ${3:string})"
],
"description": "Returns true or false based on wheater or not given color combination passes the WCAG standard provided\nParameters:\n- string(string) color code in a hex or rgb format\n- string(string) color code in a hex or rgb format\n- string(string) WCAG rating ('AA' or 'AAA') for A11y",
"prefix": "~color_contrast"
},
"color_variant": {
"body": [
"color_variant(${1:base_color}, ${2:brightness_offset})"
Expand Down Expand Up @@ -470,9 +477,9 @@
},
"product_recommendations": {
"body": [
"product_recommendations(${1:store_id}, ${2:limit}, ${3:currency}, ${4:min_price}, ${5:max_price})"
"product_recommendations(${1:store_id}, ${2:limit}, ${3:currency}, ${4:min_price}, ${5:max_price}, ${6:enable_price_formatting})"
],
"description": "Returns a list of products of most popular products in a portal based on their appearance in deals \nParameters:\n- store_id(string) The ID of the ecommerce store or 'all' or 'HS'\n- limit(number) The max number of products to fetch\n- currency(string) The optional currency\n- min_price(number) The optional min price\n- max_price(number) The optional max price",
"description": "Returns a list of products of most popular products in a portal based on their appearance in deals \nParameters:\n- store_id(string) The ID of the ecommerce store or 'all' or 'HS'\n- limit(number) The max number of products to fetch\n- currency(string) The optional currency\n- min_price(number) The optional min price\n- max_price(number) The optional max price\n- enable_price_formatting(boolean) The optional flag to enable price formatting. Default to true.",
"prefix": "~product_recommendations"
},
"range": {
Expand Down Expand Up @@ -519,9 +526,9 @@
},
"sign_postlisting_url": {
"body": [
"sign_postlisting_url(${1:blog_id}, ${2:list_type}, ${3:max_links})"
"sign_postlisting_url(${1:blog_id}, ${2:list_type}, ${3:max_links}, ${4:tag_name})"
],
"description": "Returns a signed URL for the provided URL\nParameters:\n- blog_id(number or default) The id of the blog or default blog for the postlisting.\n- list_type(string) The type of the postlisting.\n- max_links(number) The max links in the postlisting.",
"description": "Returns a signed URL for the provided URL\nParameters:\n- blog_id(number or default) The id of the blog or default blog for the postlisting.\n- list_type(string) The type of the postlisting.\n- max_links(number) The max links in the postlisting.\n- tag_name(string) The name of a tag on which to filter results",
"prefix": "~sign_postlisting_url"
},
"strtodate": {
Expand Down
7 changes: 0 additions & 7 deletions snippets/auto_gen/hubl_tags.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,6 @@
"description": "Email unsubscribe form\nParameters:\n- header(String) Renders text in an h1 tag above the unsubscribe form\n- subheader_text(String) Populates text above the confirmation message\n- header_heading_level(String) Defines the heading level of the header\n- email_heading_level(String) Defines the heading level of the subheader\n- unsubscribe_all_success(String) Sets the text that will display when someone unsubscribes from all email communications\n- subscription_update_success(String) Sets the text when a recipient updates his or her subscription preferences",
"prefix": "~email_subscriptions_confirmation"
},
"embed": {
"body": [
"{% embed 'my_embed' %}"
],
"description": "",
"prefix": "~embed"
},
"extends": {
"body": [
"{% extends '${1:path}' %}"
Expand Down

0 comments on commit 01986f5

Please sign in to comment.