fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

[Feature]: Icon map as global object or UMD

Open gabbsmo opened this issue 1 year ago • 4 comments

Library

React Components / v9 (@fluentui/react-components)

Describe the feature that you would like added

The icon map is currently available as: amd module, commonjs module, es module and typescript. This makes it hard to integrate into legacy web applications that need updated look and feel but do not use a module bundler.

One idea is to bundle the icon map as a global object, i.e. window.fabric.fileTypesIconMap. Another common pattern in the JavaScript community is the Universal Module Definition (UMD) that exports to either a amd, cjs or global object, depending on what module api is available in the environment.

Have you discussed this feature with our team

No response

Additional context

No response

Validations

  • [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Priority

None

gabbsmo avatar Mar 15 '24 07:03 gabbsmo

@Hotell do you have any insight about this? Would it be something feasible for us to do?

tudorpopams avatar Mar 25 '24 16:03 tudorpopams

@gabbsmo what type of icon map are you referring ? this seems to be v8 related -> @fluentui/react-file-type-icons can you verify ?

Hotell avatar Apr 23 '24 14:04 Hotell

You are right, it is that npm package.

gabbsmo avatar Apr 23 '24 14:04 gabbsmo

no assignees

Gentle ping that this issue needs attention.