@uniformdev/canvas 19.145.0 → 19.146.1-alpha.3
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 +9 -16
- package/dist/index.d.ts +9 -16
- package/dist/index.esm.js +5 -3
- package/dist/index.js +5 -3
- package/dist/index.mjs +5 -3
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
@@ -4755,7 +4755,7 @@ interface paths$d {
|
|
4755
4755
|
*/
|
4756
4756
|
releaseId?: components$6["parameters"]["releaseId"];
|
4757
4757
|
/**
|
4758
|
-
*
|
4758
|
+
* Search on textual fields of an entry.
|
4759
4759
|
* Note: for long text fields the tail of the text is not guaranteed to be searchable.
|
4760
4760
|
* Example: ?search=hello
|
4761
4761
|
*/
|
@@ -5141,7 +5141,6 @@ interface components$6 {
|
|
5141
5141
|
*/
|
5142
5142
|
releaseId: string;
|
5143
5143
|
/**
|
5144
|
-
* @deprecated
|
5145
5144
|
* @description Search on textual fields of an entry.
|
5146
5145
|
* Note: for long text fields the tail of the text is not guaranteed to be searchable.
|
5147
5146
|
* Example: ?search=hello
|
@@ -12239,7 +12238,7 @@ interface paths$6 {
|
|
12239
12238
|
*/
|
12240
12239
|
releaseId?: components$4["parameters"]["releaseId"];
|
12241
12240
|
/**
|
12242
|
-
*
|
12241
|
+
* Search on textual fields of a composition.
|
12243
12242
|
* Note: for long text fields the tail of the text is not guaranteed to be searchable.
|
12244
12243
|
* Example: ?search=hello
|
12245
12244
|
*/
|
@@ -12602,7 +12601,6 @@ interface components$4 {
|
|
12602
12601
|
*/
|
12603
12602
|
releaseId: string;
|
12604
12603
|
/**
|
12605
|
-
* @deprecated
|
12606
12604
|
* @description Search on textual fields of a composition.
|
12607
12605
|
* Note: for long text fields the tail of the text is not guaranteed to be searchable.
|
12608
12606
|
* Example: ?search=hello
|
@@ -15863,7 +15861,7 @@ interface external$5 {
|
|
15863
15861
|
*/
|
15864
15862
|
releaseId?: external$5["../../../lambda/functions/v1-canvas.swagger.yml"]["components"]["parameters"]["releaseId"];
|
15865
15863
|
/**
|
15866
|
-
*
|
15864
|
+
* Search on textual fields of a composition.
|
15867
15865
|
* Note: for long text fields the tail of the text is not guaranteed to be searchable.
|
15868
15866
|
* Example: ?search=hello
|
15869
15867
|
*/
|
@@ -16226,7 +16224,6 @@ interface external$5 {
|
|
16226
16224
|
*/
|
16227
16225
|
releaseId: string;
|
16228
16226
|
/**
|
16229
|
-
* @deprecated
|
16230
16227
|
* @description Search on textual fields of a composition.
|
16231
16228
|
* Note: for long text fields the tail of the text is not guaranteed to be searchable.
|
16232
16229
|
* Example: ?search=hello
|
@@ -16335,7 +16332,7 @@ interface external$5 {
|
|
16335
16332
|
*/
|
16336
16333
|
releaseId?: external$5["../../../lambda/functions/v1-entries.swagger.yml"]["components"]["parameters"]["releaseId"];
|
16337
16334
|
/**
|
16338
|
-
*
|
16335
|
+
* Search on textual fields of an entry.
|
16339
16336
|
* Note: for long text fields the tail of the text is not guaranteed to be searchable.
|
16340
16337
|
* Example: ?search=hello
|
16341
16338
|
*/
|
@@ -16721,7 +16718,6 @@ interface external$5 {
|
|
16721
16718
|
*/
|
16722
16719
|
releaseId: string;
|
16723
16720
|
/**
|
16724
|
-
* @deprecated
|
16725
16721
|
* @description Search on textual fields of an entry.
|
16726
16722
|
* Note: for long text fields the tail of the text is not guaranteed to be searchable.
|
16727
16723
|
* Example: ?search=hello
|
@@ -18563,7 +18559,7 @@ interface external$4 {
|
|
18563
18559
|
*/
|
18564
18560
|
releaseId?: external$4["v1-canvas.swagger.yml"]["components"]["parameters"]["releaseId"];
|
18565
18561
|
/**
|
18566
|
-
*
|
18562
|
+
* Search on textual fields of a composition.
|
18567
18563
|
* Note: for long text fields the tail of the text is not guaranteed to be searchable.
|
18568
18564
|
* Example: ?search=hello
|
18569
18565
|
*/
|
@@ -18926,7 +18922,6 @@ interface external$4 {
|
|
18926
18922
|
*/
|
18927
18923
|
releaseId: string;
|
18928
18924
|
/**
|
18929
|
-
* @deprecated
|
18930
18925
|
* @description Search on textual fields of a composition.
|
18931
18926
|
* Note: for long text fields the tail of the text is not guaranteed to be searchable.
|
18932
18927
|
* Example: ?search=hello
|
@@ -19795,7 +19790,6 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
|
19795
19790
|
constructor(options: CanvasClientOptions);
|
19796
19791
|
/** Fetches lists of Canvas compositions, optionally by type */
|
19797
19792
|
getCompositionList(params?: Omit<CompositionGetParameters, 'projectId' | 'componentId' | 'compositionId' | 'slug'> & {
|
19798
|
-
/** @deprecated do not use */
|
19799
19793
|
filters?: CompositionFilters;
|
19800
19794
|
} & ({
|
19801
19795
|
resolveData: true;
|
@@ -19855,6 +19849,7 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
|
19855
19849
|
helpText?: string | undefined;
|
19856
19850
|
type: string;
|
19857
19851
|
localizable?: boolean | undefined;
|
19852
|
+
/** Fetches one composition by its project map node path */
|
19858
19853
|
typeConfig?: unknown;
|
19859
19854
|
}[] | undefined;
|
19860
19855
|
categoryId?: string | null | undefined;
|
@@ -21769,7 +21764,6 @@ declare class ContentClient extends ApiClient<ContentClientOptions> {
|
|
21769
21764
|
constructor(options: ContentClientOptions);
|
21770
21765
|
getContentTypes(options?: ExceptProject<GetContentTypesOptions>): Promise<GetContentTypesResponse>;
|
21771
21766
|
getEntries(options: ExceptProject<GetEntriesOptions> & DataResolutionParameters & DataResolutionOption & {
|
21772
|
-
/** @deprecated do not use */
|
21773
21767
|
filters?: Filters;
|
21774
21768
|
}): Promise<GetEntriesResponse>;
|
21775
21769
|
/** Fetches historical versions of an entry */
|
@@ -22259,11 +22253,10 @@ type UpdateCompositionMessage = {
|
|
22259
22253
|
type: 'update-composition';
|
22260
22254
|
composition: RootComponentInstance;
|
22261
22255
|
hash: number | undefined;
|
22256
|
+
eventTimestamp: number | undefined;
|
22262
22257
|
};
|
22263
|
-
type UpdateCompositionInternalMessage = {
|
22258
|
+
type UpdateCompositionInternalMessage = Omit<UpdateCompositionMessage, 'type'> & {
|
22264
22259
|
type: 'update-composition-internal';
|
22265
|
-
composition: RootComponentInstance;
|
22266
|
-
hash: number | undefined;
|
22267
22260
|
};
|
22268
22261
|
type AddComponentMessage = {
|
22269
22262
|
type: 'add-component';
|
@@ -22383,7 +22376,7 @@ type Channel = {
|
|
22383
22376
|
selectParameter: (options: Omit<SelectParameterMessage, 'type'>) => void;
|
22384
22377
|
openParameterEditor: (options: Omit<OpenParameterEditorMessage, 'type'>) => void;
|
22385
22378
|
updateComposition: (composition: RootComponentInstance, secret?: string) => void;
|
22386
|
-
updateCompositionInternal: (composition: RootComponentInstance, hash?: number) => void;
|
22379
|
+
updateCompositionInternal: (composition: RootComponentInstance, hash?: number, eventTimestamp?: number) => void;
|
22387
22380
|
addComponent: (options: Omit<AddComponentMessage, 'type'>) => void;
|
22388
22381
|
moveComponent: (options: Omit<MoveComponentMessage, 'type'>) => void;
|
22389
22382
|
updateComponentParameter: (options: Omit<UpdateComponentParameterMessage, 'type'>) => void;
|
package/dist/index.d.ts
CHANGED
@@ -4755,7 +4755,7 @@ interface paths$d {
|
|
4755
4755
|
*/
|
4756
4756
|
releaseId?: components$6["parameters"]["releaseId"];
|
4757
4757
|
/**
|
4758
|
-
*
|
4758
|
+
* Search on textual fields of an entry.
|
4759
4759
|
* Note: for long text fields the tail of the text is not guaranteed to be searchable.
|
4760
4760
|
* Example: ?search=hello
|
4761
4761
|
*/
|
@@ -5141,7 +5141,6 @@ interface components$6 {
|
|
5141
5141
|
*/
|
5142
5142
|
releaseId: string;
|
5143
5143
|
/**
|
5144
|
-
* @deprecated
|
5145
5144
|
* @description Search on textual fields of an entry.
|
5146
5145
|
* Note: for long text fields the tail of the text is not guaranteed to be searchable.
|
5147
5146
|
* Example: ?search=hello
|
@@ -12239,7 +12238,7 @@ interface paths$6 {
|
|
12239
12238
|
*/
|
12240
12239
|
releaseId?: components$4["parameters"]["releaseId"];
|
12241
12240
|
/**
|
12242
|
-
*
|
12241
|
+
* Search on textual fields of a composition.
|
12243
12242
|
* Note: for long text fields the tail of the text is not guaranteed to be searchable.
|
12244
12243
|
* Example: ?search=hello
|
12245
12244
|
*/
|
@@ -12602,7 +12601,6 @@ interface components$4 {
|
|
12602
12601
|
*/
|
12603
12602
|
releaseId: string;
|
12604
12603
|
/**
|
12605
|
-
* @deprecated
|
12606
12604
|
* @description Search on textual fields of a composition.
|
12607
12605
|
* Note: for long text fields the tail of the text is not guaranteed to be searchable.
|
12608
12606
|
* Example: ?search=hello
|
@@ -15863,7 +15861,7 @@ interface external$5 {
|
|
15863
15861
|
*/
|
15864
15862
|
releaseId?: external$5["../../../lambda/functions/v1-canvas.swagger.yml"]["components"]["parameters"]["releaseId"];
|
15865
15863
|
/**
|
15866
|
-
*
|
15864
|
+
* Search on textual fields of a composition.
|
15867
15865
|
* Note: for long text fields the tail of the text is not guaranteed to be searchable.
|
15868
15866
|
* Example: ?search=hello
|
15869
15867
|
*/
|
@@ -16226,7 +16224,6 @@ interface external$5 {
|
|
16226
16224
|
*/
|
16227
16225
|
releaseId: string;
|
16228
16226
|
/**
|
16229
|
-
* @deprecated
|
16230
16227
|
* @description Search on textual fields of a composition.
|
16231
16228
|
* Note: for long text fields the tail of the text is not guaranteed to be searchable.
|
16232
16229
|
* Example: ?search=hello
|
@@ -16335,7 +16332,7 @@ interface external$5 {
|
|
16335
16332
|
*/
|
16336
16333
|
releaseId?: external$5["../../../lambda/functions/v1-entries.swagger.yml"]["components"]["parameters"]["releaseId"];
|
16337
16334
|
/**
|
16338
|
-
*
|
16335
|
+
* Search on textual fields of an entry.
|
16339
16336
|
* Note: for long text fields the tail of the text is not guaranteed to be searchable.
|
16340
16337
|
* Example: ?search=hello
|
16341
16338
|
*/
|
@@ -16721,7 +16718,6 @@ interface external$5 {
|
|
16721
16718
|
*/
|
16722
16719
|
releaseId: string;
|
16723
16720
|
/**
|
16724
|
-
* @deprecated
|
16725
16721
|
* @description Search on textual fields of an entry.
|
16726
16722
|
* Note: for long text fields the tail of the text is not guaranteed to be searchable.
|
16727
16723
|
* Example: ?search=hello
|
@@ -18563,7 +18559,7 @@ interface external$4 {
|
|
18563
18559
|
*/
|
18564
18560
|
releaseId?: external$4["v1-canvas.swagger.yml"]["components"]["parameters"]["releaseId"];
|
18565
18561
|
/**
|
18566
|
-
*
|
18562
|
+
* Search on textual fields of a composition.
|
18567
18563
|
* Note: for long text fields the tail of the text is not guaranteed to be searchable.
|
18568
18564
|
* Example: ?search=hello
|
18569
18565
|
*/
|
@@ -18926,7 +18922,6 @@ interface external$4 {
|
|
18926
18922
|
*/
|
18927
18923
|
releaseId: string;
|
18928
18924
|
/**
|
18929
|
-
* @deprecated
|
18930
18925
|
* @description Search on textual fields of a composition.
|
18931
18926
|
* Note: for long text fields the tail of the text is not guaranteed to be searchable.
|
18932
18927
|
* Example: ?search=hello
|
@@ -19795,7 +19790,6 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
|
19795
19790
|
constructor(options: CanvasClientOptions);
|
19796
19791
|
/** Fetches lists of Canvas compositions, optionally by type */
|
19797
19792
|
getCompositionList(params?: Omit<CompositionGetParameters, 'projectId' | 'componentId' | 'compositionId' | 'slug'> & {
|
19798
|
-
/** @deprecated do not use */
|
19799
19793
|
filters?: CompositionFilters;
|
19800
19794
|
} & ({
|
19801
19795
|
resolveData: true;
|
@@ -19855,6 +19849,7 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
|
19855
19849
|
helpText?: string | undefined;
|
19856
19850
|
type: string;
|
19857
19851
|
localizable?: boolean | undefined;
|
19852
|
+
/** Fetches one composition by its project map node path */
|
19858
19853
|
typeConfig?: unknown;
|
19859
19854
|
}[] | undefined;
|
19860
19855
|
categoryId?: string | null | undefined;
|
@@ -21769,7 +21764,6 @@ declare class ContentClient extends ApiClient<ContentClientOptions> {
|
|
21769
21764
|
constructor(options: ContentClientOptions);
|
21770
21765
|
getContentTypes(options?: ExceptProject<GetContentTypesOptions>): Promise<GetContentTypesResponse>;
|
21771
21766
|
getEntries(options: ExceptProject<GetEntriesOptions> & DataResolutionParameters & DataResolutionOption & {
|
21772
|
-
/** @deprecated do not use */
|
21773
21767
|
filters?: Filters;
|
21774
21768
|
}): Promise<GetEntriesResponse>;
|
21775
21769
|
/** Fetches historical versions of an entry */
|
@@ -22259,11 +22253,10 @@ type UpdateCompositionMessage = {
|
|
22259
22253
|
type: 'update-composition';
|
22260
22254
|
composition: RootComponentInstance;
|
22261
22255
|
hash: number | undefined;
|
22256
|
+
eventTimestamp: number | undefined;
|
22262
22257
|
};
|
22263
|
-
type UpdateCompositionInternalMessage = {
|
22258
|
+
type UpdateCompositionInternalMessage = Omit<UpdateCompositionMessage, 'type'> & {
|
22264
22259
|
type: 'update-composition-internal';
|
22265
|
-
composition: RootComponentInstance;
|
22266
|
-
hash: number | undefined;
|
22267
22260
|
};
|
22268
22261
|
type AddComponentMessage = {
|
22269
22262
|
type: 'add-component';
|
@@ -22383,7 +22376,7 @@ type Channel = {
|
|
22383
22376
|
selectParameter: (options: Omit<SelectParameterMessage, 'type'>) => void;
|
22384
22377
|
openParameterEditor: (options: Omit<OpenParameterEditorMessage, 'type'>) => void;
|
22385
22378
|
updateComposition: (composition: RootComponentInstance, secret?: string) => void;
|
22386
|
-
updateCompositionInternal: (composition: RootComponentInstance, hash?: number) => void;
|
22379
|
+
updateCompositionInternal: (composition: RootComponentInstance, hash?: number, eventTimestamp?: number) => void;
|
22387
22380
|
addComponent: (options: Omit<AddComponentMessage, 'type'>) => void;
|
22388
22381
|
moveComponent: (options: Omit<MoveComponentMessage, 'type'>) => void;
|
22389
22382
|
updateComponentParameter: (options: Omit<UpdateComponentParameterMessage, 'type'>) => void;
|
package/dist/index.esm.js
CHANGED
@@ -2000,15 +2000,17 @@ var createCanvasChannel = ({
|
|
2000
2000
|
hash: generateHash({
|
2001
2001
|
composition,
|
2002
2002
|
secret
|
2003
|
-
})
|
2003
|
+
}),
|
2004
|
+
eventTimestamp: Date.now()
|
2004
2005
|
};
|
2005
2006
|
postMessage(message);
|
2006
2007
|
};
|
2007
|
-
const updateCompositionInternal = (composition, hash) => {
|
2008
|
+
const updateCompositionInternal = (composition, hash, eventTimestamp) => {
|
2008
2009
|
const message = {
|
2009
2010
|
type: "update-composition-internal",
|
2010
2011
|
composition,
|
2011
|
-
hash
|
2012
|
+
hash,
|
2013
|
+
eventTimestamp: eventTimestamp != null ? eventTimestamp : Date.now()
|
2012
2014
|
};
|
2013
2015
|
postMessage(message);
|
2014
2016
|
};
|
package/dist/index.js
CHANGED
@@ -2136,15 +2136,17 @@ var createCanvasChannel = ({
|
|
2136
2136
|
hash: generateHash({
|
2137
2137
|
composition,
|
2138
2138
|
secret
|
2139
|
-
})
|
2139
|
+
}),
|
2140
|
+
eventTimestamp: Date.now()
|
2140
2141
|
};
|
2141
2142
|
postMessage(message);
|
2142
2143
|
};
|
2143
|
-
const updateCompositionInternal = (composition, hash) => {
|
2144
|
+
const updateCompositionInternal = (composition, hash, eventTimestamp) => {
|
2144
2145
|
const message = {
|
2145
2146
|
type: "update-composition-internal",
|
2146
2147
|
composition,
|
2147
|
-
hash
|
2148
|
+
hash,
|
2149
|
+
eventTimestamp: eventTimestamp != null ? eventTimestamp : Date.now()
|
2148
2150
|
};
|
2149
2151
|
postMessage(message);
|
2150
2152
|
};
|
package/dist/index.mjs
CHANGED
@@ -2000,15 +2000,17 @@ var createCanvasChannel = ({
|
|
2000
2000
|
hash: generateHash({
|
2001
2001
|
composition,
|
2002
2002
|
secret
|
2003
|
-
})
|
2003
|
+
}),
|
2004
|
+
eventTimestamp: Date.now()
|
2004
2005
|
};
|
2005
2006
|
postMessage(message);
|
2006
2007
|
};
|
2007
|
-
const updateCompositionInternal = (composition, hash) => {
|
2008
|
+
const updateCompositionInternal = (composition, hash, eventTimestamp) => {
|
2008
2009
|
const message = {
|
2009
2010
|
type: "update-composition-internal",
|
2010
2011
|
composition,
|
2011
|
-
hash
|
2012
|
+
hash,
|
2013
|
+
eventTimestamp: eventTimestamp != null ? eventTimestamp : Date.now()
|
2012
2014
|
};
|
2013
2015
|
postMessage(message);
|
2014
2016
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@uniformdev/canvas",
|
3
|
-
"version": "19.
|
3
|
+
"version": "19.146.1-alpha.3+62962ddf19",
|
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.146.1-alpha.3+62962ddf19",
|
42
|
+
"@uniformdev/context": "19.146.1-alpha.3+62962ddf19",
|
43
43
|
"immer": "10.0.4"
|
44
44
|
},
|
45
45
|
"files": [
|
@@ -48,5 +48,5 @@
|
|
48
48
|
"publishConfig": {
|
49
49
|
"access": "public"
|
50
50
|
},
|
51
|
-
"gitHead": "
|
51
|
+
"gitHead": "62962ddf191560b0b15f627e93cf67ebbd4a11af"
|
52
52
|
}
|