@fluentui-copilot/react-attachments 0.0.0-nightly-20240313-0404-8abc883d.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 (106) hide show
  1. package/CHANGELOG.json +662 -0
  2. package/CHANGELOG.md +213 -0
  3. package/LICENSE +23 -0
  4. package/README.md +5 -0
  5. package/dist/index.d.ts +107 -0
  6. package/lib/AttachmentTag.js +2 -0
  7. package/lib/AttachmentTag.js.map +1 -0
  8. package/lib/AttachmentTagItem.js +2 -0
  9. package/lib/AttachmentTagItem.js.map +1 -0
  10. package/lib/AttachmentTagList.js +2 -0
  11. package/lib/AttachmentTagList.js.map +1 -0
  12. package/lib/components/AttachmentTag/AttachmentTag.js +14 -0
  13. package/lib/components/AttachmentTag/AttachmentTag.js.map +1 -0
  14. package/lib/components/AttachmentTag/AttachmentTag.types.js +2 -0
  15. package/lib/components/AttachmentTag/AttachmentTag.types.js.map +1 -0
  16. package/lib/components/AttachmentTag/index.js +6 -0
  17. package/lib/components/AttachmentTag/index.js.map +1 -0
  18. package/lib/components/AttachmentTag/renderAttachmentTag.js +12 -0
  19. package/lib/components/AttachmentTag/renderAttachmentTag.js.map +1 -0
  20. package/lib/components/AttachmentTag/useAttachmentTag.js +64 -0
  21. package/lib/components/AttachmentTag/useAttachmentTag.js.map +1 -0
  22. package/lib/components/AttachmentTag/useAttachmentTagStyles.js +30 -0
  23. package/lib/components/AttachmentTag/useAttachmentTagStyles.js.map +1 -0
  24. package/lib/components/AttachmentTagItem/AttachmentTagItem.js +12 -0
  25. package/lib/components/AttachmentTagItem/AttachmentTagItem.js.map +1 -0
  26. package/lib/components/AttachmentTagItem/AttachmentTagItem.types.js +3 -0
  27. package/lib/components/AttachmentTagItem/AttachmentTagItem.types.js.map +1 -0
  28. package/lib/components/AttachmentTagItem/index.js +6 -0
  29. package/lib/components/AttachmentTagItem/index.js.map +1 -0
  30. package/lib/components/AttachmentTagItem/renderAttachmentTagItem.js +11 -0
  31. package/lib/components/AttachmentTagItem/renderAttachmentTagItem.js.map +1 -0
  32. package/lib/components/AttachmentTagItem/useAttachmentTagItem.js +29 -0
  33. package/lib/components/AttachmentTagItem/useAttachmentTagItem.js.map +1 -0
  34. package/lib/components/AttachmentTagItem/useAttachmentTagItemStyles.js +21 -0
  35. package/lib/components/AttachmentTagItem/useAttachmentTagItemStyles.js.map +1 -0
  36. package/lib/components/AttachmentTagList/AttachmentTagList.js +16 -0
  37. package/lib/components/AttachmentTagList/AttachmentTagList.js.map +1 -0
  38. package/lib/components/AttachmentTagList/AttachmentTagList.types.js +2 -0
  39. package/lib/components/AttachmentTagList/AttachmentTagList.types.js.map +1 -0
  40. package/lib/components/AttachmentTagList/index.js +6 -0
  41. package/lib/components/AttachmentTagList/index.js.map +1 -0
  42. package/lib/components/AttachmentTagList/renderAttachmentTagList.js +14 -0
  43. package/lib/components/AttachmentTagList/renderAttachmentTagList.js.map +1 -0
  44. package/lib/components/AttachmentTagList/useAttachmentTagList.js +35 -0
  45. package/lib/components/AttachmentTagList/useAttachmentTagList.js.map +1 -0
  46. package/lib/components/AttachmentTagList/useAttachmentTagListContextValues.js +13 -0
  47. package/lib/components/AttachmentTagList/useAttachmentTagListContextValues.js.map +1 -0
  48. package/lib/components/AttachmentTagList/useAttachmentTagListStyles.js +14 -0
  49. package/lib/components/AttachmentTagList/useAttachmentTagListStyles.js.map +1 -0
  50. package/lib/components/index.js +3 -0
  51. package/lib/components/index.js.map +1 -0
  52. package/lib/contexts/attachmentTagListContext.js +8 -0
  53. package/lib/contexts/attachmentTagListContext.js.map +1 -0
  54. package/lib/index.js +3 -0
  55. package/lib/index.js.map +1 -0
  56. package/lib-commonjs/AttachmentTag.js +7 -0
  57. package/lib-commonjs/AttachmentTag.js.map +1 -0
  58. package/lib-commonjs/AttachmentTagItem.js +7 -0
  59. package/lib-commonjs/AttachmentTagItem.js.map +1 -0
  60. package/lib-commonjs/AttachmentTagList.js +7 -0
  61. package/lib-commonjs/AttachmentTagList.js.map +1 -0
  62. package/lib-commonjs/components/AttachmentTag/AttachmentTag.js +23 -0
  63. package/lib-commonjs/components/AttachmentTag/AttachmentTag.js.map +1 -0
  64. package/lib-commonjs/components/AttachmentTag/AttachmentTag.types.js +5 -0
  65. package/lib-commonjs/components/AttachmentTag/AttachmentTag.types.js.map +1 -0
  66. package/lib-commonjs/components/AttachmentTag/index.js +11 -0
  67. package/lib-commonjs/components/AttachmentTag/index.js.map +1 -0
  68. package/lib-commonjs/components/AttachmentTag/renderAttachmentTag.js +22 -0
  69. package/lib-commonjs/components/AttachmentTag/renderAttachmentTag.js.map +1 -0
  70. package/lib-commonjs/components/AttachmentTag/useAttachmentTag.js +61 -0
  71. package/lib-commonjs/components/AttachmentTag/useAttachmentTag.js.map +1 -0
  72. package/lib-commonjs/components/AttachmentTag/useAttachmentTagStyles.js +65 -0
  73. package/lib-commonjs/components/AttachmentTag/useAttachmentTagStyles.js.map +1 -0
  74. package/lib-commonjs/components/AttachmentTagItem/AttachmentTagItem.js +21 -0
  75. package/lib-commonjs/components/AttachmentTagItem/AttachmentTagItem.js.map +1 -0
  76. package/lib-commonjs/components/AttachmentTagItem/AttachmentTagItem.types.js +7 -0
  77. package/lib-commonjs/components/AttachmentTagItem/AttachmentTagItem.types.js.map +1 -0
  78. package/lib-commonjs/components/AttachmentTagItem/index.js +11 -0
  79. package/lib-commonjs/components/AttachmentTagItem/index.js.map +1 -0
  80. package/lib-commonjs/components/AttachmentTagItem/renderAttachmentTagItem.js +17 -0
  81. package/lib-commonjs/components/AttachmentTagItem/renderAttachmentTagItem.js.map +1 -0
  82. package/lib-commonjs/components/AttachmentTagItem/useAttachmentTagItem.js +28 -0
  83. package/lib-commonjs/components/AttachmentTagItem/useAttachmentTagItem.js.map +1 -0
  84. package/lib-commonjs/components/AttachmentTagItem/useAttachmentTagItemStyles.js +34 -0
  85. package/lib-commonjs/components/AttachmentTagItem/useAttachmentTagItemStyles.js.map +1 -0
  86. package/lib-commonjs/components/AttachmentTagList/AttachmentTagList.js +25 -0
  87. package/lib-commonjs/components/AttachmentTagList/AttachmentTagList.js.map +1 -0
  88. package/lib-commonjs/components/AttachmentTagList/AttachmentTagList.types.js +5 -0
  89. package/lib-commonjs/components/AttachmentTagList/AttachmentTagList.types.js.map +1 -0
  90. package/lib-commonjs/components/AttachmentTagList/index.js +11 -0
  91. package/lib-commonjs/components/AttachmentTagList/index.js.map +1 -0
  92. package/lib-commonjs/components/AttachmentTagList/renderAttachmentTagList.js +20 -0
  93. package/lib-commonjs/components/AttachmentTagList/renderAttachmentTagList.js.map +1 -0
  94. package/lib-commonjs/components/AttachmentTagList/useAttachmentTagList.js +33 -0
  95. package/lib-commonjs/components/AttachmentTagList/useAttachmentTagList.js.map +1 -0
  96. package/lib-commonjs/components/AttachmentTagList/useAttachmentTagListContextValues.js +20 -0
  97. package/lib-commonjs/components/AttachmentTagList/useAttachmentTagListContextValues.js.map +1 -0
  98. package/lib-commonjs/components/AttachmentTagList/useAttachmentTagListStyles.js +30 -0
  99. package/lib-commonjs/components/AttachmentTagList/useAttachmentTagListStyles.js.map +1 -0
  100. package/lib-commonjs/components/index.js +8 -0
  101. package/lib-commonjs/components/index.js.map +1 -0
  102. package/lib-commonjs/contexts/attachmentTagListContext.js +28 -0
  103. package/lib-commonjs/contexts/attachmentTagListContext.js.map +1 -0
  104. package/lib-commonjs/index.js +45 -0
  105. package/lib-commonjs/index.js.map +1 -0
  106. package/package.json +40 -0
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "renderAttachmentTagItem_unstable", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return renderAttachmentTagItem_unstable;
9
+ }
10
+ });
11
+ const _jsxruntime = require("@fluentui/react-jsx-runtime/jsx-runtime");
12
+ const _reactcomponents = require("@fluentui/react-components");
13
+ const renderAttachmentTagItem_unstable = (state)=>{
14
+ (0, _reactcomponents.assertSlots)(state);
15
+ // TODO Add additional slots in the appropriate place
16
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(state.root, {});
17
+ }; //# sourceMappingURL=renderAttachmentTagItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["renderAttachmentTagItem.js"],"sourcesContent":["import { jsx as _jsx } from \"@fluentui/react-jsx-runtime/jsx-runtime\";\nimport { assertSlots } from '@fluentui/react-components';\n/**\n * Render the final JSX of AttachmentTagItem\n */\nexport const renderAttachmentTagItem_unstable = state => {\n assertSlots(state);\n // TODO Add additional slots in the appropriate place\n return /*#__PURE__*/_jsx(state.root, {});\n};\n//# sourceMappingURL=renderAttachmentTagItem.js.map"],"names":["renderAttachmentTagItem_unstable","state","assertSlots","_jsx","root"],"mappings":";;;;+BAKaA;;;eAAAA;;;4BALe;iCACA;AAIrB,MAAMA,mCAAmCC,CAAAA;IAC9CC,IAAAA,4BAAW,EAACD;IACZ,qDAAqD;IACrD,OAAO,WAAW,GAAEE,IAAAA,eAAI,EAACF,MAAMG,IAAI,EAAE,CAAC;AACxC,GACA,mDAAmD"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "useAttachmentTagItem_unstable", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return useAttachmentTagItem_unstable;
9
+ }
10
+ });
11
+ const _reactcomponents = require("@fluentui/react-components");
12
+ const useAttachmentTagItem_unstable = (props, ref)=>{
13
+ return {
14
+ // TODO add appropriate props/defaults
15
+ components: {
16
+ // TODO add each slot's element type or component
17
+ root: 'div'
18
+ },
19
+ // TODO add appropriate slots, for example:
20
+ // mySlot: slot.optional(props.mySlot),
21
+ root: _reactcomponents.slot.always((0, _reactcomponents.getNativeElementProps)('div', {
22
+ ref,
23
+ ...props
24
+ }), {
25
+ elementType: 'div'
26
+ })
27
+ };
28
+ }; //# sourceMappingURL=useAttachmentTagItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useAttachmentTagItem.js"],"sourcesContent":["import { getNativeElementProps, slot } from '@fluentui/react-components';\n// If you add JSX to this file, be sure to change the file type to .tsx\n/**\n * Create the state required to render AttachmentTagItem.\n *\n * The returned state can be modified with hooks such as useAttachmentTagItemStyles_unstable,\n * before being passed to renderAttachmentTagItem_unstable.\n *\n * @param props - props from this instance of AttachmentTagItem\n * @param ref - reference to root HTMLElement of AttachmentTagItem\n */\nexport const useAttachmentTagItem_unstable = (props, ref) => {\n return {\n // TODO add appropriate props/defaults\n components: {\n // TODO add each slot's element type or component\n root: 'div'\n },\n // TODO add appropriate slots, for example:\n // mySlot: slot.optional(props.mySlot),\n root: slot.always(getNativeElementProps('div', {\n ref,\n ...props\n }), {\n elementType: 'div'\n })\n };\n};\n//# sourceMappingURL=useAttachmentTagItem.js.map"],"names":["useAttachmentTagItem_unstable","props","ref","components","root","slot","always","getNativeElementProps","elementType"],"mappings":";;;;+BAWaA;;;eAAAA;;;iCAX+B;AAWrC,MAAMA,gCAAgC,CAACC,OAAOC;IACnD,OAAO;QACL,sCAAsC;QACtCC,YAAY;YACV,iDAAiD;YACjDC,MAAM;QACR;QACA,2CAA2C;QAC3C,uCAAuC;QACvCA,MAAMC,qBAAI,CAACC,MAAM,CAACC,IAAAA,sCAAqB,EAAC,OAAO;YAC7CL;YACA,GAAGD,KAAK;QACV,IAAI;YACFO,aAAa;QACf;IACF;AACF,GACA,gDAAgD"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ attachmentTagItemClassNames: function() {
13
+ return attachmentTagItemClassNames;
14
+ },
15
+ useAttachmentTagItemStyles_unstable: function() {
16
+ return useAttachmentTagItemStyles_unstable;
17
+ }
18
+ });
19
+ const _reactcomponents = require("@fluentui/react-components");
20
+ const attachmentTagItemClassNames = {
21
+ root: 'fai-AttachmentTagItem'
22
+ };
23
+ /**
24
+ * Styles for the root slot
25
+ */ const useStyles = (0, _reactcomponents.__styles)({
26
+ root: {}
27
+ }, {});
28
+ const useAttachmentTagItemStyles_unstable = (state)=>{
29
+ const styles = useStyles();
30
+ state.root.className = (0, _reactcomponents.mergeClasses)(attachmentTagItemClassNames.root, styles.root, state.root.className);
31
+ // TODO Add class names to slots, for example:
32
+ // state.mySlot.className = mergeClasses(styles.mySlot, state.mySlot.className);
33
+ return state;
34
+ }; //# sourceMappingURL=useAttachmentTagItemStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useAttachmentTagItemStyles.js"],"sourcesContent":["import { __styles, mergeClasses } from '@fluentui/react-components';\nexport const attachmentTagItemClassNames = {\n root: 'fai-AttachmentTagItem'\n};\n/**\n * Styles for the root slot\n */\nconst useStyles = __styles({\n root: {}\n}, {});\n/**\n * Apply styling to the AttachmentTagItem slots based on the state\n */\nexport const useAttachmentTagItemStyles_unstable = state => {\n const styles = useStyles();\n state.root.className = mergeClasses(attachmentTagItemClassNames.root, styles.root, state.root.className);\n // TODO Add class names to slots, for example:\n // state.mySlot.className = mergeClasses(styles.mySlot, state.mySlot.className);\n return state;\n};\n//# sourceMappingURL=useAttachmentTagItemStyles.js.map"],"names":["attachmentTagItemClassNames","useAttachmentTagItemStyles_unstable","root","useStyles","__styles","state","styles","className","mergeClasses"],"mappings":";;;;;;;;;;;IACaA,2BAA2B;eAA3BA;;IAYAC,mCAAmC;eAAnCA;;;iCAb0B;AAChC,MAAMD,8BAA8B;IACzCE,MAAM;AACR;AACA;;CAEC,GACD,MAAMC,YAAYC,IAAAA,yBAAQ,EAAC;IACzBF,MAAM,CAAC;AACT,GAAG,CAAC;AAIG,MAAMD,sCAAsCI,CAAAA;IACjD,MAAMC,SAASH;IACfE,MAAMH,IAAI,CAACK,SAAS,GAAGC,IAAAA,6BAAY,EAACR,4BAA4BE,IAAI,EAAEI,OAAOJ,IAAI,EAAEG,MAAMH,IAAI,CAACK,SAAS;IACvG,8CAA8C;IAC9C,gFAAgF;IAChF,OAAOF;AACT,GACA,sDAAsD"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "AttachmentTagList", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return AttachmentTagList;
9
+ }
10
+ });
11
+ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _renderAttachmentTagList = require("./renderAttachmentTagList");
14
+ const _useAttachmentTagList = require("./useAttachmentTagList");
15
+ const _useAttachmentTagListContextValues = require("./useAttachmentTagListContextValues");
16
+ const _useAttachmentTagListStyles = require("./useAttachmentTagListStyles");
17
+ const _reactprovider = require("@fluentui-copilot/react-provider");
18
+ const AttachmentTagList = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
19
+ const state = (0, _useAttachmentTagList.useAttachmentTagList_unstable)(props, ref);
20
+ const contextValues = (0, _useAttachmentTagListContextValues.useAttachmentTagListContextValues_unstable)(state);
21
+ (0, _useAttachmentTagListStyles.useAttachmentTagListStyles_unstable)(state);
22
+ (0, _reactprovider.useCustomStyleHook)('useAttachmentTagListStyles')(state);
23
+ return (0, _renderAttachmentTagList.renderAttachmentTagList_unstable)(state, contextValues);
24
+ });
25
+ AttachmentTagList.displayName = 'AttachmentTagList'; //# sourceMappingURL=AttachmentTagList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["AttachmentTagList.js"],"sourcesContent":["import * as React from 'react';\nimport { renderAttachmentTagList_unstable } from './renderAttachmentTagList';\nimport { useAttachmentTagList_unstable } from './useAttachmentTagList';\nimport { useAttachmentTagListContextValues_unstable } from './useAttachmentTagListContextValues';\nimport { useAttachmentTagListStyles_unstable } from './useAttachmentTagListStyles';\nimport { useCustomStyleHook } from '@fluentui-copilot/react-provider';\n// AttachmentTagList component - TODO: add more docs\nexport const AttachmentTagList = /*#__PURE__*/React.forwardRef((props, ref) => {\n const state = useAttachmentTagList_unstable(props, ref);\n const contextValues = useAttachmentTagListContextValues_unstable(state);\n useAttachmentTagListStyles_unstable(state);\n useCustomStyleHook('useAttachmentTagListStyles')(state);\n return renderAttachmentTagList_unstable(state, contextValues);\n});\nAttachmentTagList.displayName = 'AttachmentTagList';\n//# sourceMappingURL=AttachmentTagList.js.map"],"names":["AttachmentTagList","React","forwardRef","props","ref","state","useAttachmentTagList_unstable","contextValues","useAttachmentTagListContextValues_unstable","useAttachmentTagListStyles_unstable","useCustomStyleHook","renderAttachmentTagList_unstable","displayName"],"mappings":";;;;+BAOaA;;;eAAAA;;;;iEAPU;yCAC0B;sCACH;mDACa;4CACP;+BACjB;AAE5B,MAAMA,oBAAoB,WAAW,GAAEC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACrE,MAAMC,QAAQC,IAAAA,mDAA6B,EAACH,OAAOC;IACnD,MAAMG,gBAAgBC,IAAAA,6EAA0C,EAACH;IACjEI,IAAAA,+DAAmC,EAACJ;IACpCK,IAAAA,iCAAkB,EAAC,8BAA8BL;IACjD,OAAOM,IAAAA,yDAAgC,EAACN,OAAOE;AACjD;AACAP,kBAAkBY,WAAW,GAAG,qBAChC,6CAA6C"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ //# sourceMappingURL=AttachmentTagList.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["AttachmentTagList.types.js"],"sourcesContent":["export {};\n//# sourceMappingURL=AttachmentTagList.types.js.map"],"names":[],"mappings":";;;;CACA,mDAAmD"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./AttachmentTagList"), exports);
7
+ _export_star._(require("./AttachmentTagList.types"), exports);
8
+ _export_star._(require("./renderAttachmentTagList"), exports);
9
+ _export_star._(require("./useAttachmentTagList"), exports);
10
+ _export_star._(require("./useAttachmentTagListStyles"), exports);
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export * from './AttachmentTagList';\nexport * from './AttachmentTagList.types';\nexport * from './renderAttachmentTagList';\nexport * from './useAttachmentTagList';\nexport * from './useAttachmentTagListStyles';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;uBAAc;uBACA;uBACA;uBACA;uBACA;CACd,iCAAiC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "renderAttachmentTagList_unstable", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return renderAttachmentTagList_unstable;
9
+ }
10
+ });
11
+ const _jsxruntime = require("@fluentui/react-jsx-runtime/jsx-runtime");
12
+ const _reactcomponents = require("@fluentui/react-components");
13
+ const _attachmentTagListContext = require("../../contexts/attachmentTagListContext");
14
+ const renderAttachmentTagList_unstable = (state, contextValues)=>{
15
+ (0, _reactcomponents.assertSlots)(state);
16
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_attachmentTagListContext.AttachmentTagListProvider, {
17
+ value: contextValues.tagList,
18
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(state.root, {})
19
+ });
20
+ }; //# sourceMappingURL=renderAttachmentTagList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["renderAttachmentTagList.js"],"sourcesContent":["import { jsx as _jsx } from \"@fluentui/react-jsx-runtime/jsx-runtime\";\nimport { assertSlots } from '@fluentui/react-components';\nimport { AttachmentTagListProvider } from '../../contexts/attachmentTagListContext';\n/**\n * Render the final JSX of AttachmentTagList\n */\nexport const renderAttachmentTagList_unstable = (state, contextValues) => {\n assertSlots(state);\n return /*#__PURE__*/_jsx(AttachmentTagListProvider, {\n value: contextValues.tagList,\n children: /*#__PURE__*/_jsx(state.root, {})\n });\n};\n//# sourceMappingURL=renderAttachmentTagList.js.map"],"names":["renderAttachmentTagList_unstable","state","contextValues","assertSlots","_jsx","AttachmentTagListProvider","value","tagList","children","root"],"mappings":";;;;+BAMaA;;;eAAAA;;;4BANe;iCACA;0CACc;AAInC,MAAMA,mCAAmC,CAACC,OAAOC;IACtDC,IAAAA,4BAAW,EAACF;IACZ,OAAO,WAAW,GAAEG,IAAAA,eAAI,EAACC,mDAAyB,EAAE;QAClDC,OAAOJ,cAAcK,OAAO;QAC5BC,UAAU,WAAW,GAAEJ,IAAAA,eAAI,EAACH,MAAMQ,IAAI,EAAE,CAAC;IAC3C;AACF,GACA,mDAAmD"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "useAttachmentTagList_unstable", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return useAttachmentTagList_unstable;
9
+ }
10
+ });
11
+ const _reactcomponents = require("@fluentui/react-components");
12
+ const useAttachmentTagList_unstable = (props, ref)=>{
13
+ const { onAttachmentTagDismiss } = props;
14
+ const focusAttributes = (0, _reactcomponents.useArrowNavigationGroup)({
15
+ axis: 'both',
16
+ circular: true
17
+ });
18
+ return {
19
+ onAttachmentTagDismiss,
20
+ components: {
21
+ root: 'div'
22
+ },
23
+ root: _reactcomponents.slot.always((0, _reactcomponents.getNativeElementProps)('div', {
24
+ 'aria-label': 'Attachments',
25
+ ref,
26
+ role: 'menu',
27
+ ...focusAttributes,
28
+ ...props
29
+ }), {
30
+ elementType: 'div'
31
+ })
32
+ };
33
+ }; //# sourceMappingURL=useAttachmentTagList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useAttachmentTagList.js"],"sourcesContent":["import { getNativeElementProps, slot, useArrowNavigationGroup } from '@fluentui/react-components';\n/**\n * Create the state required to render AttachmentTagList.\n *\n * The returned state can be modified with hooks such as useAttachmentTagListStyles_unstable,\n * before being passed to renderAttachmentTagList_unstable.\n *\n * @param props - props from this instance of AttachmentTagList\n * @param ref - reference to root HTMLElement of AttachmentTagList\n */\nexport const useAttachmentTagList_unstable = (props, ref) => {\n const {\n onAttachmentTagDismiss\n } = props;\n const focusAttributes = useArrowNavigationGroup({\n axis: 'both',\n circular: true\n });\n return {\n onAttachmentTagDismiss,\n components: {\n root: 'div'\n },\n root: slot.always(getNativeElementProps('div', {\n 'aria-label': 'Attachments',\n ref,\n role: 'menu',\n ...focusAttributes,\n ...props\n }), {\n elementType: 'div'\n })\n };\n};\n//# sourceMappingURL=useAttachmentTagList.js.map"],"names":["useAttachmentTagList_unstable","props","ref","onAttachmentTagDismiss","focusAttributes","useArrowNavigationGroup","axis","circular","components","root","slot","always","getNativeElementProps","role","elementType"],"mappings":";;;;+BAUaA;;;eAAAA;;;iCAVwD;AAU9D,MAAMA,gCAAgC,CAACC,OAAOC;IACnD,MAAM,EACJC,sBAAsB,EACvB,GAAGF;IACJ,MAAMG,kBAAkBC,IAAAA,wCAAuB,EAAC;QAC9CC,MAAM;QACNC,UAAU;IACZ;IACA,OAAO;QACLJ;QACAK,YAAY;YACVC,MAAM;QACR;QACAA,MAAMC,qBAAI,CAACC,MAAM,CAACC,IAAAA,sCAAqB,EAAC,OAAO;YAC7C,cAAc;YACdV;YACAW,MAAM;YACN,GAAGT,eAAe;YAClB,GAAGH,KAAK;QACV,IAAI;YACFa,aAAa;QACf;IACF;AACF,GACA,gDAAgD"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "useAttachmentTagListContextValues_unstable", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return useAttachmentTagListContextValues_unstable;
9
+ }
10
+ });
11
+ function useAttachmentTagListContextValues_unstable(state) {
12
+ const { onAttachmentTagDismiss } = state;
13
+ // This context is created with "@fluentui/react-context-selector", there is no sense to memoize it
14
+ const tagList = {
15
+ onAttachmentTagDismiss
16
+ };
17
+ return {
18
+ tagList
19
+ };
20
+ } //# sourceMappingURL=useAttachmentTagListContextValues.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useAttachmentTagListContextValues.js"],"sourcesContent":["export function useAttachmentTagListContextValues_unstable(state) {\n const {\n onAttachmentTagDismiss\n } = state;\n // This context is created with \"@fluentui/react-context-selector\", there is no sense to memoize it\n const tagList = {\n onAttachmentTagDismiss\n };\n return {\n tagList\n };\n}\n//# sourceMappingURL=useAttachmentTagListContextValues.js.map"],"names":["useAttachmentTagListContextValues_unstable","state","onAttachmentTagDismiss","tagList"],"mappings":";;;;+BAAgBA;;;eAAAA;;;AAAT,SAASA,2CAA2CC,KAAK;IAC9D,MAAM,EACJC,sBAAsB,EACvB,GAAGD;IACJ,mGAAmG;IACnG,MAAME,UAAU;QACdD;IACF;IACA,OAAO;QACLC;IACF;AACF,EACA,6DAA6D"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ attachmentTagListClassNames: function() {
13
+ return attachmentTagListClassNames;
14
+ },
15
+ useAttachmentTagListStyles_unstable: function() {
16
+ return useAttachmentTagListStyles_unstable;
17
+ }
18
+ });
19
+ const _reactcomponents = require("@fluentui/react-components");
20
+ const attachmentTagListClassNames = {
21
+ root: 'fai-AttachmentTagList'
22
+ };
23
+ const useRootBaseClassName = (0, _reactcomponents.__resetStyles)("r168fwfa", null, [
24
+ ".r168fwfa{column-gap:var(--spacingHorizontalSNudge);display:flex;flex-direction:row;flex-shrink:0;flex-wrap:wrap;row-gap:var(--spacingVerticalXS);}"
25
+ ]);
26
+ const useAttachmentTagListStyles_unstable = (state)=>{
27
+ const rootBaseClassName = useRootBaseClassName();
28
+ state.root.className = (0, _reactcomponents.mergeClasses)(attachmentTagListClassNames.root, rootBaseClassName, state.root.className);
29
+ return state;
30
+ }; //# sourceMappingURL=useAttachmentTagListStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useAttachmentTagListStyles.js"],"sourcesContent":["import { __resetStyles, mergeClasses, tokens } from '@fluentui/react-components';\nexport const attachmentTagListClassNames = {\n root: 'fai-AttachmentTagList'\n};\nconst useRootBaseClassName = __resetStyles(\"r168fwfa\", null, [\".r168fwfa{column-gap:var(--spacingHorizontalSNudge);display:flex;flex-direction:row;flex-shrink:0;flex-wrap:wrap;row-gap:var(--spacingVerticalXS);}\"]);\n/**\n * Apply styling to the AttachmentTagList slots based on the state\n */\nexport const useAttachmentTagListStyles_unstable = state => {\n const rootBaseClassName = useRootBaseClassName();\n state.root.className = mergeClasses(attachmentTagListClassNames.root, rootBaseClassName, state.root.className);\n return state;\n};\n//# sourceMappingURL=useAttachmentTagListStyles.js.map"],"names":["attachmentTagListClassNames","useAttachmentTagListStyles_unstable","root","useRootBaseClassName","__resetStyles","state","rootBaseClassName","className","mergeClasses"],"mappings":";;;;;;;;;;;IACaA,2BAA2B;eAA3BA;;IAOAC,mCAAmC;eAAnCA;;;iCARuC;AAC7C,MAAMD,8BAA8B;IACzCE,MAAM;AACR;AACA,MAAMC,uBAAuBC,IAAAA,8BAAa,EAAC,YAAY,MAAM;IAAC;CAAsJ;AAI7M,MAAMH,sCAAsCI,CAAAA;IACjD,MAAMC,oBAAoBH;IAC1BE,MAAMH,IAAI,CAACK,SAAS,GAAGC,IAAAA,6BAAY,EAACR,4BAA4BE,IAAI,EAAEI,mBAAmBD,MAAMH,IAAI,CAACK,SAAS;IAC7G,OAAOF;AACT,GACA,sDAAsD"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ const _export_star = require("@swc/helpers/_/_export_star");
6
+ _export_star._(require("./AttachmentTag"), exports);
7
+ _export_star._(require("./AttachmentTagList"), exports);
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export * from './AttachmentTag';\nexport * from './AttachmentTagList';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;uBAAc;uBACA;CACd,iCAAiC"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ AttachmentTagListContext: function() {
13
+ return AttachmentTagListContext;
14
+ },
15
+ AttachmentTagListProvider: function() {
16
+ return AttachmentTagListProvider;
17
+ },
18
+ useAttachmentTagListContext_unstable: function() {
19
+ return useAttachmentTagListContext_unstable;
20
+ }
21
+ });
22
+ const _reactcontextselector = require("@fluentui/react-context-selector");
23
+ const AttachmentTagListContext = (0, _reactcontextselector.createContext)(undefined);
24
+ const tagListContextDefaultValue = {
25
+ onAttachmentTagDismiss: ()=>null
26
+ };
27
+ const AttachmentTagListProvider = AttachmentTagListContext.Provider;
28
+ const useAttachmentTagListContext_unstable = (selector)=>(0, _reactcontextselector.useContextSelector)(AttachmentTagListContext, (ctx = tagListContextDefaultValue)=>selector(ctx)); //# sourceMappingURL=attachmentTagListContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["attachmentTagListContext.js"],"sourcesContent":["import { createContext, useContextSelector } from '@fluentui/react-context-selector';\nexport const AttachmentTagListContext = createContext(undefined);\nconst tagListContextDefaultValue = {\n onAttachmentTagDismiss: () => null\n};\nexport const AttachmentTagListProvider = AttachmentTagListContext.Provider;\nexport const useAttachmentTagListContext_unstable = selector => useContextSelector(AttachmentTagListContext, (ctx = tagListContextDefaultValue) => selector(ctx));\n//# sourceMappingURL=attachmentTagListContext.js.map"],"names":["AttachmentTagListContext","AttachmentTagListProvider","useAttachmentTagListContext_unstable","createContext","undefined","tagListContextDefaultValue","onAttachmentTagDismiss","Provider","selector","useContextSelector","ctx"],"mappings":";;;;;;;;;;;IACaA,wBAAwB;eAAxBA;;IAIAC,yBAAyB;eAAzBA;;IACAC,oCAAoC;eAApCA;;;sCANqC;AAC3C,MAAMF,2BAA2BG,IAAAA,mCAAa,EAACC;AACtD,MAAMC,6BAA6B;IACjCC,wBAAwB,IAAM;AAChC;AACO,MAAML,4BAA4BD,yBAAyBO,QAAQ;AACnE,MAAML,uCAAuCM,CAAAA,WAAYC,IAAAA,wCAAkB,EAACT,0BAA0B,CAACU,MAAML,0BAA0B,GAAKG,SAASE,OAC5J,oDAAoD"}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ AttachmentTag: function() {
13
+ return _AttachmentTag.AttachmentTag;
14
+ },
15
+ attachmentTagClassNames: function() {
16
+ return _AttachmentTag.attachmentTagClassNames;
17
+ },
18
+ renderAttachmentTag_unstable: function() {
19
+ return _AttachmentTag.renderAttachmentTag_unstable;
20
+ },
21
+ useAttachmentTagStyles_unstable: function() {
22
+ return _AttachmentTag.useAttachmentTagStyles_unstable;
23
+ },
24
+ useAttachmentTag_unstable: function() {
25
+ return _AttachmentTag.useAttachmentTag_unstable;
26
+ },
27
+ AttachmentTagList: function() {
28
+ return _AttachmentTagList.AttachmentTagList;
29
+ },
30
+ attachmentTagListClassNames: function() {
31
+ return _AttachmentTagList.attachmentTagListClassNames;
32
+ },
33
+ renderAttachmentTagList_unstable: function() {
34
+ return _AttachmentTagList.renderAttachmentTagList_unstable;
35
+ },
36
+ useAttachmentTagListStyles_unstable: function() {
37
+ return _AttachmentTagList.useAttachmentTagListStyles_unstable;
38
+ },
39
+ useAttachmentTagList_unstable: function() {
40
+ return _AttachmentTagList.useAttachmentTagList_unstable;
41
+ }
42
+ });
43
+ const _AttachmentTag = require("./AttachmentTag");
44
+ const _AttachmentTagList = require("./AttachmentTagList");
45
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export { AttachmentTag, attachmentTagClassNames, renderAttachmentTag_unstable, useAttachmentTagStyles_unstable, useAttachmentTag_unstable } from './AttachmentTag';\nexport { AttachmentTagList, attachmentTagListClassNames, renderAttachmentTagList_unstable, useAttachmentTagListStyles_unstable, useAttachmentTagList_unstable } from './AttachmentTagList';\n//# sourceMappingURL=index.js.map"],"names":["AttachmentTag","attachmentTagClassNames","renderAttachmentTag_unstable","useAttachmentTagStyles_unstable","useAttachmentTag_unstable","AttachmentTagList","attachmentTagListClassNames","renderAttachmentTagList_unstable","useAttachmentTagListStyles_unstable","useAttachmentTagList_unstable"],"mappings":";;;;;;;;;;;IAASA,aAAa;eAAbA,4BAAa;;IAAEC,uBAAuB;eAAvBA,sCAAuB;;IAAEC,4BAA4B;eAA5BA,2CAA4B;;IAAEC,+BAA+B;eAA/BA,8CAA+B;;IAAEC,yBAAyB;eAAzBA,wCAAyB;;IAChIC,iBAAiB;eAAjBA,oCAAiB;;IAAEC,2BAA2B;eAA3BA,8CAA2B;;IAAEC,gCAAgC;eAAhCA,mDAAgC;;IAAEC,mCAAmC;eAAnCA,sDAAmC;;IAAEC,6BAA6B;eAA7BA,gDAA6B;;;+BADZ;mCACoB;CACrK,iCAAiC"}
package/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "@fluentui-copilot/react-attachments",
3
+ "version": "0.0.0-nightly-20240313-0404-8abc883d.1",
4
+ "description": "A set of components related to attaching files in Copilot experiences.",
5
+ "main": "lib-commonjs/index.js",
6
+ "module": "lib/index.js",
7
+ "typings": "./dist/index.d.ts",
8
+ "sideEffects": false,
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/microsoft/fluentai"
12
+ },
13
+ "license": "MIT",
14
+ "dependencies": {
15
+ "@fluentui-copilot/react-provider": "0.0.0-nightly-20240313-0404-8abc883d.1",
16
+ "@swc/helpers": "^0.5.1"
17
+ },
18
+ "peerDependencies": {
19
+ "@fluentui/keyboard-keys": ">=9.0.4 <10.0.0",
20
+ "@fluentui/react-components": ">=9.37.3 <10.0.0",
21
+ "@fluentui/react-context-selector": ">=9.1.34 <10.0.0",
22
+ "@fluentui/react-icons": ">=2.0.217 <3.0.0",
23
+ "@fluentui/react-jsx-runtime": ">=9.0.18 <10.0.0",
24
+ "@fluentui/react-shared-contexts": ">=9.11.1 <10.0.0",
25
+ "@types/react": ">=16.14.0 <19.0.0",
26
+ "@types/react-dom": ">=16.9.8 <19.0.0",
27
+ "react": ">=16.14.0 <19.0.0",
28
+ "react-dom": ">=16.14.0 <19.0.0"
29
+ },
30
+ "beachball": {},
31
+ "exports": {
32
+ ".": {
33
+ "types": "./dist/index.d.ts",
34
+ "node": "./lib-commonjs/index.js",
35
+ "import": "./lib/index.js",
36
+ "require": "./lib-commonjs/index.js"
37
+ },
38
+ "./package.json": "./package.json"
39
+ }
40
+ }