@common-stack/components-pro 0.1.22 → 0.1.23

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.
@@ -18,15 +18,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
18
18
  __setModuleDefault(result, mod);
19
19
  return result;
20
20
  };
21
- var __importDefault = (this && this.__importDefault) || function (mod) {
22
- return (mod && mod.__esModule) ? mod : { "default": mod };
23
- };
24
21
  Object.defineProperty(exports, "__esModule", { value: true });
25
22
  /* tslint:disable */
26
23
  const React = __importStar(require("react"));
27
24
  const ReactTestRenderer = __importStar(require("react-test-renderer"));
28
- const slot_1 = __importDefault(require("../base/slot"));
29
- const fill_1 = __importDefault(require("../base/fill"));
25
+ const __1 = require("../");
30
26
  // import Provider from '../context';
31
27
  const index_1 = require("../index");
32
28
  require("jest");
@@ -50,7 +46,7 @@ describe('Slot with filter', () => {
50
46
  render() {
51
47
  return (React.createElement("li", null,
52
48
  this.state.showing &&
53
- React.createElement(fill_1.default, { name: "modal" },
49
+ React.createElement(__1.Fill, { name: "modal" },
54
50
  "Showing ",
55
51
  this.props.item,
56
52
  React.createElement("button", { onClick: this.handlHideModal }, "Hide")),
@@ -60,7 +56,7 @@ describe('Slot with filter', () => {
60
56
  const tree = ReactTestRenderer.create(React.createElement(index_1.SlotFillProvider, null,
61
57
  React.createElement(List, { items: ["one", "two", "three"] }),
62
58
  React.createElement("div", { className: "modal" },
63
- React.createElement(slot_1.default, { name: "modal" })))).toJSON();
59
+ React.createElement(__1.Slot, { name: "modal" })))).toJSON();
64
60
  expect(tree).toMatchSnapshot();
65
61
  });
66
62
  });
@@ -1 +1 @@
1
- {"version":3,"file":"filler-slot.test.js","sourceRoot":"","sources":["../../../src/slot-fill/__tests__/filler-slot.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,6CAA+B;AAE/B,uEAAyD;AACzD,wDAAgC;AAChC,wDAAgC;AAChC,q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,OAAO,CACH;oBACK,IAAI,CAAC,KAAK,CAAC,OAAO;wBACnB,oBAAC,QAAI,IAAC,IAAI,EAAC,OAAO;;4BAAU,IAAI,CAAC,KAAK,CAAC,IAAI;4BACvC,gCAAQ,OAAO,EAAE,IAAI,CAAC,cAAc,WAAe,CAChD;oBAEN,IAAI,CAAC,KAAK,CAAC,IAAI,CACf,CACR,CAAA;YACL,CAAC;SACJ;QAED,MAAM,IAAI,GAAG,iBAAiB,CAAC,MAAM,CACjC,oBAAC,wBAAQ;YACL,oBAAC,IAAI,IAAC,KAAK,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,GAAI;YACxC,6BAAK,SAAS,EAAC,OAAO;gBAClB,oBAAC,QAAI,IAAC,IAAI,EAAC,OAAO,GAAG,CACnB,CACC,CACd,CAAC,MAAM,EAAE,CAAC;QAEX,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AAEL,CAAC,CAAC,CAAC"}
@@ -18,20 +18,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
18
18
  __setModuleDefault(result, mod);
19
19
  return result;
20
20
  };
21
- var __importDefault = (this && this.__importDefault) || function (mod) {
22
- return (mod && mod.__esModule) ? mod : { "default": mod };
23
- };
24
21
  Object.defineProperty(exports, "__esModule", { value: true });
25
22
  /* tslint:disable */
26
23
  const React = __importStar(require("react"));
27
24
  const lodash_1 = require("lodash");
28
- const ReactTestRenderer = __importStar(require("react-test-renderer"));
29
- const slot_1 = __importDefault(require("../base/slot"));
30
- const fill_1 = __importDefault(require("../base/fill"));
31
- const provider_1 = __importDefault(require("../base/provider"));
32
- const react_1 = require("react");
25
+ const react_1 = require("@testing-library/react");
26
+ const __1 = require("../");
27
+ const react_2 = require("react");
33
28
  require("jest");
34
- class Filler extends react_1.Component {
29
+ class Filler extends react_2.Component {
35
30
  constructor(props) {
36
31
  super(props);
37
32
  this.state = {
@@ -41,114 +36,166 @@ class Filler extends react_1.Component {
41
36
  render() {
42
37
  return [
43
38
  React.createElement("button", { key: "1", type: "button", onClick: () => this.setState({ num: this.state.num + 1 }) }),
44
- React.createElement(fill_1.default, { name: this.props.name, key: "2" }, this.props.text || this.state.num.toString())
39
+ React.createElement(__1.Fill, { name: this.props.name, key: "2" }, this.props.text || this.state.num.toString())
45
40
  ];
46
41
  }
47
42
  }
48
43
  describe("Slot", () => {
49
44
  it("should render empty Fills", () => {
50
- const tree = ReactTestRenderer.create(React.createElement(provider_1.default, null,
45
+ const { container } = react_1.render(React.createElement(__1.Provider, null,
51
46
  React.createElement("div", null,
52
- React.createElement(slot_1.default, { name: "chicken" })),
53
- React.createElement(fill_1.default, { name: "chicken" }))).toJSON();
54
- expect(tree).toMatchSnapshot();
47
+ React.createElement(__1.Slot, { name: "chicken" })),
48
+ React.createElement(__1.Fill, { name: "chicken" })));
49
+ expect(container).toMatchSnapshot();
55
50
  });
56
51
  it("should render a string Fill", () => {
57
- const tree = ReactTestRenderer.create(React.createElement(provider_1.default, null,
52
+ const { container } = react_1.render(React.createElement(__1.Provider, null,
58
53
  React.createElement("div", null,
59
- React.createElement(slot_1.default, { name: "chicken" })),
60
- React.createElement(fill_1.default, { name: "chicken" }, "content"))).toJSON();
61
- expect(tree).toMatchSnapshot();
54
+ React.createElement(__1.Slot, { name: "chicken" })),
55
+ React.createElement(__1.Fill, { name: "chicken" }, "content")));
56
+ expect(container).toMatchSnapshot();
62
57
  });
63
58
  it("should render a Fill containing an element", () => {
64
- const tree = ReactTestRenderer.create(React.createElement(provider_1.default, null,
59
+ const { container } = react_1.render(React.createElement(__1.Provider, null,
65
60
  React.createElement("div", null,
66
- React.createElement(slot_1.default, { name: "chicken" })),
67
- React.createElement(fill_1.default, { name: "chicken" },
68
- React.createElement("span", null)))).toJSON();
69
- expect(tree).toMatchSnapshot();
61
+ React.createElement(__1.Slot, { name: "chicken" })),
62
+ React.createElement(__1.Fill, { name: "chicken" },
63
+ React.createElement("span", null))));
64
+ expect(container).toMatchSnapshot();
70
65
  });
71
66
  it("should render a Fill containing an array", () => {
72
- const tree = ReactTestRenderer.create(React.createElement(provider_1.default, null,
67
+ const { container } = react_1.render(React.createElement(__1.Provider, null,
73
68
  React.createElement("div", null,
74
- React.createElement(slot_1.default, { name: "chicken" })),
75
- React.createElement(fill_1.default, { name: "chicken" }, [React.createElement("span", { key: "1" }), React.createElement("div", { key: "2" }), "text"]))).toJSON();
76
- expect(tree).toMatchSnapshot();
69
+ React.createElement(__1.Slot, { name: "chicken" })),
70
+ React.createElement(__1.Fill, { name: "chicken" }, [React.createElement("span", { key: "1" }), React.createElement("div", { key: "2" }), "text"])));
71
+ expect(container).toMatchSnapshot();
77
72
  });
78
73
  it("calls the functions passed as the Slot's fillProps in the Fill", () => {
79
74
  const onClose = jest.fn();
80
- const testInstance = ReactTestRenderer.create(React.createElement(provider_1.default, null,
81
- React.createElement(slot_1.default, { name: "chicken", fillProps: { onClose } }),
82
- React.createElement(fill_1.default, { name: "chicken" }, props => {
75
+ const { getByText } = react_1.render(React.createElement(__1.Provider, null,
76
+ React.createElement(__1.Slot, { name: "chicken", fillProps: { onClose } }),
77
+ React.createElement(__1.Fill, { name: "chicken" }, props => {
83
78
  return React.createElement("button", { onClick: props.onClose }, " Click me");
84
- }))).root;
85
- testInstance.findByType("button").props.onClick();
79
+ })));
80
+ react_1.fireEvent.click(getByText('Click me'));
86
81
  expect(onClose).toHaveBeenCalledTimes(1);
87
82
  });
88
83
  it("should render empty Fills without HTML wrapper when render props used", () => {
89
- const tree = ReactTestRenderer.create(React.createElement(provider_1.default, null,
84
+ const { container } = react_1.render(React.createElement(__1.Provider, null,
90
85
  React.createElement("div", null,
91
- React.createElement(slot_1.default, { name: "chicken" }, fills => !lodash_1.isEmpty(fills) && React.createElement("blockquote", null, fills))),
92
- React.createElement(fill_1.default, { name: "chicken" }))).toJSON();
93
- expect(tree).toMatchSnapshot();
86
+ React.createElement(__1.Slot, { name: "chicken" }, fills => !lodash_1.isEmpty(fills) && React.createElement("blockquote", null, fills))),
87
+ React.createElement(__1.Fill, { name: "chicken" })));
88
+ expect(container).toMatchSnapshot();
94
89
  });
95
90
  it("should render a string Fill with HTML wrapper when render props used", () => {
96
- const tree = ReactTestRenderer.create(React.createElement(provider_1.default, null,
91
+ const { container } = react_1.render(React.createElement(__1.Provider, null,
97
92
  React.createElement("div", null,
98
- React.createElement(slot_1.default, { name: "chicken" }, fills => fills && React.createElement("blockquote", null, fills))),
99
- React.createElement(fill_1.default, { name: "chicken" }, "content"))).toJSON();
100
- expect(tree).toMatchSnapshot();
93
+ React.createElement(__1.Slot, { name: "chicken" }, fills => fills && React.createElement("blockquote", null, fills))),
94
+ React.createElement(__1.Fill, { name: "chicken" }, "content")));
95
+ expect(container).toMatchSnapshot();
101
96
  });
102
97
  it("should re-render Slot when not bubbling virtually", () => {
103
- const testRender = ReactTestRenderer.create(React.createElement(provider_1.default, null,
98
+ const { container, getByRole } = react_1.render(React.createElement(__1.Provider, null,
104
99
  React.createElement("div", null,
105
- React.createElement(slot_1.default, { name: "egg" })),
100
+ React.createElement(__1.Slot, { name: "egg" })),
106
101
  React.createElement(Filler, { name: "egg" })));
107
- expect(testRender.toJSON()).toMatchSnapshot();
108
- testRender.root.findByType("button").props.onClick();
109
- expect(testRender.toJSON()).toMatchSnapshot();
102
+ expect(container).toMatchSnapshot();
103
+ react_1.fireEvent.click(getByRole('button'));
104
+ expect(container).toMatchSnapshot();
110
105
  });
111
- it("should render in expected order", () => {
112
- const testRenderer = ReactTestRenderer.create(React.createElement(provider_1.default, null,
106
+ it("should render in expected order when fills always mounted", () => {
107
+ const { container, rerender } = react_1.render(React.createElement(__1.Provider, null,
113
108
  React.createElement("div", { key: "slot" },
114
- React.createElement(slot_1.default, { name: "egg" }))));
115
- testRenderer.update(React.createElement(provider_1.default, null,
109
+ React.createElement(__1.Slot, { name: "egg" }))));
110
+ rerender(React.createElement(__1.Provider, null,
116
111
  React.createElement("div", { key: "slot" },
117
- React.createElement(slot_1.default, { name: "egg" })),
112
+ React.createElement(__1.Slot, { name: "egg" })),
118
113
  React.createElement(Filler, { name: "egg", key: "first", text: "first" }),
119
114
  React.createElement(Filler, { name: "egg", key: "second", text: "second" })));
120
- testRenderer.update(React.createElement(provider_1.default, null,
115
+ rerender(React.createElement(__1.Provider, null,
121
116
  React.createElement("div", { key: "slot" },
122
- React.createElement(slot_1.default, { name: "egg" })),
123
- React.createElement(Filler, { name: "egg", key: "second", text: "second" })));
124
- testRenderer.update(React.createElement(provider_1.default, null,
117
+ React.createElement(__1.Slot, { name: "egg" })),
118
+ React.createElement(__1.Fill, { name: "egg", key: "first" }),
119
+ React.createElement(__1.Fill, { name: "egg", key: "second" }, "second"),
120
+ React.createElement(__1.Fill, { name: "egg", key: "third" }, "third")));
121
+ rerender(React.createElement(__1.Provider, null,
122
+ React.createElement("div", { key: "slot" },
123
+ React.createElement(__1.Slot, { name: "egg" })),
124
+ React.createElement(__1.Fill, { name: "egg", key: "first" }, "first (rerendered)"),
125
+ React.createElement(__1.Fill, { name: "egg", key: "second" }, "second"),
126
+ React.createElement(__1.Fill, { name: "egg", key: "third" }, "third"),
127
+ React.createElement(__1.Fill, { name: "egg", key: "fourth" }, "fourth (new)")));
128
+ expect(container).toMatchSnapshot();
129
+ });
130
+ it('should render in expected order when fills unmounted', () => {
131
+ const { container, rerender } = react_1.render(React.createElement(__1.Provider, null,
125
132
  React.createElement("div", { key: "slot" },
126
- React.createElement(slot_1.default, { name: "egg" })),
133
+ React.createElement(__1.Slot, { name: "egg" }))));
134
+ rerender(React.createElement(__1.Provider, null,
135
+ React.createElement("div", { key: "slot" },
136
+ React.createElement(__1.Slot, { name: "egg" })),
127
137
  React.createElement(Filler, { name: "egg", key: "first", text: "first" }),
128
138
  React.createElement(Filler, { name: "egg", key: "second", text: "second" })));
129
- expect(testRenderer.toJSON()).toMatchSnapshot();
139
+ rerender(React.createElement(__1.Provider, null,
140
+ React.createElement("div", { key: "slot" },
141
+ React.createElement(__1.Slot, { name: "egg" })),
142
+ React.createElement(Filler, { name: "egg", key: "second", text: "second" }),
143
+ React.createElement(Filler, { name: "egg", key: "third", text: "third" })));
144
+ rerender(React.createElement(__1.Provider, null,
145
+ React.createElement("div", { key: "slot" },
146
+ React.createElement(__1.Slot, { name: "egg" })),
147
+ React.createElement(Filler, { name: "egg", key: "first", text: "first (rerendered)" }),
148
+ React.createElement(Filler, { name: "egg", key: "second", text: "second" }),
149
+ React.createElement(Filler, { name: "egg", key: "third", text: "third" }),
150
+ React.createElement(Filler, { name: "egg", key: "fourth", text: "fourth (new)" })));
151
+ expect(container).toMatchSnapshot();
152
+ });
153
+ it('should warn without a Provider', () => {
154
+ const { container } = react_1.render(React.createElement(React.Fragment, null,
155
+ React.createElement("div", null,
156
+ React.createElement(__1.Slot, { name: "chicken", bubblesVirtually: true })),
157
+ React.createElement(__1.Fill, { name: "chicken" })));
158
+ expect(container).toMatchSnapshot();
159
+ // expect(console).toHaveWarned();
130
160
  });
131
161
  describe.each([false, true])("bubblesVirtually %p", bubblesVirtually => {
132
162
  it("should subsume another slot by the same name", () => {
133
- const testRenderer = ReactTestRenderer.create(React.createElement(provider_1.default, null,
163
+ const { container, rerender } = react_1.render(React.createElement(__1.Provider, null,
134
164
  React.createElement("div", { "data-position": "first" },
135
- React.createElement(slot_1.default, { name: "egg", bubblesVirtually: bubblesVirtually })),
165
+ React.createElement(__1.Slot, { name: "egg", bubblesVirtually: bubblesVirtually })),
136
166
  React.createElement("div", { "data-position": "second" }),
137
- React.createElement(fill_1.default, { name: "egg" }, "Content")));
138
- testRenderer.update(React.createElement(provider_1.default, null,
167
+ React.createElement(__1.Fill, { name: "egg" }, "Content")));
168
+ rerender(React.createElement(__1.Provider, null,
139
169
  React.createElement("div", { "data-position": "first" },
140
- React.createElement(slot_1.default, { name: "egg", bubblesVirtually: bubblesVirtually })),
170
+ React.createElement(__1.Slot, { name: "egg", bubblesVirtually: bubblesVirtually })),
141
171
  React.createElement("div", { "data-position": "second" },
142
- React.createElement(slot_1.default, { name: "egg", bubblesVirtually: bubblesVirtually })),
143
- React.createElement(fill_1.default, { name: "egg" }, "Content")));
144
- expect(testRenderer.toJSON()).toMatchSnapshot();
145
- testRenderer.update(React.createElement(provider_1.default, null,
172
+ React.createElement(__1.Slot, { name: "egg", bubblesVirtually: bubblesVirtually })),
173
+ React.createElement(__1.Fill, { name: "egg" }, "Content")));
174
+ expect(container).toMatchSnapshot();
175
+ rerender(React.createElement(__1.Provider, null,
146
176
  React.createElement("div", { "data-position": "first" }),
147
177
  React.createElement("div", { "data-position": "second" },
148
- React.createElement(slot_1.default, { name: "egg", bubblesVirtually: bubblesVirtually })),
149
- React.createElement(fill_1.default, { name: "egg" }, "Content")));
150
- expect(testRenderer.toJSON()).toMatchSnapshot();
151
- // expect(testRenderer.getInstance().slots).toHaveProperty("egg");
178
+ React.createElement(__1.Slot, { name: "egg", bubblesVirtually: bubblesVirtually })),
179
+ React.createElement(__1.Fill, { name: "egg" }, "Content")));
180
+ expect(container).toMatchSnapshot();
181
+ });
182
+ it('should unmount two slots with the same name', () => {
183
+ const { rerender, container } = react_1.render(React.createElement(__1.Provider, null,
184
+ React.createElement("div", { "data-position": "first" },
185
+ React.createElement(__1.Slot, { name: "egg", bubblesVirtually: bubblesVirtually })),
186
+ React.createElement("div", { "data-position": "second" },
187
+ React.createElement(__1.Slot, { name: "egg", bubblesVirtually: bubblesVirtually })),
188
+ React.createElement(__1.Fill, { name: "egg" }, "Content")));
189
+ rerender(React.createElement(__1.Provider, null,
190
+ React.createElement("div", { "data-position": "first" },
191
+ React.createElement(__1.Slot, { name: "egg", bubblesVirtually: bubblesVirtually })),
192
+ React.createElement("div", { "data-position": "second" }),
193
+ React.createElement(__1.Fill, { name: "egg" }, "Content")));
194
+ rerender(React.createElement(__1.Provider, null,
195
+ React.createElement("div", { "data-position": "first" }),
196
+ React.createElement("div", { "data-position": "second" }),
197
+ React.createElement(__1.Fill, { name: "egg" }, "Content")));
198
+ expect(container).toMatchSnapshot();
152
199
  });
153
200
  });
