From 7526d732334f1434e33967e9c5a2588c7b5aa7a1 Mon Sep 17 00:00:00 2001 From: sam-prais Date: Wed, 31 Jul 2024 11:03:07 +0300 Subject: [PATCH] DocWorks for js-wixcode-sdk - 3 changes detected, but 15 issue detected changes: Service $w.WixComments operation onCommentCreate.examples[0] has changed body Service wix-window-frontend operation getAppPageData.examples[0] has changed body Service wix-window operation getAppPageData.examples[0] has changed body issues: Message ViewChangeEventOptions has an unknown property type * (ApppointmentFieldEvent.js (8)) Property target is missing a type annotation (GalleryNavigationStartEvent.js (15)) Operation postMessage has an unknown param type * (HtmlComponent.js (97)) Property data has an unknown type * (HtmlComponentMessageEvent.js (17)) Property fileLimit has mismatching types for get (number) and set (string) (UploadButton.js (128, 149)) Operation set has an unknown param type * (window-frontend.js (201)) Operation get has an unknown return type * (window-frontend.js (234)) Operation set has an unknown param type * (window.js (235)) Operation get has an unknown return type * (window.js (269)) Callback ViewChangeOperation is defined two or more times (AppointmentField.js (347), DatePicker.js (472)) Callback ViewChangeOperation has an unknown return type * (AppointmentField.js (347)) Callback ViewChangeEventHandler is defined two or more times (AppointmentField.js (362), DatePicker.js (466)) Callback Validator has an unknown param type * (ValidatableMixin.js (143)) Property value has an unknown type * (ValueMixin.js (62)) Property value has an unknown type * (ValueMixin.js (89)) --- js-wixcode-sdk/$w.service.json | 3 +-- js-wixcode-sdk/$w/WixComments.service.json | 8 +++++--- js-wixcode-sdk/site-monitoring.service.json | 3 +-- js-wixcode-sdk/site-monitoring/LogEntry.service.json | 6 ++---- js-wixcode-sdk/wix-window-frontend.service.json | 10 ++++++---- js-wixcode-sdk/wix-window.service.json | 10 ++++++---- 6 files changed, 21 insertions(+), 19 deletions(-) diff --git a/js-wixcode-sdk/$w.service.json b/js-wixcode-sdk/$w.service.json index 84e5f28054..feaec7ba86 100644 --- a/js-wixcode-sdk/$w.service.json +++ b/js-wixcode-sdk/$w.service.json @@ -1,7 +1,6 @@ { "name": "$w", "mixes": [], - "labels": - [ "changed" ], + "labels": [], "location": { "lineno": 1, "filename": "wixCode.js" }, diff --git a/js-wixcode-sdk/$w/WixComments.service.json b/js-wixcode-sdk/$w/WixComments.service.json index 55cd221c71..e9dbd2e847 100644 --- a/js-wixcode-sdk/$w/WixComments.service.json +++ b/js-wixcode-sdk/$w/WixComments.service.json @@ -2,7 +2,8 @@ "memberOf": "$w", "mixes": [ "$w.Element" ], - "labels": [], + "labels": + [ "changed" ], "location": { "lineno": 1, "filename": "WixComments.js" }, @@ -189,7 +190,8 @@ "extra": { } }, { "name": "onCommentCreate", - "labels": [], + "labels": + [ "changed" ], "nameParams": [], "params": [ { "name": "callback", @@ -212,7 +214,7 @@ "examples": [ { "title": "Add an event handler for when a new comment is created", "body": - [ "$w(\"#myCommentsWidget\").onCreateComment((widgetComment) => { ", + [ "$w(\"#myCommentsWidget\").onCommentCreate((widgetComment) => { ", " console.log(widgetComment);", "});" ], "extra": diff --git a/js-wixcode-sdk/site-monitoring.service.json b/js-wixcode-sdk/site-monitoring.service.json index c319eb00e2..3d81479cab 100644 --- a/js-wixcode-sdk/site-monitoring.service.json +++ b/js-wixcode-sdk/site-monitoring.service.json @@ -1,7 +1,6 @@ { "name": "site-monitoring", "mixes": [], - "labels": - [ "changed" ], + "labels": [], "location": { "lineno": 1, "filename": "siteMonitoring.js" }, diff --git a/js-wixcode-sdk/site-monitoring/LogEntry.service.json b/js-wixcode-sdk/site-monitoring/LogEntry.service.json index d665319720..5f4aa2568f 100644 --- a/js-wixcode-sdk/site-monitoring/LogEntry.service.json +++ b/js-wixcode-sdk/site-monitoring/LogEntry.service.json @@ -1,8 +1,7 @@ { "name": "LogEntry", "memberOf": "site-monitoring", "mixes": [], - "labels": - [ "changed" ], + "labels": [], "location": { "lineno": 68, "filename": "siteMonitoring.js" }, @@ -331,8 +330,7 @@ "extra": { } }, { "name": "timestamp", - "labels": - [ "changed" ], + "labels": [], "get": true, "set": false, "type": "string", diff --git a/js-wixcode-sdk/wix-window-frontend.service.json b/js-wixcode-sdk/wix-window-frontend.service.json index 8d1799a990..a8b908e00b 100644 --- a/js-wixcode-sdk/wix-window-frontend.service.json +++ b/js-wixcode-sdk/wix-window-frontend.service.json @@ -1,6 +1,7 @@ { "name": "wix-window-frontend", "mixes": [], - "labels": [], + "labels": + [ "changed" ], "location": { "lineno": 1, "filename": "window-frontend.js" }, @@ -401,7 +402,8 @@ "extra": { } }, { "name": "getAppPageData", - "labels": [], + "labels": + [ "changed" ], "nameParams": [], "params": [], "ret": @@ -426,11 +428,11 @@ "examples": [ { "title": "Get the data passed to a custom app page", "body": - [ "import wixWindow from 'wix-window';", + [ "import wixWindowFrontend from 'wix-window-frontend';", "", "// ...", "", - "let appData = wixWindow.getAppPageData(); // {nextSection: {sectionId: \"Booking Form\"}}" ], + "let appData = wixWindowFrontend.getAppPageData(); // {nextSection: {sectionId: \"Booking Form\"}}" ], "extra": { } } ], "extra": diff --git a/js-wixcode-sdk/wix-window.service.json b/js-wixcode-sdk/wix-window.service.json index 0431509d6b..630f5c53c8 100644 --- a/js-wixcode-sdk/wix-window.service.json +++ b/js-wixcode-sdk/wix-window.service.json @@ -1,6 +1,7 @@ { "name": "wix-window", "mixes": [], - "labels": [], + "labels": + [ "changed" ], "location": { "lineno": 1, "filename": "window.js" }, @@ -468,7 +469,8 @@ "extra": { } }, { "name": "getAppPageData", - "labels": [], + "labels": + [ "changed" ], "nameParams": [], "params": [], "ret": @@ -493,11 +495,11 @@ "examples": [ { "title": "Get the data passed to a custom app page", "body": - [ "import wixWindow from 'wix-window';", + [ "import wixWindowFrontend from 'wix-window-frontend';", "", "// ...", "", - "let appData = wixWindow.getAppPageData(); // {nextSection: {sectionId: \"Booking Form\"}}" ], + "let appData = wixWindowFrontend.getAppPageData(); // {nextSection: {sectionId: \"Booking Form\"}}" ], "extra": { } } ], "extra":