datocms-plugin-sdk 2.1.0-alpha.0 → 2.1.0-alpha.1
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/cjs/connect.js.map +1 -1
- package/dist/cjs/hooks/executeSchemaItemTypeDropdownAction.js +3 -0
- package/dist/cjs/hooks/executeSchemaItemTypeDropdownAction.js.map +1 -0
- package/dist/cjs/hooks/renderPage.js.map +1 -1
- package/dist/cjs/hooks/schemaItemTypeDropdownActions.js +3 -0
- package/dist/cjs/hooks/schemaItemTypeDropdownActions.js.map +1 -0
- package/dist/cjs/icon.js.map +1 -1
- package/dist/cjs/index.js +2 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/manifest.js +134 -32
- package/dist/cjs/manifest.js.map +1 -1
- package/dist/esm/connect.d.ts +3 -1
- package/dist/esm/connect.js.map +1 -1
- package/dist/esm/ctx/base.d.ts +2 -0
- package/dist/esm/hooks/executeSchemaItemTypeDropdownAction.d.ts +20 -0
- package/dist/esm/hooks/executeSchemaItemTypeDropdownAction.js +2 -0
- package/dist/esm/hooks/executeSchemaItemTypeDropdownAction.js.map +1 -0
- package/dist/esm/hooks/onBeforeItemUpsert.d.ts +28 -3
- package/dist/esm/hooks/renderPage.d.ts +6 -0
- package/dist/esm/hooks/renderPage.js.map +1 -1
- package/dist/esm/hooks/schemaItemTypeDropdownActions.d.ts +17 -0
- package/dist/esm/hooks/schemaItemTypeDropdownActions.js +2 -0
- package/dist/esm/hooks/schemaItemTypeDropdownActions.js.map +1 -0
- package/dist/esm/icon.d.ts +39 -1
- package/dist/esm/icon.js.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/manifest.js +134 -32
- package/dist/esm/manifest.js.map +1 -1
- package/dist/types/connect.d.ts +3 -1
- package/dist/types/ctx/base.d.ts +2 -0
- package/dist/types/hooks/executeSchemaItemTypeDropdownAction.d.ts +20 -0
- package/dist/types/hooks/onBeforeItemUpsert.d.ts +28 -3
- package/dist/types/hooks/renderPage.d.ts +6 -0
- package/dist/types/hooks/schemaItemTypeDropdownActions.d.ts +17 -0
- package/dist/types/icon.d.ts +39 -1
- package/dist/types/index.d.ts +2 -0
- package/manifest.json +134 -32
- package/package.json +3 -3
- package/src/connect.ts +4 -0
- package/src/ctx/base.ts +3 -0
- package/src/hooks/executeSchemaItemTypeDropdownAction.ts +24 -0
- package/src/hooks/onBeforeItemUpsert.ts +31 -3
- package/src/hooks/renderPage.ts +7 -0
- package/src/hooks/schemaItemTypeDropdownActions.ts +22 -0
- package/src/icon.ts +46 -3
- package/src/index.ts +2 -0
- package/src/manifest.ts +139 -32
package/dist/cjs/connect.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect.js","sourceRoot":"","sources":["../../src/connect.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"connect.js","sourceRoot":"","sources":["../../src/connect.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgIA,0BAsJC;AAtRD,+EAAyD;AA2BzD,+DAGmC;AACnC,iEAGoC;AACpC,qEAGsC;AACtC,iFAG4C;AAC5C,qEAGsC;AACtC,uEAGuC;AACvC,iFAG4C;AAC5C,yGAGwD;AACxD,mDAA+E;AAC/E,iDAA4E;AAC5E,mEAGqC;AACrC,6EAG0C;AAO1C,iCAKiB;AAgDjB,SAAsB,OAAO;wDAC3B,gBAAqD;;QAArD,iCAAA,EAAA,qBAAqD;;;;oBAEjD,gBAAgB,GAAwC,IAAI,CAAC;oBAE7D,gCAAgC,GAQzB,IAAI,CAAC;oBAEV,aAAa,yBACd,gBAAgB,KACnB,uBAAuB,EAAE,IAAA,8CAAsC,EAC7D,gBAA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,oBAAoB,EAAE,uDAAgC;wBACtD,qBAAqB,EAAE,yDAAiC;wBACxD,0BAA0B,EAAE,mEAAsC;wBAClE,sCAAsC,EACpC,2FAAkD;wBACpD,WAAW,EAAE,qCAAuB;wBACpC,UAAU,EAAE,mCAAsB;wBAClC,mBAAmB,EAAE,qDAA+B;wBACpD,wBAAwB,EAAE,+DAAoC;qBAC/D,CAAC;oBAEF,WAAgE,EAArC,KAAA,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAAC,EAArC,cAAqC,EAArC,IAAqC,EAAE,CAAC;wBAAxD,YAAY;wBACf,MAAM,GAAG,YAAY,CAAC,aAAa,EAAE,OAAO,EAAE,iBAAiB,CAAC,CAAC;wBAEvE,IAAI,MAAM,EAAE,CAAC;4BACX,gBAAgB,GAAG,MAAM,CAAC;4BAC1B,MAAM;wBACR,CAAC;oBACH,CAAC;;;;;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executeSchemaItemTypeDropdownAction.js","sourceRoot":"","sources":["../../../src/hooks/executeSchemaItemTypeDropdownAction.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderPage.js","sourceRoot":"","sources":["../../../src/hooks/renderPage.ts"],"names":[],"mappings":";;;AACA,kCAA4D;
|
|
1
|
+
{"version":3,"file":"renderPage.js","sourceRoot":"","sources":["../../../src/hooks/renderPage.ts"],"names":[],"mappings":";;;AACA,kCAA4D;AA4B/C,QAAA,sBAAsB,GACjC,IAAA,wCAAgC,EAC9B,YAAY,EACZ,UAAC,aAAa,EAAE,GAAG;IACjB,IAAI,CAAC,aAAa,CAAC,UAAU,EAAE,CAAC;QAC9B,OAAO;IACT,CAAC;IAED,aAAa,CAAC,UAAU,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAC5C,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemaItemTypeDropdownActions.js","sourceRoot":"","sources":["../../../src/hooks/schemaItemTypeDropdownActions.ts"],"names":[],"mappings":""}
|
package/dist/cjs/icon.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.js","sourceRoot":"","sources":["../../src/icon.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"icon.js","sourceRoot":"","sources":["../../src/icon.ts"],"names":[],"mappings":";;AA0CA,wBAQC;AAlDD,iDAAqD;AA0CrD,SAAgB,MAAM,CAAC,KAAc;IACnC,OAAO,CACL,IAAA,wBAAQ,EAAC,KAAK,CAAC;QACf,CAAC,IAAA,wBAAQ,EAAC,KAAK,CAAC;YACd,KAAK,CAAC,IAAI,KAAK,KAAK;YACpB,IAAA,wBAAQ,EAAC,KAAK,CAAC,OAAO,CAAC;YACvB,IAAA,wBAAQ,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAC3B,CAAC;AACJ,CAAC"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -28,6 +28,7 @@ __exportStar(require("./hooks/customMarksForStructuredTextField"), exports);
|
|
|
28
28
|
__exportStar(require("./hooks/executeFieldDropdownAction"), exports);
|
|
29
29
|
__exportStar(require("./hooks/executeItemFormDropdownAction"), exports);
|
|
30
30
|
__exportStar(require("./hooks/executeItemsDropdownAction"), exports);
|
|
31
|
+
__exportStar(require("./hooks/executeSchemaItemTypeDropdownAction"), exports);
|
|
31
32
|
__exportStar(require("./hooks/executeUploadsDropdownAction"), exports);
|
|
32
33
|
__exportStar(require("./hooks/fieldDropdownActions"), exports);
|
|
33
34
|
__exportStar(require("./hooks/initialLocationQueryForItemSelector"), exports);
|
|
@@ -57,6 +58,7 @@ __exportStar(require("./hooks/renderModal"), exports);
|
|
|
57
58
|
__exportStar(require("./hooks/renderPage"), exports);
|
|
58
59
|
__exportStar(require("./hooks/renderUploadSidebar"), exports);
|
|
59
60
|
__exportStar(require("./hooks/renderUploadSidebarPanel"), exports);
|
|
61
|
+
__exportStar(require("./hooks/schemaItemTypeDropdownActions"), exports);
|
|
60
62
|
__exportStar(require("./hooks/settingsAreaSidebarItemGroups"), exports);
|
|
61
63
|
__exportStar(require("./hooks/uploadsDropdownActions"), exports);
|
|
62
64
|
__exportStar(require("./hooks/uploadSidebarPanels"), exports);
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAaA,4CAA0B;AAC1B,6CAA2B;AAC3B,2DAAyC;AACzC,8DAA4C;AAC5C,4DAA0C;AAC1C,oDAAkC;AAClC,uDAAqC;AACrC,oEAAkD;AAClD,kEAAgD;AAChD,kFAAgE;AAChE,4EAA0D;AAC1D,qEAAmD;AACnD,wEAAsD;AACtD,qEAAmD;AACnD,uEAAqD;AACrD,+DAA6C;AAC7C,8EAA4D;AAC5D,gEAA8C;AAC9C,kEAAgD;AAChD,0DAAwC;AACxC,gEAA8C;AAC9C,2DAAyC;AACzC,+DAA6C;AAC7C,6DAA2C;AAC3C,gEAA8C;AAC9C,+DAA6C;AAC7C,+DAA6C;AAC7C,iEAA+C;AAC/C,6DAA2C;AAC3C,iDAA+B;AAC/B,kEAAgD;AAChD,4DAA0C;AAC1C,6DAA2C;AAC3C,+DAA6C;AAC7C,qEAAmD;AACnD,+DAA6C;AAC7C,gEAA8C;AAC9C,qEAAmD;AACnD,iFAA+D;AAC/D,sDAAoC;AACpC,qDAAmC;AACnC,8DAA4C;AAC5C,mEAAiD;AACjD,wEAAsD;AACtD,iEAA+C;AAC/C,8DAA4C;AAC5C,yDAAuC;AACvC,iFAA+D;AAC/D,yCAAuB;AACvB,6CAA2B;AAC3B,2CAAyB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAaA,4CAA0B;AAC1B,6CAA2B;AAC3B,2DAAyC;AACzC,8DAA4C;AAC5C,4DAA0C;AAC1C,oDAAkC;AAClC,uDAAqC;AACrC,oEAAkD;AAClD,kEAAgD;AAChD,kFAAgE;AAChE,4EAA0D;AAC1D,qEAAmD;AACnD,wEAAsD;AACtD,qEAAmD;AACnD,8EAA4D;AAC5D,uEAAqD;AACrD,+DAA6C;AAC7C,8EAA4D;AAC5D,gEAA8C;AAC9C,kEAAgD;AAChD,0DAAwC;AACxC,gEAA8C;AAC9C,2DAAyC;AACzC,+DAA6C;AAC7C,6DAA2C;AAC3C,gEAA8C;AAC9C,+DAA6C;AAC7C,+DAA6C;AAC7C,iEAA+C;AAC/C,6DAA2C;AAC3C,iDAA+B;AAC/B,kEAAgD;AAChD,4DAA0C;AAC1C,6DAA2C;AAC3C,+DAA6C;AAC7C,qEAAmD;AACnD,+DAA6C;AAC7C,gEAA8C;AAC9C,qEAAmD;AACnD,iFAA+D;AAC/D,sDAAoC;AACpC,qDAAmC;AACnC,8DAA4C;AAC5C,mEAAiD;AACjD,wEAAsD;AACtD,wEAAsD;AACtD,iEAA+C;AAC/C,8DAA4C;AAC5C,yDAAuC;AACvC,iFAA+D;AAC/D,yCAAuB;AACvB,6CAA2B;AAC3B,2CAAyB"}
|
package/dist/cjs/manifest.js
CHANGED
|
@@ -97,6 +97,29 @@ exports.manifest = {
|
|
|
97
97
|
lineNumber: 19,
|
|
98
98
|
},
|
|
99
99
|
},
|
|
100
|
+
schemaItemTypeDropdownActions: {
|
|
101
|
+
name: 'schemaItemTypeDropdownActions',
|
|
102
|
+
comment: {
|
|
103
|
+
markdownText: 'Use this function to define custom actions (or groups of actions) for a model/block model in the Schema section.\n\nThe `executeSchemaItemTypeDropdownAction()` hook will be triggered once the user\nclicks on one of the defined actions.',
|
|
104
|
+
tag: 'dropdownActions',
|
|
105
|
+
},
|
|
106
|
+
nonCtxArguments: [
|
|
107
|
+
{
|
|
108
|
+
name: 'itemType',
|
|
109
|
+
typeName: 'ItemType',
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
ctxArgument: {
|
|
113
|
+
type: 'Ctx',
|
|
114
|
+
additionalProperties: [],
|
|
115
|
+
additionalMethods: [],
|
|
116
|
+
},
|
|
117
|
+
returnType: 'Array<DropdownAction | DropdownActionGroup>',
|
|
118
|
+
location: {
|
|
119
|
+
filePath: 'src/hooks/schemaItemTypeDropdownActions.ts',
|
|
120
|
+
lineNumber: 16,
|
|
121
|
+
},
|
|
122
|
+
},
|
|
100
123
|
renderUploadSidebarPanel: {
|
|
101
124
|
name: 'renderUploadSidebarPanel',
|
|
102
125
|
comment: {
|
|
@@ -240,6 +263,16 @@ exports.manifest = {
|
|
|
240
263
|
},
|
|
241
264
|
type: 'string',
|
|
242
265
|
},
|
|
266
|
+
location: {
|
|
267
|
+
comment: {
|
|
268
|
+
markdownText: 'Current page location.',
|
|
269
|
+
},
|
|
270
|
+
location: {
|
|
271
|
+
filePath: 'src/hooks/renderPage.ts',
|
|
272
|
+
lineNumber: 22,
|
|
273
|
+
},
|
|
274
|
+
type: '{\n pathname: string;\n search: string;\n hash: string;\n }',
|
|
275
|
+
},
|
|
243
276
|
},
|
|
244
277
|
},
|
|
245
278
|
],
|
|
@@ -1586,7 +1619,7 @@ exports.manifest = {
|
|
|
1586
1619
|
onBeforeItemUpsert: {
|
|
1587
1620
|
name: 'onBeforeItemUpsert',
|
|
1588
1621
|
comment: {
|
|
1589
|
-
markdownText: 'This
|
|
1622
|
+
markdownText: 'This hook is called when the user attempts to save a record. You can use it to block record saving.\n\nIf you return `false`, the record will NOT be saved. A small on-page error will say "A plugin blocked the action".\nHowever, for better UX, consider also using `ctx.alert()` to better explain to the user why their save was blocked.\n\nIf you return `true`, the save will proceed as normal.\n\nThis hook runs BEFORE serverside validation. You can use it to do your own additional validation before returning.\nClientside validations are not affected by this hook, since those occur on individual fields\' `onBlur()` events.',
|
|
1590
1623
|
tag: 'beforeHooks',
|
|
1591
1624
|
},
|
|
1592
1625
|
nonCtxArguments: [
|
|
@@ -1597,13 +1630,33 @@ exports.manifest = {
|
|
|
1597
1630
|
],
|
|
1598
1631
|
ctxArgument: {
|
|
1599
1632
|
type: 'Ctx',
|
|
1600
|
-
additionalProperties: [
|
|
1601
|
-
|
|
1633
|
+
additionalProperties: [
|
|
1634
|
+
{
|
|
1635
|
+
items: {},
|
|
1636
|
+
},
|
|
1637
|
+
],
|
|
1638
|
+
additionalMethods: [
|
|
1639
|
+
{
|
|
1640
|
+
items: {
|
|
1641
|
+
scrollToField: {
|
|
1642
|
+
comment: {
|
|
1643
|
+
markdownText: 'Smoothly navigates to a specific field in the form. If the field is\nlocalized it will switch language tab and then navigate to the chosen\nfield.',
|
|
1644
|
+
example: "const fieldPath = prompt(\n 'Please insert the path of a field in the form',\n ctx.fieldPath,\n);\n\nawait ctx.scrollToField(fieldPath);",
|
|
1645
|
+
},
|
|
1646
|
+
location: {
|
|
1647
|
+
filePath: 'src/hooks/onBeforeItemUpsert.ts',
|
|
1648
|
+
lineNumber: 47,
|
|
1649
|
+
},
|
|
1650
|
+
type: '(path: string, locale?: string) => Promise<void>',
|
|
1651
|
+
},
|
|
1652
|
+
},
|
|
1653
|
+
},
|
|
1654
|
+
],
|
|
1602
1655
|
},
|
|
1603
1656
|
returnType: 'MaybePromise<boolean>',
|
|
1604
1657
|
location: {
|
|
1605
1658
|
filePath: 'src/hooks/onBeforeItemUpsert.ts',
|
|
1606
|
-
lineNumber:
|
|
1659
|
+
lineNumber: 22,
|
|
1607
1660
|
},
|
|
1608
1661
|
},
|
|
1609
1662
|
manualFieldExtensions: {
|
|
@@ -2117,6 +2170,45 @@ exports.manifest = {
|
|
|
2117
2170
|
lineNumber: 13,
|
|
2118
2171
|
},
|
|
2119
2172
|
},
|
|
2173
|
+
executeSchemaItemTypeDropdownAction: {
|
|
2174
|
+
name: 'executeSchemaItemTypeDropdownAction',
|
|
2175
|
+
comment: {
|
|
2176
|
+
markdownText: 'Use this function to execute a particular dropdown action defined via\nthe `schemaItemTypeDropdownActions()` hook.',
|
|
2177
|
+
tag: 'dropdownActions',
|
|
2178
|
+
},
|
|
2179
|
+
nonCtxArguments: [
|
|
2180
|
+
{
|
|
2181
|
+
name: 'actionId',
|
|
2182
|
+
typeName: 'string',
|
|
2183
|
+
},
|
|
2184
|
+
{
|
|
2185
|
+
name: 'itemType',
|
|
2186
|
+
typeName: 'ItemType',
|
|
2187
|
+
},
|
|
2188
|
+
],
|
|
2189
|
+
ctxArgument: {
|
|
2190
|
+
type: 'Ctx',
|
|
2191
|
+
additionalProperties: [
|
|
2192
|
+
{
|
|
2193
|
+
items: {
|
|
2194
|
+
parameters: {
|
|
2195
|
+
location: {
|
|
2196
|
+
filePath: 'src/hooks/executeSchemaItemTypeDropdownAction.ts',
|
|
2197
|
+
lineNumber: 23,
|
|
2198
|
+
},
|
|
2199
|
+
type: 'Record<string, unknown> | undefined',
|
|
2200
|
+
},
|
|
2201
|
+
},
|
|
2202
|
+
},
|
|
2203
|
+
],
|
|
2204
|
+
additionalMethods: [],
|
|
2205
|
+
},
|
|
2206
|
+
returnType: 'Promise<void>',
|
|
2207
|
+
location: {
|
|
2208
|
+
filePath: 'src/hooks/executeSchemaItemTypeDropdownAction.ts',
|
|
2209
|
+
lineNumber: 13,
|
|
2210
|
+
},
|
|
2211
|
+
},
|
|
2120
2212
|
executeItemsDropdownAction: {
|
|
2121
2213
|
name: 'executeItemsDropdownAction',
|
|
2122
2214
|
comment: {
|
|
@@ -2843,13 +2935,23 @@ exports.manifest = {
|
|
|
2843
2935
|
},
|
|
2844
2936
|
type: 'string',
|
|
2845
2937
|
},
|
|
2938
|
+
isEnvironmentPrimary: {
|
|
2939
|
+
comment: {
|
|
2940
|
+
markdownText: 'Whether the current environment is the primary one.',
|
|
2941
|
+
},
|
|
2942
|
+
location: {
|
|
2943
|
+
filePath: 'src/ctx/base.ts',
|
|
2944
|
+
lineNumber: 64,
|
|
2945
|
+
},
|
|
2946
|
+
type: 'boolean',
|
|
2947
|
+
},
|
|
2846
2948
|
owner: {
|
|
2847
2949
|
comment: {
|
|
2848
2950
|
markdownText: 'The account/organization that is the project owner.',
|
|
2849
2951
|
},
|
|
2850
2952
|
location: {
|
|
2851
2953
|
filePath: 'src/ctx/base.ts',
|
|
2852
|
-
lineNumber:
|
|
2954
|
+
lineNumber: 67,
|
|
2853
2955
|
},
|
|
2854
2956
|
type: 'Account | Organization',
|
|
2855
2957
|
},
|
|
@@ -2860,7 +2962,7 @@ exports.manifest = {
|
|
|
2860
2962
|
},
|
|
2861
2963
|
location: {
|
|
2862
2964
|
filePath: 'src/ctx/base.ts',
|
|
2863
|
-
lineNumber:
|
|
2965
|
+
lineNumber: 75,
|
|
2864
2966
|
},
|
|
2865
2967
|
type: 'Account | undefined',
|
|
2866
2968
|
},
|
|
@@ -2870,7 +2972,7 @@ exports.manifest = {
|
|
|
2870
2972
|
},
|
|
2871
2973
|
location: {
|
|
2872
2974
|
filePath: 'src/ctx/base.ts',
|
|
2873
|
-
lineNumber:
|
|
2975
|
+
lineNumber: 81,
|
|
2874
2976
|
},
|
|
2875
2977
|
type: '{\n /** Preferred locale */\n locale: string;\n }',
|
|
2876
2978
|
},
|
|
@@ -2880,7 +2982,7 @@ exports.manifest = {
|
|
|
2880
2982
|
},
|
|
2881
2983
|
location: {
|
|
2882
2984
|
filePath: 'src/ctx/base.ts',
|
|
2883
|
-
lineNumber:
|
|
2985
|
+
lineNumber: 87,
|
|
2884
2986
|
},
|
|
2885
2987
|
type: 'Theme',
|
|
2886
2988
|
},
|
|
@@ -2898,7 +3000,7 @@ exports.manifest = {
|
|
|
2898
3000
|
},
|
|
2899
3001
|
location: {
|
|
2900
3002
|
filePath: 'src/ctx/base.ts',
|
|
2901
|
-
lineNumber:
|
|
3003
|
+
lineNumber: 97,
|
|
2902
3004
|
},
|
|
2903
3005
|
type: 'Partial<Record<string, ItemType>>',
|
|
2904
3006
|
},
|
|
@@ -2908,7 +3010,7 @@ exports.manifest = {
|
|
|
2908
3010
|
},
|
|
2909
3011
|
location: {
|
|
2910
3012
|
filePath: 'src/ctx/base.ts',
|
|
2911
|
-
lineNumber:
|
|
3013
|
+
lineNumber: 104,
|
|
2912
3014
|
},
|
|
2913
3015
|
type: 'Partial<Record<string, Field>>',
|
|
2914
3016
|
},
|
|
@@ -2918,7 +3020,7 @@ exports.manifest = {
|
|
|
2918
3020
|
},
|
|
2919
3021
|
location: {
|
|
2920
3022
|
filePath: 'src/ctx/base.ts',
|
|
2921
|
-
lineNumber:
|
|
3023
|
+
lineNumber: 111,
|
|
2922
3024
|
},
|
|
2923
3025
|
type: 'Partial<Record<string, Fieldset>>',
|
|
2924
3026
|
},
|
|
@@ -2928,7 +3030,7 @@ exports.manifest = {
|
|
|
2928
3030
|
},
|
|
2929
3031
|
location: {
|
|
2930
3032
|
filePath: 'src/ctx/base.ts',
|
|
2931
|
-
lineNumber:
|
|
3033
|
+
lineNumber: 118,
|
|
2932
3034
|
},
|
|
2933
3035
|
type: 'Partial<Record<string, User>>',
|
|
2934
3036
|
},
|
|
@@ -2938,7 +3040,7 @@ exports.manifest = {
|
|
|
2938
3040
|
},
|
|
2939
3041
|
location: {
|
|
2940
3042
|
filePath: 'src/ctx/base.ts',
|
|
2941
|
-
lineNumber:
|
|
3043
|
+
lineNumber: 125,
|
|
2942
3044
|
},
|
|
2943
3045
|
type: 'Partial<Record<string, SsoUser>>',
|
|
2944
3046
|
},
|
|
@@ -2959,7 +3061,7 @@ exports.manifest = {
|
|
|
2959
3061
|
},
|
|
2960
3062
|
location: {
|
|
2961
3063
|
filePath: 'src/ctx/base.ts',
|
|
2962
|
-
lineNumber:
|
|
3064
|
+
lineNumber: 168,
|
|
2963
3065
|
},
|
|
2964
3066
|
type: '(itemTypeId: string) => Promise<Field[]>',
|
|
2965
3067
|
},
|
|
@@ -2970,7 +3072,7 @@ exports.manifest = {
|
|
|
2970
3072
|
},
|
|
2971
3073
|
location: {
|
|
2972
3074
|
filePath: 'src/ctx/base.ts',
|
|
2973
|
-
lineNumber:
|
|
3075
|
+
lineNumber: 187,
|
|
2974
3076
|
},
|
|
2975
3077
|
type: '(itemTypeId: string) => Promise<Fieldset[]>',
|
|
2976
3078
|
},
|
|
@@ -2981,7 +3083,7 @@ exports.manifest = {
|
|
|
2981
3083
|
},
|
|
2982
3084
|
location: {
|
|
2983
3085
|
filePath: 'src/ctx/base.ts',
|
|
2984
|
-
lineNumber:
|
|
3086
|
+
lineNumber: 204,
|
|
2985
3087
|
},
|
|
2986
3088
|
type: '() => Promise<Field[]>',
|
|
2987
3089
|
},
|
|
@@ -2992,7 +3094,7 @@ exports.manifest = {
|
|
|
2992
3094
|
},
|
|
2993
3095
|
location: {
|
|
2994
3096
|
filePath: 'src/ctx/base.ts',
|
|
2995
|
-
lineNumber:
|
|
3097
|
+
lineNumber: 217,
|
|
2996
3098
|
},
|
|
2997
3099
|
type: '() => Promise<User[]>',
|
|
2998
3100
|
},
|
|
@@ -3003,7 +3105,7 @@ exports.manifest = {
|
|
|
3003
3105
|
},
|
|
3004
3106
|
location: {
|
|
3005
3107
|
filePath: 'src/ctx/base.ts',
|
|
3006
|
-
lineNumber:
|
|
3108
|
+
lineNumber: 230,
|
|
3007
3109
|
},
|
|
3008
3110
|
type: '() => Promise<SsoUser[]>',
|
|
3009
3111
|
},
|
|
@@ -3022,7 +3124,7 @@ exports.manifest = {
|
|
|
3022
3124
|
},
|
|
3023
3125
|
location: {
|
|
3024
3126
|
filePath: 'src/ctx/base.ts',
|
|
3025
|
-
lineNumber:
|
|
3127
|
+
lineNumber: 252,
|
|
3026
3128
|
},
|
|
3027
3129
|
type: '(params: Record<string, unknown>) => Promise<void>',
|
|
3028
3130
|
},
|
|
@@ -3033,7 +3135,7 @@ exports.manifest = {
|
|
|
3033
3135
|
},
|
|
3034
3136
|
location: {
|
|
3035
3137
|
filePath: 'src/ctx/base.ts',
|
|
3036
|
-
lineNumber:
|
|
3138
|
+
lineNumber: 303,
|
|
3037
3139
|
},
|
|
3038
3140
|
type: '(\n fieldId: string,\n changes: FieldAppearanceChange[],\n ) => Promise<void>',
|
|
3039
3141
|
},
|
|
@@ -3052,7 +3154,7 @@ exports.manifest = {
|
|
|
3052
3154
|
},
|
|
3053
3155
|
location: {
|
|
3054
3156
|
filePath: 'src/ctx/base.ts',
|
|
3055
|
-
lineNumber:
|
|
3157
|
+
lineNumber: 408,
|
|
3056
3158
|
},
|
|
3057
3159
|
type: '(message: string) => Promise<void>',
|
|
3058
3160
|
},
|
|
@@ -3063,7 +3165,7 @@ exports.manifest = {
|
|
|
3063
3165
|
},
|
|
3064
3166
|
location: {
|
|
3065
3167
|
filePath: 'src/ctx/base.ts',
|
|
3066
|
-
lineNumber:
|
|
3168
|
+
lineNumber: 423,
|
|
3067
3169
|
},
|
|
3068
3170
|
type: '(message: string) => Promise<void>',
|
|
3069
3171
|
},
|
|
@@ -3074,7 +3176,7 @@ exports.manifest = {
|
|
|
3074
3176
|
},
|
|
3075
3177
|
location: {
|
|
3076
3178
|
filePath: 'src/ctx/base.ts',
|
|
3077
|
-
lineNumber:
|
|
3179
|
+
lineNumber: 447,
|
|
3078
3180
|
},
|
|
3079
3181
|
type: '<CtaValue = unknown>(\n toast: Toast<CtaValue>,\n ) => Promise<CtaValue | null>',
|
|
3080
3182
|
},
|
|
@@ -3093,7 +3195,7 @@ exports.manifest = {
|
|
|
3093
3195
|
},
|
|
3094
3196
|
location: {
|
|
3095
3197
|
filePath: 'src/ctx/base.ts',
|
|
3096
|
-
lineNumber:
|
|
3198
|
+
lineNumber: 333,
|
|
3097
3199
|
},
|
|
3098
3200
|
type: '(itemTypeId: string) => Promise<Item | null>',
|
|
3099
3201
|
},
|
|
@@ -3104,7 +3206,7 @@ exports.manifest = {
|
|
|
3104
3206
|
},
|
|
3105
3207
|
location: {
|
|
3106
3208
|
filePath: 'src/ctx/base.ts',
|
|
3107
|
-
lineNumber:
|
|
3209
|
+
lineNumber: 354,
|
|
3108
3210
|
},
|
|
3109
3211
|
type: '{\n (\n itemTypeId: string,\n options: { multiple: true; initialLocationQuery?: ItemListLocationQuery },\n ): Promise<Item[] | null>;\n (\n itemTypeId: string,\n options?: {\n multiple: false;\n initialLocationQuery?: ItemListLocationQuery;\n },\n ): Promise<Item | null>;\n }',
|
|
3110
3212
|
},
|
|
@@ -3115,7 +3217,7 @@ exports.manifest = {
|
|
|
3115
3217
|
},
|
|
3116
3218
|
location: {
|
|
3117
3219
|
filePath: 'src/ctx/base.ts',
|
|
3118
|
-
lineNumber:
|
|
3220
|
+
lineNumber: 386,
|
|
3119
3221
|
},
|
|
3120
3222
|
type: '(itemId: string) => Promise<Item | null>',
|
|
3121
3223
|
},
|
|
@@ -3134,7 +3236,7 @@ exports.manifest = {
|
|
|
3134
3236
|
},
|
|
3135
3237
|
location: {
|
|
3136
3238
|
filePath: 'src/ctx/base.ts',
|
|
3137
|
-
lineNumber:
|
|
3239
|
+
lineNumber: 474,
|
|
3138
3240
|
},
|
|
3139
3241
|
type: '{\n (options: { multiple: true }): Promise<Upload[] | null>;\n (options?: { multiple: false }): Promise<Upload | null>;\n }',
|
|
3140
3242
|
},
|
|
@@ -3145,7 +3247,7 @@ exports.manifest = {
|
|
|
3145
3247
|
},
|
|
3146
3248
|
location: {
|
|
3147
3249
|
filePath: 'src/ctx/base.ts',
|
|
3148
|
-
lineNumber:
|
|
3250
|
+
lineNumber: 502,
|
|
3149
3251
|
},
|
|
3150
3252
|
type: '(\n uploadId: string,\n ) => Promise<(Upload & { deleted?: true }) | null>',
|
|
3151
3253
|
},
|
|
@@ -3156,7 +3258,7 @@ exports.manifest = {
|
|
|
3156
3258
|
},
|
|
3157
3259
|
location: {
|
|
3158
3260
|
filePath: 'src/ctx/base.ts',
|
|
3159
|
-
lineNumber:
|
|
3261
|
+
lineNumber: 530,
|
|
3160
3262
|
},
|
|
3161
3263
|
type: '(\n /** The "single asset" field structure */\n fileFieldValue: FileFieldValue,\n /** Shows metadata information for a specific locale */\n locale?: string,\n ) => Promise<FileFieldValue | null>',
|
|
3162
3264
|
},
|
|
@@ -3175,7 +3277,7 @@ exports.manifest = {
|
|
|
3175
3277
|
},
|
|
3176
3278
|
location: {
|
|
3177
3279
|
filePath: 'src/ctx/base.ts',
|
|
3178
|
-
lineNumber:
|
|
3280
|
+
lineNumber: 561,
|
|
3179
3281
|
},
|
|
3180
3282
|
type: '(modal: Modal) => Promise<unknown>',
|
|
3181
3283
|
},
|
|
@@ -3186,7 +3288,7 @@ exports.manifest = {
|
|
|
3186
3288
|
},
|
|
3187
3289
|
location: {
|
|
3188
3290
|
filePath: 'src/ctx/base.ts',
|
|
3189
|
-
lineNumber:
|
|
3291
|
+
lineNumber: 598,
|
|
3190
3292
|
},
|
|
3191
3293
|
type: '(options: ConfirmOptions) => Promise<unknown>',
|
|
3192
3294
|
},
|
|
@@ -3205,7 +3307,7 @@ exports.manifest = {
|
|
|
3205
3307
|
},
|
|
3206
3308
|
location: {
|
|
3207
3309
|
filePath: 'src/ctx/base.ts',
|
|
3208
|
-
lineNumber:
|
|
3310
|
+
lineNumber: 612,
|
|
3209
3311
|
},
|
|
3210
3312
|
type: '(path: string) => Promise<void>',
|
|
3211
3313
|
},
|