@slicemachine/manager 0.2.2-dev-page-types.0 → 0.2.2-dev-page-types.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/managers/telemetry/types.cjs +0 -12
- package/dist/managers/telemetry/types.cjs.map +1 -1
- package/dist/managers/telemetry/types.d.ts +1 -21
- package/dist/managers/telemetry/types.js +0 -12
- package/dist/managers/telemetry/types.js.map +1 -1
- package/package.json +3 -3
- package/src/managers/telemetry/types.ts +0 -47
|
@@ -5,12 +5,6 @@ const SegmentEventType = {
|
|
|
5
5
|
command_init_identify: "command:init:identify",
|
|
6
6
|
command_init_end: "command:init:end",
|
|
7
7
|
review: "review",
|
|
8
|
-
onboarding_start: "onboarding:start",
|
|
9
|
-
onboarding_skip: "onboarding:skip",
|
|
10
|
-
onboarding_continue_screenIntro: "onboarding:continue:screen-intro",
|
|
11
|
-
onboarding_continue_screen1: "onboarding:continue:screen-1",
|
|
12
|
-
onboarding_continue_screen2: "onboarding:continue:screen-2",
|
|
13
|
-
onboarding_continue_screen3: "onboarding:continue:screen-3",
|
|
14
8
|
sliceSimulator_setup: "slice-simulator:setup",
|
|
15
9
|
sliceSimulator_open: "slice-simulator:open",
|
|
16
10
|
sliceSimulator_isNotRunning: "slice-simulator:is-not-running",
|
|
@@ -31,12 +25,6 @@ const HumanSegmentEventType = {
|
|
|
31
25
|
[SegmentEventType.command_init_identify]: "SliceMachine Init Identify",
|
|
32
26
|
[SegmentEventType.command_init_end]: "SliceMachine Init End",
|
|
33
27
|
[SegmentEventType.review]: "SliceMachine Review",
|
|
34
|
-
[SegmentEventType.onboarding_start]: "SliceMachine Onboarding Start",
|
|
35
|
-
[SegmentEventType.onboarding_skip]: "SliceMachine Onboarding Skip",
|
|
36
|
-
[SegmentEventType.onboarding_continue_screenIntro]: "SliceMachine Onboarding Continue Screen Intro",
|
|
37
|
-
[SegmentEventType.onboarding_continue_screen1]: "SliceMachine Onboarding Continue Screen 1",
|
|
38
|
-
[SegmentEventType.onboarding_continue_screen2]: "SliceMachine Onboarding Continue Screen 2",
|
|
39
|
-
[SegmentEventType.onboarding_continue_screen3]: "SliceMachine Onboarding Continue Screen 3",
|
|
40
28
|
[SegmentEventType.sliceSimulator_setup]: "SliceMachine Slice Simulator Setup",
|
|
41
29
|
[SegmentEventType.sliceSimulator_open]: "SliceMachine Slice Simulator Open",
|
|
42
30
|
[SegmentEventType.sliceSimulator_isNotRunning]: "SliceMachine Slice Simulator is not running",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.cjs","sources":["../../../../src/managers/telemetry/types.ts"],"sourcesContent":["import type { LimitType } from \"../prismicRepository/types\";\n\nexport const SegmentEventType = {\n\tcommand_init_start: \"command:init:start\",\n\tcommand_init_identify: \"command:init:identify\",\n\tcommand_init_end: \"command:init:end\",\n\treview: \"review\",\n\
|
|
1
|
+
{"version":3,"file":"types.cjs","sources":["../../../../src/managers/telemetry/types.ts"],"sourcesContent":["import type { LimitType } from \"../prismicRepository/types\";\n\nexport const SegmentEventType = {\n\tcommand_init_start: \"command:init:start\",\n\tcommand_init_identify: \"command:init:identify\",\n\tcommand_init_end: \"command:init:end\",\n\treview: \"review\",\n\tsliceSimulator_setup: \"slice-simulator:setup\",\n\tsliceSimulator_open: \"slice-simulator:open\",\n\tsliceSimulator_isNotRunning: \"slice-simulator:is-not-running\",\n\tpageView: \"page-view\",\n\topenVideoTutorials: \"open-video-tutorials\",\n\tcustomType_created: \"custom-type:created\",\n\tcustomType_fieldAdded: \"custom-type:field-added\",\n\tcustomType_sliceZoneUpdated: \"custom-type:slice-zone-updated\",\n\tcustomType_saved: \"custom-type:saved\",\n\tslice_created: \"slice:created\",\n\tscreenshotTaken: \"screenshot-taken\",\n\tchanges_pushed: \"changes:pushed\",\n\tchanges_limitReach: \"changes:limit-reach\",\n\teditor_widgetUsed: \"editor:widget-used\",\n} as const;\ntype SegmentEventTypes =\n\t(typeof SegmentEventType)[keyof typeof SegmentEventType];\n\nexport const HumanSegmentEventType = {\n\t[SegmentEventType.command_init_start]: \"SliceMachine Init Start\",\n\t[SegmentEventType.command_init_identify]: \"SliceMachine Init Identify\",\n\t[SegmentEventType.command_init_end]: \"SliceMachine Init End\",\n\t[SegmentEventType.review]: \"SliceMachine Review\",\n\t[SegmentEventType.sliceSimulator_setup]: \"SliceMachine Slice Simulator Setup\",\n\t[SegmentEventType.sliceSimulator_open]: \"SliceMachine Slice Simulator Open\",\n\t[SegmentEventType.sliceSimulator_isNotRunning]:\n\t\t\"SliceMachine Slice Simulator is not running\",\n\t[SegmentEventType.pageView]: \"SliceMachine Page View\",\n\t[SegmentEventType.openVideoTutorials]: \"SliceMachine Open Video Tutorials\",\n\t[SegmentEventType.customType_created]: \"SliceMachine Custom Type Created\",\n\t[SegmentEventType.customType_fieldAdded]:\n\t\t\"SliceMachine Custom Type Field Added\",\n\t[SegmentEventType.customType_sliceZoneUpdated]:\n\t\t\"SliceMachine Slicezone Updated\",\n\t[SegmentEventType.customType_saved]: \"SliceMachine Custom Type Saved\",\n\t[SegmentEventType.slice_created]: \"SliceMachine Slice Created\",\n\t[SegmentEventType.screenshotTaken]: \"SliceMachine Screenshot Taken\",\n\t[SegmentEventType.changes_pushed]: \"SliceMachine Changes Pushed\",\n\t[SegmentEventType.changes_limitReach]: \"SliceMachine Changes Limit Reach\",\n\t[SegmentEventType.editor_widgetUsed]: \"SliceMachine Editor Widget Used\",\n} as const;\nexport type HumanSegmentEventTypes =\n\t(typeof HumanSegmentEventType)[keyof typeof HumanSegmentEventType];\n\ntype SegmentEvent<\n\tTType extends SegmentEventTypes,\n\tTProperties extends Record<string, unknown> | void = void,\n> = TProperties extends void\n\t? {\n\t\t\tevent: TType;\n\t\t\trepository?: string;\n\t }\n\t: {\n\t\t\tevent: TType;\n\t\t\trepository?: string;\n\t } & TProperties;\n\ntype CommandInitStartSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.command_init_start\n>;\n\n// This event feels off, we have a dedicated `identify` method...\ntype CommandInitIdentifySegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.command_init_identify\n>;\n\ntype CommandInitEndSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.command_init_end,\n\t{ framework: string; success: boolean; error?: string }\n>;\n\ntype ReviewSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.review,\n\t{ rating: number; comment: string }\n>;\n\ntype SliceSimulatorSetupSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.sliceSimulator_setup\n>;\n\ntype SliceSimulatorOpenSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.sliceSimulator_open\n>;\n\ntype SliceSimulatorIsNotRunningSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.sliceSimulator_isNotRunning\n>;\n\ntype PageViewSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.pageView,\n\t{\n\t\turl: string;\n\t\tpath: string;\n\t\tsearch: string;\n\t\ttitle: string;\n\t\treferrer: string;\n\t\tadapter: string;\n\t}\n>;\n\ntype OpenVideoTutorialsSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.openVideoTutorials,\n\t{ video: string }\n>;\n\ntype CustomTypeCreatedSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.customType_created,\n\t{ id: string; name: string; type: \"repeatable\" | \"single\" }\n>;\n\ntype CustomTypeFieldAddedSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.customType_fieldAdded,\n\t{\n\t\tid: string; // field id\n\t\tname: string; // custom type id\n\t\tzone: \"static\" | \"repeatable\";\n\t\ttype: string;\n\t}\n>;\n\ntype CustomTypeSliceZoneUpdatedSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.customType_sliceZoneUpdated,\n\t{ customTypeId: string }\n>;\n\ntype CustomTypeSavedSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.customType_saved,\n\t{ id: string; name: string; type: \"repeatable\" | \"single\" }\n>;\n\ntype SliceCreatedSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.slice_created,\n\t{ id: string; name: string; library: string }\n>;\n\ntype ScreenshotTakenSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.screenshotTaken,\n\t{\n\t\ttype: \"custom\" | \"automatic\";\n\t\tmethod: \"fromSimulator\" | \"upload\" | \"dragAndDrop\";\n\t}\n>;\n\ntype ChangesPushedSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.changes_pushed,\n\t{\n\t\tcustomTypesCreated: number;\n\t\tcustomTypesModified: number;\n\t\tcustomTypesDeleted: number;\n\t\tslicesCreated: number;\n\t\tslicesModified: number;\n\t\tslicesDeleted: number;\n\t\tmissingScreenshots: number;\n\t\ttotal: number;\n\t\tduration: number;\n\t\thasDeletedDocuments: boolean;\n\t}\n>;\n\ntype ChangesLimitReachSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.changes_limitReach,\n\t{ limitType: LimitType }\n>;\n\ntype EditorWidgetUsedSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.editor_widgetUsed,\n\t{ sliceId: string }\n>;\n\nexport type SegmentEvents =\n\t| CommandInitStartSegmentEvent\n\t| CommandInitIdentifySegmentEvent\n\t| CommandInitEndSegmentEvent\n\t| ReviewSegmentEvent\n\t| SliceSimulatorSetupSegmentEvent\n\t| SliceSimulatorOpenSegmentEvent\n\t| SliceSimulatorIsNotRunningSegmentEvent\n\t| PageViewSegmentEvent\n\t| OpenVideoTutorialsSegmentEvent\n\t| CustomTypeCreatedSegmentEvent\n\t| CustomTypeFieldAddedSegmentEvent\n\t| CustomTypeSliceZoneUpdatedSegmentEvent\n\t| CustomTypeSavedSegmentEvent\n\t| SliceCreatedSegmentEvent\n\t| ScreenshotTakenSegmentEvent\n\t| ChangesPushedSegmentEvent\n\t| ChangesLimitReachSegmentEvent\n\t| EditorWidgetUsedSegmentEvent;\n"],"names":[],"mappings":";;AAEO,MAAM,mBAAmB;AAAA,EAC/B,oBAAoB;AAAA,EACpB,uBAAuB;AAAA,EACvB,kBAAkB;AAAA,EAClB,QAAQ;AAAA,EACR,sBAAsB;AAAA,EACtB,qBAAqB;AAAA,EACrB,6BAA6B;AAAA,EAC7B,UAAU;AAAA,EACV,oBAAoB;AAAA,EACpB,oBAAoB;AAAA,EACpB,uBAAuB;AAAA,EACvB,6BAA6B;AAAA,EAC7B,kBAAkB;AAAA,EAClB,eAAe;AAAA,EACf,iBAAiB;AAAA,EACjB,gBAAgB;AAAA,EAChB,oBAAoB;AAAA,EACpB,mBAAmB;;AAKb,MAAM,wBAAwB;AAAA,EACpC,CAAC,iBAAiB,kBAAkB,GAAG;AAAA,EACvC,CAAC,iBAAiB,qBAAqB,GAAG;AAAA,EAC1C,CAAC,iBAAiB,gBAAgB,GAAG;AAAA,EACrC,CAAC,iBAAiB,MAAM,GAAG;AAAA,EAC3B,CAAC,iBAAiB,oBAAoB,GAAG;AAAA,EACzC,CAAC,iBAAiB,mBAAmB,GAAG;AAAA,EACxC,CAAC,iBAAiB,2BAA2B,GAC5C;AAAA,EACD,CAAC,iBAAiB,QAAQ,GAAG;AAAA,EAC7B,CAAC,iBAAiB,kBAAkB,GAAG;AAAA,EACvC,CAAC,iBAAiB,kBAAkB,GAAG;AAAA,EACvC,CAAC,iBAAiB,qBAAqB,GACtC;AAAA,EACD,CAAC,iBAAiB,2BAA2B,GAC5C;AAAA,EACD,CAAC,iBAAiB,gBAAgB,GAAG;AAAA,EACrC,CAAC,iBAAiB,aAAa,GAAG;AAAA,EAClC,CAAC,iBAAiB,eAAe,GAAG;AAAA,EACpC,CAAC,iBAAiB,cAAc,GAAG;AAAA,EACnC,CAAC,iBAAiB,kBAAkB,GAAG;AAAA,EACvC,CAAC,iBAAiB,iBAAiB,GAAG;;;;"}
|
|
@@ -4,12 +4,6 @@ export declare const SegmentEventType: {
|
|
|
4
4
|
readonly command_init_identify: "command:init:identify";
|
|
5
5
|
readonly command_init_end: "command:init:end";
|
|
6
6
|
readonly review: "review";
|
|
7
|
-
readonly onboarding_start: "onboarding:start";
|
|
8
|
-
readonly onboarding_skip: "onboarding:skip";
|
|
9
|
-
readonly onboarding_continue_screenIntro: "onboarding:continue:screen-intro";
|
|
10
|
-
readonly onboarding_continue_screen1: "onboarding:continue:screen-1";
|
|
11
|
-
readonly onboarding_continue_screen2: "onboarding:continue:screen-2";
|
|
12
|
-
readonly onboarding_continue_screen3: "onboarding:continue:screen-3";
|
|
13
7
|
readonly sliceSimulator_setup: "slice-simulator:setup";
|
|
14
8
|
readonly sliceSimulator_open: "slice-simulator:open";
|
|
15
9
|
readonly sliceSimulator_isNotRunning: "slice-simulator:is-not-running";
|
|
@@ -31,12 +25,6 @@ export declare const HumanSegmentEventType: {
|
|
|
31
25
|
readonly "command:init:identify": "SliceMachine Init Identify";
|
|
32
26
|
readonly "command:init:end": "SliceMachine Init End";
|
|
33
27
|
readonly review: "SliceMachine Review";
|
|
34
|
-
readonly "onboarding:start": "SliceMachine Onboarding Start";
|
|
35
|
-
readonly "onboarding:skip": "SliceMachine Onboarding Skip";
|
|
36
|
-
readonly "onboarding:continue:screen-intro": "SliceMachine Onboarding Continue Screen Intro";
|
|
37
|
-
readonly "onboarding:continue:screen-1": "SliceMachine Onboarding Continue Screen 1";
|
|
38
|
-
readonly "onboarding:continue:screen-2": "SliceMachine Onboarding Continue Screen 2";
|
|
39
|
-
readonly "onboarding:continue:screen-3": "SliceMachine Onboarding Continue Screen 3";
|
|
40
28
|
readonly "slice-simulator:setup": "SliceMachine Slice Simulator Setup";
|
|
41
29
|
readonly "slice-simulator:open": "SliceMachine Slice Simulator Open";
|
|
42
30
|
readonly "slice-simulator:is-not-running": "SliceMachine Slice Simulator is not running";
|
|
@@ -71,14 +59,6 @@ type ReviewSegmentEvent = SegmentEvent<typeof SegmentEventType.review, {
|
|
|
71
59
|
rating: number;
|
|
72
60
|
comment: string;
|
|
73
61
|
}>;
|
|
74
|
-
type OnboardingStartSegmentEvent = SegmentEvent<typeof SegmentEventType.onboarding_start>;
|
|
75
|
-
type OnboardingSkipSegmentEvent = SegmentEvent<typeof SegmentEventType.onboarding_skip, {
|
|
76
|
-
screenSkipped: number;
|
|
77
|
-
}>;
|
|
78
|
-
type OnboardingContinueScreenIntroSegmentEvent = SegmentEvent<typeof SegmentEventType.onboarding_continue_screenIntro>;
|
|
79
|
-
type OnboardingContinueScreen1SegmentEvent = SegmentEvent<typeof SegmentEventType.onboarding_continue_screen1>;
|
|
80
|
-
type OnboardingContinueScreen2SegmentEvent = SegmentEvent<typeof SegmentEventType.onboarding_continue_screen2>;
|
|
81
|
-
type OnboardingContinueScreen3SegmentEvent = SegmentEvent<typeof SegmentEventType.onboarding_continue_screen3>;
|
|
82
62
|
type SliceSimulatorSetupSegmentEvent = SegmentEvent<typeof SegmentEventType.sliceSimulator_setup>;
|
|
83
63
|
type SliceSimulatorOpenSegmentEvent = SegmentEvent<typeof SegmentEventType.sliceSimulator_open>;
|
|
84
64
|
type SliceSimulatorIsNotRunningSegmentEvent = SegmentEvent<typeof SegmentEventType.sliceSimulator_isNotRunning>;
|
|
@@ -139,5 +119,5 @@ type ChangesLimitReachSegmentEvent = SegmentEvent<typeof SegmentEventType.change
|
|
|
139
119
|
type EditorWidgetUsedSegmentEvent = SegmentEvent<typeof SegmentEventType.editor_widgetUsed, {
|
|
140
120
|
sliceId: string;
|
|
141
121
|
}>;
|
|
142
|
-
export type SegmentEvents = CommandInitStartSegmentEvent | CommandInitIdentifySegmentEvent | CommandInitEndSegmentEvent | ReviewSegmentEvent |
|
|
122
|
+
export type SegmentEvents = CommandInitStartSegmentEvent | CommandInitIdentifySegmentEvent | CommandInitEndSegmentEvent | ReviewSegmentEvent | SliceSimulatorSetupSegmentEvent | SliceSimulatorOpenSegmentEvent | SliceSimulatorIsNotRunningSegmentEvent | PageViewSegmentEvent | OpenVideoTutorialsSegmentEvent | CustomTypeCreatedSegmentEvent | CustomTypeFieldAddedSegmentEvent | CustomTypeSliceZoneUpdatedSegmentEvent | CustomTypeSavedSegmentEvent | SliceCreatedSegmentEvent | ScreenshotTakenSegmentEvent | ChangesPushedSegmentEvent | ChangesLimitReachSegmentEvent | EditorWidgetUsedSegmentEvent;
|
|
143
123
|
export {};
|
|
@@ -3,12 +3,6 @@ const SegmentEventType = {
|
|
|
3
3
|
command_init_identify: "command:init:identify",
|
|
4
4
|
command_init_end: "command:init:end",
|
|
5
5
|
review: "review",
|
|
6
|
-
onboarding_start: "onboarding:start",
|
|
7
|
-
onboarding_skip: "onboarding:skip",
|
|
8
|
-
onboarding_continue_screenIntro: "onboarding:continue:screen-intro",
|
|
9
|
-
onboarding_continue_screen1: "onboarding:continue:screen-1",
|
|
10
|
-
onboarding_continue_screen2: "onboarding:continue:screen-2",
|
|
11
|
-
onboarding_continue_screen3: "onboarding:continue:screen-3",
|
|
12
6
|
sliceSimulator_setup: "slice-simulator:setup",
|
|
13
7
|
sliceSimulator_open: "slice-simulator:open",
|
|
14
8
|
sliceSimulator_isNotRunning: "slice-simulator:is-not-running",
|
|
@@ -29,12 +23,6 @@ const HumanSegmentEventType = {
|
|
|
29
23
|
[SegmentEventType.command_init_identify]: "SliceMachine Init Identify",
|
|
30
24
|
[SegmentEventType.command_init_end]: "SliceMachine Init End",
|
|
31
25
|
[SegmentEventType.review]: "SliceMachine Review",
|
|
32
|
-
[SegmentEventType.onboarding_start]: "SliceMachine Onboarding Start",
|
|
33
|
-
[SegmentEventType.onboarding_skip]: "SliceMachine Onboarding Skip",
|
|
34
|
-
[SegmentEventType.onboarding_continue_screenIntro]: "SliceMachine Onboarding Continue Screen Intro",
|
|
35
|
-
[SegmentEventType.onboarding_continue_screen1]: "SliceMachine Onboarding Continue Screen 1",
|
|
36
|
-
[SegmentEventType.onboarding_continue_screen2]: "SliceMachine Onboarding Continue Screen 2",
|
|
37
|
-
[SegmentEventType.onboarding_continue_screen3]: "SliceMachine Onboarding Continue Screen 3",
|
|
38
26
|
[SegmentEventType.sliceSimulator_setup]: "SliceMachine Slice Simulator Setup",
|
|
39
27
|
[SegmentEventType.sliceSimulator_open]: "SliceMachine Slice Simulator Open",
|
|
40
28
|
[SegmentEventType.sliceSimulator_isNotRunning]: "SliceMachine Slice Simulator is not running",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sources":["../../../../src/managers/telemetry/types.ts"],"sourcesContent":["import type { LimitType } from \"../prismicRepository/types\";\n\nexport const SegmentEventType = {\n\tcommand_init_start: \"command:init:start\",\n\tcommand_init_identify: \"command:init:identify\",\n\tcommand_init_end: \"command:init:end\",\n\treview: \"review\",\n\
|
|
1
|
+
{"version":3,"file":"types.js","sources":["../../../../src/managers/telemetry/types.ts"],"sourcesContent":["import type { LimitType } from \"../prismicRepository/types\";\n\nexport const SegmentEventType = {\n\tcommand_init_start: \"command:init:start\",\n\tcommand_init_identify: \"command:init:identify\",\n\tcommand_init_end: \"command:init:end\",\n\treview: \"review\",\n\tsliceSimulator_setup: \"slice-simulator:setup\",\n\tsliceSimulator_open: \"slice-simulator:open\",\n\tsliceSimulator_isNotRunning: \"slice-simulator:is-not-running\",\n\tpageView: \"page-view\",\n\topenVideoTutorials: \"open-video-tutorials\",\n\tcustomType_created: \"custom-type:created\",\n\tcustomType_fieldAdded: \"custom-type:field-added\",\n\tcustomType_sliceZoneUpdated: \"custom-type:slice-zone-updated\",\n\tcustomType_saved: \"custom-type:saved\",\n\tslice_created: \"slice:created\",\n\tscreenshotTaken: \"screenshot-taken\",\n\tchanges_pushed: \"changes:pushed\",\n\tchanges_limitReach: \"changes:limit-reach\",\n\teditor_widgetUsed: \"editor:widget-used\",\n} as const;\ntype SegmentEventTypes =\n\t(typeof SegmentEventType)[keyof typeof SegmentEventType];\n\nexport const HumanSegmentEventType = {\n\t[SegmentEventType.command_init_start]: \"SliceMachine Init Start\",\n\t[SegmentEventType.command_init_identify]: \"SliceMachine Init Identify\",\n\t[SegmentEventType.command_init_end]: \"SliceMachine Init End\",\n\t[SegmentEventType.review]: \"SliceMachine Review\",\n\t[SegmentEventType.sliceSimulator_setup]: \"SliceMachine Slice Simulator Setup\",\n\t[SegmentEventType.sliceSimulator_open]: \"SliceMachine Slice Simulator Open\",\n\t[SegmentEventType.sliceSimulator_isNotRunning]:\n\t\t\"SliceMachine Slice Simulator is not running\",\n\t[SegmentEventType.pageView]: \"SliceMachine Page View\",\n\t[SegmentEventType.openVideoTutorials]: \"SliceMachine Open Video Tutorials\",\n\t[SegmentEventType.customType_created]: \"SliceMachine Custom Type Created\",\n\t[SegmentEventType.customType_fieldAdded]:\n\t\t\"SliceMachine Custom Type Field Added\",\n\t[SegmentEventType.customType_sliceZoneUpdated]:\n\t\t\"SliceMachine Slicezone Updated\",\n\t[SegmentEventType.customType_saved]: \"SliceMachine Custom Type Saved\",\n\t[SegmentEventType.slice_created]: \"SliceMachine Slice Created\",\n\t[SegmentEventType.screenshotTaken]: \"SliceMachine Screenshot Taken\",\n\t[SegmentEventType.changes_pushed]: \"SliceMachine Changes Pushed\",\n\t[SegmentEventType.changes_limitReach]: \"SliceMachine Changes Limit Reach\",\n\t[SegmentEventType.editor_widgetUsed]: \"SliceMachine Editor Widget Used\",\n} as const;\nexport type HumanSegmentEventTypes =\n\t(typeof HumanSegmentEventType)[keyof typeof HumanSegmentEventType];\n\ntype SegmentEvent<\n\tTType extends SegmentEventTypes,\n\tTProperties extends Record<string, unknown> | void = void,\n> = TProperties extends void\n\t? {\n\t\t\tevent: TType;\n\t\t\trepository?: string;\n\t }\n\t: {\n\t\t\tevent: TType;\n\t\t\trepository?: string;\n\t } & TProperties;\n\ntype CommandInitStartSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.command_init_start\n>;\n\n// This event feels off, we have a dedicated `identify` method...\ntype CommandInitIdentifySegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.command_init_identify\n>;\n\ntype CommandInitEndSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.command_init_end,\n\t{ framework: string; success: boolean; error?: string }\n>;\n\ntype ReviewSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.review,\n\t{ rating: number; comment: string }\n>;\n\ntype SliceSimulatorSetupSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.sliceSimulator_setup\n>;\n\ntype SliceSimulatorOpenSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.sliceSimulator_open\n>;\n\ntype SliceSimulatorIsNotRunningSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.sliceSimulator_isNotRunning\n>;\n\ntype PageViewSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.pageView,\n\t{\n\t\turl: string;\n\t\tpath: string;\n\t\tsearch: string;\n\t\ttitle: string;\n\t\treferrer: string;\n\t\tadapter: string;\n\t}\n>;\n\ntype OpenVideoTutorialsSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.openVideoTutorials,\n\t{ video: string }\n>;\n\ntype CustomTypeCreatedSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.customType_created,\n\t{ id: string; name: string; type: \"repeatable\" | \"single\" }\n>;\n\ntype CustomTypeFieldAddedSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.customType_fieldAdded,\n\t{\n\t\tid: string; // field id\n\t\tname: string; // custom type id\n\t\tzone: \"static\" | \"repeatable\";\n\t\ttype: string;\n\t}\n>;\n\ntype CustomTypeSliceZoneUpdatedSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.customType_sliceZoneUpdated,\n\t{ customTypeId: string }\n>;\n\ntype CustomTypeSavedSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.customType_saved,\n\t{ id: string; name: string; type: \"repeatable\" | \"single\" }\n>;\n\ntype SliceCreatedSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.slice_created,\n\t{ id: string; name: string; library: string }\n>;\n\ntype ScreenshotTakenSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.screenshotTaken,\n\t{\n\t\ttype: \"custom\" | \"automatic\";\n\t\tmethod: \"fromSimulator\" | \"upload\" | \"dragAndDrop\";\n\t}\n>;\n\ntype ChangesPushedSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.changes_pushed,\n\t{\n\t\tcustomTypesCreated: number;\n\t\tcustomTypesModified: number;\n\t\tcustomTypesDeleted: number;\n\t\tslicesCreated: number;\n\t\tslicesModified: number;\n\t\tslicesDeleted: number;\n\t\tmissingScreenshots: number;\n\t\ttotal: number;\n\t\tduration: number;\n\t\thasDeletedDocuments: boolean;\n\t}\n>;\n\ntype ChangesLimitReachSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.changes_limitReach,\n\t{ limitType: LimitType }\n>;\n\ntype EditorWidgetUsedSegmentEvent = SegmentEvent<\n\ttypeof SegmentEventType.editor_widgetUsed,\n\t{ sliceId: string }\n>;\n\nexport type SegmentEvents =\n\t| CommandInitStartSegmentEvent\n\t| CommandInitIdentifySegmentEvent\n\t| CommandInitEndSegmentEvent\n\t| ReviewSegmentEvent\n\t| SliceSimulatorSetupSegmentEvent\n\t| SliceSimulatorOpenSegmentEvent\n\t| SliceSimulatorIsNotRunningSegmentEvent\n\t| PageViewSegmentEvent\n\t| OpenVideoTutorialsSegmentEvent\n\t| CustomTypeCreatedSegmentEvent\n\t| CustomTypeFieldAddedSegmentEvent\n\t| CustomTypeSliceZoneUpdatedSegmentEvent\n\t| CustomTypeSavedSegmentEvent\n\t| SliceCreatedSegmentEvent\n\t| ScreenshotTakenSegmentEvent\n\t| ChangesPushedSegmentEvent\n\t| ChangesLimitReachSegmentEvent\n\t| EditorWidgetUsedSegmentEvent;\n"],"names":[],"mappings":"AAEO,MAAM,mBAAmB;AAAA,EAC/B,oBAAoB;AAAA,EACpB,uBAAuB;AAAA,EACvB,kBAAkB;AAAA,EAClB,QAAQ;AAAA,EACR,sBAAsB;AAAA,EACtB,qBAAqB;AAAA,EACrB,6BAA6B;AAAA,EAC7B,UAAU;AAAA,EACV,oBAAoB;AAAA,EACpB,oBAAoB;AAAA,EACpB,uBAAuB;AAAA,EACvB,6BAA6B;AAAA,EAC7B,kBAAkB;AAAA,EAClB,eAAe;AAAA,EACf,iBAAiB;AAAA,EACjB,gBAAgB;AAAA,EAChB,oBAAoB;AAAA,EACpB,mBAAmB;;AAKb,MAAM,wBAAwB;AAAA,EACpC,CAAC,iBAAiB,kBAAkB,GAAG;AAAA,EACvC,CAAC,iBAAiB,qBAAqB,GAAG;AAAA,EAC1C,CAAC,iBAAiB,gBAAgB,GAAG;AAAA,EACrC,CAAC,iBAAiB,MAAM,GAAG;AAAA,EAC3B,CAAC,iBAAiB,oBAAoB,GAAG;AAAA,EACzC,CAAC,iBAAiB,mBAAmB,GAAG;AAAA,EACxC,CAAC,iBAAiB,2BAA2B,GAC5C;AAAA,EACD,CAAC,iBAAiB,QAAQ,GAAG;AAAA,EAC7B,CAAC,iBAAiB,kBAAkB,GAAG;AAAA,EACvC,CAAC,iBAAiB,kBAAkB,GAAG;AAAA,EACvC,CAAC,iBAAiB,qBAAqB,GACtC;AAAA,EACD,CAAC,iBAAiB,2BAA2B,GAC5C;AAAA,EACD,CAAC,iBAAiB,gBAAgB,GAAG;AAAA,EACrC,CAAC,iBAAiB,aAAa,GAAG;AAAA,EAClC,CAAC,iBAAiB,eAAe,GAAG;AAAA,EACpC,CAAC,iBAAiB,cAAc,GAAG;AAAA,EACnC,CAAC,iBAAiB,kBAAkB,GAAG;AAAA,EACvC,CAAC,iBAAiB,iBAAiB,GAAG;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slicemachine/manager",
|
|
3
|
-
"version": "0.2.2-dev-page-types.
|
|
3
|
+
"version": "0.2.2-dev-page-types.1",
|
|
4
4
|
"description": "Manage all aspects of a Slice Machine project.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@prismicio/custom-types-client": "^1.1.0",
|
|
66
66
|
"@prismicio/mocks": "2.0.0-alpha.2",
|
|
67
67
|
"@prismicio/types-internal": "2.0.0-alpha.9",
|
|
68
|
-
"@slicemachine/plugin-kit": "0.2.1-dev-page-types.
|
|
68
|
+
"@slicemachine/plugin-kit": "0.2.1-dev-page-types.1",
|
|
69
69
|
"@wooorm/starry-night": "^1.6.0",
|
|
70
70
|
"analytics-node": "^6.2.0",
|
|
71
71
|
"cookie": "^0.5.0",
|
|
@@ -138,5 +138,5 @@
|
|
|
138
138
|
"publishConfig": {
|
|
139
139
|
"access": "public"
|
|
140
140
|
},
|
|
141
|
-
"gitHead": "
|
|
141
|
+
"gitHead": "9cb54f39f52db111f1430c4c19e6e8e431455438"
|
|
142
142
|
}
|
|
@@ -5,12 +5,6 @@ export const SegmentEventType = {
|
|
|
5
5
|
command_init_identify: "command:init:identify",
|
|
6
6
|
command_init_end: "command:init:end",
|
|
7
7
|
review: "review",
|
|
8
|
-
onboarding_start: "onboarding:start",
|
|
9
|
-
onboarding_skip: "onboarding:skip",
|
|
10
|
-
onboarding_continue_screenIntro: "onboarding:continue:screen-intro",
|
|
11
|
-
onboarding_continue_screen1: "onboarding:continue:screen-1",
|
|
12
|
-
onboarding_continue_screen2: "onboarding:continue:screen-2",
|
|
13
|
-
onboarding_continue_screen3: "onboarding:continue:screen-3",
|
|
14
8
|
sliceSimulator_setup: "slice-simulator:setup",
|
|
15
9
|
sliceSimulator_open: "slice-simulator:open",
|
|
16
10
|
sliceSimulator_isNotRunning: "slice-simulator:is-not-running",
|
|
@@ -34,16 +28,6 @@ export const HumanSegmentEventType = {
|
|
|
34
28
|
[SegmentEventType.command_init_identify]: "SliceMachine Init Identify",
|
|
35
29
|
[SegmentEventType.command_init_end]: "SliceMachine Init End",
|
|
36
30
|
[SegmentEventType.review]: "SliceMachine Review",
|
|
37
|
-
[SegmentEventType.onboarding_start]: "SliceMachine Onboarding Start",
|
|
38
|
-
[SegmentEventType.onboarding_skip]: "SliceMachine Onboarding Skip",
|
|
39
|
-
[SegmentEventType.onboarding_continue_screenIntro]:
|
|
40
|
-
"SliceMachine Onboarding Continue Screen Intro",
|
|
41
|
-
[SegmentEventType.onboarding_continue_screen1]:
|
|
42
|
-
"SliceMachine Onboarding Continue Screen 1",
|
|
43
|
-
[SegmentEventType.onboarding_continue_screen2]:
|
|
44
|
-
"SliceMachine Onboarding Continue Screen 2",
|
|
45
|
-
[SegmentEventType.onboarding_continue_screen3]:
|
|
46
|
-
"SliceMachine Onboarding Continue Screen 3",
|
|
47
31
|
[SegmentEventType.sliceSimulator_setup]: "SliceMachine Slice Simulator Setup",
|
|
48
32
|
[SegmentEventType.sliceSimulator_open]: "SliceMachine Slice Simulator Open",
|
|
49
33
|
[SegmentEventType.sliceSimulator_isNotRunning]:
|
|
@@ -97,31 +81,6 @@ type ReviewSegmentEvent = SegmentEvent<
|
|
|
97
81
|
{ rating: number; comment: string }
|
|
98
82
|
>;
|
|
99
83
|
|
|
100
|
-
type OnboardingStartSegmentEvent = SegmentEvent<
|
|
101
|
-
typeof SegmentEventType.onboarding_start
|
|
102
|
-
>;
|
|
103
|
-
|
|
104
|
-
type OnboardingSkipSegmentEvent = SegmentEvent<
|
|
105
|
-
typeof SegmentEventType.onboarding_skip,
|
|
106
|
-
{ screenSkipped: number }
|
|
107
|
-
>;
|
|
108
|
-
|
|
109
|
-
type OnboardingContinueScreenIntroSegmentEvent = SegmentEvent<
|
|
110
|
-
typeof SegmentEventType.onboarding_continue_screenIntro
|
|
111
|
-
>;
|
|
112
|
-
|
|
113
|
-
type OnboardingContinueScreen1SegmentEvent = SegmentEvent<
|
|
114
|
-
typeof SegmentEventType.onboarding_continue_screen1
|
|
115
|
-
>;
|
|
116
|
-
|
|
117
|
-
type OnboardingContinueScreen2SegmentEvent = SegmentEvent<
|
|
118
|
-
typeof SegmentEventType.onboarding_continue_screen2
|
|
119
|
-
>;
|
|
120
|
-
|
|
121
|
-
type OnboardingContinueScreen3SegmentEvent = SegmentEvent<
|
|
122
|
-
typeof SegmentEventType.onboarding_continue_screen3
|
|
123
|
-
>;
|
|
124
|
-
|
|
125
84
|
type SliceSimulatorSetupSegmentEvent = SegmentEvent<
|
|
126
85
|
typeof SegmentEventType.sliceSimulator_setup
|
|
127
86
|
>;
|
|
@@ -220,12 +179,6 @@ export type SegmentEvents =
|
|
|
220
179
|
| CommandInitIdentifySegmentEvent
|
|
221
180
|
| CommandInitEndSegmentEvent
|
|
222
181
|
| ReviewSegmentEvent
|
|
223
|
-
| OnboardingStartSegmentEvent
|
|
224
|
-
| OnboardingSkipSegmentEvent
|
|
225
|
-
| OnboardingContinueScreenIntroSegmentEvent
|
|
226
|
-
| OnboardingContinueScreen1SegmentEvent
|
|
227
|
-
| OnboardingContinueScreen2SegmentEvent
|
|
228
|
-
| OnboardingContinueScreen3SegmentEvent
|
|
229
182
|
| SliceSimulatorSetupSegmentEvent
|
|
230
183
|
| SliceSimulatorOpenSegmentEvent
|
|
231
184
|
| SliceSimulatorIsNotRunningSegmentEvent
|