@common-stack/components-pro 0.1.22 → 0.2.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.
Files changed (64) hide show
  1. package/lib/index.d.ts +1 -0
  2. package/lib/index.js +10 -0
  3. package/lib/index.js.map +1 -0
  4. package/lib/index.native.d.ts +1 -0
  5. package/lib/index.native.js +9 -0
  6. package/lib/index.native.js.map +1 -0
  7. package/{esm → lib}/slot-fill/__tests__/filler-slot.test.d.ts +0 -0
  8. package/{esm → lib}/slot-fill/__tests__/filler-slot.test.js +3 -7
  9. package/lib/slot-fill/__tests__/filler-slot.test.js.map +1 -0
  10. package/{esm → lib}/slot-fill/__tests__/slot-features.test.d.ts +0 -0
  11. package/lib/slot-fill/__tests__/slot-features.test.js +230 -0
  12. package/lib/slot-fill/__tests__/slot-features.test.js.map +1 -0
  13. package/{esm → lib}/slot-fill/base/context.d.ts +0 -0
  14. package/{esm → lib}/slot-fill/base/context.js +0 -0
  15. package/{esm → lib}/slot-fill/base/context.js.map +0 -0
  16. package/{esm → lib}/slot-fill/base/fill.d.ts +0 -0
  17. package/{esm → lib}/slot-fill/base/fill.js +0 -0
  18. package/{esm → lib}/slot-fill/base/fill.js.map +0 -0
  19. package/{esm → lib}/slot-fill/base/provider.d.ts +0 -0
  20. package/{esm → lib}/slot-fill/base/provider.js +0 -0
  21. package/{esm → lib}/slot-fill/base/provider.js.map +0 -0
  22. package/{esm → lib}/slot-fill/base/slot.d.ts +0 -0
  23. package/{esm → lib}/slot-fill/base/slot.js +0 -0
  24. package/{esm → lib}/slot-fill/base/slot.js.map +0 -0
  25. package/{esm → lib}/slot-fill/base/use-slot.d.ts +0 -0
  26. package/{esm → lib}/slot-fill/base/use-slot.js +0 -0
  27. package/{esm → lib}/slot-fill/base/use-slot.js.map +0 -0
  28. package/{esm → lib}/slot-fill/bubbles-virtually/fill.d.ts +0 -0
  29. package/{esm → lib}/slot-fill/bubbles-virtually/fill.js +0 -0
  30. package/{esm → lib}/slot-fill/bubbles-virtually/fill.js.map +0 -0
  31. package/{esm → lib}/slot-fill/bubbles-virtually/slot-fill-context.d.ts +0 -0
  32. package/{esm → lib}/slot-fill/bubbles-virtually/slot-fill-context.js +0 -0
  33. package/{esm → lib}/slot-fill/bubbles-virtually/slot-fill-context.js.map +0 -0
  34. package/{esm → lib}/slot-fill/bubbles-virtually/slot-fill-provider.d.ts +0 -0
  35. package/{esm → lib}/slot-fill/bubbles-virtually/slot-fill-provider.js +0 -0
  36. package/{esm → lib}/slot-fill/bubbles-virtually/slot-fill-provider.js.map +0 -0
  37. package/{esm → lib}/slot-fill/bubbles-virtually/slot.d.ts +0 -0
  38. package/{esm → lib}/slot-fill/bubbles-virtually/slot.js +0 -0
  39. package/{esm → lib}/slot-fill/bubbles-virtually/slot.js.map +0 -0
  40. package/{esm → lib}/slot-fill/bubbles-virtually/use-slot.d.ts +0 -0
  41. package/{esm → lib}/slot-fill/bubbles-virtually/use-slot.js +0 -0
  42. package/{esm → lib}/slot-fill/bubbles-virtually/use-slot.js.map +0 -0
  43. package/{esm → lib}/slot-fill/index.d.ts +0 -0
  44. package/{esm → lib}/slot-fill/index.js +0 -0
  45. package/{esm → lib}/slot-fill/index.js.map +0 -0
  46. package/{esm → lib}/slot-fill/index.native.d.ts +0 -0
  47. package/{esm → lib}/slot-fill/index.native.js +0 -0
  48. package/{esm → lib}/slot-fill/index.native.js.map +0 -0
  49. package/{esm → lib}/slot-fill/interfaces/index.d.ts +0 -0
  50. package/{esm → lib}/slot-fill/interfaces/index.js +0 -0
  51. package/{esm → lib}/slot-fill/interfaces/index.js.map +0 -0
  52. package/{esm → lib}/slot-fill/utils/index.d.ts +0 -0
  53. package/{esm → lib}/slot-fill/utils/index.js +0 -0
  54. package/{esm → lib}/slot-fill/utils/index.js.map +0 -0
  55. package/{esm → lib}/slot-fill/utils/isEmptyElement.d.ts +0 -0
  56. package/{esm → lib}/slot-fill/utils/isEmptyElement.js +0 -0
  57. package/{esm → lib}/slot-fill/utils/isEmptyElement.js.map +0 -0
  58. package/package.json +5 -4
  59. package/esm/index.d.ts +0 -0
  60. package/esm/index.js +0 -2
  61. package/esm/index.js.map +0 -1
  62. package/esm/slot-fill/__tests__/filler-slot.test.js.map +0 -1
  63. package/esm/slot-fill/__tests__/slot-features.test.js +0 -183
  64. package/esm/slot-fill/__tests__/slot-features.test.js.map +0 -1
