Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor fix #2238

Open
wants to merge 33 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
b4a061a
Auto commit to autodocs-wix-activity-counters-v2 from WixDocs Server
wix-docs-feds Feb 8, 2023
6ecd040
Auto commit to autodocs-wix-activity-counters-v2 from WixDocs Server
wix-docs-feds Feb 8, 2023
82ab47b
remove universal modules note
wix-docs-feds Feb 15, 2023
abb81f3
updated ecom updateCheckout example
wix-docs-feds Mar 5, 2023
b8f35e8
Moved sender-details to email-marketing-v2.
wix-docs-feds Mar 6, 2023
9b8a523
Auto commit to autodocs-wix-activity-counters-v2 from WixDocs Server
wix-docs-feds Mar 7, 2023
009c91b
Fix dev preview (#1734)
adamfri Mar 13, 2023
6be9990
Updated Workflows for doc bug day.
wix-docs-feds Mar 19, 2023
f2e2824
Revert adam changes
admasodaniel Mar 20, 2023
1f74762
Add linkable ids to the wix data error codes
TWSingleSource Mar 28, 2023
5635818
intro fix
wix-docs-feds Apr 10, 2023
5a6d08d
Auto commit to autodocs-wix-activity-counters-v2 from WixDocs Server
wix-docs-feds Apr 20, 2023
113651e
Auto commit to autodocs-wix-activity-counters-v2 from WixDocs Server
wix-docs-feds Apr 23, 2023
99de623
Auto commit to autodocs-wix-activity-counters-v2 from WixDocs Server
wix-docs-feds Apr 24, 2023
888290e
Auto commit to autodocs-wix-activity-counters-v2 from WixDocs Server
wix-docs-feds Apr 24, 2023
6fd27de
Auto commit to autodocs-wix-activity-counters-v2 from WixDocs Server
wix-docs-feds Apr 24, 2023
3093301
Auto commit to autodocs-wix-activity-counters-v2 from WixDocs Server
wix-docs-feds Apr 24, 2023
28b9a8c
form release
wix-docs-feds Apr 30, 2023
999a705
Auto commit to autodocs-wix-activity-counters-v2 from WixDocs Server
wix-docs-feds May 17, 2023
7b7bf7a
Auto commit to autodocs-wix-activity-counters-v2 from WixDocs Server
wix-docs-feds May 26, 2023
f055c97
Auto commit to autodocs-wix-activity-counters-v2 from WixDocs Server
wix-docs-feds Jul 5, 2023
83fa2d9
Auto commit to autodocs-wix-activity-counters-v2 from WixDocs Server
wix-docs-feds Jul 5, 2023
ee03841
Auto commit to autodocs-wix-activity-counters-v2 from WixDocs Server
wix-docs-feds Jul 24, 2023
7211c2e
Auto commit to autodocs-wix-activity-counters-v2 from WixDocs Server
wix-docs-feds Aug 1, 2023
2be2c00
Auto commit to autodocs-wix-activity-counters-v2 from WixDocs Server
wix-docs-feds Sep 27, 2023
4ea7e64
Auto commit to autodocs-wix-activity-counters-v2 from WixDocs Server
wix-docs-feds Jan 11, 2024
7a701f3
Auto commit to autodocs-wix-activity-counters-v2 from WixDocs Server
wix-docs-feds Jan 11, 2024
a2ecae6
Auto commit to autodocs-wix-activity-counters-v2 from WixDocs Server
wix-docs-feds Feb 6, 2024
c996f27
Auto commit to autodocs-wix-activity-counters-v2 from WixDocs Server
wix-docs-feds Feb 6, 2024
90cf5a2
Auto commit to autodocs-wix-activity-counters-v2 from WixDocs Server
wix-docs-feds Feb 12, 2024
4561413
Auto commit to autodocs-wix-activity-counters-v2 from WixDocs Server
wix-docs-feds Feb 14, 2024
ac6385a
Auto commit to autodocs-wix-activity-counters-v2 from WixDocs Server
wix-docs-feds Jun 10, 2024
e3b1fd1
Auto commit to autodocs-wix-activity-counters-v2 from WixDocs Server
wix-docs-feds Jun 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/buildDevPreview.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name : build_dev_preview

on:
pull_request:
types: [ closed ]

jobs:
build-dev-preview:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: master
- uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Build Dev Preview List
run : |
npm install get-all-files
git config user.email "[email protected]"
git config user.name "Adam Friedmann"
git checkout -b auto-dev-preview-update-${{github.head_ref}}
node scripts/buildDevPreviewList.mjs
git add guides/developer-preview.md
DIFF=$(git status --porcelain)
if [[ "$DIFF" == *"developer-preview.md"* ]]; then
git commit -m "New Dev Preview List"
git push --set-upstream origin auto-dev-preview-update-${{github.head_ref}} --force
echo "changes_pushed=yes" >> $GITHUB_ENV
echo "branch_name=auto-dev-preview-update-${{github.head_ref}}" >> $GITHUB_ENV
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: slackapi/[email protected]
if: ${{ env.changes_pushed == 'yes' }}
with:
payload: |
{
"branch_name" : "${{ env.branch_name }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
44 changes: 44 additions & 0 deletions .github/workflows/menuEditorSync.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name : build_dev_preview

on:
schedule:
- cron: '0 8 * * *'

jobs:
build-dev-preview:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: master
- uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Build Dev Preview List
run : |
npm install get-all-files
npm install node-fetch
git config user.email "[email protected]"
git config user.name "Adam Friedmann"
git checkout -b menu-editor-sync
node scripts/buildDevPreviewList.mjs
git add guides/developer-preview.md
DIFF=$(git status --porcelain)
if [[ "$DIFF" == *"developer-preview.md"* ]]; then
git commit -m "New dev preview list - menu editor change"
git push --set-upstream origin menu-editor-sync --force
echo "changes_pushed=yes" >> $GITHUB_ENV
echo "branch_name=menu-editor-sync" >> $GITHUB_ENV
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: slackapi/[email protected]
if: ${{ env.changes_pushed == 'yes' }}
with:
payload: |
{
"branch_name" : "${{ env.branch_name }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
47 changes: 47 additions & 0 deletions .github/workflows/syncMenuEditor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: sync_menu_editor

on:
schedule:
- cron: '0 8 * * *'

jobs:
check-menu-editor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: master
- uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Sync Menu Editor
run: |
npm install node-fetch
npm install htmlparser2
npm install cheerio
git config user.email "[email protected]"
git config user.name "Adam Friedmann"
git checkout -b menu-editor-sync
node scripts/getHiddenItems.mjs
git add scripts/hiddenItems.json
git status --porcelain
DIFF=$(git status --porcelain)
if [[ "$DIFF" == *"hiddenItems.json"* ]]; then
npm install get-all-files
node scripts/buildDevPreviewList.mjs
git add guides/developer-preview.md
git commit -m "Syncing with hidden items in the menu editor"
git push --set-upstream origin menu-editor-sync --force
echo "changes_pushed=yes" >> $GITHUB_ENV
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: slackapi/[email protected]
if: ${{ env.changes_pushed == 'yes' }}
with:
payload: |
{
"branch_name" : "menu-editor-sync"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
142 changes: 142 additions & 0 deletions dollar-widget/$widget.service.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
{ "name": "$widget",
"mixes": [],
"labels":
[ "new" ],
"location":
{ "lineno": 1,
"filename": "$widget.js" },
"docs":
{ "summary": "The `$widget` namespace contains functionality for working with your Blocks widget's API from within the widget code.",
"description":
[ "> **This namespace is available only in Wix Blocks widget code** ",
"> [Wix Blocks](https://support.wix.com/en/article/wix-blocks-check-out-our-articles) is a workspace for building Wix apps. It is currently a Beta version, open to a limited number of users.",
"",
"Blocks widgets can expose a [widget API](https://support.wix.com/en/article/wix-blocks-about-the-widget-api), letting you add properties, events, and functions to your widget.",
"The `$widget` namespace provides functionality for working with to your widget's API from within the widget code." ],
"links": [],
"examples": [],
"extra":
{ } },
"properties":
[ { "name": "props",
"labels": [],
"get": true,
"set": true,
"type": "Object",
"locations":
[ { "lineno": 13,
"filename": "$widget.js" },
{ "lineno": 26,
"filename": "$widget.js" } ],
"docs":
{ "summary": "Sets or gets the [widget's properties](https://support.wix.com/en/article/wix-blocks-widget-api-properties).",
"description":
[ "The `props` property is an object containing all of the widget's properties." ],
"links": [],
"examples":
[ { "title": "Get a widget's properties",
"body":
[ "$w('#text1').text = $widget.props.shoe.size; // \"43\"" ],
"extra":
{ } },
{ "title": "Set a widget's properties",
"body":
[ "$widget.props = { saleIndicator: \"No Sale\" };" ],
"extra":
{ } } ],
"extra":
{ } },
"extra":
{ } } ],
"operations":
[ { "name": "fireEvent",
"labels": [],
"nameParams": [],
"params":
[ { "name": "eventName",
"type": "string",
"doc": "The name of te event to be fired." },
{ "name": "data",
"type": "Object",
"doc": "A data object that is passed to the event handler." } ],
"ret":
{ "type": "void" },
"locations":
[ { "lineno": 46,
"filename": "$widget.js" } ],
"docs":
{ "summary": "Fires an event that is defined in the Widget API.",
"description":
[ "The `fireEvent()` function fires a widget event, which can then be handled from outside the widget (by code in a parent widget or a site page).",
"When using the widget's API, the event is named `on<EventName>`, for example, `onAddedToCart`." ],
"links": [],
"examples":
[ { "title": "Fire a widget event",
"body":
[ "$w(`#button1`).onClick(() => {",
" $widget.fireEvent(`addedToCart`, {productId: product.id, customerId: customer.id})",
"});" ],
"extra":
{ } } ],
"extra":
{ } },
"extra":
{ } },
{ "name": "onPropsChanged",
"labels": [],
"nameParams": [],
"params":
[ { "name": "handler",
"type": "$widget.onPropsChangedHandler",
"doc": "The name of the function or\n the function expression to run when the value of a widget property is changed." } ],
"ret":
{ "type": "any" },
"locations":
[ { "lineno": 33,
"filename": "$widget.js" } ],
"docs":
{ "summary": "Adds an event handler that runs when the value of a widget property is changed.",
"description":
[ "A widget receives an `onPropsChanged` event when one or more of its properties is changed via its API." ],
"links": [],
"examples":
[ { "title": "Load updated data when a widget's property is changed",
"body":
[ "$widget.onPropsChanged((oldProps, newProps) => {",
" loadProductData(newProps.productId);",
" loadCustomerData(newProps.customerId);",
"});" ],
"extra":
{ } } ],
"extra":
{ } },
"extra":
{ } } ],
"callbacks":
[ { "name": "onPropsChangedHandler",
"labels": [],
"nameParams": [],
"params":
[ { "name": "oldProps",
"type": "Object",
"doc": "The old widget properties." },
{ "name": "newProps",
"type": "Object",
"doc": "The new widget properties." } ],
"ret":
{ "type": "void" },
"locations":
[ { "lineno": 59,
"filename": "$widget.js" } ],
"docs":
{ "description":
[ "Handles events fired when a widget's properties are changed." ],
"links": [],
"examples": [],
"extra":
{ } },
"extra":
{ } } ],
"messages": [],
"extra":
{ } }
Binary file added media/.DS_Store
Binary file not shown.
Binary file added media/confirmator_flow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/section_divider.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/tooltip-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading