@uniformdev/canvas 19.72.2-alpha.0 → 19.73.1-alpha.12
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/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.esm.js +3 -2
- package/dist/index.js +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
@@ -13261,6 +13261,8 @@ type ReadyMessage = {
|
|
13261
13261
|
framework?: 'React' | 'Vue';
|
13262
13262
|
/** A non-semantic version of the contextual editing SDK. */
|
13263
13263
|
version?: number;
|
13264
|
+
/** Whether or not the SDK is RSC or not, activates editor state. */
|
13265
|
+
rsc?: boolean;
|
13264
13266
|
};
|
13265
13267
|
type TriggerComponentActionMessage = {
|
13266
13268
|
type: 'trigger-component-action';
|
@@ -13369,7 +13371,7 @@ declare const isUpdateComponentReferencesMessage: (message: ChannelMessage) => m
|
|
13369
13371
|
type MessageHandler = (message: ChannelMessage, originalEvent: MessageEvent) => void;
|
13370
13372
|
type Channel = {
|
13371
13373
|
on: (types: ChannelMessage['type'][] | ChannelMessage['type'], handler: MessageHandler) => () => void;
|
13372
|
-
ready: () => void;
|
13374
|
+
ready: (options?: Pick<ReadyMessage, 'rsc'>) => void;
|
13373
13375
|
destroy: () => void;
|
13374
13376
|
triggerComponentAction: (options: Omit<TriggerComponentActionMessage, 'type'>) => void;
|
13375
13377
|
selectComponent: (id: string) => void;
|
package/dist/index.d.ts
CHANGED
@@ -13261,6 +13261,8 @@ type ReadyMessage = {
|
|
13261
13261
|
framework?: 'React' | 'Vue';
|
13262
13262
|
/** A non-semantic version of the contextual editing SDK. */
|
13263
13263
|
version?: number;
|
13264
|
+
/** Whether or not the SDK is RSC or not, activates editor state. */
|
13265
|
+
rsc?: boolean;
|
13264
13266
|
};
|
13265
13267
|
type TriggerComponentActionMessage = {
|
13266
13268
|
type: 'trigger-component-action';
|
@@ -13369,7 +13371,7 @@ declare const isUpdateComponentReferencesMessage: (message: ChannelMessage) => m
|
|
13369
13371
|
type MessageHandler = (message: ChannelMessage, originalEvent: MessageEvent) => void;
|
13370
13372
|
type Channel = {
|
13371
13373
|
on: (types: ChannelMessage['type'][] | ChannelMessage['type'], handler: MessageHandler) => () => void;
|
13372
|
-
ready: () => void;
|
13374
|
+
ready: (options?: Pick<ReadyMessage, 'rsc'>) => void;
|
13373
13375
|
destroy: () => void;
|
13374
13376
|
triggerComponentAction: (options: Omit<TriggerComponentActionMessage, 'type'>) => void;
|
13375
13377
|
selectComponent: (id: string) => void;
|
package/dist/index.esm.js
CHANGED
@@ -1826,7 +1826,7 @@ var createCanvasChannel = ({
|
|
1826
1826
|
};
|
1827
1827
|
postMessage(message);
|
1828
1828
|
};
|
1829
|
-
const ready = () => {
|
1829
|
+
const ready = (options) => {
|
1830
1830
|
var _a, _b;
|
1831
1831
|
if (typeof window === "undefined") {
|
1832
1832
|
return;
|
@@ -1836,7 +1836,8 @@ var createCanvasChannel = ({
|
|
1836
1836
|
const message = {
|
1837
1837
|
type: "ready",
|
1838
1838
|
framework,
|
1839
|
-
version
|
1839
|
+
version,
|
1840
|
+
rsc: options == null ? void 0 : options.rsc
|
1840
1841
|
};
|
1841
1842
|
postMessage(message);
|
1842
1843
|
};
|
package/dist/index.js
CHANGED
@@ -1938,7 +1938,7 @@ var createCanvasChannel = ({
|
|
1938
1938
|
};
|
1939
1939
|
postMessage(message);
|
1940
1940
|
};
|
1941
|
-
const ready = () => {
|
1941
|
+
const ready = (options) => {
|
1942
1942
|
var _a, _b;
|
1943
1943
|
if (typeof window === "undefined") {
|
1944
1944
|
return;
|
@@ -1948,7 +1948,8 @@ var createCanvasChannel = ({
|
|
1948
1948
|
const message = {
|
1949
1949
|
type: "ready",
|
1950
1950
|
framework,
|
1951
|
-
version
|
1951
|
+
version,
|
1952
|
+
rsc: options == null ? void 0 : options.rsc
|
1952
1953
|
};
|
1953
1954
|
postMessage(message);
|
1954
1955
|
};
|
package/dist/index.mjs
CHANGED
@@ -1826,7 +1826,7 @@ var createCanvasChannel = ({
|
|
1826
1826
|
};
|
1827
1827
|
postMessage(message);
|
1828
1828
|
};
|
1829
|
-
const ready = () => {
|
1829
|
+
const ready = (options) => {
|
1830
1830
|
var _a, _b;
|
1831
1831
|
if (typeof window === "undefined") {
|
1832
1832
|
return;
|
@@ -1836,7 +1836,8 @@ var createCanvasChannel = ({
|
|
1836
1836
|
const message = {
|
1837
1837
|
type: "ready",
|
1838
1838
|
framework,
|
1839
|
-
version
|
1839
|
+
version,
|
1840
|
+
rsc: options == null ? void 0 : options.rsc
|
1840
1841
|
};
|
1841
1842
|
postMessage(message);
|
1842
1843
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@uniformdev/canvas",
|
3
|
-
"version": "19.
|
3
|
+
"version": "19.73.1-alpha.12+bf15f68ec",
|
4
4
|
"description": "Common functionality and types for Uniform Canvas",
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
6
6
|
"main": "./dist/index.js",
|
@@ -38,8 +38,8 @@
|
|
38
38
|
"pusher-js": "8.2.0"
|
39
39
|
},
|
40
40
|
"dependencies": {
|
41
|
-
"@uniformdev/assets": "19.
|
42
|
-
"@uniformdev/context": "19.
|
41
|
+
"@uniformdev/assets": "19.73.1-alpha.12+bf15f68ec",
|
42
|
+
"@uniformdev/context": "19.73.1-alpha.12+bf15f68ec",
|
43
43
|
"immer": "9.0.21"
|
44
44
|
},
|
45
45
|
"files": [
|
@@ -48,5 +48,5 @@
|
|
48
48
|
"publishConfig": {
|
49
49
|
"access": "public"
|
50
50
|
},
|
51
|
-
"gitHead": "
|
51
|
+
"gitHead": "bf15f68ec4734c8364bd2ab844abe18160c4714c"
|
52
52
|
}
|