package/lib/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export { createSlotFill, Slot, Fill, Provider as SlotFillProvider, useSlot as __experimentalUseSlot, } from './slot-fill';
package/lib/index.js ADDED
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.__experimentalUseSlot = exports.SlotFillProvider = exports.Fill = exports.Slot = exports.createSlotFill = void 0;
4
+ var slot_fill_1 = require("./slot-fill");
5
+ Object.defineProperty(exports, "createSlotFill", { enumerable: true, get: function () { return slot_fill_1.createSlotFill; } });
6
+ Object.defineProperty(exports, "Slot", { enumerable: true, get: function () { return slot_fill_1.Slot; } });
7
+ Object.defineProperty(exports, "Fill", { enumerable: true, get: function () { return slot_fill_1.Fill; } });
8
+ Object.defineProperty(exports, "SlotFillProvider", { enumerable: true, get: function () { return slot_fill_1.Provider; } });
9
+ Object.defineProperty(exports, "__experimentalUseSlot", { enumerable: true, get: function () { return slot_fill_1.useSlot; } });
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,yCAMqB;AALpB,2GAAA,cAAc,OAAA;AACd,iGAAA,IAAI,OAAA;AACJ,iGAAA,IAAI,OAAA;AACJ,6GAAA,QAAQ,OAAoB;AAC5B,kHAAA,OAAO,OAAyB"}
@@ -0,0 +1 @@
1
+ export { createSlotFill, Slot, Fill, Provider as SlotFillProvider, } from './slot-fill';
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SlotFillProvider = exports.Fill = exports.Slot = exports.createSlotFill = void 0;
4
+ var slot_fill_1 = require("./slot-fill");
5
+ Object.defineProperty(exports, "createSlotFill", { enumerable: true, get: function () { return slot_fill_1.createSlotFill; } });
6
+ Object.defineProperty(exports, "Slot", { enumerable: true, get: function () { return slot_fill_1.Slot; } });
7
+ Object.defineProperty(exports, "Fill", { enumerable: true, get: function () { return slot_fill_1.Fill; } });
8
+ Object.defineProperty(exports, "SlotFillProvider", { enumerable: true, get: function () { return slot_fill_1.Provider; } });
9
+ //# sourceMappingURL=index.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.native.js","sourceRoot":"","sources":["../src/index.native.ts"],"names":[],"mappings":";;;AAAA,yCAKqB;AAJpB,2GAAA,cAAc,OAAA;AACd,iGAAA,IAAI,OAAA;AACJ,iGAAA,IAAI,OAAA;AACJ,6GAAA,QAAQ,OAAoB"}
@@ -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
  });
