@chili-publish/studio-sdk 1.9.1 → 1.11.0
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/_bundles/main.js +1 -1
- package/_bundles/main.js.map +1 -1
- package/_bundles/report.html +2 -2
- package/lib/editor-engine.json +1 -1
- package/lib/package.json +5 -4
- package/lib/src/controllers/BarcodeController.d.ts +16 -0
- package/lib/src/controllers/BarcodeController.js +34 -0
- package/lib/src/controllers/BarcodeController.js.map +1 -1
- package/lib/src/controllers/CharacterStyleController.d.ts +7 -0
- package/lib/src/controllers/CharacterStyleController.js +10 -0
- package/lib/src/controllers/CharacterStyleController.js.map +1 -1
- package/lib/src/controllers/ParagraphStyleController.d.ts +2 -2
- package/lib/src/controllers/ParagraphStyleController.js +1 -1
- package/lib/src/controllers/ParagraphStyleController.js.map +1 -1
- package/lib/src/controllers/VariableController.d.ts +101 -2
- package/lib/src/controllers/VariableController.js +157 -2
- package/lib/src/controllers/VariableController.js.map +1 -1
- package/lib/src/index.d.ts +2 -2
- package/lib/src/index.js +1 -1
- package/lib/src/index.js.map +1 -1
- package/lib/src/next/NextInitiator.d.ts +29 -0
- package/lib/src/next/NextInitiator.js +26 -0
- package/lib/src/next/NextInitiator.js.map +1 -0
- package/lib/src/next/controllers/SubscriberController.d.ts +20 -0
- package/lib/src/next/controllers/SubscriberController.js +21 -0
- package/lib/src/next/controllers/SubscriberController.js.map +1 -0
- package/lib/src/next/controllers/VariableController.d.ts +36 -0
- package/lib/src/next/controllers/VariableController.js +77 -0
- package/lib/src/next/controllers/VariableController.js.map +1 -0
- package/lib/src/next/index.d.ts +2 -0
- package/lib/src/next/index.js +2 -0
- package/lib/src/next/index.js.map +1 -0
- package/lib/src/next/tests/controllers/VariableController.test.d.ts +1 -0
- package/lib/src/next/tests/controllers/VariableController.test.js +86 -0
- package/lib/src/next/tests/controllers/VariableController.test.js.map +1 -0
- package/lib/src/next/types/NextSubscribers.d.ts +3 -0
- package/lib/src/next/types/NextSubscribers.js +2 -0
- package/lib/src/next/types/NextSubscribers.js.map +1 -0
- package/lib/src/next/types/VariableTypes.d.ts +5 -0
- package/lib/src/next/types/VariableTypes.js +2 -0
- package/lib/src/next/types/VariableTypes.js.map +1 -0
- package/lib/src/sdk.d.ts +3 -0
- package/lib/src/sdk.js +13 -1
- package/lib/src/sdk.js.map +1 -1
- package/lib/src/tests/controllers/BarcodeController.test.js +30 -0
- package/lib/src/tests/controllers/BarcodeController.test.js.map +1 -1
- package/lib/src/tests/controllers/CharacterStyleController.test.js +7 -0
- package/lib/src/tests/controllers/CharacterStyleController.test.js.map +1 -1
- package/lib/src/tests/controllers/VariableController.test.js +70 -1
- package/lib/src/tests/controllers/VariableController.test.js.map +1 -1
- package/lib/src/types/BarcodeTypes.d.ts +3 -0
- package/lib/src/types/BarcodeTypes.js.map +1 -1
- package/lib/src/types/CommonTypes.d.ts +5 -2
- package/lib/src/types/CommonTypes.js.map +1 -1
- package/lib/src/types/ConnectorTypes.d.ts +3 -2
- package/lib/src/types/ConnectorTypes.js.map +1 -1
- package/lib/src/types/FrameTypes.d.ts +1 -0
- package/lib/src/types/FrameTypes.js.map +1 -1
- package/lib/src/types/VariableTypes.d.ts +98 -1
- package/lib/src/types/VariableTypes.js +28 -0
- package/lib/src/types/VariableTypes.js.map +1 -1
- package/package.json +5 -4
|
@@ -18,9 +18,162 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
18
18
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
19
19
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
20
20
|
};
|
|
21
|
-
var _VariableController_editorAPI;
|
|
22
|
-
import { VariableType } from '../types/VariableTypes';
|
|
21
|
+
var _NumberVariable_editorAPI, _DateVariable_editorAPI, _VariableController_editorAPI;
|
|
22
|
+
import { VariableType, } from '../types/VariableTypes';
|
|
23
23
|
import { getEditorResponseData } from '../utils/EditorResponseData';
|
|
24
|
+
class NumberVariable {
|
|
25
|
+
constructor(editorAPI) {
|
|
26
|
+
_NumberVariable_editorAPI.set(this, void 0);
|
|
27
|
+
/**
|
|
28
|
+
* @experimental Sets the minimum value for a number variable
|
|
29
|
+
* @param id the id of the variable to update
|
|
30
|
+
* @param minimum the minimum value or null to remove the minimum value
|
|
31
|
+
* @returns
|
|
32
|
+
*/
|
|
33
|
+
this.setMinimum = (id, minimum) => __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
const update = { minValue: { value: minimum } };
|
|
35
|
+
return this.applyPropertiesUpdate(id, update);
|
|
36
|
+
});
|
|
37
|
+
/**
|
|
38
|
+
* @experimental Sets the maximum value for a number variable
|
|
39
|
+
* @param id the id of the variable to update
|
|
40
|
+
* @param maximum the maximum value or null to remove the maximum value
|
|
41
|
+
* @returns
|
|
42
|
+
*/
|
|
43
|
+
this.setMaximum = (id, maximum) => __awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
const update = { maxValue: { value: maximum } };
|
|
45
|
+
return this.applyPropertiesUpdate(id, update);
|
|
46
|
+
});
|
|
47
|
+
/**
|
|
48
|
+
* @experimental Sets the visibility of the stepper for a number variable
|
|
49
|
+
* @param id the id of the variable to update
|
|
50
|
+
* @param showStep true to show the stepper, false to hide it
|
|
51
|
+
* @returns
|
|
52
|
+
*/
|
|
53
|
+
this.setShowStepper = (id, showStepper) => __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
const update = { showStepper: { value: showStepper } };
|
|
55
|
+
return this.applyPropertiesUpdate(id, update);
|
|
56
|
+
});
|
|
57
|
+
/**
|
|
58
|
+
* @experimental Sets the step size for a number variable
|
|
59
|
+
* @param id the id of the variable to update
|
|
60
|
+
* @param stepSize the step size. Must be > 0
|
|
61
|
+
* @returns
|
|
62
|
+
*/
|
|
63
|
+
this.setStepSize = (id, stepSize) => __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
const update = { stepSize: { value: stepSize } };
|
|
65
|
+
return this.applyPropertiesUpdate(id, update);
|
|
66
|
+
});
|
|
67
|
+
/**
|
|
68
|
+
* @experimental Sets the thousands separator for a number variable
|
|
69
|
+
* @param id the id of the variable to update
|
|
70
|
+
* @param thousandsSeparator the thousands separator to use
|
|
71
|
+
* @returns
|
|
72
|
+
*/
|
|
73
|
+
this.setThousandsSeparator = (id, thousandsSeparator) => __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
const update = { thousandsSeparator: { value: thousandsSeparator } };
|
|
75
|
+
return this.applyPropertiesUpdate(id, update);
|
|
76
|
+
});
|
|
77
|
+
/**
|
|
78
|
+
* @experimental Sets the decimal separator for a number variable
|
|
79
|
+
* @param id the id of the variable to update
|
|
80
|
+
* @param decimalSeparator the decimal separator to use
|
|
81
|
+
* @returns
|
|
82
|
+
*/
|
|
83
|
+
this.setDecimalSeparator = (id, decimalSeparator) => __awaiter(this, void 0, void 0, function* () {
|
|
84
|
+
const update = { decimalSeparator: { value: decimalSeparator } };
|
|
85
|
+
return this.applyPropertiesUpdate(id, update);
|
|
86
|
+
});
|
|
87
|
+
/**
|
|
88
|
+
* @experimental Sets or clears the decimal character style for a number variable
|
|
89
|
+
* @param id the id of the variable to update
|
|
90
|
+
* @param characterStyleId the id of the character style to use/clear for the decimals
|
|
91
|
+
* @returns
|
|
92
|
+
*/
|
|
93
|
+
this.setDecimalCharacterStyle = (id, characterStyleId) => __awaiter(this, void 0, void 0, function* () {
|
|
94
|
+
const update = { decimalCharacterStyleId: { value: characterStyleId } };
|
|
95
|
+
return this.applyPropertiesUpdate(id, update);
|
|
96
|
+
});
|
|
97
|
+
/**
|
|
98
|
+
* @experimental Sets the number of decimals for a number variable
|
|
99
|
+
* @param id the id of the variable to update
|
|
100
|
+
* @param numberOfDecimals the number of decimals to use
|
|
101
|
+
* @returns
|
|
102
|
+
*/
|
|
103
|
+
this.setNumberOfDecimals = (id, numberOfDecimals) => __awaiter(this, void 0, void 0, function* () {
|
|
104
|
+
const update = { numberOfDecimals: { value: numberOfDecimals } };
|
|
105
|
+
return this.applyPropertiesUpdate(id, update);
|
|
106
|
+
});
|
|
107
|
+
__classPrivateFieldSet(this, _NumberVariable_editorAPI, editorAPI, "f");
|
|
108
|
+
}
|
|
109
|
+
applyPropertiesUpdate(id, update) {
|
|
110
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
111
|
+
const res = yield __classPrivateFieldGet(this, _NumberVariable_editorAPI, "f");
|
|
112
|
+
const result = yield res.updateNumberVariableProperties(id, JSON.stringify(update));
|
|
113
|
+
return getEditorResponseData(result);
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
_NumberVariable_editorAPI = new WeakMap();
|
|
118
|
+
class DateVariable {
|
|
119
|
+
constructor(editorAPI) {
|
|
120
|
+
_DateVariable_editorAPI.set(this, void 0);
|
|
121
|
+
/**
|
|
122
|
+
* @experimental This method sets the display format for a date variable.
|
|
123
|
+
* @param id The id of the date variable to update
|
|
124
|
+
* @param displayFormat The display format for the date variable
|
|
125
|
+
*/
|
|
126
|
+
this.setDisplayFormat = (id, displayFormat) => __awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
const update = { displayFormat: { value: displayFormat } };
|
|
128
|
+
return this.applyPropertiesUpdate(id, update);
|
|
129
|
+
});
|
|
130
|
+
/**
|
|
131
|
+
* @experimental This method sets the locale for a date variable.
|
|
132
|
+
* @param id The id of the date variable to update
|
|
133
|
+
* @param locale The locale for the date variable
|
|
134
|
+
*/
|
|
135
|
+
this.setLocale = (id, locale) => __awaiter(this, void 0, void 0, function* () {
|
|
136
|
+
const update = { locale: { value: locale } };
|
|
137
|
+
return this.applyPropertiesUpdate(id, update);
|
|
138
|
+
});
|
|
139
|
+
/**
|
|
140
|
+
* @experimental This method sets or clears the start date for a date variable.
|
|
141
|
+
* @param id The id of the date variable to update
|
|
142
|
+
* @param date The start date for the date variable
|
|
143
|
+
*/
|
|
144
|
+
this.setStartDate = (id, date) => __awaiter(this, void 0, void 0, function* () {
|
|
145
|
+
const update = { startDate: { value: date } };
|
|
146
|
+
return this.applyPropertiesUpdate(id, update);
|
|
147
|
+
});
|
|
148
|
+
/**
|
|
149
|
+
* @experimental This method sets or clears the end date for a date variable.
|
|
150
|
+
* @param id The id of the date variable to update
|
|
151
|
+
* @param date The end date for the date variable
|
|
152
|
+
*/
|
|
153
|
+
this.setEndDate = (id, date) => __awaiter(this, void 0, void 0, function* () {
|
|
154
|
+
const update = { endDate: { value: date } };
|
|
155
|
+
return this.applyPropertiesUpdate(id, update);
|
|
156
|
+
});
|
|
157
|
+
/**
|
|
158
|
+
* @experimental This method sets or clears the excluded days for a date variable.
|
|
159
|
+
* @param id The id of the date variable to update
|
|
160
|
+
* @param excludedDays The excluded days for the date variable
|
|
161
|
+
*/
|
|
162
|
+
this.setExcludedDays = (id, excludedDays) => __awaiter(this, void 0, void 0, function* () {
|
|
163
|
+
const update = { excludedDays: { value: excludedDays } };
|
|
164
|
+
return this.applyPropertiesUpdate(id, update);
|
|
165
|
+
});
|
|
166
|
+
__classPrivateFieldSet(this, _DateVariable_editorAPI, editorAPI, "f");
|
|
167
|
+
}
|
|
168
|
+
applyPropertiesUpdate(id, update) {
|
|
169
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
170
|
+
const res = yield __classPrivateFieldGet(this, _DateVariable_editorAPI, "f");
|
|
171
|
+
const result = yield res.updateDateVariableProperties(id, JSON.stringify(update));
|
|
172
|
+
return getEditorResponseData(result);
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
_DateVariable_editorAPI = new WeakMap();
|
|
24
177
|
/**
|
|
25
178
|
* The VariableController is responsible for all communication regarding the variables.
|
|
26
179
|
* Methods inside this controller can be called by `window.SDK.variable.{method-name}`
|
|
@@ -280,6 +433,8 @@ export class VariableController {
|
|
|
280
433
|
return this.setValue(id, null);
|
|
281
434
|
});
|
|
282
435
|
__classPrivateFieldSet(this, _VariableController_editorAPI, editorAPI, "f");
|
|
436
|
+
this.number = new NumberVariable(__classPrivateFieldGet(this, _VariableController_editorAPI, "f"));
|
|
437
|
+
this.date = new DateVariable(__classPrivateFieldGet(this, _VariableController_editorAPI, "f"));
|
|
283
438
|
}
|
|
284
439
|
makeVariablesBackwardsCompatible(variables) {
|
|
285
440
|
return variables.map((variable) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VariableController.js","sourceRoot":"","sources":["../../../src/controllers/VariableController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAEA,OAAO,EAA4C,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAChG,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEpE;;;GAGG;AACH,MAAM,OAAO,kBAAkB;IAM3B;;OAEG;IACH,YAAY,SAAoB;QARhC;;WAEG;QACH,gDAAsB;QAStB;;;WAGG;QACH,WAAM,GAAG,GAAS,EAAE;YAChB,MAAM,GAAG,GAAG,MAAM,uBAAA,IAAI,qCAAW,CAAC;YAClC,OAAO,GAAG;iBACL,YAAY,EAAE;iBACd,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,qBAAqB,CAAa,MAAM,CAAC,CAAC;iBAC3D,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE;gBACX,MAAM,MAAM,GAAG,IAAI,CAAC;gBACpB,IAAI,MAAM,CAAC,UAAU,EAAE;oBACnB,MAAM,CAAC,UAAU,GAAG,IAAI,CAAC,gCAAgC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;iBAChF;gBACD,OAAO,MAAM,CAAC;YAClB,CAAC,CAAC,CAAC;QACX,CAAC,CAAA,CAAC;QAEF;;;;WAIG;QACH,YAAO,GAAG,CAAO,EAAU,EAAE,EAAE;YAC3B,MAAM,GAAG,GAAG,MAAM,uBAAA,IAAI,qCAAW,CAAC;YAClC,OAAO,GAAG;iBACL,eAAe,CAAC,EAAE,CAAC;iBACnB,IAAI,CAAC,CAAC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AAC;QAE7B,MAAM,KAAK,GAAG,YAAY,CAAC,KAAsC,CAAC;QAClE,MAAM,QAAQ,GAAG,YAAY,CAAC,QAAmD,CAAC;QAElF,MAAM,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAEjD,OAAO,CAAC,KAAK,GAAG,QAAQ,CAAC;QACzB,OAAO,CAAC,QAAQ,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,KAAK,CAAC;QAEnC,OAAO,OAAO,CAAC;IACnB,CAAC;CACJ"}
|
package/lib/src/index.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ export { DocumentType } from './types/DocumentTypes';
|
|
|
7
7
|
export { ViewMode } from './types/ViewModeTypes';
|
|
8
8
|
export type { LayoutPropertiesType, FrameProperties, LayoutWithFrameProperties, LayoutListItemType, Layout, } from './types/LayoutTypes';
|
|
9
9
|
export type { FrameLayoutType, FrameType, Frame, TextFrame, ImageFrame, ShapeFrame, BarcodeFrame, BarcodeSource, BarcodeVariableSource, BarcodeTextSource, ImageFrameSource, ImageFrameVariableSource, ImageFrameUrlSource, } from './types/FrameTypes';
|
|
10
|
-
export type { Variable, GroupVariable, ImageVariable, LongTextVariable, ShortTextVariable, ListVariable, ListVariableItem, BooleanVariable, ConnectorImageVariableSource, } from './types/VariableTypes';
|
|
11
|
-
export { VariableType } from './types/VariableTypes';
|
|
10
|
+
export type { Variable, GroupVariable, ImageVariable, LongTextVariable, ShortTextVariable, ListVariable, ListVariableItem, BooleanVariable, NumberVariable, ConnectorImageVariableSource, DateVariable, DateRestriction, RelativeDate, AbsoluteDate, } from './types/VariableTypes';
|
|
11
|
+
export { VariableType, Day, Locale } from './types/VariableTypes';
|
|
12
12
|
export type { Color, DocumentColor, ColorUpdate } from './types/ColorStyleTypes';
|
|
13
13
|
export type { DocumentError } from './types/DocumentTypes';
|
|
14
14
|
export type { FrameAnimationType, FrameAnimationPropertiesType, EaseTweenCombinationType, AnimationPlaybackType, BasicAnimationsType, } from './types/AnimationTypes';
|
package/lib/src/index.js
CHANGED
|
@@ -5,7 +5,7 @@ export { LayoutType, MeasurementUnit, LayoutIntent, PositionEnum } from './types
|
|
|
5
5
|
export { BlendMode, FrameTypeEnum, VerticalAlign, TextDirection, FlowDirection, FitMode, UpdateZIndexMethod, ImageSourceTypeEnum, BarcodeSourceTypeEnum, } from './types/FrameTypes';
|
|
6
6
|
export { DocumentType } from './types/DocumentTypes';
|
|
7
7
|
export { ViewMode } from './types/ViewModeTypes';
|
|
8
|
-
export { VariableType } from './types/VariableTypes';
|
|
8
|
+
export { VariableType, Day, Locale } from './types/VariableTypes';
|
|
9
9
|
export { SelectedTextStyleSections, SelectedTextStyles, FontWeights, Alignment, TextPosition, Case, Scripting, } from './types/TextStyleTypes';
|
|
10
10
|
export { ColorType } from './types/ColorStyleTypes';
|
|
11
11
|
export * from './types/MediaConnectorTypes';
|
package/lib/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,QAAQ,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEpH,OAAO,EACH,eAAe,EACf,eAAe,EACf,SAAS,EACT,UAAU,EACV,6BAA6B,GAChC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC9F,OAAO,EACH,SAAS,EACT,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,OAAO,EACP,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,GACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,MAA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-0,0 +1,29 @@
|
|
|
1
|
+
import { Connection } from 'penpal';
|
|
2
|
+
import { ConfigType, EditorAPI } from '../types/CommonTypes';
|
|
3
|
+
import { SubscriberController } from './controllers/SubscriberController';
|
|
4
|
+
import { VariableController } from './controllers/VariableController';
|
|
5
|
+
/**
|
|
6
|
+
* The next initiator is a split off on SDK level to tag next features.
|
|
7
|
+
* The principle is that all breaking changes that we are anticipating, come into this section of the SDK.
|
|
8
|
+
* This allows us to introduce breaking changes before bumping the SDK Major version, since we want to bundle some of them.
|
|
9
|
+
* This way our major version can stay stable for longer, without sacrificing the flexibility we need to innovate.
|
|
10
|
+
* Together with a major update, the functions and additions in this part of the SDK will be moved to the main part.
|
|
11
|
+
* If you're using the next controller, you might need to import the typings also from the next types.
|
|
12
|
+
* this can be referenced in your application as @chili-publish/studio-sdk/lib/src/next
|
|
13
|
+
*/
|
|
14
|
+
export declare class NextInitiator {
|
|
15
|
+
private config;
|
|
16
|
+
private connection;
|
|
17
|
+
/**
|
|
18
|
+
* @ignore
|
|
19
|
+
*/
|
|
20
|
+
private editorAPI;
|
|
21
|
+
subscriber: SubscriberController;
|
|
22
|
+
variable: VariableController;
|
|
23
|
+
/**
|
|
24
|
+
* The next initiator is a split off on SDK level to tag next features
|
|
25
|
+
* The SDK should be configured clientside and it exposes all controllers to work with in other applications
|
|
26
|
+
* @param config The configuration object where the SDK and editor can get configured
|
|
27
|
+
*/
|
|
28
|
+
constructor(config: ConfigType, connection: Connection, editorAPI: EditorAPI);
|
|
29
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { SubscriberController } from './controllers/SubscriberController';
|
|
2
|
+
import { VariableController } from './controllers/VariableController';
|
|
3
|
+
/**
|
|
4
|
+
* The next initiator is a split off on SDK level to tag next features.
|
|
5
|
+
* The principle is that all breaking changes that we are anticipating, come into this section of the SDK.
|
|
6
|
+
* This allows us to introduce breaking changes before bumping the SDK Major version, since we want to bundle some of them.
|
|
7
|
+
* This way our major version can stay stable for longer, without sacrificing the flexibility we need to innovate.
|
|
8
|
+
* Together with a major update, the functions and additions in this part of the SDK will be moved to the main part.
|
|
9
|
+
* If you're using the next controller, you might need to import the typings also from the next types.
|
|
10
|
+
* this can be referenced in your application as @chili-publish/studio-sdk/lib/src/next
|
|
11
|
+
*/
|
|
12
|
+
export class NextInitiator {
|
|
13
|
+
/**
|
|
14
|
+
* The next initiator is a split off on SDK level to tag next features
|
|
15
|
+
* The SDK should be configured clientside and it exposes all controllers to work with in other applications
|
|
16
|
+
* @param config The configuration object where the SDK and editor can get configured
|
|
17
|
+
*/
|
|
18
|
+
constructor(config, connection, editorAPI) {
|
|
19
|
+
this.config = config;
|
|
20
|
+
this.connection = connection;
|
|
21
|
+
this.editorAPI = editorAPI;
|
|
22
|
+
this.subscriber = new SubscriberController(config);
|
|
23
|
+
this.variable = new VariableController(this.editorAPI);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=NextInitiator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NextInitiator.js","sourceRoot":"","sources":["../../../src/next/NextInitiator.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE;;;;;;;;GAQG;AACH,MAAM,OAAO,aAAa;IAYtB;;;;OAIG;IACH,YAAY,MAAkB,EAAE,UAAsB,EAAE,SAAoB;QACxE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAE3B,IAAI,CAAC,UAAU,GAAG,IAAI,oBAAoB,CAAC,MAAM,CAAC,CAAC;QACnD,IAAI,CAAC,QAAQ,GAAG,IAAI,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAC3D,CAAC;CACJ"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ConfigType } from '../../types/CommonTypes';
|
|
2
|
+
/**
|
|
3
|
+
* The SubscriberController is responsible for all listeners which can influence the application-state from outside.
|
|
4
|
+
* Callbacks inside this controller can be set by `window.SDK.subscriber.{method-name}`
|
|
5
|
+
*/
|
|
6
|
+
export declare class SubscriberController {
|
|
7
|
+
/**
|
|
8
|
+
* @ignore
|
|
9
|
+
*/
|
|
10
|
+
private config;
|
|
11
|
+
/**
|
|
12
|
+
* @ignore
|
|
13
|
+
*/
|
|
14
|
+
constructor(config: ConfigType);
|
|
15
|
+
/**
|
|
16
|
+
* Listener on when variables change
|
|
17
|
+
* @param variablesJson Stringified array of Variable
|
|
18
|
+
*/
|
|
19
|
+
onVariableListChanged: (variablesJson: string) => void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The SubscriberController is responsible for all listeners which can influence the application-state from outside.
|
|
3
|
+
* Callbacks inside this controller can be set by `window.SDK.subscriber.{method-name}`
|
|
4
|
+
*/
|
|
5
|
+
export class SubscriberController {
|
|
6
|
+
/**
|
|
7
|
+
* @ignore
|
|
8
|
+
*/
|
|
9
|
+
constructor(config) {
|
|
10
|
+
/**
|
|
11
|
+
* Listener on when variables change
|
|
12
|
+
* @param variablesJson Stringified array of Variable
|
|
13
|
+
*/
|
|
14
|
+
this.onVariableListChanged = (variablesJson) => {
|
|
15
|
+
const callBack = this.config.onVariableListChanged;
|
|
16
|
+
callBack && callBack(JSON.parse(variablesJson));
|
|
17
|
+
};
|
|
18
|
+
this.config = config;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=SubscriberController.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubscriberController.js","sourceRoot":"","sources":["../../../../src/next/controllers/SubscriberController.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,OAAO,oBAAoB;IAM7B;;OAEG;IACH,YAAY,MAAkB;QAI9B;;;WAGG;QACH,0BAAqB,GAAG,CAAC,aAAqB,EAAE,EAAE;YAC9C,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,qBAAqB,CAAC;YACnD,QAAQ,IAAI,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;QACpD,CAAC,CAAC;QAVE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;CAUJ"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { EditorAPI, Id } from '../../types/CommonTypes';
|
|
2
|
+
import { ListVariableItem, Variable } from '../../types/VariableTypes';
|
|
3
|
+
export declare class VariableController {
|
|
4
|
+
#private;
|
|
5
|
+
/**
|
|
6
|
+
* @ignore
|
|
7
|
+
*/
|
|
8
|
+
constructor(editorAPI: EditorAPI);
|
|
9
|
+
/**
|
|
10
|
+
* This method returns the list of variables
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
getAll: () => Promise<import("../../types/CommonTypes").EditorResponse<Variable[]>>;
|
|
14
|
+
/**
|
|
15
|
+
* This method returns a variable by id
|
|
16
|
+
* @param id the id of a specific variable
|
|
17
|
+
* @returns
|
|
18
|
+
*/
|
|
19
|
+
getById: (id: string) => Promise<import("../../types/CommonTypes").EditorResponse<Variable>>;
|
|
20
|
+
/**
|
|
21
|
+
* This method returns a variable by name
|
|
22
|
+
* @param name the name of a specific variable
|
|
23
|
+
* @returns
|
|
24
|
+
*/
|
|
25
|
+
getByName: (name: string) => Promise<import("../../types/CommonTypes").EditorResponse<Variable>>;
|
|
26
|
+
/**
|
|
27
|
+
* This method sets the items of the list variable
|
|
28
|
+
*
|
|
29
|
+
* The items need to be unique and are not case sensitive.
|
|
30
|
+
*
|
|
31
|
+
* @param id the id of the list variable
|
|
32
|
+
* @param items the items of the list
|
|
33
|
+
* @returns
|
|
34
|
+
*/
|
|
35
|
+
setListVariable: (id: Id, items: ListVariableItem[]) => Promise<import("../../types/CommonTypes").EditorResponse<null>>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
11
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
12
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
13
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
14
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
15
|
+
};
|
|
16
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
17
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
18
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
19
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
20
|
+
};
|
|
21
|
+
var _VariableController_editorAPI;
|
|
22
|
+
import { getEditorResponseData } from '../../utils/EditorResponseData';
|
|
23
|
+
export class VariableController {
|
|
24
|
+
/**
|
|
25
|
+
* @ignore
|
|
26
|
+
*/
|
|
27
|
+
constructor(editorAPI) {
|
|
28
|
+
/**
|
|
29
|
+
* @ignore
|
|
30
|
+
*/
|
|
31
|
+
_VariableController_editorAPI.set(this, void 0);
|
|
32
|
+
/**
|
|
33
|
+
* This method returns the list of variables
|
|
34
|
+
* @returns
|
|
35
|
+
*/
|
|
36
|
+
this.getAll = () => __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
const res = yield __classPrivateFieldGet(this, _VariableController_editorAPI, "f");
|
|
38
|
+
return res.getVariables().then((result) => getEditorResponseData(result));
|
|
39
|
+
});
|
|
40
|
+
/**
|
|
41
|
+
* This method returns a variable by id
|
|
42
|
+
* @param id the id of a specific variable
|
|
43
|
+
* @returns
|
|
44
|
+
*/
|
|
45
|
+
this.getById = (id) => __awaiter(this, void 0, void 0, function* () {
|
|
46
|
+
const res = yield __classPrivateFieldGet(this, _VariableController_editorAPI, "f");
|
|
47
|
+
return res.getVariableById(id).then((result) => getEditorResponseData(result));
|
|
48
|
+
});
|
|
49
|
+
/**
|
|
50
|
+
* This method returns a variable by name
|
|
51
|
+
* @param name the name of a specific variable
|
|
52
|
+
* @returns
|
|
53
|
+
*/
|
|
54
|
+
this.getByName = (name) => __awaiter(this, void 0, void 0, function* () {
|
|
55
|
+
const res = yield __classPrivateFieldGet(this, _VariableController_editorAPI, "f");
|
|
56
|
+
return res.getVariableByName(name).then((result) => getEditorResponseData(result));
|
|
57
|
+
});
|
|
58
|
+
/**
|
|
59
|
+
* This method sets the items of the list variable
|
|
60
|
+
*
|
|
61
|
+
* The items need to be unique and are not case sensitive.
|
|
62
|
+
*
|
|
63
|
+
* @param id the id of the list variable
|
|
64
|
+
* @param items the items of the list
|
|
65
|
+
* @returns
|
|
66
|
+
*/
|
|
67
|
+
this.setListVariable = (id, items) => __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
const res = yield __classPrivateFieldGet(this, _VariableController_editorAPI, "f");
|
|
69
|
+
return res
|
|
70
|
+
.setListVariableItems(id, items.map((item) => JSON.stringify(item)))
|
|
71
|
+
.then((result) => getEditorResponseData(result));
|
|
72
|
+
});
|
|
73
|
+
__classPrivateFieldSet(this, _VariableController_editorAPI, editorAPI, "f");
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
_VariableController_editorAPI = new WeakMap();
|
|
77
|
+
//# sourceMappingURL=VariableController.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VariableController.js","sourceRoot":"","sources":["../../../../src/next/controllers/VariableController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAEvE,MAAM,OAAO,kBAAkB;IAM3B;;OAEG;IACH,YAAY,SAAoB;QARhC;;WAEG;QACH,gDAAsB;QAStB;;;WAGG;QACH,WAAM,GAAG,GAAS,EAAE;YAChB,MAAM,GAAG,GAAG,MAAM,uBAAA,IAAI,qCAAW,CAAC;YAClC,OAAO,GAAG,CAAC,YAAY,EAAE,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,qBAAqB,CAAa,MAAM,CAAC,CAAC,CAAC;QAC1F,CAAC,CAAA,CAAC;QAEF;;;;WAIG;QACH,YAAO,GAAG,CAAO,EAAU,EAAE,EAAE;YAC3B,MAAM,GAAG,GAAG,MAAM,uBAAA,IAAI,qCAAW,CAAC;YAClC,OAAO,GAAG,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,qBAAqB,CAAW,MAAM,CAAC,CAAC,CAAC;QAC7F,CAAC,CAAA,CAAC;QAEF;;;;WAIG;QACH,cAAS,GAAG,CAAO,IAAY,EAAE,EAAE;YAC/B,MAAM,GAAG,GAAG,MAAM,uBAAA,IAAI,qCAAW,CAAC;YAClC,OAAO,GAAG,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,qBAAqB,CAAW,MAAM,CAAC,CAAC,CAAC;QACjG,CAAC,CAAA,CAAC;QAEF;;;;;;;;WAQG;QACH,oBAAe,GAAG,CAAO,EAAM,EAAE,KAAyB,EAAE,EAAE;YAC1D,MAAM,GAAG,GAAG,MAAM,uBAAA,IAAI,qCAAW,CAAC;YAClC,OAAO,GAAG;iBACL,oBAAoB,CACjB,EAAE,EACF,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAC5C;iBACA,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,qBAAqB,CAAO,MAAM,CAAC,CAAC,CAAC;QAC/D,CAAC,CAAA,CAAC;QAjDE,uBAAA,IAAI,iCAAc,SAAS,MAAA,CAAC;IAChC,CAAC;CAiDJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/next/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { VariableController } from '../../controllers/VariableController';
|
|
11
|
+
import { VariableType } from '../../../types/VariableTypes';
|
|
12
|
+
import { getEditorResponseData, castToEditorResponse } from '../../../utils/EditorResponseData';
|
|
13
|
+
afterEach(() => {
|
|
14
|
+
jest.restoreAllMocks();
|
|
15
|
+
});
|
|
16
|
+
describe('Next.VariableController', () => {
|
|
17
|
+
let mockedVariableController;
|
|
18
|
+
const variableId = 'variableId';
|
|
19
|
+
const listVar = {
|
|
20
|
+
id: variableId,
|
|
21
|
+
type: VariableType.list,
|
|
22
|
+
name: '',
|
|
23
|
+
label: '',
|
|
24
|
+
isVisible: true,
|
|
25
|
+
isReadonly: false,
|
|
26
|
+
isRequired: false,
|
|
27
|
+
occurrences: 0,
|
|
28
|
+
selected: { value: 'abc', displayValue: 'A-B-C' },
|
|
29
|
+
items: [{ value: 'abc', displayValue: 'A-B-C' }],
|
|
30
|
+
};
|
|
31
|
+
const variables = [listVar];
|
|
32
|
+
const mockEditorApi = {
|
|
33
|
+
getVariableById: () => __awaiter(void 0, void 0, void 0, function* () { return getEditorResponseData(castToEditorResponse(listVar)); }),
|
|
34
|
+
getVariableByName: () => __awaiter(void 0, void 0, void 0, function* () { return getEditorResponseData(castToEditorResponse(listVar)); }),
|
|
35
|
+
getVariables: () => __awaiter(void 0, void 0, void 0, function* () { return getEditorResponseData(castToEditorResponse(variables)); }),
|
|
36
|
+
setListVariableItems: () => __awaiter(void 0, void 0, void 0, function* () { return getEditorResponseData(castToEditorResponse(null)); }),
|
|
37
|
+
};
|
|
38
|
+
beforeEach(() => {
|
|
39
|
+
mockedVariableController = new VariableController(mockEditorApi);
|
|
40
|
+
jest.spyOn(mockEditorApi, 'getVariableById');
|
|
41
|
+
jest.spyOn(mockEditorApi, 'getVariableByName');
|
|
42
|
+
jest.spyOn(mockEditorApi, 'getVariables');
|
|
43
|
+
jest.spyOn(mockEditorApi, 'setListVariableItems');
|
|
44
|
+
});
|
|
45
|
+
it('get variable by id', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
46
|
+
const result = yield mockedVariableController.getById('2');
|
|
47
|
+
expect(mockEditorApi.getVariableById).toHaveBeenCalledTimes(1);
|
|
48
|
+
expect(mockEditorApi.getVariableById).toHaveBeenCalledWith('2');
|
|
49
|
+
expect(result.parsedData.items).toStrictEqual([{ value: 'abc', displayValue: 'A-B-C' }]);
|
|
50
|
+
}));
|
|
51
|
+
it('get variable by name', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
52
|
+
const result = yield mockedVariableController.getByName('name');
|
|
53
|
+
expect(mockEditorApi.getVariableByName).toHaveBeenCalledTimes(1);
|
|
54
|
+
expect(mockEditorApi.getVariableByName).toHaveBeenCalledWith('name');
|
|
55
|
+
// Backwards compatibility layer maps the new `VariableListItem` into a string.
|
|
56
|
+
expect(result.parsedData.items).toStrictEqual([{ value: 'abc', displayValue: 'A-B-C' }]);
|
|
57
|
+
expect(result.parsedData.selected).toStrictEqual({ value: 'abc', displayValue: 'A-B-C' });
|
|
58
|
+
}));
|
|
59
|
+
it('get variable list', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
60
|
+
const result = yield mockedVariableController.getAll();
|
|
61
|
+
expect(mockEditorApi.getVariables).toHaveBeenCalledTimes(1);
|
|
62
|
+
// Backwards compatibility layer maps the new `VariableListItem` into a string.
|
|
63
|
+
expect(result.parsedData[0].items).toStrictEqual([{ value: 'abc', displayValue: 'A-B-C' }]);
|
|
64
|
+
expect(result.parsedData[0].selected).toStrictEqual({
|
|
65
|
+
value: 'abc',
|
|
66
|
+
displayValue: 'A-B-C',
|
|
67
|
+
});
|
|
68
|
+
}));
|
|
69
|
+
it('sets the variable list items', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
70
|
+
yield mockedVariableController.setListVariable('listId', [{ value: 'a' }, { value: 'b' }, { value: 'c' }]);
|
|
71
|
+
expect(mockEditorApi.setListVariableItems).toHaveBeenCalledTimes(1);
|
|
72
|
+
expect(mockEditorApi.setListVariableItems).toHaveBeenCalledWith('listId', [{ value: 'a' }, { value: 'b' }, { value: 'c' }].map((item) => JSON.stringify(item)));
|
|
73
|
+
yield mockedVariableController.setListVariable('listId', [
|
|
74
|
+
{ value: 'a', displayValue: 'dis a' },
|
|
75
|
+
{ value: 'b', displayValue: 'dis b' },
|
|
76
|
+
{ value: 'c', displayValue: 'dis c' },
|
|
77
|
+
]);
|
|
78
|
+
expect(mockEditorApi.setListVariableItems).toHaveBeenCalledTimes(2);
|
|
79
|
+
expect(mockEditorApi.setListVariableItems).toHaveBeenCalledWith('listId', [
|
|
80
|
+
{ value: 'a', displayValue: 'dis a' },
|
|
81
|
+
{ value: 'b', displayValue: 'dis b' },
|
|
82
|
+
{ value: 'c', displayValue: 'dis c' },
|
|
83
|
+
].map((item) => JSON.stringify(item)));
|
|
84
|
+
}));
|
|
85
|
+
});
|
|
86
|
+
//# sourceMappingURL=VariableController.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VariableController.test.js","sourceRoot":"","sources":["../../../../../src/next/tests/controllers/VariableController.test.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAA8B,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAGxF,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAEhG,SAAS,CAAC,GAAG,EAAE;IACX,IAAI,CAAC,eAAe,EAAE,CAAC;AAC3B,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,yBAAyB,EAAE,GAAG,EAAE;IACrC,IAAI,wBAA4C,CAAC;IAEjD,MAAM,UAAU,GAAG,YAAY,CAAC;IAEhC,MAAM,OAAO,GAA0E;QACnF,EAAE,EAAE,UAAU;QACd,IAAI,EAAE,YAAY,CAAC,IAAI;QACvB,IAAI,EAAE,EAAE;QACR,KAAK,EAAE,EAAE;QACT,SAAS,EAAE,IAAI;QACf,UAAU,EAAE,KAAK;QACjB,UAAU,EAAE,KAAK;QACjB,WAAW,EAAE,CAAC;QACd,QAAQ,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,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AAE;YACrC,EAAE,KAAK,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,EAAE;YACrC,EAAE,KAAK,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,EAAE;SACvC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CACzC,CAAC;IACN,CAAC,CAAA,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NextSubscribers.js","sourceRoot":"","sources":["../../../../src/next/types/NextSubscribers.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VariableTypes.js","sourceRoot":"","sources":["../../../../src/next/types/VariableTypes.ts"],"names":[],"mappings":""}
|