154
201
  });
@@ -156,28 +203,28 @@ describe("Slot", () => {
156
203
  describe("Slot with logic", () => {
157
204
  it("should render a string Fill with HTML wrapper when render props used", () => {
158
205
  const Fill1 = props => {
159
- return React.createElement(fill_1.default, { name: "chicken", fillId: 'id1' }, props => {
206
+ return React.createElement(__1.Fill, { name: "chicken", fillId: 'id1' }, props => {
160
207
  return "content";
161
208
  });
162
209
  };
163
210
  const Fill2 = props => {
164
- return (React.createElement(fill_1.default, { name: "chicken", fillId: 'id2' }, props => {
211
+ return (React.createElement(__1.Fill, { name: "chicken", fillId: 'id2' }, props => {
165
212
  console.log("--filler--props", props);
166
213
  return "content1";
167
214
  }));
168
215
  };
169
216
  const Slot1 = props => {
170
- return (React.createElement(slot_1.default, { name: "chicken", fillProps: { selected: "one" } }, fills => {
217
+ return (React.createElement(__1.Slot, { name: "chicken", fillProps: { selected: "one" } }, fills => {
171
218
  console.log("---files", fills);
172
219
  return fills && React.createElement("blockquote", null, "Test");
173
220
  }));
174
221
  };
175
- const tree = ReactTestRenderer.create(React.createElement(provider_1.default, null,
222
+ const { container } = react_1.render(React.createElement(__1.Provider, null,
176
223
  React.createElement("div", null,
177
224
  React.createElement(Slot1, null)),
178
225
  React.createElement(Fill1, null),
179
- React.createElement(Fill2, null))).toJSON();
180
- expect(tree).toMatchSnapshot();
226
+ React.createElement(Fill2, null)));
227
+ expect(container).toMatchSnapshot();
181
228
  });
182
229
  });
183
230
  //# sourceMappingURL=slot-features.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"slot-features.test.js","sourceRoot":"","sources":["../../../src/slot-fill/__tests__/slot-features.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,6CAA+B;AAC/B,mCAAiC;AACjC,uEAAyD;AACzD,wDAAgC;AAChC,wDAAgC;AAChC,gEAAwC;AACxC,iCAAkC;AAClC,gBAAc;AAEd,MAAM,MAAO,SAAQ,iBAAmB;IACt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AQ;YACP;gBACE,oBAAC,KAAK,OAAG,CACL;YACN,oBAAC,KAAK,OAAG;YACT,oBAAC,KAAK,OAAG,CACA,CACZ,CAAC,MAAM,EAAE,CAAC;QACX,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"slot-features.test.js","sourceRoot":"","sources":["../../../src/slot-fill/__tests__/slot-features.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,6CAA+B;AAC/B,mCAAiC;AACjC,kDAA2D;AAC3D,2BAA2C;AAC3C,iCAAkC;AAClC,gBAAc;AAEd,MAAM,MAAO,SAAQ,iBAAmB;IACtC,YAAY,KAAK;QACf,KAAK,CAAC,KAAK,CAAC,CAAC;QAEb,IAAI,CAAC,KAAK,GAAG;YACX,GAAG,EAAE,CAAC;SACP,CAAC;IACJ,CAAC;IACM,MAAM;QACX,OAAO;YACL,gCACE,GAAG,EAAC,GAAG,EACP,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,EAAE,CAAC,GACzD;YACF,oBAAC,QAAI,IAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG,EAAC,GAAG,IACjC,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,CACxC;SACR,CAAC;IACJ,CAAC;CACF;AAED,QAAQ,CAAC,MAAM,EAAE,GAAG,EAAE;IACpB,EAAE,CAAC,2BAA2B,EAAE,GAAG,EAAE;QACnC,MAAM,EAAE,SAAS,EAAE,GAAG,cAAM,CAC1B,oBAAC,YAAQ;YACP;gBACE,oBAAC,QAAI,IAAC,IAAI,EAAC,SAAS,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O,CACL,oBAAC,QAAI,IAAC,IAAI,EAAC,SAAS,EAAC,MAAM,EAAC,KAAK,IAC9B,KAAK,CAAC,EAAE;gBACP,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,KAAK,CAAC,CAAC;gBACtC,OAAO,UAAU,CAAC;YACpB,CAAC,CACI,CACR,CAAC;QACJ,CAAC,CAAC;QAEF,MAAM,KAAK,GAAG,KAAK,CAAC,EAAE;YAEpB,OAAO,CACL,oBAAC,QAAI,IAAC,IAAI,EAAC,SAAS,EAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,IAChD,KAAK,CAAC,EAAE;gBACP,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;gBAC/B,OAAO,KAAK,IAAI,+CAA6B,CAAC;YAChD,CAAC,CACI,CACR,CAAA;QACH,CAAC,CAAA;QACD,MAAM,EAAE,SAAS,EAAE,GAAG,cAAM,CAC1B,oBAAC,YAAQ;YACP;gBACE,oBAAC,KAAK,OAAG,CACL;YACN,oBAAC,KAAK,OAAG;YACT,oBAAC,KAAK,OAAG,CACA,CACZ,CAAC;QACF,MAAM,CAAC,SAAS,CAAC,CAAC,eAAe,EAAE,CAAC;IACtC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@common-stack/components-pro",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "description": "browser plugin for git",
5
5
  "homepage": "https://github.com/cdmbase/fullstack-pro#readme",
6
6
  "bugs": {
@@ -47,7 +47,7 @@
47
47
  "publishConfig": {
48
48
  "access": "public"
49
49
  },
50
- "gitHead": "9186b2e6109f2b1cc05bde6f709c50c98fa2bf09",
50
+ "gitHead": "e0e6edd7c24adc4acff324968a8a41a55066aad5",
51
51
  "typescript": {
52
52
  "definition": "lib/index.d.ts"
53
53
  }