@fluentui-react-native/composition 0.7.1 → 0.7.5

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/CHANGELOG.json CHANGED
@@ -2,7 +2,121 @@
2
2
  "name": "@fluentui-react-native/composition",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 17 Dec 2021 19:51:04 GMT",
5
+ "date": "Tue, 21 Dec 2021 20:54:12 GMT",
6
+ "tag": "@fluentui-react-native/composition_v0.7.5",
7
+ "version": "0.7.5",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "beachball",
12
+ "package": "@fluentui-react-native/composition",
13
+ "comment": "Bump @fluentui-react-native/use-slot to v0.2.5",
14
+ "commit": "a7d19d410d5714e2bdb61529d2687182061020a5"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui-react-native/composition",
19
+ "comment": "Bump @fluentui-react-native/use-slots to v0.6.5",
20
+ "commit": "a7d19d410d5714e2bdb61529d2687182061020a5"
21
+ }
22
+ ]
23
+ }
24
+ },
25
+ {
26
+ "date": "Mon, 20 Dec 2021 22:56:00 GMT",
27
+ "tag": "@fluentui-react-native/composition_v0.7.4",
28
+ "version": "0.7.4",
29
+ "comments": {
30
+ "patch": [
31
+ {
32
+ "author": "ruaraki@microsoft.com",
33
+ "package": "@fluentui-react-native/composition",
34
+ "commit": "f4a5b4f5c9c190400e3e34c4a33b3ed30696d41e",
35
+ "comment": "Add repository property to all package.json files"
36
+ },
37
+ {
38
+ "author": "beachball",
39
+ "package": "@fluentui-react-native/composition",
40
+ "comment": "Bump @fluentui-react-native/immutable-merge to v1.1.6",
41
+ "commit": "bc86b4fbf5f07c0bfbc950a1a99a3cf4b35807d1"
42
+ },
43
+ {
44
+ "author": "beachball",
45
+ "package": "@fluentui-react-native/composition",
46
+ "comment": "Bump @fluentui-react-native/use-slot to v0.2.4",
47
+ "commit": "bc86b4fbf5f07c0bfbc950a1a99a3cf4b35807d1"
48
+ },
49
+ {
50
+ "author": "beachball",
51
+ "package": "@fluentui-react-native/composition",
52
+ "comment": "Bump @fluentui-react-native/use-slots to v0.6.4",
53
+ "commit": "bc86b4fbf5f07c0bfbc950a1a99a3cf4b35807d1"
54
+ },
55
+ {
56
+ "author": "beachball",
57
+ "package": "@fluentui-react-native/composition",
58
+ "comment": "Bump @fluentui-react-native/use-styling to v0.8.2",
59
+ "commit": "bc86b4fbf5f07c0bfbc950a1a99a3cf4b35807d1"
60
+ }
61
+ ]
62
+ }
63
+ },
64
+ {
65
+ "date": "Sat, 18 Dec 2021 04:15:05 GMT",
66
+ "tag": "@fluentui-react-native/composition_v0.7.3",
67
+ "version": "0.7.3",
68
+ "comments": {
69
+ "patch": [
70
+ {
71
+ "author": "beachball",
72
+ "package": "@fluentui-react-native/composition",
73
+ "comment": "Bump @fluentui-react-native/immutable-merge to v1.1.5",
74
+ "commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
75
+ },
76
+ {
77
+ "author": "beachball",
78
+ "package": "@fluentui-react-native/composition",
79
+ "comment": "Bump @fluentui-react-native/use-slot to v0.2.3",
80
+ "commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
81
+ },
82
+ {
83
+ "author": "beachball",
84
+ "package": "@fluentui-react-native/composition",
85
+ "comment": "Bump @fluentui-react-native/use-slots to v0.6.3",
86
+ "commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
87
+ },
88
+ {
89
+ "author": "beachball",
90
+ "package": "@fluentui-react-native/composition",
91
+ "comment": "Bump @fluentui-react-native/use-styling to v0.8.1",
92
+ "commit": "38fe241a385ecd1ce4e51b5bcba57a9dd0426789"
93
+ }
94
+ ]
95
+ }
96
+ },
97
+ {
98
+ "date": "Fri, 17 Dec 2021 22:06:58 GMT",
99
+ "tag": "@fluentui-react-native/composition_v0.7.2",
100
+ "version": "0.7.2",
101
+ "comments": {
102
+ "patch": [
103
+ {
104
+ "author": "beachball",
105
+ "package": "@fluentui-react-native/composition",
106
+ "comment": "Bump @fluentui-react-native/use-slot to v0.2.2",
107
+ "commit": "9dc61df83605c035822518c18cc46fb5503dff70"
108
+ },
109
+ {
110
+ "author": "beachball",
111
+ "package": "@fluentui-react-native/composition",
112
+ "comment": "Bump @fluentui-react-native/use-slots to v0.6.2",
113
+ "commit": "9dc61df83605c035822518c18cc46fb5503dff70"
114
+ }
115
+ ]
116
+ }
117
+ },
118
+ {
119
+ "date": "Fri, 17 Dec 2021 19:53:21 GMT",
6
120
  "tag": "@fluentui-react-native/composition_v0.7.1",
7
121
  "version": "0.7.1",
8
122
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,53 @@
1
1
  # Change Log - @fluentui-react-native/composition
2
2
 
3
- This log was last generated on Fri, 17 Dec 2021 19:51:04 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 21 Dec 2021 20:54:12 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.7.5
8
+
9
+ Tue, 21 Dec 2021 20:54:12 GMT
10
+
11
+ ### Patches
12
+
13
+ - Bump @fluentui-react-native/use-slot to v0.2.5
14
+ - Bump @fluentui-react-native/use-slots to v0.6.5
15
+
16
+ ## 0.7.4
17
+
18
+ Mon, 20 Dec 2021 22:56:00 GMT
19
+
20
+ ### Patches
21
+
22
+ - Add repository property to all package.json files (ruaraki@microsoft.com)
23
+ - Bump @fluentui-react-native/immutable-merge to v1.1.6
24
+ - Bump @fluentui-react-native/use-slot to v0.2.4
25
+ - Bump @fluentui-react-native/use-slots to v0.6.4
26
+ - Bump @fluentui-react-native/use-styling to v0.8.2
27
+
28
+ ## 0.7.3
29
+
30
+ Sat, 18 Dec 2021 04:15:05 GMT
31
+
32
+ ### Patches
33
+
34
+ - Bump @fluentui-react-native/immutable-merge to v1.1.5
35
+ - Bump @fluentui-react-native/use-slot to v0.2.3
36
+ - Bump @fluentui-react-native/use-slots to v0.6.3
37
+ - Bump @fluentui-react-native/use-styling to v0.8.1
38
+
39
+ ## 0.7.2
40
+
41
+ Fri, 17 Dec 2021 22:06:58 GMT
42
+
43
+ ### Patches
44
+
45
+ - Bump @fluentui-react-native/use-slot to v0.2.2
46
+ - Bump @fluentui-react-native/use-slots to v0.6.2
47
+
7
48
  ## 0.7.1
8
49
 
9
- Fri, 17 Dec 2021 19:51:04 GMT
50
+ Fri, 17 Dec 2021 19:53:21 GMT
10
51
 
11
52
  ### Patches
12
53
 
@@ -1 +1 @@
1
- {"version":3,"file":"composeFactory.test.js","sourceRoot":"","sources":["../src/composeFactory.test.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,qBAAqB;AACrB,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAkB,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAa,IAAI,EAAE,IAAI,EAAyB,MAAM,cAAc,CAAC;AAa5E,IAAM,KAAK,GAAU;IACnB,MAAM,EAAE;QACN,eAAe,EAAE,OAAO;QACxB,KAAK,EAAE,OAAO;KACf;IACD,UAAU,EAAE,EAAE;CACf,CAAC;AAYF,IAAM,WAAW,GAAuB;IACtC,QAAQ,EAAE,cAAM,OAAA,KAAK,EAAL,CAAK;IACrB,gBAAgB,EAAE,UAAC,KAAY,EAAE,IAAY;;QAC3C,aAAO,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,mCAAI,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC;CACF,CAAC;AAEF,SAAS,UAAU,CAAI,EAAK,EAAE,EAAK;IACjC,6BAAY,EAAE,GAAK,EAAE,EAAG;AAC1B,CAAC;AAED,IAAM,IAAI,GAAG,cAAc,CACzB;IACE,MAAM,EAAE;QACN,UAAC,CAAC,IAAK,OAAA,CAAC;YACN,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,eAAe;YACzC,KAAK,EAAE,CAAC,CAAC,M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AG,QAAQ,CAAC,MAAM,CAAC,UAAC,UAAU,IAAC,KAAK,EAAE,UAAU,GAAI,CAAC,CAAC,MAAM,EAAE,CAAC;QACzE,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -11,6 +11,7 @@ var __assign = (this && this.__assign) || function () {
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.composeFactory = void 0;
14
15
  var use_styling_1 = require("@fluentui-react-native/use-styling");
15
16
  var use_slot_1 = require("@fluentui-react-native/use-slot");
16
17
  var use_slots_1 = require("@fluentui-react-native/use-slots");
@@ -25,13 +26,13 @@ var mergeOptions = {
25
26
  function composeFactory(options, themeHelper, base) {
26
27
  // merge options together if a base is specified
27
28
  var baseOptions = base === null || base === void 0 ? void 0 : base.__options;
28
- options = baseOptions ? immutable_merge_1.immutableMergeCore(mergeOptions, baseOptions, options) : __assign({}, options);
29
+ options = baseOptions ? (0, immutable_merge_1.immutableMergeCore)(mergeOptions, baseOptions, options) : __assign({}, options);
29
30
  // build styling if styling options are specified
30
- options.useStyling = options.slotProps || options.tokens ? use_styling_1.buildUseStyling(options, themeHelper) : function () { return ({}); };
31
+ options.useStyling = options.slotProps || options.tokens ? (0, use_styling_1.buildUseStyling)(options, themeHelper) : function () { return ({}); };
31
32
  // build the slots hook, which will use the styling hook if it has been built
32
- var useSlots = use_slots_1.buildUseSlots(options);
33
+ var useSlots = (0, use_slots_1.buildUseSlots)(options);
33
34
  // build the staged component
34
- var component = use_slot_1.stagedComponent(function (props) { return options.render(props, useSlots); });
35
+ var component = (0, use_slot_1.stagedComponent)(function (props) { return options.render(props, useSlots); });
35
36
  // attach additional props to the returned component
36
37
  component.displayName = options.displayName;
37
38
  component.__options = options;
@@ -40,10 +41,10 @@ function composeFactory(options, themeHelper, base) {
40
41
  for (var _i = 0; _i < arguments.length; _i++) {
41
42
  tokens[_i] = arguments[_i];
42
43
  }
43
- return composeFactory(immutable_merge_1.immutableMergeCore(mergeOptions, options, { tokens: tokens }), themeHelper);
44
+ return composeFactory((0, immutable_merge_1.immutableMergeCore)(mergeOptions, options, { tokens: tokens }), themeHelper);
44
45
  };
45
46
  component.compose = function (customOptions) {
46
- return composeFactory(immutable_merge_1.immutableMergeCore(mergeOptions, options, customOptions), themeHelper);
47
+ return composeFactory((0, immutable_merge_1.immutableMergeCore)(mergeOptions, options, customOptions), themeHelper);
47
48
  };
48
49
  // attach statics if specified
49
50
  if (options.statics) {
@@ -1 +1 @@
1
- {"version":3,"file":"composeFactory.js","sourceRoot":"","sources":["../src/composeFactory.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,kEAA8H;AAC9H,4DAAsF;AACtF,8DAAwF;AACxF,0EAA0F;AAoC1F;;GAEG;AACH,IAAM,YAAY,GAAiB;IACjC,MAAM,EAAE,aAAa;IACrB,MAAM,EAAE,IAAI;CACb,CAAC;AAEF,SAAgB,cAAc,CAC5B,OAA6E,EAC7E,WAAgC,EAChC,IAA6E;IAK7E,gDAAgD;IAChD,IAAM,WAAW,GAAiB,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,SAAyB,CAAC;IAClE,OAAO,GAAG,WAAW,CAAC,CAAC,CAAC,oCAAkB,CAAe,YAAY,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC,cAAM,OAAO,CAAE,CAAC;IAE9G,iDAAiD;IACjD,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,6BAAe,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,cAAM,OAAA,CAAC,EAAiB,CAAA,EAAlB,CAAkB,CAAC;IAE5H,6EAA6E;IAC7E,IAAM,QAAQ,GAAG,yBAAa,CAAC,OAAO,CAAuC,CAAC;IAE9E,6BAA6B;IAC7B,IAAM,SAAS,GAAG,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IAED,OAAO,SAAS,CAAC;AACnB,CAAC;AA1CD,wCA0CC"}
@@ -10,11 +10,23 @@ var __assign = (this && this.__assign) || function () {
10
10
  };
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
16
+ }) : (function(o, m, k, k2) {
17
+ if (k2 === undefined) k2 = k;
18
+ o[k2] = m[k];
19
+ }));
20
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
21
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
22
+ }) : function(o, v) {
23
+ o["default"] = v;
24
+ });
13
25
  var __importStar = (this && this.__importStar) || function (mod) {
14
26
  if (mod && mod.__esModule) return mod;
15
27
  var result = {};
16
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
17
- result["default"] = mod;
28
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
29
+ __setModuleDefault(result, mod);
18
30
  return result;
19
31
  };
20
32
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -40,7 +52,7 @@ var themeHelper = {
40
52
  function mergeProps(p1, p2) {
41
53
  return __assign(__assign({}, p1), p2);
42
54
  }
43
- var Base = composeFactory_1.composeFactory({
55
+ var Base = (0, composeFactory_1.composeFactory)({
44
56
  tokens: [
45
57
  function (t) { return ({
46
58
  backgroundColor: t.values.backgroundColor,
@@ -57,8 +69,8 @@ var Base = composeFactory_1.composeFactory({
57
69
  },
58
70
  render: function (props, useSlots) {
59
71
  var Slots = useSlots(props);
60
- return function (extra) { return (use_slot_1.withSlots(Slots.outer, __assign({}, mergeProps(props, extra)),
61
- use_slot_1.withSlots(Slots.content, null, "Hello"))); };
72
+ return function (extra) { return ((0, use_slot_1.withSlots)(Slots.outer, __assign({}, mergeProps(props, extra)),
73
+ (0, use_slot_1.withSlots)(Slots.content, null, "Hello"))); };
62
74
  },
63
75
  }, themeHelper);
64
76
  var Customized = Base.customize({ backgroundColor: 'pink' });
@@ -70,11 +82,11 @@ var mixinStyle = {
70
82
  };
71
83
  describe('composeFactory test suite', function () {
72
84
  it('Base component render', function () {
73
- var tree = renderer.create(use_slot_1.withSlots(Base, { style: mixinStyle })).toJSON();
85
+ var tree = renderer.create((0, use_slot_1.withSlots)(Base, { style: mixinStyle })).toJSON();
74
86
  expect(tree).toMatchSnapshot();
75
87
  });
76
88
  it('Base component render', function () {
77
- var tree = renderer.create(use_slot_1.withSlots(Customized, { style: mixinStyle })).toJSON();
89
+ var tree = renderer.create((0, use_slot_1.withSlots)(Customized, { style: mixinStyle })).toJSON();
78
90
  expect(tree).toMatchSnapshot();
79
91
  });
80
92
  });
@@ -1 +1 @@
1
- {"version":3,"file":"composeFactory.test.js","sourceRoot":"","sources":["../src/composeFactory.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,qBAAqB;AACrB,4DAA4D;AAC5D,4DAAgD;AAChD,mDAAkE;AAClE,6CAA4E;AAa5E,IAAM,KAAK,GAAU;IACnB,MAAM,EAAE;QACN,eAAe,EAAE,OAAO;QACxB,KAAK,EAAE,OAAO;KACf;IACD,UAAU,EAAE,EAAE;CACf,CAAC;AAYF,IAAM,WAAW,GAAuB;IACtC,QAAQ,EAAE,cAAM,OAAA,KAAK,EAAL,CAAK;IACrB,gBAAgB,EAAE,UAAC,KAAY,EAAE,IAAY;;QAC3C,aAAO,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,mCAAI,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC;CACF,CAAC;AAEF,SAAS,UAAU,CAAI,EAAK,EAAE,EAAK;IACjC,6BAAY,EAAE,GAAK,EAAE,EAAG;AAC1B,CAAC;AAED,IAAM,IAAI,GAAG,+BAAc,CACzB;IACE,M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1B,IAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,0BAAC,UAAU,IAAC,KAAK,EAAE,UAAU,GAAI,CAAC,CAAC,MAAM,EAAE,CAAC;QACzE,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,7 +1,14 @@
1
1
  "use strict";
2
- function __export(m) {
3
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4
- }
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
5
12
  Object.defineProperty(exports, "__esModule", { value: true });
6
- __export(require("./composeFactory"));
13
+ __exportStar(require("./composeFactory"), exports);
7
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,sCAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAiC"}
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/composition",
3
- "version": "0.7.1",
3
+ "version": "0.7.5",
4
4
  "description": "Composition factories for building HOCs",
5
5
  "repository": {
6
6
  "type": "git",
7
- "url": "https://github.com/microsoft/ui-fabric-react-native"
7
+ "url": "https://github.com/microsoft/fluentui-react-native",
8
+ "directory": "packages/framework/composition"
8
9
  },
9
10
  "main": "lib-commonjs/index.js",
10
11
  "module": "lib/index.js",
@@ -28,10 +29,10 @@
28
29
  "author": "",
29
30
  "license": "MIT",
30
31
  "dependencies": {
31
- "@fluentui-react-native/immutable-merge": "^1.1.4",
32
- "@fluentui-react-native/use-slot": ">=0.2.1 <1.0.0",
33
- "@fluentui-react-native/use-slots": ">=0.6.1 <1.0.0",
34
- "@fluentui-react-native/use-styling": ">=0.8.0 <1.0.0"
32
+ "@fluentui-react-native/immutable-merge": "^1.1.6",
33
+ "@fluentui-react-native/use-slot": ">=0.2.5 <1.0.0",
34
+ "@fluentui-react-native/use-slots": ">=0.6.5 <1.0.0",
35
+ "@fluentui-react-native/use-styling": ">=0.8.2 <1.0.0"
35
36
  },
36
37
  "devDependencies": {
37
38
  "@types/react-native": "^0.64.0",