@@ -0,0 +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,2BAA8B;AAC9B,qCAAqC;AACrC,oCAAwD;AACxD,gBAAc;AAEd,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC,EAAE,CAAC,gEAAgE,EAAE,GAAG,EAAE;QACxE,MAAM,OAAO,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;QAE1B,MAAM,IAAI,GAAG,CAAE,EAAE,KAAK,EAAE,EAAE,EAAE;YACxB,OAAO,CACH,gCACK,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,oBAAC,QAAQ,IAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,GAAI,CAAC,CACxD,CACR,CAAA;QACL,CAAC,CAAA;QAED,MAAM,QAAS,SAAQ,KAAK,CAAC,SAAuB;YAApD;;gBACI,UAAK,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;gBAC1B,gBAAW,GAAG,GAAG,EAAE;oBACf,IAAI,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;gBACrC,CAAC,CAAA;gBACD,mBAAc,GAAG,GAAG,EAAE;oBAClB,IAAI,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;gBACtC,CAAC,CAAA;YAaL,CAAC;YAZG,MAAM;gBACF,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"}
@@ -0,0 +1,230 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ /* tslint:disable */
23
+ const React = __importStar(require("react"));
24
+ const lodash_1 = require("lodash");
25
+ const react_1 = require("@testing-library/react");
26
+ const __1 = require("../");
27
+ const react_2 = require("react");
28
+ require("jest");
29
+ class Filler extends react_2.Component {
30
+ constructor(props) {
31
+ super(props);
32
+ this.state = {
33
+ num: 1
34
+ };
35
+ }
36
+ render() {
37
+ return [
38
+ React.createElement("button", { key: "1", type: "button", onClick: () => this.setState({ num: this.state.num + 1 }) }),
39
+ React.createElement(__1.Fill, { name: this.props.name, key: "2" }, this.props.text || this.state.num.toString())
40
+ ];
41
+ }
42
+ }
43
+ describe("Slot", () => {
44
+ it("should render empty Fills", () => {
45
+ const { container } = react_1.render(React.createElement(__1.Provider, null,
46
+ React.createElement("div", null,
47
+ React.createElement(__1.Slot, { name: "chicken" })),
48
+ React.createElement(__1.Fill, { name: "chicken" })));
49
+ expect(container).toMatchSnapshot();
50
+ });
51
+ it("should render a string Fill", () => {
52
+ const { container } = react_1.render(React.createElement(__1.Provider, null,
53
+ React.createElement("div", null,
54
+ React.createElement(__1.Slot, { name: "chicken" })),
55
+ React.createElement(__1.Fill, { name: "chicken" }, "content")));
56
+ expect(container).toMatchSnapshot();
57
+ });
58
+ it("should render a Fill containing an element", () => {
59
+ const { container } = react_1.render(React.createElement(__1.Provider, null,
60
+ React.createElement("div", null,
61
+ React.createElement(__1.Slot, { name: "chicken" })),
62
+ React.createElement(__1.Fill, { name: "chicken" },
63
+ React.createElement("span", null))));
64
+ expect(container).toMatchSnapshot();
65
+ });
66
+ it("should render a Fill containing an array", () => {
67
+ const { container } = react_1.render(React.createElement(__1.Provider, null,
68
+ React.createElement("div", null,
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();
72
+ });
73
+ it("calls the functions passed as the Slot's fillProps in the Fill", () => {
74
+ const onClose = jest.fn();
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 => {
78
+ return React.createElement("button", { onClick: props.onClose }, " Click me");
79
+ })));
80
+ react_1.fireEvent.click(getByText('Click me'));
81
+ expect(onClose).toHaveBeenCalledTimes(1);
82
+ });
83
+ it("should render empty Fills without HTML wrapper when render props used", () => {
84
+ const { container } = react_1.render(React.createElement(__1.Provider, null,
85
+ React.createElement("div", null,
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();
89
+ });
90
+ it("should render a string Fill with HTML wrapper when render props used", () => {
91
+ const { container } = react_1.render(React.createElement(__1.Provider, null,
92
+ React.createElement("div", null,
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();
96
+ });
97
+ it("should re-render Slot when not bubbling virtually", () => {
98
+ const { container, getByRole } = react_1.render(React.createElement(__1.Provider, null,
99
+ React.createElement("div", null,
100
+ React.createElement(__1.Slot, { name: "egg" })),
101
+ React.createElement(Filler, { name: "egg" })));
102
+ expect(container).toMatchSnapshot();
103
+ react_1.fireEvent.click(getByRole('button'));
104
+ expect(container).toMatchSnapshot();
105
+ });
106
+ it("should render in expected order when fills always mounted", () => {
107
+ const { container, rerender } = react_1.render(React.createElement(__1.Provider, null,
108
+ React.createElement("div", { key: "slot" },
109
+ React.createElement(__1.Slot, { name: "egg" }))));
110
+ rerender(React.createElement(__1.Provider, null,
111
+ React.createElement("div", { key: "slot" },
112
+ React.createElement(__1.Slot, { name: "egg" })),
113
+ React.createElement(Filler, { name: "egg", key: "first", text: "first" }),
114
+ React.createElement(Filler, { name: "egg", key: "second", text: "second" })));
115
+ rerender(React.createElement(__1.Provider, null,
116
+ React.createElement("div", { key: "slot" },
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,
132
+ React.createElement("div", { key: "slot" },
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" })),
137
+ React.createElement(Filler, { name: "egg", key: "first", text: "first" }),
138
+ React.createElement(Filler, { name: "egg", key: "second", text: "second" })));
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();
160
+ });
161
+ describe.each([false, true])("bubblesVirtually %p", bubblesVirtually => {
162
+ it("should subsume another slot by the same name", () => {
163
+ const { container, rerender } = react_1.render(React.createElement(__1.Provider, null,
164
+ React.createElement("div", { "data-position": "first" },
165
+ React.createElement(__1.Slot, { name: "egg", bubblesVirtually: bubblesVirtually })),
166
+ React.createElement("div", { "data-position": "second" }),
167
+ React.createElement(__1.Fill, { name: "egg" }, "Content")));
168
+ rerender(React.createElement(__1.Provider, null,
169
+ React.createElement("div", { "data-position": "first" },
170
+ React.createElement(__1.Slot, { name: "egg", bubblesVirtually: bubblesVirtually })),
171
+ React.createElement("div", { "data-position": "second" },
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,
176
+ React.createElement("div", { "data-position": "first" }),
177
+ React.createElement("div", { "data-position": "second" },
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();
199
+ });
200
+ });
201
+ });
202
+ //@sri custom logic
203
+ describe("Slot with logic", () => {
204
+ it("should render a string Fill with HTML wrapper when render props used", () => {
205
+ const Fill1 = props => {
206
+ return React.createElement(__1.Fill, { name: "chicken", fillId: 'id1' }, props => {
207
+ return "content";
208
+ });
209
+ };
210
+ const Fill2 = props => {
211
+ return (React.createElement(__1.Fill, { name: "chicken", fillId: 'id2' }, props => {
212
+ console.log("--filler--props", props);
213
+ return "content1";
214
+ }));
215
+ };
216
+ const Slot1 = props => {
217
+ return (React.createElement(__1.Slot, { name: "chicken", fillProps: { selected: "one" } }, fills => {
218
+ console.log("---files", fills);
219
+ return fills && React.createElement("blockquote", null, "Test");
220
+ }));
221
+ };
222
+ const { container } = react_1.render(React.createElement(__1.Provider, null,
223
+ React.createElement("div", null,
224
+ React.createElement(Slot1, null)),
225
+ React.createElement(Fill1, null),
226
+ React.createElement(Fill2, null)));
227
+ expect(container).toMatchSnapshot();
228
+ });
229
+ });
230
+ //# sourceMappingURL=slot-features.test.js.map
@@ -0,0 +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,kDAA2D;AAC3D,2BA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,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"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
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.2.1",
4
4
  "description": "browser plugin for git",
5
5
  "homepage": "https://github.com/cdmbase/fullstack-pro#readme",
6
6
  "bugs": {
@@ -12,8 +12,9 @@
12
12
  },
13
13
  "license": "MIT",
14
14
  "author": "CDMBase LLC",
15
- "main": "esm/index.js",
16
- "typings": "esm/index.d.ts",
15
+ "main": "lib/index.js",
16
+ "react-native": "lib/index.native.js",
17
+ "typings": "lib/index.d.ts",
17
18
  "scripts": {
18
19
  "build": "npm run build:clean && npm run build:lib",
19
20
  "build:clean": "rimraf esm",
@@ -47,7 +48,7 @@
47
48
  "publishConfig": {
48
49
  "access": "public"
49
50
  },
50
- "gitHead": "9186b2e6109f2b1cc05bde6f709c50c98fa2bf09",
51
+ "gitHead": "8cc362c6c7307e7ea43a9563ccdcb938c93c6008",
51
52
  "typescript": {
52
53
  "definition": "lib/index.d.ts"
53
54
  }
package/esm/index.d.ts DELETED
File without changes
package/esm/index.js DELETED
@@ -1,2 +0,0 @@
1
- console.log('This is sample');
2
- //# sourceMappingURL=index.js.map
package/esm/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAA"}
@@ -1 +0,0 @@
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,qCAAqC;AACrC,oCAAwD;AACxD,gBAAc;AAEd,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC,EAAE,CAAC,gEAAgE,EAAE,GAAG,EAAE;QACxE,MAAM,OAAO,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;QAE1B,MAAM,IAAI,GAAG,CAAE,EAAE,KAAK,EAAE,EAAE,EAAE;YACxB,OAAO,CACH,gCACK,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,oBAAC,QAAQ,IAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,GAAI,CAAC,CACxD,CACR,CAAA;QACL,CAAC,CAAA;QAED,MAAM,QAAS,SAAQ,KAAK,CAAC,SAAuB;YAApD;;gBACI,UAAK,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;gBAC1B,gBAAW,GAAG,GAAG,EAAE;oBACf,IAAI,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;gBACrC,CAAC,CAAA;gBACD,mBAAc,GAAG,GAAG,EAAE;oBAClB,IAAI,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;gBACtC,CAAC,CAAA;YAaL,CAAC;YAZG,MAAM;gBACF,OAAO,CACH;oBACK,IAAI,CAAC,KAAK,CAAC,OAAO;wBACnB,oBAAC,cAAI,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,cAAI,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"}
@@ -1,183 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __importStar = (this && this.__importStar) || function (mod) {
15
- if (mod && mod.__esModule) return mod;
16
- var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
- __setModuleDefault(result, mod);
19
- return result;
20
- };
21
- var __importDefault = (this && this.__importDefault) || function (mod) {
22
- return (mod && mod.__esModule) ? mod : { "default": mod };
23
- };
24
- Object.defineProperty(exports, "__esModule", { value: true });
25
- /* tslint:disable */
26
- const React = __importStar(require("react"));
27
- 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");
33
- require("jest");
34
- class Filler extends react_1.Component {
35
- constructor(props) {
36
- super(props);
37
- this.state = {
38
- num: 1
39
- };
40
- }
41
- render() {
42
- return [
43
- 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())
45
- ];
46
- }
47
- }
48
- describe("Slot", () => {
49
- it("should render empty Fills", () => {
50
- const tree = ReactTestRenderer.create(React.createElement(provider_1.default, null,
51
- 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();
55
- });
56
- it("should render a string Fill", () => {
57
- const tree = ReactTestRenderer.create(React.createElement(provider_1.default, null,
58
- 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();
62
- });
63
- it("should render a Fill containing an element", () => {
64
- const tree = ReactTestRenderer.create(React.createElement(provider_1.default, null,
65
- 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();
70
- });
71
- it("should render a Fill containing an array", () => {
72
- const tree = ReactTestRenderer.create(React.createElement(provider_1.default, null,
73
- 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();
77
- });
78
- it("calls the functions passed as the Slot's fillProps in the Fill", () => {
79
- 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 => {
83
- return React.createElement("button", { onClick: props.onClose }, " Click me");
84
- }))).root;
85
- testInstance.findByType("button").props.onClick();
86
- expect(onClose).toHaveBeenCalledTimes(1);
87
- });
88
- it("should render empty Fills without HTML wrapper when render props used", () => {
89
- const tree = ReactTestRenderer.create(React.createElement(provider_1.default, null,
90
- 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();
94
- });
95
- it("should render a string Fill with HTML wrapper when render props used", () => {
96
- const tree = ReactTestRenderer.create(React.createElement(provider_1.default, null,
97
- 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();
101
- });
102
- it("should re-render Slot when not bubbling virtually", () => {
103
- const testRender = ReactTestRenderer.create(React.createElement(provider_1.default, null,
104
- React.createElement("div", null,
105
- React.createElement(slot_1.default, { name: "egg" })),
106
- React.createElement(Filler, { name: "egg" })));
107
- expect(testRender.toJSON()).toMatchSnapshot();
108
- testRender.root.findByType("button").props.onClick();
109
- expect(testRender.toJSON()).toMatchSnapshot();
110
- });
111
- it("should render in expected order", () => {
112
- const testRenderer = ReactTestRenderer.create(React.createElement(provider_1.default, null,
113
- React.createElement("div", { key: "slot" },
114
- React.createElement(slot_1.default, { name: "egg" }))));
115
- testRenderer.update(React.createElement(provider_1.default, null,
116
- React.createElement("div", { key: "slot" },
117
- React.createElement(slot_1.default, { name: "egg" })),
118
- React.createElement(Filler, { name: "egg", key: "first", text: "first" }),
119
- React.createElement(Filler, { name: "egg", key: "second", text: "second" })));
120
- testRenderer.update(React.createElement(provider_1.default, null,
121
- 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,
125
- React.createElement("div", { key: "slot" },
126
- React.createElement(slot_1.default, { name: "egg" })),
127
- React.createElement(Filler, { name: "egg", key: "first", text: "first" }),
128
- React.createElement(Filler, { name: "egg", key: "second", text: "second" })));
129
- expect(testRenderer.toJSON()).toMatchSnapshot();
130
- });
131
- describe.each([false, true])("bubblesVirtually %p", bubblesVirtually => {
132
- it("should subsume another slot by the same name", () => {
133
- const testRenderer = ReactTestRenderer.create(React.createElement(provider_1.default, null,
134
- React.createElement("div", { "data-position": "first" },
135
- React.createElement(slot_1.default, { name: "egg", bubblesVirtually: bubblesVirtually })),
136
- React.createElement("div", { "data-position": "second" }),
137
- React.createElement(fill_1.default, { name: "egg" }, "Content")));
138
- testRenderer.update(React.createElement(provider_1.default, null,
139
- React.createElement("div", { "data-position": "first" },
140
- React.createElement(slot_1.default, { name: "egg", bubblesVirtually: bubblesVirtually })),
141
- 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,
146
- React.createElement("div", { "data-position": "first" }),
147
- 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");
152
- });
153
- });
154
- });
155
- //@sri custom logic
156
- describe("Slot with logic", () => {
157
- it("should render a string Fill with HTML wrapper when render props used", () => {
158
- const Fill1 = props => {
159
- return React.createElement(fill_1.default, { name: "chicken", fillId: 'id1' }, props => {
160
- return "content";
161
- });
162
- };
163
- const Fill2 = props => {
164
- return (React.createElement(fill_1.default, { name: "chicken", fillId: 'id2' }, props => {
165
- console.log("--filler--props", props);
166
- return "content1";
167
- }));
168
- };
169
- const Slot1 = props => {
170
- return (React.createElement(slot_1.default, { name: "chicken", fillProps: { selected: "one" } }, fills => {
171
- console.log("---files", fills);
172
- return fills && React.createElement("blockquote", null, "Test");
173
- }));
174
- };
175
- const tree = ReactTestRenderer.create(React.createElement(provider_1.default, null,
176
- React.createElement("div", null,
177
- React.createElement(Slot1, null)),
178
- React.createElement(Fill1, null),
179
- React.createElement(Fill2, null))).toJSON();
180
- expect(tree).toMatchSnapshot();
181
- });
182
- });
183
- //# sourceMappingURL=slot-features.test.js.map
@@ -1 +0,0 @@
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;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,G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