@betterbugs/types 2.0.0-alpha.20 → 2.0.0-alpha.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterbugs/types",
3
- "version": "2.0.0-alpha.20",
3
+ "version": "2.0.0-alpha.21",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -43,11 +43,12 @@
43
43
  }
44
44
  },
45
45
  "files": [
46
+ "umd",
46
47
  "dist",
47
48
  "package.json"
48
49
  ],
49
50
  "devDependencies": {
50
- "vite": "^5.3.1",
51
+ "vite": "^6.0.1",
51
52
  "vite-plugin-dts": "^3.9.1"
52
53
  },
53
54
  "browserslist": [
package/umd/types.js ADDED
@@ -0,0 +1,134 @@
1
+ (function (g, f) {
2
+ if ("object" == typeof exports && "object" == typeof module) {
3
+ module.exports = f();
4
+ } else if ("function" == typeof define && define.amd) {
5
+ define("rrwebTypes", [], f);
6
+ } else if ("object" == typeof exports) {
7
+ exports["rrwebTypes"] = f();
8
+ } else {
9
+ g["rrwebTypes"] = f();
10
+ }
11
+ }(this, () => {
12
+ var exports = {};
13
+ var module = { exports };
14
+ "use strict";
15
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
16
+ var EventType = /* @__PURE__ */ ((EventType2) => {
17
+ EventType2[EventType2["DomContentLoaded"] = 0] = "DomContentLoaded";
18
+ EventType2[EventType2["Load"] = 1] = "Load";
19
+ EventType2[EventType2["FullSnapshot"] = 2] = "FullSnapshot";
20
+ EventType2[EventType2["IncrementalSnapshot"] = 3] = "IncrementalSnapshot";
21
+ EventType2[EventType2["Meta"] = 4] = "Meta";
22
+ EventType2[EventType2["Custom"] = 5] = "Custom";
23
+ EventType2[EventType2["Plugin"] = 6] = "Plugin";
24
+ return EventType2;
25
+ })(EventType || {});
26
+ var IncrementalSource = /* @__PURE__ */ ((IncrementalSource2) => {
27
+ IncrementalSource2[IncrementalSource2["Mutation"] = 0] = "Mutation";
28
+ IncrementalSource2[IncrementalSource2["MouseMove"] = 1] = "MouseMove";
29
+ IncrementalSource2[IncrementalSource2["MouseInteraction"] = 2] = "MouseInteraction";
30
+ IncrementalSource2[IncrementalSource2["Scroll"] = 3] = "Scroll";
31
+ IncrementalSource2[IncrementalSource2["ViewportResize"] = 4] = "ViewportResize";
32
+ IncrementalSource2[IncrementalSource2["Input"] = 5] = "Input";
33
+ IncrementalSource2[IncrementalSource2["TouchMove"] = 6] = "TouchMove";
34
+ IncrementalSource2[IncrementalSource2["MediaInteraction"] = 7] = "MediaInteraction";
35
+ IncrementalSource2[IncrementalSource2["StyleSheetRule"] = 8] = "StyleSheetRule";
36
+ IncrementalSource2[IncrementalSource2["CanvasMutation"] = 9] = "CanvasMutation";
37
+ IncrementalSource2[IncrementalSource2["Font"] = 10] = "Font";
38
+ IncrementalSource2[IncrementalSource2["Log"] = 11] = "Log";
39
+ IncrementalSource2[IncrementalSource2["Drag"] = 12] = "Drag";
40
+ IncrementalSource2[IncrementalSource2["StyleDeclaration"] = 13] = "StyleDeclaration";
41
+ IncrementalSource2[IncrementalSource2["Selection"] = 14] = "Selection";
42
+ IncrementalSource2[IncrementalSource2["AdoptedStyleSheet"] = 15] = "AdoptedStyleSheet";
43
+ IncrementalSource2[IncrementalSource2["CustomElement"] = 16] = "CustomElement";
44
+ return IncrementalSource2;
45
+ })(IncrementalSource || {});
46
+ var MouseInteractions = /* @__PURE__ */ ((MouseInteractions2) => {
47
+ MouseInteractions2[MouseInteractions2["MouseUp"] = 0] = "MouseUp";
48
+ MouseInteractions2[MouseInteractions2["MouseDown"] = 1] = "MouseDown";
49
+ MouseInteractions2[MouseInteractions2["Click"] = 2] = "Click";
50
+ MouseInteractions2[MouseInteractions2["ContextMenu"] = 3] = "ContextMenu";
51
+ MouseInteractions2[MouseInteractions2["DblClick"] = 4] = "DblClick";
52
+ MouseInteractions2[MouseInteractions2["Focus"] = 5] = "Focus";
53
+ MouseInteractions2[MouseInteractions2["Blur"] = 6] = "Blur";
54
+ MouseInteractions2[MouseInteractions2["TouchStart"] = 7] = "TouchStart";
55
+ MouseInteractions2[MouseInteractions2["TouchMove_Departed"] = 8] = "TouchMove_Departed";
56
+ MouseInteractions2[MouseInteractions2["TouchEnd"] = 9] = "TouchEnd";
57
+ MouseInteractions2[MouseInteractions2["TouchCancel"] = 10] = "TouchCancel";
58
+ return MouseInteractions2;
59
+ })(MouseInteractions || {});
60
+ var PointerTypes = /* @__PURE__ */ ((PointerTypes2) => {
61
+ PointerTypes2[PointerTypes2["Mouse"] = 0] = "Mouse";
62
+ PointerTypes2[PointerTypes2["Pen"] = 1] = "Pen";
63
+ PointerTypes2[PointerTypes2["Touch"] = 2] = "Touch";
64
+ return PointerTypes2;
65
+ })(PointerTypes || {});
66
+ var CanvasContext = /* @__PURE__ */ ((CanvasContext2) => {
67
+ CanvasContext2[CanvasContext2["2D"] = 0] = "2D";
68
+ CanvasContext2[CanvasContext2["WebGL"] = 1] = "WebGL";
69
+ CanvasContext2[CanvasContext2["WebGL2"] = 2] = "WebGL2";
70
+ return CanvasContext2;
71
+ })(CanvasContext || {});
72
+ var MediaInteractions = /* @__PURE__ */ ((MediaInteractions2) => {
73
+ MediaInteractions2[MediaInteractions2["Play"] = 0] = "Play";
74
+ MediaInteractions2[MediaInteractions2["Pause"] = 1] = "Pause";
75
+ MediaInteractions2[MediaInteractions2["Seeked"] = 2] = "Seeked";
76
+ MediaInteractions2[MediaInteractions2["VolumeChange"] = 3] = "VolumeChange";
77
+ MediaInteractions2[MediaInteractions2["RateChange"] = 4] = "RateChange";
78
+ return MediaInteractions2;
79
+ })(MediaInteractions || {});
80
+ var ReplayerEvents = /* @__PURE__ */ ((ReplayerEvents2) => {
81
+ ReplayerEvents2["Start"] = "start";
82
+ ReplayerEvents2["Pause"] = "pause";
83
+ ReplayerEvents2["Resume"] = "resume";
84
+ ReplayerEvents2["Resize"] = "resize";
85
+ ReplayerEvents2["Finish"] = "finish";
86
+ ReplayerEvents2["FullsnapshotRebuilded"] = "fullsnapshot-rebuilded";
87
+ ReplayerEvents2["LoadStylesheetStart"] = "load-stylesheet-start";
88
+ ReplayerEvents2["LoadStylesheetEnd"] = "load-stylesheet-end";
89
+ ReplayerEvents2["SkipStart"] = "skip-start";
90
+ ReplayerEvents2["SkipEnd"] = "skip-end";
91
+ ReplayerEvents2["MouseInteraction"] = "mouse-interaction";
92
+ ReplayerEvents2["EventCast"] = "event-cast";
93
+ ReplayerEvents2["CustomEvent"] = "custom-event";
94
+ ReplayerEvents2["Flush"] = "flush";
95
+ ReplayerEvents2["StateChange"] = "state-change";
96
+ ReplayerEvents2["PlayBack"] = "play-back";
97
+ ReplayerEvents2["Destroy"] = "destroy";
98
+ return ReplayerEvents2;
99
+ })(ReplayerEvents || {});
100
+ var NodeType = /* @__PURE__ */ ((NodeType2) => {
101
+ NodeType2[NodeType2["Document"] = 0] = "Document";
102
+ NodeType2[NodeType2["DocumentType"] = 1] = "DocumentType";
103
+ NodeType2[NodeType2["Element"] = 2] = "Element";
104
+ NodeType2[NodeType2["Text"] = 3] = "Text";
105
+ NodeType2[NodeType2["CDATA"] = 4] = "CDATA";
106
+ NodeType2[NodeType2["Comment"] = 5] = "Comment";
107
+ return NodeType2;
108
+ })(NodeType || {});
109
+ exports.CanvasContext = CanvasContext;
110
+ exports.EventType = EventType;
111
+ exports.IncrementalSource = IncrementalSource;
112
+ exports.MediaInteractions = MediaInteractions;
113
+ exports.MouseInteractions = MouseInteractions;
114
+ exports.NodeType = NodeType;
115
+ exports.PointerTypes = PointerTypes;
116
+ exports.ReplayerEvents = ReplayerEvents;
117
+ if (typeof module.exports == "object" && typeof exports == "object") {
118
+ var __cp = (to, from, except, desc) => {
119
+ if ((from && typeof from === "object") || typeof from === "function") {
120
+ for (let key of Object.getOwnPropertyNames(from)) {
121
+ if (!Object.prototype.hasOwnProperty.call(to, key) && key !== except)
122
+ Object.defineProperty(to, key, {
123
+ get: () => from[key],
124
+ enumerable: !(desc = Object.getOwnPropertyDescriptor(from, key)) || desc.enumerable,
125
+ });
126
+ }
127
+ }
128
+ return to;
129
+ };
130
+ module.exports = __cp(module.exports, exports);
131
+ }
132
+ return module.exports;
133
+ }))
134
+ //# sourceMappingURL=types.umd.cjs.map
@@ -0,0 +1,32 @@
1
+ (function (g, f) {
2
+ if ("object" == typeof exports && "object" == typeof module) {
3
+ module.exports = f();
4
+ } else if ("function" == typeof define && define.amd) {
5
+ define("rrwebTypes", [], f);
6
+ } else if ("object" == typeof exports) {
7
+ exports["rrwebTypes"] = f();
8
+ } else {
9
+ g["rrwebTypes"] = f();
10
+ }
11
+ }(this, () => {
12
+ var exports = {};
13
+ var module = { exports };
14
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var u=(h=>(h[h.DomContentLoaded=0]="DomContentLoaded",h[h.Load=1]="Load",h[h.FullSnapshot=2]="FullSnapshot",h[h.IncrementalSnapshot=3]="IncrementalSnapshot",h[h.Meta=4]="Meta",h[h.Custom=5]="Custom",h[h.Plugin=6]="Plugin",h))(u||{}),D=(h=>(h[h.Mutation=0]="Mutation",h[h.MouseMove=1]="MouseMove",h[h.MouseInteraction=2]="MouseInteraction",h[h.Scroll=3]="Scroll",h[h.ViewportResize=4]="ViewportResize",h[h.Input=5]="Input",h[h.TouchMove=6]="TouchMove",h[h.MediaInteraction=7]="MediaInteraction",h[h.StyleSheetRule=8]="StyleSheetRule",h[h.CanvasMutation=9]="CanvasMutation",h[h.Font=10]="Font",h[h.Log=11]="Log",h[h.Drag=12]="Drag",h[h.StyleDeclaration=13]="StyleDeclaration",h[h.Selection=14]="Selection",h[h.AdoptedStyleSheet=15]="AdoptedStyleSheet",h[h.CustomElement=16]="CustomElement",h))(D||{}),C=(h=>(h[h.MouseUp=0]="MouseUp",h[h.MouseDown=1]="MouseDown",h[h.Click=2]="Click",h[h.ContextMenu=3]="ContextMenu",h[h.DblClick=4]="DblClick",h[h.Focus=5]="Focus",h[h.Blur=6]="Blur",h[h.TouchStart=7]="TouchStart",h[h.TouchMove_Departed=8]="TouchMove_Departed",h[h.TouchEnd=9]="TouchEnd",h[h.TouchCancel=10]="TouchCancel",h))(C||{}),d=(h=>(h[h.Mouse=0]="Mouse",h[h.Pen=1]="Pen",h[h.Touch=2]="Touch",h))(d||{}),g=(h=>(h[h["2D"]=0]="2D",h[h.WebGL=1]="WebGL",h[h.WebGL2=2]="WebGL2",h))(g||{}),l=(h=>(h[h.Play=0]="Play",h[h.Pause=1]="Pause",h[h.Seeked=2]="Seeked",h[h.VolumeChange=3]="VolumeChange",h[h.RateChange=4]="RateChange",h))(l||{}),k=(h=>(h.Start="start",h.Pause="pause",h.Resume="resume",h.Resize="resize",h.Finish="finish",h.FullsnapshotRebuilded="fullsnapshot-rebuilded",h.LoadStylesheetStart="load-stylesheet-start",h.LoadStylesheetEnd="load-stylesheet-end",h.SkipStart="skip-start",h.SkipEnd="skip-end",h.MouseInteraction="mouse-interaction",h.EventCast="event-cast",h.CustomEvent="custom-event",h.Flush="flush",h.StateChange="state-change",h.PlayBack="play-back",h.Destroy="destroy",h))(k||{}),L=(h=>(h[h.Document=0]="Document",h[h.DocumentType=1]="DocumentType",h[h.Element=2]="Element",h[h.Text=3]="Text",h[h.CDATA=4]="CDATA",h[h.Comment=5]="Comment",h))(L||{});exports.CanvasContext=g;exports.EventType=u;exports.IncrementalSource=D;exports.MediaInteractions=l;exports.MouseInteractions=C;exports.NodeType=L;exports.PointerTypes=d;exports.ReplayerEvents=k;
15
+ if (typeof module.exports == "object" && typeof exports == "object") {
16
+ var __cp = (to, from, except, desc) => {
17
+ if ((from && typeof from === "object") || typeof from === "function") {
18
+ for (let key of Object.getOwnPropertyNames(from)) {
19
+ if (!Object.prototype.hasOwnProperty.call(to, key) && key !== except)
20
+ Object.defineProperty(to, key, {
21
+ get: () => from[key],
22
+ enumerable: !(desc = Object.getOwnPropertyDescriptor(from, key)) || desc.enumerable,
23
+ });
24
+ }
25
+ }
26
+ return to;
27
+ };
28
+ module.exports = __cp(module.exports, exports);
29
+ }
30
+ return module.exports;
31
+ }))
32
+ //# sourceMappingURL=types.umd.min.cjs.map